Question 1: CORE SPRING BOOT - Binding Properties to POJO
Which annotation allows binding properties from application.properties or application.yml to a Java POJO?
Question 2: CORE SPRING BOOT - Key Features
Which of the following is NOT a key feature of Spring Boot?
Question 3: CORE SPRING BOOT - @Controller vs @RestController
Which statement correctly distinguishes between @Controller and @RestController?
Question 4: CORE SPRING BOOT - Query Parameters with @RequestParam
Which annotation is used to extract query parameters in a Spring Boot controller?
Question 5: CORE SPRING BOOT - Constructor Injection Example
What will happen when this Spring Boot code runs?
Question 6: CORE SPRING BOOT - Code Snippet (@Profile)
What will happen when this code runs with the "dev" profile active?
Question 7: CORE SPRING BOOT - Code Snippet (Custom Health Indicator)
What will the following code do in a Spring Boot application?
Question 8: CORE SPRING BOOT - Code Snippet (Multiple Exceptions)
What does the following code achieve?
Question 9: CORE SPRING BOOT - Configuring Logging in application.properties
How can you set the logging level for a specific package in Spring Boot using application.properties?
Question 10: CORE SPRING BOOT - Code Snippet (Custom Port)
What port will the embedded Tomcat server run on with the following configuration?
Question 11: CORE SPRING BOOT - Using @Value Annotation
What is the purpose of the @Value annotation in Spring Boot configuration?
Question 12: CORE SPRING BOOT - spring-boot-starter-web Dependency
When you add the spring-boot-starter-web dependency to your project, what does Spring Boot auto-configure for you by default?
Question 13: CORE SPRING BOOT - Code Snippet (@ConfigurationProperties)
What is the purpose of the following code?
Question 14: CORE SPRING BOOT - Code Snippet (@RequestParam)
What will `/api/user?id=10` return in the following code?
Question 15: CORE SPRING BOOT - Setter Injection Example
In the following code, how is ServiceA injected into ServiceB?
Question 16: CORE SPRING BOOT - Multiple Profiles in a Bean
How can you make a bean active for multiple profiles?
Question 17: CORE SPRING BOOT - Code Snippet (Custom Metrics)
What does the following code achieve?
Question 18: CORE SPRING BOOT - ResponseEntity in Exception Handling
Why is ResponseEntity commonly used in exception handlers?
Question 19: CORE SPRING BOOT - Code Snippet (Logging in a Spring Component)
What will happen when this component is executed?
Question 20: CORE SPRING BOOT - Code Snippet (Embedded Server Selection)
Which server will Spring Boot use when this dependency is included?