Spring Boot Configuration and Profiles

Check how well you understand application properties,YAML,and environment profiles.

1. What is the default configuration file name in Spring Boot?
2. Which of the following are valid sources for external configuration in Spring Boot? (Select all that apply)
3. Spring Boot profiles can be activated using the spring.profiles.active property.
4. What annotation is used to bind external properties to a Java class in Spring Boot? (full class name without package)
5. Which file name is used for profile-specific configuration when the 'prod' profile is active?
6. Which of the following are valid methods to activate Spring Boot profiles? (Select all that apply)
7. YAML configuration files in Spring Boot can coexist with properties files; their configurations are merged.
8. What is the default profile name when no profiles are explicitly activated in Spring Boot?
9. Which property is used to specify additional configuration locations in Spring Boot without replacing the default locations?
10. Which data types can be injected using the @Value annotation in Spring Boot? (Select all that apply)
Answered 0 of 0 — 0 correct