Leads4pass > VMware > VCP-AM Develop 2022 > 2V0-72.22 > 2V0-72.22 Online Practice Questions and Answers

2V0-72.22 Online Practice Questions and Answers

Questions 4

Spring puts each bean instance in a scope. What is the default scope? (Choose the best answer.)

A. prototype

B. singleton

C. request

D. session

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

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

A. Use the @AutoConfigureAfter or @AutoConfigureBefore annotations to apply configuration in a specific order.

B. Disable specific auto-configuration classes by using the exclude attribute on the @EnableAutoConfiguation annotation.

C. Provide customized auto-configuration by subclassing the provided Spring Boot auto-configuration classes.

D. Enable component scanning within auto-configuration classes to find necessary components.

E. Control the order of auto-configuration classes applied with @AutoConfigureOrder.

Buy Now
Questions 7

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

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

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

A. Used to designate the location of the application.properties file in a Spring Boot application.

B. Used to easily look up and return a single property value from some external property file.

C. Used to designate the file directory of the application.properties file in a Spring Boot application.

D. Used to add a set of name/value pairs to the Spring Environment from an external source.

Buy Now
Questions 9

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

A. isolation

B. writeOnly

C. nestedTransaction

D. readWrite

E. propagation

Buy Now
Questions 10

Which two statements are correct regarding the Health Indicator status? (Choose two.)

A. The last status in a sorted list of HealthIndicators is used to derive the final system health.

B. The status with the least severity is used as the top-level status.

C. Custom status values can be created.

D. The built-in status values are DOWN, OUT_OF_SERVICE, UNKNOWN, and UP in decreasing order of severity.

E. The severity order cannot be changed due to security reasons.

Buy Now
Questions 11

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 12

What are the two reasons Spring be used to build a Java application? (Choose two.)

A. Spring automates a Java application build.

B. Spring provides a Dependency Injection container.

C. Spring automates deployment of Java applications to all of the major cloud providers.

D. Spring provides comprehensive Java IDE support.

E. Spring provides abstractions over infrastructure such as persistence and messaging.

Buy Now
Questions 13

Which two statements describe Spring JdbcTemplate? (Choose two.)

A. All JdbcTemplate methods throw SQLException which you are required to handle.

B. The JdbcTemplate provides the ability to work with result sets.

C. The JdbcTemplate can only perform update but not insert to the database.

D. The JdbcTemplate provides methods for query execution.

E. The JdbcTemplate generates SQL statements.

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

PDF (Q&A)

$49.99

VCE

$55.99

PDF + VCE

$65.99