2V0-72.22 Exam Questions
100 real 2V0-72.22 exam questions with expert-verified answers and explanations. Page 2 of 2.
- Question #51
Which strategy is correct for configuring Spring Security to intercept particular URLs? (Choose the best answer.)
- Question #52
Which two statements about the @Autowired annotation are true? (Choose two.)
- Question #53
Which two statements are correct regarding the @EnableAutoConfiguration annotation? (Choose two.)
- Question #54
Which two statements are true concerning the BeanPostProcessor Extension point? (Choose two.)
- Question #55
Which two statements are true about @Controller annotated classes? (Choose two.)
- Question #56
Which following statements are true about Spring Data? (Choose two.)
- Question #57
Which of the following transaction propagation behaviour will create a new transaction if one does not already exist?
- Question #58
@EnableGlobalMethodSecurity is annotation used in Spring Security to secure which layer?
- Question #59
How can the Health Indicator status severity order be changed?
- Question #60
What are limitations of using the default JDK dynamic proxies in Spring AOP?
- Question #61
In a Spring test, which annotation can be used to mock a user?
- Question #62
How can auditing be enabled for Spring Boot Actuator?
- Question #63
Using the default configurations, which methods will be affected when adding the @Transactional annotation to the class?
- Question #64
Which functions are possible only when using interfaces as spring beans?
- Question #65
Which two statements are true regarding Spring and Spring Boot Testing? (Choose two.)
- Question #66
Refer to the exhibit. Assume that the application is using Spring transaction management which uses Spring AOP internally. Choose the statement that describes what is happening whe...
- Question #67
Which two statements are true concerning constructor injection? (Choose two.)
- Question #68
Given an ApplicationContext containing three bean definitions of type Foo with bean ids foo1, foo2, and foo3, which three @Autowired scenarios are valid and will allow the Applicat...
- Question #69
Which three types can be used as @Controller method arguments? (Choose three.)
- Question #70
Which three statements are advantages of using Spring's Dependency Injection? (Choose three.)
- Question #71
Refer to the exhibit. How can a Spring Bean be created from this LegacySingleton class?
- Question #72
Which two options are application slices that can be tested with Spring Boot Testing? (Choose two.)
- Question #73
Which statements is true?
- Question #74
Using declarative transaction management, which situation will cause a transaction to roll back by default?
- Question #75
Refer to the exhibit. What statement is true about @DirtiesContext?
- Question #76
According to REST principles, which is the recommended way to update the order resource identified by 1234?
- Question #77
What's the password storage format when using the DelegatingPasswordEncoder?
- Question #78
Refer to the exhibit. Which two statements are correct regarding auto-configuration of DataSource and JdbcTemplate beans given a Spring Boot application with only these two depende...
- Question #79
Which two statements are true about Spring AOP? (Choose two.)
- Question #80
The Spring RestTemplate class:
- Question #81
Which two statements are true regarding a Spring Boot "fat" JAR? (Choose two.)
- Question #82
Which two statements about Spring MVC are true? (Choose two.)
- Question #83
Spring bean classes are defined under a package called com.mycomp.service. What two options are required to enable component scanning? (Choose two.)
- Question #84
Which two statements are true regarding result set handling? (Choose two.)
- Question #85
What Spring Boot Starter can be used for a Spring REST Application?
- Question #86
Which two ways to access the properties defined in an application.properties or application.yml file are correct? (Choose two.)
- Question #87
Which two statements are true about the @RequestMapping annotation? (Choose two.)
- Question #88
Which is the correct approach to register for a bean destruction callback?
- Question #89
Refer to the exhibit. AppConfig is a Java configuration class. Which two statements are true? (Choose two.)
- Question #90
Which two statements are true regarding @WebMvcTest? (Choose two.)
- Question #91
Which two mechanisms of autowiring a dependency when multiple beans match the dependency's type are correct? (Choose two.)
- Question #92
Which two annotations are meta-annotations on the @SpringBootApplication composed annotation? (Choose two.)
- Question #93
Which two statements are true about Spring Data JPA? (Choose two.)
- Question #94
Which two statements describe the ApplicationContext correctly? (Choose two.)
- Question #95
What are two ways to display http.server.requests metric using built-in tags? (Choose two.)
- Question #96
Refer to the exhibit. Which two methods will be implemented at runtime if declared in a Spring Data JPA Repository? (Choose two.)
- Question #97
Which type of advice can be used to stop an exception propagating up the stack, and to return an error value instead?
- Question #98
Which two statements about BeanFactoryPostProcessors are true? (Choose two.)
- Question #99
Which two statements are correct regarding the differences between @ConfigurationProperties and @Value? (Choose two.)
- Question #100
Which two statements are correct regarding the Actuator loggers endpoint? (Choose two.)