Last Updated On : 7-Apr-2026
According to REST principles, which is the recommended way to update the order resource identified by 1234?
A. Send a PUT request to /orders/edit?id=1234.
B. Send a PUT request to /orders/1234.
C. Send a POST request to /orders/1234.
D. Send a POST request to /orders/edit?id=1234.
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 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.

Which statement is true? (Choose the best answer.)
A. CustomerRepository should be a class, not an interface.
B. JPA annotations are required on the Customer class to successfully use Spring Data JDBC.
C. An implementation of this repository can be automatically generated by Spring Data JPA.
D. A class that implements CustomerRepository must be implemented and declared as a Spring Bean.
If a class is annotated with @Component, what should be done to have Spring automatically detect the annotated class and load it as a bean? (Choose the best answer.)
A. Ensure a valid bean name in the @Component annotation is specified.
B. Ensure a valid @ComponentScan annotation in the Java configuration is specified.
C. Ensure a valid @Scope for the class is specified.
D. Ensure a valid @Bean for the class is specified.
Which two statements are true regarding storing user details in Spring Security? (Choose two.)
A. With a custom UserDetailsService defined in the ApplicationContext, Spring Boot still creates the default user.
B. Passwords must be hashed and the default hashing algorithm is MD5.
C. User details can be stored in custom storage and retrieve them by implementing the UserDetailsService interface.
D. User details can be stored in a database, in LDAP, or in-memory.
E. The user details includes username and password but not authorities.
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 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.
| Page 3 out of 10 Pages |
| 234 |
| 2V0-72.22 Practice Test Home |