VMware 2V0-72.22 Practice Test - Questions Answers, Page 2
List of questions
Question 11
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.)
Spring Boot provides a set of tools for improving the development experience, such as automatic restart, live reload, remote debugging, etc. These tools are included in the spring-boot-starter-devtools dependency, which can be added to the project's pom.xml or build.gradle file. The automatic restart feature will monitor the classpath for changes and trigger a restart of the application when necessary.
Question 12
Spring puts each bean instance in a scope. What is the default scope? (Choose the best answer.)
Reference: https://stackoverflow.com/questions/17599216/spring-bean-scopes
Question 13
Refer to the exhibit.
Which option is a valid way to retrieve the account id? (Choose the best answer.)
Reference: https://docs.spring.io/spring-framework/docs/4.3.12.RELEASE/spring-framework-reference/htmlsingle/
Question 14
Which strategy is correct for configuring Spring Security to intercept particular URLs? (Choose the best answer.)
Reference: https://www.baeldung.com/security-none-filters-none-access-permitAll
Question 15
In which three ways are Security filters used in Spring Security? (Choose three.)
Question 16
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.)
Question 17
What is a Spring Boot starter dependency? (Choose the best answer.)
Question 18
Which two are required to use transactions in Spring? (Choose two.)
Question 19
Which two statements are true regarding the RestTemplate class? (Choose two.)
Question 20
Which statement is true? (Choose the best answer.)
Question