Question 1: CORE SPRING BOOT - Nested YAML Configuration
How do you define nested properties in a YAML configuration file?
Question 2: CORE SPRING BOOT - Bean Scope
What is the default scope of a bean in a Spring Boot application?
Question 3: CORE SPRING BOOT - @Service and @Repository
Which of the following is true regarding @Service and @Repository annotations?
Question 4: CORE SPRING BOOT - Default Values with @RequestParam
How can you set a default value for a query parameter?
Question 5: CORE SPRING BOOT - Field Injection Example
Identify the injection type in the following code:
Question 6: CORE SPRING BOOT - Code Snippet (Profile-Specific Property)
Which value will be injected into port when the "prod" profile is active?
Question 7: CORE SPRING BOOT - Management Port
How can you expose Actuator endpoints on a separate port than the application itself?
Question 8: CORE SPRING BOOT - Code Snippet (@RestControllerAdvice)
What is the effect of using @RestControllerAdvice instead of @ControllerAdvice?
Question 9: CORE SPRING BOOT - Code Snippet (Custom Logback Configuration)
Consider the following logback-spring.xml snippet. What does it do?
Question 10: CORE SPRING BOOT - Code Snippet (Context Path)
What is the base URL for the application with the following configuration?
Question 11: CORE SPRING BOOT - Environment Variables Override
In Spring Boot, which of the following has the highest precedence when determining a configuration value?
Question 12: CORE SPRING BOOT - Microservices Support
How does Spring Boot's architecture promote the development of microservices?
Question 13: CORE SPRING BOOT - Code Snippet (@ConditionalOnMissingBean)
What does the following code do?
Question 14: CORE SPRING BOOT - Code Snippet (@PostMapping)
Which HTTP method does the following handler respond to?
Question 15: CORE SPRING BOOT - Benefits of Constructor Injection
Which of the following is a key advantage of constructor injection over setter or field injection?
Question 16: CORE SPRING BOOT - Default Profile
What is the default profile in Spring Boot if no profile is explicitly activated?
Question 17: CORE SPRING BOOT - Code Snippet (Custom Endpoint)
What will this code create in a Spring Boot application?
Question 18: CORE SPRING BOOT - Code Snippet (Default Exception Handling)
What will happen if an unhandled exception occurs in a Spring Boot controller and no @ControllerAdvice is defined?
Question 19: CORE SPRING BOOT - Logging in YAML
How do you configure logging levels in application.yml?
Question 20: CORE SPRING BOOT - Embedded Server Threads
Which of the following is true regarding embedded server thread configuration in Spring Boot?