Month End Special 70% Discount Offer - Ends in 0d 00h 00m 00s - Coupon code: Board70

2V0-72.22 Exam Dumps - VMware Certification Questions and Answers

Question # 4

Which two statements are true regarding Spring and Spring Boot Testing? (Choose two.)

Options:

A.

EasyMock is supported out of the box.

B.

@SpringBootTest or @SpringJUnitConfig can be used for creating an ApplicationContext.

C.

Mockito spy is not supported in Spring Boot testing by default.

D.

The spring-test dependency provides annotations such as @Mock and @MockBean.

E.

Integration and slice testing are both supported.

Buy Now
Question # 5

Which statement about @TestPropertySource annotation is true? (Choose the best answer.)

Options:

A.

Java system properties have higher precedence than the properties loaded from

@TestPropertySource.

B.

Properties defined @PropertySource are not loaded if @TestPropertySource is used.

C.

@TestPropertySource annotation loads a properties file relative to the root of the project by default.

D.

Inlined properties defined in @TestPropertySource can be used to override properties defined in property files.

Buy Now
Question # 6

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.

Buy Now
Question # 7

Which two statements are true concerning the BeanPostProcessor Extension point? (Choose two.)

Options:

A.

BeanPostProcessors are called before the dependencies have been injected.

B.

Custom BeanPostProcessors can be implemented for Spring applications.

C.

BeanPostProcessors are called before the BeanFactoryPostProcessors.

D.

BeanPostProcessors are called during the initialization phase of a bean life cycle.

E.

BeanPostProcessors cannot be ordered in a Spring Boot application.

Buy Now
Question # 8

Which statement defines a pointcut? (Choose the best answer.)

Options:

A.

A point in the execution of a program such as a method call or field assignment.

B.

An expression that selects one or more join points.

C.

A module that encapsulated advices.

D.

Code to be executed at each selected join point.

Buy Now
Question # 9

Which dependency enables an automatic restart of the application as code is changed during development of a Spring boot configuration on a web application? (Choose the best answer.)

Options:

A.

spring-boot-devtools

B.

spring-boot-initializr

C.

spring-boot-starter-devtools

D.

spring-boot-restart

Buy Now
Question # 10

Which two mechanisms of autowiring a dependency when multiple beans match the dependency's type are correct? (Choose two.)

Options:

A.

Use of @Qualifier annotation on the class and @Autowired annotation either on a field or setter methods.

B.

Use of @Qualifier and @Autowired annotations together with setter methods.

C.

Use of @Qualifier annotation only with setter methods (@Autowired is optional for setters).

D.

Use of @Qualifier and @Autowired annotations together on a field.

E.

Use of @Qualifier annotation only on a field (@Autowired is optional for fields).

Buy Now
Question # 11

Refer to the exhibit.

How can a Spring Bean be created from this LegacySingleton class?

Options:

A.

Call LegacySingleton.getInstance() from within a @Bean method and return the instance.

B.

Return an instance of LegacySingleton using the new keyword from a @Bean method.

C.

It is not possible without modifying the LegacySingleton class, the constructor must be public.

D.

Modify the LegacySingleton class by adding the @Autowired annotation to the instance variable.

Buy Now
Question # 12

Spring Boot will find and load property files in which of the following? (Choose the best answer.)

Options:

A.

A *.properties file matching the name of the class annotated with @SpringBootApplication.

B.

config.properties or config.yml, usually located in the classpath root.

C.

application.properties or application.yml, usually located in the classpath root.

D.

env.properties or env.yml, usually located in the classpath root.

Buy Now
Question # 13

Which two options are valid optional attributes for Spring’s @Transactional annotation? (Choose two.)

Options:

A.

isolation

B.

writeOnly

C.

nestedTransaction

D.

readWrite

E.

propagation

Buy Now
Exam Code: 2V0-72.22
Exam Name: Professional Develop VMware Spring
Last Update: Jan 31, 2025
Questions: 79
2V0-72.22 pdf

2V0-72.22 PDF

$25.5  $84.99
2V0-72.22 Engine

2V0-72.22 Testing Engine

$28.5  $94.99
2V0-72.22 PDF + Engine

2V0-72.22 PDF + Testing Engine

$40.5  $134.99