Bird
0
0

Which filename correctly represents a Spring Boot properties file for the profile named qa?

easy📝 Syntax Q3 of 15
Spring Boot - Application Configuration
Which filename correctly represents a Spring Boot properties file for the profile named qa?
Aapplication.qa.properties
Bapplication-qa.properties
Capplication_qa.properties
Dapplicationqa.properties
Step-by-Step Solution
Solution:
  1. Step 1: Understand Spring Boot naming convention

    Profile-specific files use a dash between 'application' and the profile name.
  2. Step 2: Apply to 'qa' profile

    The correct filename is application-qa.properties.
  3. Final Answer:

    application-qa.properties -> Option B
  4. Quick Check:

    Use dash, not dot or underscore [OK]
Quick Trick: Use application-.properties [OK]
Common Mistakes:
  • Using dots instead of dashes
  • Using underscores instead of dashes
  • Omitting the dash between application and profile

Want More Practice?

15+ quiz questions · All difficulty levels · Free

Free Signup - Practice All Questions
More Spring Boot Quizzes