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

Which two options will inject the value of the daily.limit system property? (Choose two.)

A. @Value("#{daily.limit}")

B. @Value("$(systemProperties.daily.limit)")

C. @Value("$(daily.limit)")

D. @Value("#{systemProperties[`daily.limit']}")

E. @Value("#{systemProperties.daily.limit}")

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 when @SpringBootApplication is annotated on a class? (Choose two.)

A. It causes Spring Boot to enable auto-configuration by default.

B. Component scanning will start from the package of the class.

C. All other annotations on the class will be ignored.

D. Methods in the class annotated with @Bean will be ignored.

E. A separate ApplicationContext will be created for each class annotated with @SpringBootApplication.

Buy Now
Questions 9

Which two statements are true about Spring Boot and Spring Data JPA? (Choose two.)

A. @EntityScan and spring.jpa.* properties can be used to customize Spring Data JPA.

B. Any kind of Hibernate property can be passed to Spring Data JPA like spring.jpa.properties.xxx.

C. Spring Data JPA is the only implementation for relational databases.

D. Scanning of JPA Entities can not be customized, the whole classpath is scanned.

E. Embedded Databases (H2, HSQLDB, Derby) are not re-created during the startup.

Buy Now
Questions 10

Refer to the exhibit.

Based on the default Spring behavior, choose the correct answer. (Choose the best answer.)

A. One AccountRepository bean will be instantiated since the default scope is singleton.

B. Three AccountRepository beans will be instantiated as the accountRepository() method will be called three times.

C. Many AccountRepository beans will be instantiated, depending how often accountRepository(), transferService() and accountService() are called.

D. Two AccountRepository beans will be instantiated as the accountRepository() method will be called two times.

Buy Now
Questions 11

Which two statements are true regarding storing user details in Spring Security? (Choose two.)

A. With a custom UserDetailsService defined in the ApplicationContext, Spring Boot still creates the default user.

B. Passwords must be hashed and the default hashing algorithm is MD5.

C. User details can be stored in custom storage and retrieve them by implementing the UserDetailsService interface.

D. User details can be stored in a database, in LDAP, or in-memory.

E. The user details includes username and password but not authorities.

Buy Now
Questions 12

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 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: Jan 11, 2025
Questions: 60
10%OFF Coupon Code: SAVE10

PDF (Q&A)

$49.99

VCE

$55.99

PDF + VCE

$65.99