OpenExamsFREE PRACTICE — ANY EXAM

Free Spring Professional Develop Practice Questions

100 free questions · Answer explanations · No signup required

View examination details, outline and sources

Loading 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.

  1. 1What makes an application object a Spring bean?

    1. A.It is instantiated, assembled, and managed by the Spring IoC container.Correct answer: A
    2. B.It implements Serializable and is stored in an HTTP session.
    3. C.It declares only static methods and has no dependencies.
    4. 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

  2. 2When using JdbcTemplate, which work remains the application callback's responsibility?

    1. A.Implement the template's connection-release algorithm.
    2. B.Provide SQL and extract domain results.Correct answer: B
    3. C.Close every Connection obtained internally by the template.
    4. D.Translate every SQLException into a Spring exception.

    Explanation: The reference states: "leaving application code to provide SQL and extract results." The template manages resource lifecycle and exception translation, while the application provides query-specific work.

    Reference: Spring Framework Data Access — 3.3.1 Using JdbcTemplate

  3. 3Which Boot starter normally supplies the Servlet-based Spring MVC web application stack?

    1. A.spring-boot-starter-test
    2. B.spring-boot-starter-webCorrect answer: B
    3. C.spring-boot-starter-webflux
    4. 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

  4. 4A JUnit Jupiter test class needs fresh setup before each @Test method. Which annotation belongs on that setup method?

    1. A.@BeforeAll
    2. B.@AfterEach
    3. C.@AfterAll
    4. D.@BeforeEachCorrect answer: D

    Explanation: The reference states: "Denotes that the annotated method should be executed before each @Test" BeforeEach provides per-test setup; BeforeAll is class setup, and After annotations run after tests.

    Reference: JUnit 5 User Guide — 2.1 Annotations — @BeforeEach

  5. 5What question does authentication answer in Spring Security?

    1. A.Whether an operation is allowed for an identified user.
    2. B.Who is attempting to access the resource?Correct answer: B
    3. C.Whether a request carries the expected anti-CSRF token.
    4. 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.

    Reference: Spring Security Reference — 5.1 Authentication

  6. 6Which three capabilities are combined by @SpringBootApplication?

    1. A.Boot configuration, auto-configuration, and component scanning.Correct answer: A
    2. B.Transaction management, scheduling, and caching.
    3. C.Entity scanning, repository scanning, and method security.
    4. 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

  7. 7Under Spring dependency injection, who supplies a managed object's declared collaborators?

    1. A.The object must locate them through a global service registry.
    2. B.The Java compiler resolves and constructs them during compilation.
    3. C.Each caller must replace them before every method invocation.
    4. 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

  8. 8A DAO needs a configured JdbcTemplate. What object supplies its database connections?

    1. A.DataSourceCorrect answer: A
    2. B.RowMapper
    3. C.BeanDefinition
    4. D.TransactionStatus

    Explanation: The reference states: "direct instantiation with a DataSource reference" The DataSource supplies connections. RowMapper maps rows, BeanDefinition is metadata, and TransactionStatus describes a transaction.

    Reference: Spring Framework Data Access — 3.3.1 Using JdbcTemplate

  9. 9A Boot MVC application must add formatters while retaining Boot's MVC customizations. Which configuration approach fits?

    1. A.Implement WebMvcConfigurer without adding @EnableWebMvc.Correct answer: A
    2. B.Implement WebMvcConfigurer and add @EnableWebMvc.
    3. C.Replace MVC configuration with DelegatingWebMvcConfiguration.
    4. 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

  10. 10Which JUnit Jupiter assertion verifies that charge() throws IllegalArgumentException?

    1. A.assertNotNull(IllegalArgumentException.class)
    2. B.assertEquals(IllegalArgumentException.class, charge())
    3. C.assertThrows(IllegalArgumentException.class, () -> charge())Correct answer: C
    4. D.assertDoesNotThrow(() -> charge())

    Explanation: The reference states: "Exception exception = assertThrows(ArithmeticException.class, () ->" assertThrows executes the callback and checks the exception type. The other assertions do not express that requirement.

    Reference: JUnit 5 User Guide — 2.4 Assertions

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

Confirm current exam arrangements with the exam provider.