Skip to content
Sharp

Spring Core · interview question

Why do teams use Spring Profiles in a Spring Boot application in production code?

Multiple choiceMediumchapter-9-curatedpremiumspring-coreapplication-properties
Choose one answer
Answer and explanation

Correct answer

B. To enable different configurations for different environments like dev and prod.

Why

Spring Profiles allow you to define different configurations for different environments. For example, using a 'dev' profile for development settings and a 'prod' profile for production settings.

Test yourself on Spring Core

A free test with instant, explained results. No account needed.

Start free test
All Spring Core questions →