Pass the VMware VCP-AM Develop 2022 2V0-72.22 Questions and answers with CertsForce

Viewing page 3 out of 3 pages
Viewing questions 21-30 out of questions
Questions # 21:

Refer to the exhibit.

Question # 21

Assume that the application is using Spring transaction management which uses Spring AOP internally.

Choose the statement that describes what is happening when the update1 method is called? (Choose the best answer.)

Options:

A.

There are 2 transactions because REQUIRES_NEW always runs in a new transaction.


B.

An exception is thrown as another transaction cannot be started within an existing transaction.


C.

There is only one transaction because REQUIRES_NEW will use an active transaction if one already exists.


D.

There is only one transaction initiated by update1() because the call to update2() does not go through the proxy.


Expert Solution
Questions # 22:

Which two statements about the @Autowired annotation are true? (Choose two.)

Options:

A.

@Autowired fields are injected after any config methods are invoked.


B.

Multiple arguments can be injected into a single method using @Autowired.


C.

By default, if a dependency cannot be satisfied with @Autowired, Spring throws a RuntimeException.


D.

If @Autowired is used on a class, field injection is automatically performed for all dependencies.


E.

@Autowired can be used to inject references into BeanPostProcessor and

BeanFactoryPostProcessor.


Expert Solution
Questions # 23:

Which two statements are true regarding a Spring Boot-based Spring MVC application? (Choose two.)

Options:

A.

The default embedded servlet container can be replaced with Undertow.


B.

Jetty is the default servlet container.


C.

Spring Boot starts up an embedded servlet container by default.


D.

The default port of the embedded servlet container is 8088.


E.

Spring MVC starts up an in-memory database by default.


Expert Solution
Viewing page 3 out of 3 pages
Viewing questions 21-30 out of questions