2V0-72.22PSE Exam Questions
100 real 2V0-72.22PSE exam questions with expert-verified answers and explanations. Page 1 of 2.
- Question #1
Which two statements are correct when @SpringBootApplication is annotated on a class? (Choose two.)
- Question #2
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.)
- Question #3
Which two statements about pointcut expressions are true? (Choose two.)
- Question #4
Which three types of objects can be returned form a JdbcTemplate query? (Choose three.)
- Question #5
Which two use cases can be addressed by the method level security annotation @PreAuthorize? (Choose two.)
- Question #6
Which statement is true about the @PropertySource annotation? (Choose the best answer.)
- Question #7
Which two options are valid optional attributes for Spring's @Transactional annotation? (Choose two.)
- Question #8
Which two statements are true about Spring Boot and Spring Data JPA? (Choose two.)
- Question #9
Refer to the exhibit. Based on the default Spring behavior, choose the correct answer. (Choose the best answer.)
- Question #10
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 t...
- Question #11
Refer to the exhibit. What is the id/name of the declared bean in this Java configuration class? (Choose the best answer.)
- Question #12
Which two statements are true regarding @DataJpaTest? (Choose two.)
- Question #13
Which two statements are true regarding storing user details in Spring Security? (Choose two.)
- Question #14
Which two statements are correct regarding Spring Boot auto-configuration? (Choose two.)
- Question #15
Refer to the exhibit. How can a response status code be set for No Content (204)? (Choose the best answer.)
- Question #16
Which statement describes the @AfterReturning advice type? (Choose the best answer.)
- Question #17
Refer to the exhibit. Which statement is true? (Choose the best answer.)
- Question #18
Which two statements are correct regarding the Actuator info endpoint? (Choose two.)
- Question #19
Which statement about @TestPropertySource annotation is true? (Choose the best answer.)
- Question #20
Which two statements are correct regarding the Health Indicator status? (Choose two.)
- Question #21
What two options are auto-configured Spring Boot Actuator HealthIndicators? (Choose two.)
- Question #22
Which two annotations indicate that the transaction for a transactional test method should be committed after the test method has completed? (Choose two.)
- Question #23
Which two statements are correct regarding Spring Boot 2.x Actuator Metrics? (Choose two.)
- Question #24
Which two statements are true regarding Spring Boot Testing? (Choose two.)
- Question #25
Which two statements are true regarding bean creation? (Choose two.)
- Question #26
What are the two reasons Spring be used to build a Java application? (Choose two.)
- Question #27
Which two statements describe Spring JdbcTemplate? (Choose two.)
- Question #28
Which statement defines a pointcut? (Choose the best answer.)
- Question #29
Which statement describes the propagation behavior of Propagation.REQUIRES_NEW annotation? (Choose the best answer.)
- Question #30
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.)
- Question #31
Which two statements are true regarding a Spring Boot-based Spring MVC application? (Choose two.)
- Question #32
Why is field-based dependency injection not recommended?
- Question #33
When does the JdbcTemplate class acquire a database connection?
- Question #34
In which three ways are Security filters used in Spring Security? (Choose three.)
- Question #35
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 tw...
- Question #36
What is a Spring Boot starter dependency? (Choose the best answer.)
- Question #37
Which two are required to use transactions in Spring? (Choose two.)
- Question #38
Which two statements are true regarding the RestTemplate class? (Choose two.)
- Question #39
Which statement is true? (Choose the best answer.)
- Question #40
Which two statements are true about REST? (Choose two.)
- Question #41
Spring Boot will find and load property files in which of the following? (Choose the best answer.)
- Question #42
Which three dependencies are provided by the spring-boot-starter-test? (Choose three.)
- Question #43
Which two statements are correct regarding Spring Boot auto-configuration customization? (Choose two.)
- Question #44
Which two options will inject the value of the daily.limit system property? (Choose two.)
- Question #45
Which two options are REST principles? (Choose two.)
- Question #46
Which option is true about use of mocks in a Spring Boot web slice test? (Choose the best answer.)
- Question #47
Which two statements are true regarding Spring Security? (Choose two.)
- Question #48
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....
- Question #49
Spring puts each bean instance in a scope. What is the default scope? (Choose the best answer.)
- Question #50
Refer to the exhibit. Which option is a valid way to retrieve the account id? (Choose the best answer.)