Summer Special Limited Time 65% Discount Offer - Ends in 0d 00h 00m 00s - Coupon code: exc65

Which three types can be used as @Controller method arguments? (Choose three.)

A.

Locale

B.

Principal

C.

Language

D.

Session

E.

Request

F.

HttpSession

Refer to the exhibit.

AppConfig is a Java configuration class. Which two statements are true? (Choose two.)

A.

The clientService bean declared will have prototype scope by default.

B.

The name of the clientService() method is invalid and will throw an error.

C.

The clientService bean will be lazy initialized the first time accessed.

D.

The bean is of type clientService and by default will be a Singleton.

E.

The Java configuration can be profile specific by adding a @Profile annotation.

Which two statements are true regarding Spring and Spring Boot Testing? (Choose two.)

A.

EasyMock is supported out of the box.

B.

@SpringBootTest or @SpringJUnitConfig can be used for creating an ApplicationContext.

C.

Mockito spy is not supported in Spring Boot testing by default.

D.

The spring-test dependency provides annotations such as @Mock and @MockBean.

E.

Integration and slice testing are both supported.

Which two statements are true regarding a Spring Boot "fat" JAR? (Choose two.)

A.

The "fat" JAR contains both the class files and the source files for your project.

B.

The "fat" JAR requires an external Servlet container.

C.

The "fat" JAR contains compiled classes and dependencies that your code needs to run.

D.

The "fat" JAR can contain multiple embedded application servers.

E.

The "fat" JAR is created by the Spring Boot Maven plugin or Gradle plugin.

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 of the package of the class that is annotated with it.

E.

It ensures auto-configuration is applied before user-defined beans have been registered.

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

B.

spring-boot-initializr

C.

spring-boot-starter-devtools

D.

spring-boot-restart

Which statement is true? (Choose the best answer.)

A.

@ActiveProfiles is a class-level annotation that is used to instruct the Spring TestContext Framework to record all application events that are published in the ApplicationContext during the execution of a single test.

B.

@ActiveProfiles is a class-level annotation that you can use to configure how the Spring TestContext Framework is bootstrapped.

C.

@ActiveProfiles is a class-level annotation that you can use to configure the locations of properties files and inlined properties to be added to the set of PropertySources in the Environment for an ApplicationContext loaded for an integration test.

D.

@ActiveProfiles is a class-level annotation that is used to declare which bean definition profiles should be active when loaded an ApplicationContext for an integration test.

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.

Which following statements are true about Spring Data? (Choose two.)

A.

Spring Data implementations exist for many data storage types, such as MongoDB, Neo4j, and Redis.

B.

Spring Data works by applying the JPA annotations to data stores such as MongoDB, Neo4j, and Redis.

C.

Spring Data can greatly reduce the amount of “boilerplate” code typically needed for data access.

D.

Spring Data is specifically designed for JPA, JDBC, and relational database access only.

E.

Spring Data cannot be used together with Spring MVC.

Which two statements are true regarding Spring Security? (Choose two.)

A.

Access control can be configured at the method level.

B.

A special Java Authentication and Authorization Service (JAAS) policy file needs to be configured.

C.

Authentication data can be accessed using a variety of different mechanisms, including databases and LDAP.

D.

In the authorization configuration, the usage of permitAll () allows bypassing Spring security completely.

E.

It provides a strict implementation of the Java EE Security specification.