Spring Boot skill check
Check your Spring Boot: dependency injection, configuration, REST controllers, Spring Data JPA, transactions, and security.
15
Questions
11 min
Timer can't pause
Multiple choice
Spring Boot 3
Choose a level
Topics
- Dependency injection
- Configuration
- REST controllers
- Spring Data JPA
- Transactions
- Security
- Testing
- Actuator
Do
Use scratch paper or a notepad to work things out. Skip a question and come back to it later.
Don't
Look up answers during the check. Open the check in more than one tab or window.
Easy · 15 questions · 11 min
By starting, you agree to the Terms and Privacy Policy.
Practice checks each answer as you go, with an explanation. The exam is checked when you submit; 9 of 15 passes and earns a certificate.
Checking your levels…
Certificates come from the certified exam: pass with 9 of 15 while signed in. View a sample certificate.
Sample Spring Boot questions with answers
These are never used in a check, so seeing their answers here won't give anything away.
Question 1 · Easy · Dependency injection
In modern Spring Boot (version 3.x), what happens when a managed bean class with a single parameterized constructor is registered without using the @Autowired annotation?- A.Spring automatically uses the single constructor for dependency injection without requiring @Autowired.
- B.Spring skips instantiating the bean unless it is explicitly declared in an @Configuration class.
- C.The application fails to compile because Spring requires explicit annotations on all injection points.
- D.Spring throws a NoSuchBeanDefinitionException at runtime when trying to locate a default constructor.
Show answer
A. Spring automatically uses the single constructor for dependency injection without requiring @Autowired.
Since Spring 4.3, if a Spring component class has only one constructor, Spring automatically uses it to inject dependencies, omitting the need for an explicit @Autowired annotation.Question 2 · Easy · Configuration
Which annotation allows binding a group of hierarchical external configuration properties (e.g., from application.properties or application.yaml) directly to a typed Java object?- A.@Environment
- B.@ConfigurationProperties
- C.@PropertySource
- D.@Value
Show answer
B. @ConfigurationProperties
@ConfigurationProperties provides type-safe configuration binding by mapping hierarchical properties with a given prefix to fields or record components.Question 3 · Moderate · Security
When migrating to Spring Boot 3 (Spring Security 6), how should HTTP security configurations be declared in a configuration class?- A.By annotating the main application class with @EnableGlobalMethodSecurity
- B.
By implementing WebSecurityCustomizer and defining authenticationManagerProvider() - C.
By extending WebSecurityConfigurerAdapter and overriding configure(HttpSecurity http) - D.By publishing a SecurityFilterChain @Bean and configuring HttpSecurity using lambda DSLs
Show answer
D. By publishing a SecurityFilterChain @Bean and configuring HttpSecurity using lambda DSLs
Spring Security 6 (used in Spring Boot 3) completely removed WebSecurityConfigurerAdapter in favor of component-based configuration using SecurityFilterChain beans and lambda DSLs.Question 4 · Advanced · Actuator
In Spring Boot 3, which configuration property must be set to expose all actuator endpoints over HTTP, excludingshutdownby default?- A.management.endpoints.web.exposure.include=*
- B.endpoints.management.http.enabled=true
- C.management.endpoint.web.include.all=true
- D.actuator.endpoints.web.exposure.include=*
Show answer
A. management.endpoints.web.exposure.include=*
The property 'management.endpoints.web.exposure.include=*' directs Spring Boot Actuator to expose all enabled endpoints via HTTP. The shutdown endpoint remains disabled by default becausemanagement.endpoint.shutdown.enableddefaults to false.
How scoring and certificates work
- Each check has 15 multiple-choice questions with one correct answer, and one timer for the whole check. A question you leave unanswered scores nothing.
- Practice is free without an account and shows whether each answer is right as you go, with an explanation.
- The certified exam is scored when you submit. 60% passes, which is 9 of 15. Easy unlocks Moderate, and Moderate unlocks Advanced.
- Passing the exam while signed in earns a free certificate, valid for one year, with its own verification page. See a sample certificate.
Free tools for Spring Boot: JWT Decoder, HTTP Status Codes, JSON Formatter