Question 1: CORE SPRING BOOT - Default Configuration File
What is the default location of application.properties or application.yml in a Spring Boot project?
Question 2: CORE SPRING BOOT - Starter Dependencies
What is the main purpose of Spring Boot "starter dependencies"?
Question 3: CORE SPRING BOOT - @Bean Annotation
What is the role of the @Bean annotation in Spring Boot?
Question 4: CORE SPRING BOOT - Code Snippet (@GetMapping)
What URL will return "Hello World" in the following code?
Question 5: CORE SPRING BOOT - Setter Injection
Which of the following best describes setter-based dependency injection?
Question 6: CORE SPRING BOOT - Activating Profiles
How can you activate a Spring profile in a Spring Boot application?
Question 7: CORE SPRING BOOT - Default Actuator Endpoints
Which of the following is a default Spring Boot Actuator endpoint?
Question 8: CORE SPRING BOOT - Code Snippet (Global Exception Handler)
What will happen when a NullPointerException is thrown in any controller in this code?
Question 9: CORE SPRING BOOT - Logging Levels
Which of the following is not a standard logging level in SLF4J/Logback?
Question 10: CORE SPRING BOOT - Switching Embedded Servers
How can you switch the embedded server from Tomcat to Jetty or Undertow?
Question 11: CORE SPRING BOOT - Profile-Specific Configuration
How can you define configuration specific to a Spring profile in properties or YAML?
Question 12: CORE SPRING BOOT - Excluding Auto-Configuration
If you want to exclude a specific auto-configuration class from being applied, how can you do that?
Question 13: CORE SPRING BOOT - Code Snippet (@Autowired)
What will happen when the following code executes?
Question 14: CORE SPRING BOOT - Code Snippet (PathVariable)
What will be returned if you access `/api/user/42` in the following code?
Question 15: CORE SPRING BOOT - Field Injection
What is a key drawback of field injection using @Autowired directly on fields?
Question 16: CORE SPRING BOOT - Profile-Specific YAML
Which of the following is a correct way to define a profile-specific configuration in YAML?
Question 17: CORE SPRING BOOT - Health Endpoint Check
Which of the following statements about the `/health` endpoint is correct?
Question 18: CORE SPRING BOOT - Local vs Global Exception Handling
Which statement is correct regarding local vs global exception handling in Spring Boot?
Question 19: CORE SPRING BOOT - Code Snippet (SLF4J Logging)
What will the following code output if the logging level is set to INFO?
Question 20: CORE SPRING BOOT - Embedded Server Ports
Which property is used to configure the port of an embedded server in Spring Boot?