Oct-2022 Download Free Latest Exam 2V0-72.22 Certified Sample Questions
Prepare for your exam certification with our 2V0-72.22 Certified VMware
What are the steps to follow for the registration of the VMware 2V0-72.22 Exam
Select the date, time and location of the exam, as per your convenience, and proceed with making the payment for booking a slot in your preferred center.
Visit the Pearson VUE website in order to register for the VMware 2V0-72.22 exam.
Then Login using your username and password to access your account.
Search for the VMware 2V0-72.22 exam in the search bar, and select “Schedule this exam” from the drop-down list which appears after typing the exam details.
NEW QUESTION 12
Which two are required to use transactions in Spring? (Choose two.)
- A. Annotate a class, an interface, or individual methods requiring a transaction with the @Transactional annotation.
- B. Write a Spring AOP advice to implement transactional behavior.
- C. Add @EnableTransactionManagement to a Java configuration class.
- D. A class requiring a transaction must implement the TransactionInterceptor interface.
- E. A class must be annotated with @Service and @Transaction.
Answer: A,C
NEW QUESTION 13
Which two statements describe Spring JdbcTemplate? (Choose two.)
- A. The JdbcTemplate provides the ability to work with result sets.
- B. The JdbcTemplate can only perform update but not insert to the database.
- C. The JdbcTemplate provides methods for query execution.
- D. The JdbcTemplate generates SQL statements.
- E. All JdbcTemplate methods throw SQLException which you are required to handle.
Answer: A,D
NEW QUESTION 14
Which two annotations indicate that the transaction for a transactional test method should be committed after the test method has completed? (Choose two.)
- A. @Commit
- B. @Rollback(false)
- C. @Sql(alwaysCommit=true)
- D. @Transactional(commit=true)
- E. @SqlMergeMode(false)
Answer: A,B
NEW QUESTION 15
Which two statements are true regarding a Spring Boot-based Spring MVC application? (Choose two.)
- A. Jetty is the default servlet container.
- B. Spring MVC starts up an in-memory database by default.
- C. The default embedded servlet container can be replaced with Undertow.
- D. The default port of the embedded servlet container is 8088.
- E. Spring Boot starts up an embedded servlet container by default.
Answer: A,E
NEW QUESTION 16
Spring puts each bean instance in a scope. What is the default scope? (Choose the best answer.)
- A. session
- B. singleton
- C. request
- D. prototype
Answer: B
NEW QUESTION 17
Spring Boot will find and load property files in which of the following? (Choose the best answer.)
- A. env.properties or env.yml, usually located in the classpath root.
- B. application.properties or application.yml, usually located in the classpath root.
- C. config.properties or config.yml, usually located in the classpath root.
- D. A *.properties file matching the name of the class annotated with @SpringBootApplication.
Answer: B
NEW QUESTION 18
Which two statements are correct regarding the @EnableAutoConfiguration annotation? (Choose two.)
- A. It has the same effect regardless of the package of the class that is annotated with it.
- B. It ensures auto-configuration is applied before user-defined beans have been registered.
- C. It enables auto-configuration of the ApplicationContext by attempting to guess necessary beans.
- D. It is a meta-annotation on the @SpringBootApplication composed annotation.
- E. It is meta-annotation on the @SpringBootConfiguration composed annotation.
Answer: A,D
NEW QUESTION 19
Which two statements about the @Autowired annotation are true? (Choose two.)
- A. If @Autowired is used on a class, field injection is automatically performed for all dependencies.
- B. Multiple arguments can be injected into a single method using @Autowired.
- C. @Autowired can be used to inject references into BeanPostProcessor and
- D. By default, if a dependency cannot be satisfied with @Autowired, Spring throws a RuntimeException.
- E. @Autowired fields are injected after any config methods are invoked.
Answer: B,C
Explanation:
BeanFactoryPostProcessor.
NEW QUESTION 20
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. Spring Data JPA is the only implementation for relational databases.
- C. Embedded Databases (H2, HSQLDB, Derby) are not re-created during the startup.
- D. Scanning of JPA Entities can not be customized, the whole classpath is scanned.
- E. Any kind of Hibernate property can be passed to Spring Data JPA like spring.jpa.properties.xxx.
Answer: B,C
NEW QUESTION 21
Which two statements are correct regarding Spring Boot auto-configuration customization? (Choose two.)
- A. Provide customized auto-configuration by subclassing the provided Spring Boot auto-configuration classes.
- B. Control the order of auto-configuration classes applied with @AutoConfigureOrder.
- C. Use the @AutoConfigureAfter or @AutoConfigureBefore annotations to apply configuration in a specific order.
- D. Enable component scanning within auto-configuration classes to find necessary components.
- E. Disable specific auto-configuration classes by using the exclude attribute on the
@EnableAutoConfiguation annotation.
Answer: C,E
Explanation:
Section: (none)
Explanation
NEW QUESTION 22
Refer to the exhibit.
What is the id/name of the declared bean in this Java configuration class? (Choose the best answer.)
- A. clientServiceImpl (starting with uppercase "C")
- B. clientServiceImpl (starting with lowercase "c")
- C. ClientService (starting with uppercase "C")
- D. clientService (starting with lowercase "c")
Answer: C
NEW QUESTION 23
Which two statements about pointcut expressions are true? (Choose two.)
- A. A pointcut expression can be used to select join points which have been annotated with a specific annotation.
- B. A pointcut expression cannot specify the type of parameters.
- C. A pointcut expression can include operators such as the following: && (and), || (or), ! (not).
- D. A pointcut expression will throw an exception if no methods are matched.
- E. A pointcut expression cannot have a wildcard for a method name.
Answer: A,C
NEW QUESTION 24
Which two statements are correct when @SpringBootApplication is annotated on a class? (Choose two.)
- A. Component scanning will start from the package of the class.
- B. All other annotations on the class will be ignored.
- C. It causes Spring Boot to enable auto-configuration by default.
- D. Methods in the class annotated with @Bean will be ignored.
- E. A separate ApplicationContext will be created for each class annotated with
Answer: C,E
Explanation:
@SpringBootApplication.
NEW QUESTION 25
Refer to the exhibit.
Which statement is true? (Choose the best answer.)
- A. A class that implements CustomerRepository must be implemented and declared as a Spring Bean.
- B. CustomerRepository should be a class, not an interface.
- C. JPA annotations are required on the Customer class to successfully use Spring Data JDBC.
- D. An implementation of this repository can be automatically generated by Spring Data JPA.
Answer: D
NEW QUESTION 26
Which statement about @TestPropertySource annotation is true? (Choose the best answer.)
- A. @TestPropertySource annotation loads a properties file relative to the root of the project by default.
- B. Java system properties have higher precedence than the properties loaded from
@TestPropertySource. - C. Properties defined @PropertySource are not loaded if @TestPropertySource is used.
- D. Inlined properties defined in @TestPropertySource can be used to override properties defined in property files.
Answer: D
NEW QUESTION 27
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.)
- A. spring-boot-devtools
- B. spring-boot-starter-devtools
- C. spring-boot-restart
- D. spring-boot-initializr
Answer: A
NEW QUESTION 28
Which two options are REST principles? (Choose two.)
- A. RESTful applications favor tight coupling between the clients and the servers.
- B. RESTful applications use a stateless architecture.
- C. RESTful application servers keep track of the client state.
- D. RESTful application use HTTP headers and status codes as a contract with the clients.
- E. RESTful applications cannot use caching.
Answer: B,D
NEW QUESTION 29
Refer to the exhibit.
Which option is a valid way to retrieve the account id? (Choose the best answer.)
- A. Add @PathVariable("id") String accountId argument to the update() handler method.
- B. Add @RequestParam long accountId argument to the update() handler method.
- C. Add @PathVariable long accountId argument to the update() handler method.
- D. Add @RequestParam("id") String accountId argument to the update() handler method.
Answer: A
NEW QUESTION 30
Which three dependencies are provided by the spring-boot-starter-test? (Choose three.)
- A. Cucumber
- B. Hamcrest
- C. EasyMock
- D. spring-test
- E. Junit
- F. PowerMock
Answer: B,C,E
NEW QUESTION 31
Which two statements are true about @Controller annotated classes? (Choose two.)
- A. The @Controller annotated classes can only render views.
- B. The @Controller annotation is a stereotype annotation like @Component.
- C. @Controller is interchangeable with @RestController with no extra code changes for the methods inside the class.
- D. The classes must be annotated together with @EnableMvcMappings to be discovered via component scanning.
- E. The classes are eligible for handling requests in Spring MVC.
Answer: B,E
NEW QUESTION 32
If a class is annotated with @Component, what should be done to have Spring automatically detect the annotated class and load it as a bean? (Choose the best answer.)
- A. Ensure a valid bean name in the @Component annotation is specified.
- B. Ensure a valid @Scope for the class is specified.
- C. Ensure a valid @Bean for the class is specified.
- D. Ensure a valid @ComponentScan annotation in the Java configuration is specified.
Answer: A
NEW QUESTION 33
Which statement describes the propagation behavior of Propagation.REQUIRES_NEW annotation? (Choose the best answer.)
- A. Joins a transaction if one already exists; throws an exception if an active transaction does not exist.
- B. Starts a new transaction; if an active transaction already exists, it is suspended.
- C. Runs in a nested transaction if an active transaction exists; throws an exception if an active transaction does not exist.
- D. Starts a new transaction but throws an exception if an active transaction already exists.
Answer: B
NEW QUESTION 34
Which two statements are true concerning the BeanPostProcessor Extension point? (Choose two.)
- A. BeanPostProcessors cannot be ordered in a Spring Boot application.
- B. BeanPostProcessors are called before the BeanFactoryPostProcessors.
- C. BeanPostProcessors are called before the dependencies have been injected.
- D. BeanPostProcessors are called during the initialization phase of a bean life cycle.
- E. Custom BeanPostProcessors can be implemented for Spring applications.
Answer: D,E
NEW QUESTION 35
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 can greatly reduce the amount of "boilerplate" code typically needed for data access.
- C. Spring Data cannot be used together with Spring MVC.
- D. Spring Data is specifically designed for JPA, JDBC, and relational database access only.
- E. Spring Data works by applying the JPA annotations to data stores such as MongoDB, Neo4j, and Redis.
Answer: B,D
NEW QUESTION 36
......
Free VMware 2V0-72.22 Exam 2022 Practice Materials Collection: https://www.prep4king.com/2V0-72.22-exam-prep-material.html
2V0-72.22 Exam Info and Free Practice Test All-in-One Exam Guide Oct-2022: https://drive.google.com/open?id=1X4HFKVdEfZycmTpUJcWy1ApkNpAYxdIv

