VMware 2V0-72.22 Exam Practice Questions (P. 2)
- Full Access (90 questions)
- Six months of Premium Access
- Access to one million comments
- Seamless ChatGPT Integration
- Ability to download PDF files
- Anki Flashcard files for revision
- No Captcha & No AdSense
- Advanced Exam Configuration
Question #6
Which two statements are true regarding a Spring Boot-based Spring MVC application? (Choose two.)
- AThe default embedded servlet container can be replaced with Undertow.Most Voted
- BJetty is the default servlet container.
- CSpring Boot starts up an embedded servlet container by default.Most Voted
- DThe default port of the embedded servlet container is 8088.
- ESpring MVC starts up an in-memory database by default.
Correct Answer:
BC
BC
send
light_mode
delete
Question #7
Which two statements are true regarding Spring and Spring Boot Testing? (Choose two.)
- AEasyMock is supported out of the box.
- B@SpringBootTest or @SpringJUnitConfig can be used for creating an ApplicationContext.
- CMockito spy is not supported in Spring Boot testing by default.Most Voted
- DThe spring-test dependency provides annotations such as @Mock and @MockBean.
- EIntegration and slice testing are both supported.
Correct Answer:
CD
CD
send
light_mode
delete
Question #8
Refer to the exhibit.

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.)

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.)
- AThere are 2 transactions because REQUIRES_NEW always runs in a new transaction.Most Voted
- BAn exception is thrown as another transaction cannot be started within an existing transaction.
- CThere is only one transaction because REQUIRES_NEW will use an active transaction if one already exists.
- DThere is only one transaction initiated by update1() because the call to update2() does not go through the proxy.
Correct Answer:
D
D
send
light_mode
delete
Question #9
Which two statements are true concerning constructor injection? (Choose two.)
- AIf there is only one constructor the @Autowired annotation is not required.Most Voted
- BConstructor injection only allows one value to be injected.
- CConstructor injection is preferred over field injection to support unit testing.Most Voted
- DConstruction injection can be used with multiple constructors without @Autowired annotation.
- EField injection is preferred over constructor injection from a unit testing standpoint.
Correct Answer:
CE
CE
send
light_mode
delete
Question #10
Given an ApplicationContext containing three bean definitions of type Foo with bean ids foo1, foo2, and foo3, which three @Autowired scenarios are valid and will allow the ApplicationContext to initialize successfully? (Choose three.)
- A@Autowired public void setFoo (Foo foo) {…}
- B@Autowired @Qualifier (“foo3”) Foo foo;Most Voted
- C@Autowired public void setFoo (@Qualifier (“foo1”) Foo foo) {…}Most Voted
- D@Autowired private Foo foo;
- E@Autowired private Foo foo2;Most Voted
- F@Autowired public void setFoo(Foo foo2) {…}
Correct Answer:
ADF
ADF
send
light_mode
delete
All Pages