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

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.)A . Ensure a valid bean name in the @Component annotation is specified.B . Ensure a valid @ComponentScan annotation in the Java...

March 9, 2025 No Comments READ MORE +

Choose the statement that describes what is happening when the update1 method is called?

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 when the update1 method is called? (Choose the best answer.)A . There are 2 transactions because REQUIRES_NEW always runs in a new transaction.B ....

March 7, 2025 No Comments READ MORE +

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

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.)A . spring-boot-devtoolsB . spring-boot-initializrC . spring-boot-starter-devtoolsD . spring-boot-restartView AnswerAnswer: C Explanation: Spring Boot provides a set of tools for improving the development...

March 6, 2025 No Comments READ MORE +

Which two options are REST principles? (Choose two.)

Which two options are REST principles? (Choose two.)A . RESTful applications use a stateless architecture.B . RESTful application use HTTP headers and status codes as a contract with the clients.C . RESTful applications cannot use caching.D . RESTful application servers keep track of the client state.E . RESTful applications favor...

March 5, 2025 No Comments READ MORE +

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 +