Which two statements are correct regarding the Health Indicator status? (Choose two.)

Which two statements are correct regarding the Health Indicator status? (Choose two.)A . The last status in a sorted list of HealthIndicators is used to derive the final system health.B . The status with the least severity is used as the top-level status.C . Custom status values can be created.D...

March 23, 2022 No Comments READ MORE +

Which two statements are correct regarding the HelloAutoConfig auto-configuration class when it is specified in the META-INF/spring.factories file?

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 two.)A . A HelloService bean will be created from the helloService() method even if the HelloService.class is not in the classpath.B . A HelloService bean will be...

March 23, 2022 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...

March 22, 2022 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 22, 2022 No Comments READ MORE +

Which two statements are true regarding @DataJpaTest? (Choose two.)

Which two statements are true regarding @DataJpaTest? (Choose two.)A . TestEntityManager provides all methods that are provided by EntityManager and more.B . If an embedded database is on the classpath, it will be used to configure a DataSource by default.C . It can be used for testing both JPA components...

March 21, 2022 No Comments READ MORE +

Which two use cases can be addressed by the method level security annotation @PreAuthorize? (Choose two.)

Which two use cases can be addressed by the method level security annotation @PreAuthorize? (Choose two.)A . Allow access to a method based on user identity.B . Allow access to a method based on the returned object.C . Allow access to a method based on HTTP method.D . Allow access...

March 21, 2022 No Comments READ MORE +

What two options are auto-configured Spring Boot Actuator HealthIndicators? (Choose two.)

What two options are auto-configured Spring Boot Actuator HealthIndicators? (Choose two.)A . DataSourceHealthIndicatorB . GoogleCloudDataStoreHealthIndicatorC . DynamoDBHealthIndicatorD . RabbitHealthIndicatorE . OktaHealthIndicatorView AnswerAnswer: A,D Explanation: Reference: https://docs.spring.io/spring-boot/docs/1.5.x/reference/html/production-ready-endpoints.html

March 18, 2022 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 18, 2022 No Comments READ MORE +

Which two are required to use transactions in Spring? (Choose two.)

Which two are required to use transactions in Spring? (Choose two.)A . Add @EnableTransactionManagement to a Java configuration class.B . Annotate a class, an interface, or individual methods requiring a transaction with the @Transactional annotation.C . A class must be annotated with @Service and @Transaction.D . A class requiring a...

March 18, 2022 No Comments READ MORE +

Which option is true about use of mocks in a Spring Boot web slice test? (Choose the best answer.)

Which option is true about use of mocks in a Spring Boot web slice test? (Choose the best answer.)A . Mocking a Spring Bean requires annotating it with @MockBean annotation.B . If a Spring Bean already exists in the web slice test spring context, it cannot be mocked.C . Mocks...

March 17, 2022 No Comments READ MORE +