Spring Boot interview questions

21 real Spring Boot questions from the Spring bank, as asked in Indian campus drives and tech interviews. Every question has a verified answer and an AI-tutor explanation on placd — free to start.

1. What is Auto-configuration?

Junior
  1. A.the externalized key-value file Boot reads at startup to override defaults and supply settings
  2. B.the module exposing production endpoints for health checks, metrics, and runtime introspection
  3. C.Boot's mechanism that wires sensible default beans based on classpath contents and existing user beans
  4. D.the conditional that makes auto-configured beans back off when the developer has already defined their own
Reveal the answer + AI explanation — free account

2. Which term means: "Boot's mechanism that wires sensible default beans based on classpath contents and existing user beans"?

Junior
  1. A.Auto-configuration
  2. B.Embedded server
  3. C.Starter dependency
  4. D.@SpringBootApplication
Reveal the answer + AI explanation — free account

3. Which statement is correct?

Junior
  1. A.Auto-configuration — the module exposing production endpoints for health checks, metrics, and runtime introspection
  2. B.Auto-configuration — Boot's mechanism that wires sensible default beans based on classpath contents and existing user beans
  3. C.Auto-configuration — a curated, opinionated set of compatible libraries bundled under one coordinate to simplify build setup
  4. D.Auto-configuration — a servlet container like Tomcat packaged inside the runnable JAR so no external deployment is needed
Reveal the answer + AI explanation — free account

4. What is Starter dependency?

Junior
  1. A.the conditional that makes auto-configured beans back off when the developer has already defined their own
  2. B.a curated, opinionated set of compatible libraries bundled under one coordinate to simplify build setup
  3. C.Boot's mechanism that wires sensible default beans based on classpath contents and existing user beans
  4. D.the module exposing production endpoints for health checks, metrics, and runtime introspection
Reveal the answer + AI explanation — free account

5. Which term means: "a curated, opinionated set of compatible libraries bundled under one coordinate to simplify build setup"?

Junior
  1. A.application.properties
  2. B.Starter dependency
  3. C.Actuator
  4. D.@SpringBootApplication
Reveal the answer + AI explanation — free account

6. Which statement is correct?

Junior
  1. A.Starter dependency — Boot's mechanism that wires sensible default beans based on classpath contents and existing user beans
  2. B.Starter dependency — a convenience annotation combining configuration declaration, auto-configuration enablement, and component scanning
  3. C.Starter dependency — the module exposing production endpoints for health checks, metrics, and runtime introspection
  4. D.Starter dependency — a curated, opinionated set of compatible libraries bundled under one coordinate to simplify build setup
Reveal the answer + AI explanation — free account

7. What is @SpringBootApplication?

Junior
  1. A.the externalized key-value file Boot reads at startup to override defaults and supply settings
  2. B.a curated, opinionated set of compatible libraries bundled under one coordinate to simplify build setup
  3. C.a convenience annotation combining configuration declaration, auto-configuration enablement, and component scanning
  4. D.Boot's mechanism that wires sensible default beans based on classpath contents and existing user beans
Reveal the answer + AI explanation — free account

8. Which term means: "a convenience annotation combining configuration declaration, auto-configuration enablement, and component scanning"?

Junior
  1. A.Embedded server
  2. B.@ConditionalOnMissingBean
  3. C.@SpringBootApplication
  4. D.application.properties
Reveal the answer + AI explanation — free account

9. Which statement is correct?

Junior
  1. A.@SpringBootApplication — Boot's mechanism that wires sensible default beans based on classpath contents and existing user beans
  2. B.@SpringBootApplication — a convenience annotation combining configuration declaration, auto-configuration enablement, and component scanning
  3. C.@SpringBootApplication — the conditional that makes auto-configured beans back off when the developer has already defined their own
  4. D.@SpringBootApplication — a curated, opinionated set of compatible libraries bundled under one coordinate to simplify build setup
Reveal the answer + AI explanation — free account

10. What is application.properties?

