Pass4itsure > VMware > VMware Certifications > 2V0-72.22 > 2V0-72.22 Online Practice Questions and Answers

2V0-72.22 Online Practice Questions and Answers

Questions 4

What is a Spring Boot starter dependency? (Choose the best answer.)

A. A setting for specifying which code you want Spring Boot to generate for you.

B. A specific POM which you must build to control Spring Boot's opinionated runtime.

C. A pre-existing model project you can download and use as the basis of your project.

D. An easy way to include multiple, coordinated dependencies related to a specific technology, like web or JDBC.

Buy Now
Questions 5

Which statement is true? (Choose the best answer.)

A. @ActiveProfiles is a class-level annotation that is used to instruct the Spring TestContext Framework to record all application events that are published in the ApplicationContext during the execution of a single test.

B. @ActiveProfiles is a class-level annotation that you can use to configure how the Spring TestContext Framework is bootstrapped.

C. @ActiveProfiles is a class-level annotation that you can use to configure the locations of properties files and inlined properties to be added to the set of PropertySources in the Environment for an ApplicationContext loaded for an integration test.

D. @ActiveProfiles is a class-level annotation that is used to declare which bean definition profiles should be active when loaded an ApplicationContext for an integration test.

Buy Now
Questions 6

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

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
Questions 7

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

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.

Buy Now
Questions 8

Which two statements are correct regarding the @EnableAutoConfiguration annotation? (Choose two.)

A. It is a meta-annotation on the @SpringBootApplication composed annotation.

B. It enables auto-configuration of the ApplicationContext by attempting to guess necessary beans.

C. It is meta-annotation on the @SpringBootConfiguration composed annotation.

D. It has the same effect regardless of the package of the class that is annotated with it.

E. It ensures auto-configuration is applied before user-defined beans have been registered.

Buy Now
Questions 9

Which two use cases can be addressed by the method level security annotation @PreAuthorize? (Choose two.)

A. Allow access to a method based on user identity.

B. Allow access to a method based on the returned object.

C. Allow access to a method based on HTTP method.

D. Allow access to a method based on request URL.

E. Allow access to a method based on roles.

Buy Now
Questions 10

Which two statements are correct regarding Spring Boot auto-configuration? (Choose two.)

A. Auto-configuration uses @Conditional annotations to constrain when it should apply.

B. Auto-configuration could apply when a bean is missing but not when a bean is present.

C. Auto-configuration is applied by processing candidates listed in META-INF/spring.factories.

D. Auto-configuration could apply when a bean is present but not when a bean is missing.

E. Auto-configuration is applied before user-defined beans have been registered.

Buy Now
Questions 11

What two options are auto-configured Spring Boot Actuator HealthIndicators? (Choose two.)

A. DataSourceHealthIndicator

B. GoogleCloudDataStoreHealthIndicator

C. DynamoDBHealthIndicator

D. RabbitHealthIndicator

E. OktaHealthIndicator

Buy Now
Questions 12

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

A. @TestApplicationContext is used to define additional beans or customizations for a test.

B. Test methods in a @SpringBootTest class are transactional by default.

C. @SpringBootTest is typically used for integration testing.

D. Test methods annotated with @SpringBootTest will recreate the ApplicationContext.

E. @SpringBootTest without any configuration classes expects there is only one class annotated with @SpringBootConfiguration in the application.

Buy Now
Questions 13

Which following statements are true about Spring Data? (Choose two.)

A. Spring Data implementations exist for many data storage types, such as MongoDB, Neo4j, and Redis.

B. Spring Data works by applying the JPA annotations to data stores such as MongoDB, Neo4j, and Redis.

C. Spring Data can greatly reduce the amount of "boilerplate" code typically needed for data access.

D. Spring Data is specifically designed for JPA, JDBC, and relational database access only.

E. Spring Data cannot be used together with Spring MVC.

Buy Now
Exam Code: 2V0-72.22
Exam Name: Professional Develop VMware Spring
Last Update: May 27, 2026
Questions: 60
10%OFF Coupon Code: SAVE10

PDF (Q&A)

$49.99

VCE

$55.99

PDF + VCE

$65.99