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