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.
Which two statements are true regarding the RestTemplate class? (Choose two.)
A. It supports asynchronous non-blocking model.
B. It automatically supports sending and receiving Java objects.
C. It provides convenience methods for writing REST clients.
D. It provides convenience methods for writing REST services.
E. Sending an HTTP request with a custom header is not possible when using RestTemplate.
Which two are required to use transactions in Spring? (Choose two.)
A. Add @EnableTransactionManagement to a Java configuration class.
B. Annotate a class, an interface, or individual methods requiring a transaction with the @Transactional annotation.
C. A class must be annotated with @Service and @Transaction.
D. A class requiring a transaction must implement the TransactionInterceptor interface.
E. Write a Spring AOP advice to implement transactional behavior.
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.
Refer to the exhibit.
The above code shows a conditional @Bean method for the creation of a JdbcTemplate bean.
Which two statements correctly describe the code behavior? (Choose two.)
A. @ConditionalOnBean(name= "dataSource") should be replaced with @ConditionalOnBean (DataSource.class) for greater flexibility.
B. @ConditionalOnBean(name= "dataSource") should be replaced with @ConditionalOnMissingBean (DataSource.class) for greater flexibility.
C. The @Bean annotation should be removed.
D. A JdbcTemplate bean will be created when the DataSource class is in the classpath but there is no DataSource bean.
E. A JdbcTemplate bean will be created when a bean named dataSource has already been created.
In which three ways are Security filters used in Spring Security? (Choose three.)
A. To provide risk governance.
B. To drive authentication.
C. To manage application users.
D. To provide a logout capability.
E. To enforce authorization (access control).
F. To encrypt data.
Which strategy is correct for configuring Spring Security to intercept particular URLs? (Choose the best answer.)
A. The URLs can be specified via configuration (using authorizeRequests () and request matchers), with the most specific rule first and the least specific last.
B. Spring Security can obtain URLs from Spring MVC controllers, the Spring Security configuration just needs a reference to the controller to be protected.
C. The URLs are specified in a special properties file, used by Spring Security.
D. The URLs can be specified via configuration (using authorizeRequests () and request matchers), with the least specific rule first and the most specific last.
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 @PathVariable long accountId argument to the update() handler method.
C. Add @RequestParam long accountId argument to the update() handler method.
D. Add @RequestParam("id") String accountId argument to the update() handler method.
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
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-initializr
C. spring-boot-starter-devtools
D. spring-boot-restart
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.