Free Spring Professional Develop Practice Questions
100 free questions · Answer explanations · No signup required
View examination details, outline and sourcesLoading selected examination banks…
Sample Practice Questions
Try these 10 sample questions from the Spring Professional Develop practice bank. Each includes the answer and explanation. Continue with the interactive practice above to review the full question set.
1What makes an application object a Spring bean?
- A.It is instantiated, assembled, and managed by the Spring IoC container.Correct answer: A
- B.It implements Serializable and is stored in an HTTP session.
- C.It declares only static methods and has no dependencies.
- D.It is compiled by a Spring-specific Java compiler.
Explanation: The Spring reference states: "A bean is an object that is instantiated, assembled, and managed by a Spring IoC container." Container management defines the bean; serialization, static methods and a special compiler do not.
Reference: Spring Framework Core Technologies — 1.1 Introduction to the Spring IoC Container and Beans
2When using JdbcTemplate, which work remains the application callback's responsibility?
- A.Implement the template's connection-release algorithm.
- B.Provide SQL and extract domain results.Correct answer: B
- C.Close every Connection obtained internally by the template.
- D.Translate every SQLException into a Spring exception.
3Which Boot starter normally supplies the Servlet-based Spring MVC web application stack?
- A.spring-boot-starter-test
- B.spring-boot-starter-webCorrect answer: B
- C.spring-boot-starter-webflux
- D.spring-boot-starter-data-jpa
Explanation: The reference states: "Most web applications use the spring-boot-starter-web module to get up and running quickly." The web starter supplies the MVC stack; WebFlux is reactive, data-jpa is persistence, and test provides testing support.
Reference: Spring Boot Features — 7 Developing Web Applications
4A JUnit Jupiter test class needs fresh setup before each @Test method. Which annotation belongs on that setup method?
- A.@BeforeAll
- B.@AfterEach
- C.@AfterAll
- D.@BeforeEachCorrect answer: D
5What question does authentication answer in Spring Security?
- A.Whether an operation is allowed for an identified user.
- B.Who is attempting to access the resource?Correct answer: B
- C.Whether a request carries the expected anti-CSRF token.
- D.Whether a password transformation is reversible.
Explanation: The reference states: "Authentication is how we verify the identity of who is trying to access a particular resource." Authentication verifies identity. Authorization checks allowed operations, CSRF protection checks request tokens, and password storage properties concern one-way transformation.
6Which three capabilities are combined by @SpringBootApplication?
- A.Boot configuration, auto-configuration, and component scanning.Correct answer: A
- B.Transaction management, scheduling, and caching.
- C.Entity scanning, repository scanning, and method security.
- D.MVC enablement, database migration, and test mocking.
Explanation: The reference states: "// Same as @SpringBootConfiguration @EnableAutoConfiguration @ComponentScan" These are the three composed annotations; the other capability groups are not what SpringBootApplication directly composes.
Reference: Using Spring Boot — 6 Using the @SpringBootApplication Annotation
7Under Spring dependency injection, who supplies a managed object's declared collaborators?
- A.The object must locate them through a global service registry.
- B.The Java compiler resolves and constructs them during compilation.
- C.Each caller must replace them before every method invocation.
- D.The container supplies them while creating the bean.Correct answer: D
Explanation: The Spring reference states: "The container then injects those dependencies when it creates the bean." Declared dependencies are injected by the container; service location reverses this responsibility, compilation is not object wiring, and callers need not rewire each call.
Reference: Spring Framework Core Technologies — 1.1 Introduction to the Spring IoC Container and Beans
8A DAO needs a configured JdbcTemplate. What object supplies its database connections?
- A.DataSourceCorrect answer: A
- B.RowMapper
- C.BeanDefinition
- D.TransactionStatus
9A Boot MVC application must add formatters while retaining Boot's MVC customizations. Which configuration approach fits?
- A.Implement WebMvcConfigurer without adding @EnableWebMvc.Correct answer: A
- B.Implement WebMvcConfigurer and add @EnableWebMvc.
- C.Replace MVC configuration with DelegatingWebMvcConfiguration.
- D.Replace the DispatcherServlet with a manually written Servlet.
Explanation: The reference states: "add your own @Configuration class of type WebMvcConfigurer but without @EnableWebMvc." This retains Boot customizations. EnableWebMvc or replacement configuration takes control, while a replacement Servlet bypasses the MVC configuration goal.
Reference: Spring Boot Features — 7.1.1 Spring MVC Auto-configuration
10Which JUnit Jupiter assertion verifies that charge() throws IllegalArgumentException?
- A.assertNotNull(IllegalArgumentException.class)
- B.assertEquals(IllegalArgumentException.class, charge())
- C.assertThrows(IllegalArgumentException.class, () -> charge())Correct answer: C
- D.assertDoesNotThrow(() -> charge())
Exam Review
About Spring Professional Develop
Spring Professional Develop · UNSPECIFIED
Key exam facts
- Provider
- VMware/Broadcom owns and develops this examination; Pearson VUE delivers the proctored exam.
- Format
- Proctored single-choice and multiple-choice examination delivered through Pearson VUE.
- Exam questions
- Total questions: 60.
- Time limit
- 130 minutes to complete the exam, including adequate time for non-native English speakers.
- Passing score
- 300 using a scaled scoring method; this is not a percentage.
- Exam fee
- Listed exam price: USD 250. The exam page does not specify tax or regional adjustments; verify applicable checkout conditions.
Topics covered
Spring Core
- Introduction to Spring Framework
- Java Configuration
- Define Spring Beans using Java code
- Access Beans in the Application Context
- Handle multiple Configuration files
- Handle Dependencies between Beans
- Explain and define Bean Scopes
- Properties and Profiles
- Use External Properties to control Configuration
- Demonstrate the purpose of Profiles
- Use the Spring Expression Language (SpEL)
- Annotation-Based Configuration and Component Scanning
- Explain and use Annotation-based Configuration
- Discuss Best Practices for Configuration choices
- Use @PostConstruct and @PreDestroy
- Explain and use “Stereotype” Annotations
- Spring Bean Lifecycle
- Explain the Spring Bean Lifecycle
- Use a BeanFactoryPostProcessor and a BeanPostProcessor
- Explain how Spring proxies add behavior at runtime
- Describe how Spring determines bean creation order
- Avoid issues when Injecting beans by type
- Aspect Oriented Programming
- Explain the concepts behind AOP and the problems that it solves
- Implement and deploy Advices using Spring AOP
- Use AOP Pointcut Expressions
- Explain different types of Advice and when to use them
Data Management
- Introduction to Spring JDBC
- Use and configure Spring’s JdbcTemplate
- Execute queries using callbacks to handle result sets
- Handle data access exceptions
- Transaction Management with Spring
- Describe and use Spring Transaction Management
- Configure Transaction Propagation
- Setup Rollback rules
- Use Transactions in Tests
- Spring Boot and Spring Data for Backing Stores
- Implement a Spring JPA application using Spring Boot
- Create Spring Data Repositories for JPA
Spring MVC
- Web Applications with Spring Boot
- Explain how to create a Spring MVC application using Spring Boot
- Describe the basic request processing lifecycle for REST requests
- Create a simple RESTful controller to handle GET requests
- Configure for deployment
- REST Applications
- Create controllers to support the REST endpoints for various verbs
- Utilize RestTemplate to invoke RESTful services
Testing
- Testing Spring Applications
- Write tests using JUnit 5
- Write Integration Tests using Spring
- Configure Tests using Spring Profiles
- Extend Spring Tests to work with Databases
- Advanced Testing with Spring Boot and MockMVC
- Enable Spring Boot testing
- Perform integration testing
- Perform MockMVC testing
- Perform slice testing
Security
- Explain basic security concepts
- Use Spring Security to configure Authentication and Authorization
- Define Method-level Security
Spring Boot
- Spring Boot Feature Introduction
- Explain and use Spring Boot features
- Describe Spring Boot dependency management
- Spring Boot Properties and Autoconfiguration
- Describe options for defining and loading properties
- Utilize auto-configuration
- Override default configuration
- Spring Boot Actuator
- Configure Actuator endpoints
- Secure Actuator HTTP endpoints
- Define custom metrics
- Define custom health indicators
How to prepare
Work through the topics, read the explanation after each answer, and revisit the areas where you miss questions. Use the official outline and reference materials below to guide your study.
These independent practice questions are not actual exam items and do not guarantee a passing result.
Frequently asked questions
What is the exam format?
Proctored single-choice and multiple-choice examination delivered through Pearson VUE.
How many questions are on the exam?
Total questions: 60.
How long is the exam?
130 minutes to complete the exam, including adequate time for non-native English speakers.
What is the passing score?
300 using a scaled scoring method; this is not a percentage.
How much does the exam cost?
Listed exam price: USD 250. The exam page does not specify tax or regional adjustments; verify applicable checkout conditions.
Official sources and references
- Spring Professional Develop Exam Guide
pp. 1–3, Exam Sections
- Spring Professional Develop — Exam Details
Exam Details
Confirm current exam arrangements with the exam provider.