2V0-72.22PSE Exam Questions
100 real 2V0-72.22PSE exam questions with expert-verified answers and explanations. Page 2 of 2.
- Question #51Security
Which strategy is correct for configuring Spring Security to intercept particular URLs? (Choose the best answer.)
Spring SecurityAuthorizationURL InterceptionConfiguration - Question #52Core Spring
Which two statements about the @Autowired annotation are true? (Choose two.)
Autowired annotationDependency injectionBean wiringSpring exceptions - Question #53
Which two statements are correct regarding the @EnableAutoConfiguration annotation? (Choose two.)
- Question #54Core Spring
Which two statements are true concerning the BeanPostProcessor Extension point? (Choose two.)
BeanPostProcessorBean LifecycleSpring ContainerInitialization - Question #55Core Spring
Which two statements are true about @Controller annotated classes? (Choose two.)
@ControllerStereotype annotationsSpring MVCComponent discovery - Question #56Data Access
Which following statements are true about Spring Data? (Choose two.)
Spring DataData AccessRepository PatternMultiple Data Stores - Question #57Data Access
Which of the following transaction propagation behaviour will create a new transaction if one does not already exist?
Transaction PropagationSpring TransactionsREQUIREDNESTED - Question #58Security
@EnableGlobalMethodSecurity is annotation used in Spring Security to secure which layer?
method-level security@EnableGlobalMethodSecurityservice layer authorizationSpring Security - Question #59Cloud Native
How can the Health Indicator status severity order be changed?
Health IndicatorsActuator ConfigurationStatus SeverityManagement Properties - Question #60Core Spring
What are limitations of using the default JDK dynamic proxies in Spring AOP?
JDK Dynamic ProxiesSpring AOPProxy LimitationsMethod Interception - Question #61Testing
In a Spring test, which annotation can be used to mock a user?
Spring Security@WithMockUserMock UserTest Authentication - Question #62Microservices
How can auditing be enabled for Spring Boot Actuator?
Spring Boot ActuatorAuditing ConfigurationObservabilityProduction Monitoring - Question #63Data Access
Using the default configurations, which methods will be affected when adding the @Transactional annotation to the class?
@TransactionalAOP ProxiesTransaction BoundariesMethod Visibility - Question #64Core Spring
Which functions are possible only when using interfaces as spring beans?
JDK Dynamic ProxyingSpring BeansAOPProxy Mechanisms - Question #65Testing
Which two statements are true regarding Spring and Spring Boot Testing? (Choose two.)
Spring Boot TestingMocking with Mockito@SpringBootTest annotationTesting frameworks - 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 #68Core Spring
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...
Dependency Injection@Autowired@QualifierBean Resolution - Question #69
Which three types can be used as @Controller method arguments? (Choose three.)
- Question #70Core Spring
Which three statements are advantages of using Spring's Dependency Injection? (Choose three.)
Dependency InjectionLoose CouplingExternalized ConfigurationIoC Container - Question #71Core Spring
Refer to the exhibit. How can a Spring Bean be created from this LegacySingleton class?
Bean Creation@Bean MethodsFactory PatternLegacy Integration - Question #72Testing
Which two options are application slices that can be tested with Spring Boot Testing? (Choose two.)
Spring Boot TestingTest Slices@DataJpaTest@WebMvcTest - Question #73Testing
Which statements is true?
JUnit 5Test Lifecycle@BeforeAllAnnotations - Question #74Core Spring
Using declarative transaction management, which situation will cause a transaction to roll back by default?
Declarative transactionsRollback behaviorUnchecked exceptions@Transactional - Question #75Testing
Refer to the exhibit. What statement is true about @DirtiesContext?
@DirtiesContextSpring TestApplicationContext cachingtest isolation - Question #76REST
According to REST principles, which is the recommended way to update the order resource identified by 1234?
HTTP MethodsRESTful URL DesignResource IdentificationREST Conventions - Question #77Security
What's the password storage format when using the DelegatingPasswordEncoder?
DelegatingPasswordEncoderPassword encoding formatSpring SecurityPassword migration - Question #78Data Access
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...
Spring Boot auto-configurationDataSourceJdbcTemplateJDBC - Question #79Core Spring
Which two statements are true about Spring AOP? (Choose two.)
Spring AOPAdvice TypesCross-cutting ConcernsJoin Points - Question #80REST
The Spring RestTemplate class:
RestTemplateHTTP CommunicationRequestEntitySynchronous Client - Question #81Deployment
Which two statements are true regarding a Spring Boot "fat" JAR? (Choose two.)
Spring Boot JARFat JAR packagingBuild toolsExecutable JAR - Question #82Core Spring
Which two statements about Spring MVC are true? (Choose two.)
Spring MVC@Controller AnnotationComponent ScanningServlet Container - Question #83Core Spring
Spring bean classes are defined under a package called com.mycomp.service. What two options are required to enable component scanning? (Choose two.)
Component Scanning@Component@ComponentScanSpring Configuration - Question #84Data Access
Which two statements are true regarding result set handling? (Choose two.)
JdbcTemplateRowMapperResultSet mappingData Access APIs - Question #85REST
What Spring Boot Starter can be used for a Spring REST Application?
Spring Boot StartersREST ApplicationsWeb DependenciesDependency Management - Question #86Core Spring
Which two ways to access the properties defined in an application.properties or application.yml file are correct? (Choose two.)
Property injection@Value annotationSpring EnvironmentConfiguration management - Question #87Core Spring
Which two statements are true about the @RequestMapping annotation? (Choose two.)
@RequestMappingHTTP Method MappingSpring MVCController Methods - Question #88Core Spring
Which is the correct approach to register for a bean destruction callback?
Bean LifecycleDestruction Callbacks@PreDestroySpring Container - Question #89Core Spring
Refer to the exhibit. AppConfig is a Java configuration class. Which two statements are true? (Choose two.)
Bean ScopingJava Configuration@Configuration@Profile - Question #90Testing
Which two statements are true regarding @WebMvcTest? (Choose two.)
@WebMvcTestMockMvc@MockBeanUnit Testing - Question #91Core Spring
Which two mechanisms of autowiring a dependency when multiple beans match the dependency's type are correct? (Choose two.)
@Qualifier annotation@Autowired annotationDependency injectionBean disambiguation - Question #92Core Spring
Which two annotations are meta-annotations on the @SpringBootApplication composed annotation? (Choose two.)
Spring Boot annotationsmeta-annotationsannotation composition@SpringBootApplication - Question #93Data Access
Which two statements are true about Spring Data JPA? (Choose two.)
Spring Data JPAAuto-configurationDependenciesJPA Configuration - Question #94Core Spring
Which two statements describe the ApplicationContext correctly? (Choose two.)
ApplicationContextBean ManagementSingleton BeansSpring Container - Question #95Core Spring
What are two ways to display http.server.requests metric using built-in tags? (Choose two.)
Metricshttp.server.requestsBuilt-in TagsMicrometer - Question #96Data Access
Refer to the exhibit. Which two methods will be implemented at runtime if declared in a Spring Data JPA Repository? (Choose two.)
Spring Data JPAQuery Method DerivationRepository InterfaceMethod Naming Conventions - Question #97Core Spring
Which type of advice can be used to stop an exception propagating up the stack, and to return an error value instead?
Spring AOP@Around adviceException handlingMethod interception - Question #98Core Spring
Which two statements about BeanFactoryPostProcessors are true? (Choose two.)
BeanFactoryPostProcessorBean LifecycleBean DefinitionsPropertySourcesPlaceholderConfigurer - Question #99Core Spring
Which two statements are correct regarding the differences between @ConfigurationProperties and @Value? (Choose two.)
Configuration propertiesType-safe bindingRelaxed bindingSpEL support - Question #100
Which two statements are correct regarding the Actuator loggers endpoint? (Choose two.)