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 controllers, the Spring Security configuration just needs a reference to the controller to be protected.
C. The URLs are specified in a special properties file, used by Spring Security.
D. The URLs can be specified via configuration (using authorizeRequests () and request matchers), with the least specific rule first and the most specific last.
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 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 a custom header is not possible when using RestTemplate.
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.
Which three dependencies are provided by the spring-boot-starter-test? (Choose three.)
A. Cucumber
B. Hamcrest
C. spring-test
D. Junit
E. EasyMock
F. PowerMock
Which two statements are true about @Controller annotated classes? (Choose two.)
A. The @Controller annotated classes can only render views.
B. The classes are eligible for handling requests in Spring MVC.
C. The classes must be annotated together with @EnableMvcMappings to be discovered via component scanning.
D. @Controller is interchangeable with @RestController with no extra code changes for the methods inside the class.
E. The @Controller annotation is a stereotype annotation like @Component.
Which three statements are advantages of using Spring's Dependency Injection? (Choose three.)
A. Dependency injection can make code easier to trace because it couples behavior with construction.
B. Dependency injection reduces the start-up time of an application.
C. Dependencies between application components can be managed external to the components.
D. Configuration can be externalized and centralized in a small set of files.
E. Dependency injection creates tight coupling between components.
F. Dependency injection facilitates loose coupling between components.
Which three types of objects can be returned form a JdbcTemplate query? (Choose three.)
A. Generic MapS
B. Simple types (int, long, String, etc)
C. JSONObject
D. User defined types
E. Properties
F. XMLObject
Which two options are valid optional attributes for Spring's @Transactional annotation? (Choose two.)
A. isolation
B. writeOnly
C. nestedTransaction
D. readWrite
E. propagation
Which two annotations indicate that the transaction for a transactional test method should be committed after the test method has completed? (Choose two.)
A. @SqlMergeMode(false)
B. @Rollback(false)
C. @Commit
D. @Sql(alwaysCommit=true)
E. @Transactional(commit=true)