Which two options will inject the value of the daily.limit system property? (Choose two.)
A. @Value("#{daily.limit}")
B. @Value("$(systemProperties.daily.limit)")
C. @Value("$(daily.limit)")
D. @Value("#{systemProperties[`daily.limit']}")
E. @Value("#{systemProperties.daily.limit}")
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 servlet container is 8088.
E. Spring MVC starts up an in-memory database by default.
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
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 as the basis of your project.
D. An easy way to include multiple, coordinated dependencies related to a specific technology, like web or JDBC.
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.
Refer to the exhibit.
Based on the default Spring behavior, choose the correct answer. (Choose the best answer.)
A. One AccountRepository bean will be instantiated since the default scope is singleton.
B. Three AccountRepository beans will be instantiated as the accountRepository() method will be called three times.
C. Many AccountRepository beans will be instantiated, depending how often accountRepository(), transferService() and accountService() are called.
D. Two AccountRepository beans will be instantiated as the accountRepository() method will be called two times.
Which two statements are correct regarding Spring Boot auto-configuration? (Choose two.)
A. Auto-configuration uses @Conditional annotations to constrain when it should apply.
B. Auto-configuration could apply when a bean is missing but not when a bean is present.
C. Auto-configuration is applied by processing candidates listed in META-INF/spring.factories.
D. Auto-configuration could apply when a bean is present but not when a bean is missing.
E. Auto-configuration is applied before user-defined beans have been registered.
Which statement describes the @AfterReturning advice type? (Choose the best answer.)
A. The advice is invoked only if the method returns successfully but not if it throws an exception.
B. The @AfterReturning advice allows behavior to be added after a method returns even if it throws an exception.
C. The advice has complete control over the method invocation; it could even prevent the method from being called at all.
D. Typically used to prevent any exception, thrown by the advised method, from propagating up the call-stack.
Which two statements describe Spring JdbcTemplate? (Choose two.)
A. All JdbcTemplate methods throw SQLException which you are required to handle.
B. The JdbcTemplate provides the ability to work with result sets.
C. The JdbcTemplate can only perform update but not insert to the database.
D. The JdbcTemplate provides methods for query execution.
E. The JdbcTemplate generates SQL statements.
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.