Mid
  1. A.a servlet container like Tomcat packaged inside the runnable JAR so no external deployment is needed
  2. B.the module exposing production endpoints for health checks, metrics, and runtime introspection
  3. C.a convenience annotation combining configuration declaration, auto-configuration enablement, and component scanning
  4. D.the externalized key-value file Boot reads at startup to override defaults and supply settings
Reveal the answer + AI explanation — free account

12. Which statement is correct?

Mid
  1. A.application.properties — the externalized key-value file Boot reads at startup to override defaults and supply settings
  2. B.application.properties — a curated, opinionated set of compatible libraries bundled under one coordinate to simplify build setup
  3. C.application.properties — Boot's mechanism that wires sensible default beans based on classpath contents and existing user beans
  4. D.application.properties — the module exposing production endpoints for health checks, metrics, and runtime introspection
Reveal the answer + AI explanation — free account

13. What is Embedded server?

Junior
  1. A.a servlet container like Tomcat packaged inside the runnable JAR so no external deployment is needed
  2. B.a convenience annotation combining configuration declaration, auto-configuration enablement, and component scanning
  3. C.a curated, opinionated set of compatible libraries bundled under one coordinate to simplify build setup
  4. D.the externalized key-value file Boot reads at startup to override defaults and supply settings
Reveal the answer + AI explanation — free account

15. Which statement is correct?

Junior
  1. A.Embedded server — the externalized key-value file Boot reads at startup to override defaults and supply settings
  2. B.Embedded server — a curated, opinionated set of compatible libraries bundled under one coordinate to simplify build setup
  3. C.Embedded server — Boot's mechanism that wires sensible default beans based on classpath contents and existing user beans
  4. D.Embedded server — a servlet container like Tomcat packaged inside the runnable JAR so no external deployment is needed
Reveal the answer + AI explanation — free account

16. What is Actuator?

Mid
  1. A.Boot's mechanism that wires sensible default beans based on classpath contents and existing user beans
  2. B.the externalized key-value file Boot reads at startup to override defaults and supply settings
  3. C.a convenience annotation combining configuration declaration, auto-configuration enablement, and component scanning
  4. D.the module exposing production endpoints for health checks, metrics, and runtime introspection
Reveal the answer + AI explanation — free account

18. Which statement is correct?

Mid
  1. A.Actuator — a convenience annotation combining configuration declaration, auto-configuration enablement, and component scanning
  2. B.Actuator — the conditional that makes auto-configured beans back off when the developer has already defined their own
  3. C.Actuator — the module exposing production endpoints for health checks, metrics, and runtime introspection
  4. D.Actuator — a servlet container like Tomcat packaged inside the runnable JAR so no external deployment is needed
Reveal the answer + AI explanation — free account

19. What is @ConditionalOnMissingBean?

Senior
  1. A.the conditional that makes auto-configured beans back off when the developer has already defined their own
  2. B.Boot's mechanism that wires sensible default beans based on classpath contents and existing user beans
  3. C.a servlet container like Tomcat packaged inside the runnable JAR so no external deployment is needed
  4. D.a convenience annotation combining configuration declaration, auto-configuration enablement, and component scanning
Reveal the answer + AI explanation — free account

20. Which term means: "the conditional that makes auto-configured beans back off when the developer has already defined their own"?

Senior
  1. A.Embedded server
  2. B.Auto-configuration
  3. C.@ConditionalOnMissingBean
  4. D.@SpringBootApplication
Reveal the answer + AI explanation — free account

21. Which statement is correct?

Senior
  1. A.@ConditionalOnMissingBean — the conditional that makes auto-configured beans back off when the developer has already defined their own
  2. B.@ConditionalOnMissingBean — Boot's mechanism that wires sensible default beans based on classpath contents and existing user beans
  3. C.@ConditionalOnMissingBean — a curated, opinionated set of compatible libraries bundled under one coordinate to simplify build setup
  4. D.@ConditionalOnMissingBean — a convenience annotation combining configuration declaration, auto-configuration enablement, and component scanning
Reveal the answer + AI explanation — free account

Free to start

Answers, AI explanations, and a scored voice mock interview

Sign up free to check your answers with explanations, ask the AI tutor anything on any question, and take one full AI mock interview — scored like a real panel.

Practice Spring Boot free