Refer to the exhibit.
Which two statements are correct regarding the HelloAutoConfig auto-configuration class when it is specified in the META-INF/spring.factories file? (Choose two.)
A. A HelloService bean will be created from the helloService() method even if the HelloService.class is not in the classpath.
B. A HelloService bean will be created from the helloService() method only when there is no other HelloService bean in the ApplicationContext.
C. This auto-configuration class is used only when the HelloService.class is not on the classpath.
D. This auto-configuration class is used only when the HelloService.class is on the classpath.
E. A HelloService bean will be created from the helloService() method and will replace existing a HelloService bean in the ApplicationContext.
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.
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.
Which two options are valid optional attributes for Spring's @Transactional annotation? (Choose two.)
A. isolation
B. writeOnly
C. nestedTransaction
D. readWrite
E. propagation
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.
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.
Which three types of objects can be returned form a JdbcTemplate query? (Choose three.)
A. Generic MapS
B. Simple types (int, long, String, etc)
C. JSONObject
D. User defined types
E. Properties
F. XMLObject
Which two statements about pointcut expressions are true? (Choose two.)
A. A pointcut expression cannot specify the type of parameters.
B. A pointcut expression will throw an exception if no methods are matched.
C. A pointcut expression cannot have a wildcard for a method name.
D. A pointcut expression can include operators such as the following: andand (and), || (or), ! (not).
E. A pointcut expression can be used to select join points which have been annotated with a specific annotation.
Refer to the exhibit.
It is a Java code fragment from a Spring application. Which statement is true with regard to the above example? (Choose the best answer.)
A. This syntax is invalid because the result of the getBean() method call should be cast to ClientService.
B. It will return a bean called ClientService regardless of its id or name.
C. This syntax is invalid because the bean id must be specified as a method parameter.
D. It will return a bean of the type ClientService regardless of its id or name.
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.
Nowadays, the certification exams become more and more important and required by more and more enterprises when applying for a job. But how to prepare for the exam effectively? How to prepare for the exam in a short time with less efforts? How to get a ideal result and how to find the most reliable resources? Here on Vcedump.com, you will find all the answers. Vcedump.com provide not only VMware exam questions, answers and explanations but also complete assistance on your exam preparation and certification application. If you are confused on your 2V0-72.22 exam preparations and VMware certification application, do not hesitate to visit our Vcedump.com to find your solutions here.