Which two statements are correct regarding the @EnableAutoConfiguration annotation? (Choose two.)

Which two statements are correct regarding the @EnableAutoConfiguration annotation? (Choose two.)A . It is a meta-annotation on the @SpringBootApplication composed annotation.B . It enables auto-configuration of the ApplicationContext by attempting to guess necessary beans.C . It is meta-annotation on the @SpringBootConfiguration composed annotation.D . It has the same effect regardless...

March 3, 2025 No Comments READ MORE +

What is a Spring Boot starter dependency? (Choose the best answer.)

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...

March 2, 2025 No Comments READ MORE +

Which two statements are true regarding the RestTemplate class? (Choose two.)

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...

February 27, 2025 No Comments READ MORE +

Which two statements are true concerning the BeanPostProcessor Extension point? (Choose two.)

Which two statements are true concerning the BeanPostProcessor Extension point? (Choose two.)A . BeanPostProcessors are called before the dependencies have been injected.B . Custom BeanPostProcessors can be implemented for Spring applications.C . BeanPostProcessors are called before the BeanFactoryPostProcessors.D . BeanPostProcessors are called during the initialization phase of a bean life...

February 27, 2025 No Comments READ MORE +

In which three ways are Security filters used in Spring Security? (Choose three.)

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.View AnswerAnswer: BDE Explanation: Spring Security uses a...

February 27, 2025 No Comments READ MORE +

Which two statements are true regarding a Spring Boot-based Spring MVC application? (Choose two.)

Which two statements are true regarding a Spring Boot-based Spring MVC application? (Choose two.)A . The default embedded servlet container can be replaced with Undertow.B . Jetty is the default servlet container.C . Spring Boot starts up an embedded servlet container by default.D . The default port of the embedded...

February 26, 2025 No Comments READ MORE +

Which two statements correctly describe the code behavior?

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)...

February 18, 2025 No Comments READ MORE +

Spring Boot will find and load property files in which of the following? (Choose the best answer.)

Spring Boot will find and load property files in which of the following? (Choose the best answer.)A . A *.properties file matching the name of the class annotated with @SpringBootApplication.B . config.properties or config.yml, usually located in the classpath root.C . application.properties or application.yml, usually located in the classpath root.D...

February 12, 2025 No Comments READ MORE +

Which strategy is correct for configuring Spring Security to intercept particular URLs? (Choose the best answer.)

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...

February 4, 2025 No Comments READ MORE +

Which option is a valid way to retrieve the account id?

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()...

February 4, 2025 No Comments READ MORE +