15 Configuration & Profiles questions from the Spring bank, written for Indian campus drives and tech interviews. Every question has a verified answer and an AI-tutor explanation on placd.
Free to start: the 2-minute IT readiness check — six questions and a result.
A.an annotation injecting a single externalized property or expression result into a field or parameter
B.an annotation that registers a bean only when the named environment grouping is active
C.an annotation binding a group of externalized settings sharing a prefix onto a strongly typed object
D.the defined precedence by which command-line args override files, which override defaults, when keys collide
Answer + AI explanation with Pro
2. Which term means: "an annotation injecting a single externalized property or expression result into a field or parameter"?
Junior
A.@ConfigurationProperties
B.@Value
C.Environment abstraction
D.@Profile
Answer + AI explanation with Pro
3. Which statement is correct?
Junior
A.@Value — an annotation that registers a bean only when the named environment grouping is active
B.@Value — the container's interface for querying active profiles and resolving property values from all sources
C.@Value — an annotation binding a group of externalized settings sharing a prefix onto a strongly typed object
D.@Value — an annotation injecting a single externalized property or expression result into a field or parameter
Answer + AI explanation with Pro
4. What is @ConfigurationProperties?
Mid
A.an annotation injecting a single externalized property or expression result into a field or parameter
B.the container's interface for querying active profiles and resolving property values from all sources
C.an annotation binding a group of externalized settings sharing a prefix onto a strongly typed object
D.an annotation that registers a bean only when the named environment grouping is active
Answer + AI explanation with Pro
5. Which term means: "an annotation binding a group of externalized settings sharing a prefix onto a strongly typed object"?
Mid
A.@ConfigurationProperties
B.@Value
C.@Profile
D.Environment abstraction
Answer + AI explanation with Pro
6. Which statement is correct?
Mid
A.@ConfigurationProperties — an annotation that registers a bean only when the named environment grouping is active
B.@ConfigurationProperties — the container's interface for querying active profiles and resolving property values from all sources
C.@ConfigurationProperties — the defined precedence by which command-line args override files, which override defaults, when keys collide
D.@ConfigurationProperties — an annotation binding a group of externalized settings sharing a prefix onto a strongly typed object
Answer + AI explanation with Pro
7. What is @Profile?
Mid
A.an annotation binding a group of externalized settings sharing a prefix onto a strongly typed object
B.the container's interface for querying active profiles and resolving property values from all sources
C.an annotation injecting a single externalized property or expression result into a field or parameter
D.an annotation that registers a bean only when the named environment grouping is active
Answer + AI explanation with Pro
8. Which term means: "an annotation that registers a bean only when the named environment grouping is active"?
Mid
A.Property source ordering
B.@Profile
C.Environment abstraction
D.@ConfigurationProperties
Answer + AI explanation with Pro
9. Which statement is correct?
Mid
A.@Profile — the defined precedence by which command-line args override files, which override defaults, when keys collide
B.@Profile — the container's interface for querying active profiles and resolving property values from all sources
C.@Profile — an annotation binding a group of externalized settings sharing a prefix onto a strongly typed object
D.@Profile — an annotation that registers a bean only when the named environment grouping is active
Answer + AI explanation with Pro
10. What is Environment abstraction?
Mid
A.an annotation binding a group of externalized settings sharing a prefix onto a strongly typed object
B.the defined precedence by which command-line args override files, which override defaults, when keys collide
C.the container's interface for querying active profiles and resolving property values from all sources
D.an annotation that registers a bean only when the named environment grouping is active
Answer + AI explanation with Pro
11. Which term means: "the container's interface for querying active profiles and resolving property values from all sources"?
Mid
A.Environment abstraction
B.@Profile
C.Property source ordering
D.@ConfigurationProperties
Answer + AI explanation with Pro
12. Which statement is correct?
Mid
A.Environment abstraction — the container's interface for querying active profiles and resolving property values from all sources
B.Environment abstraction — the defined precedence by which command-line args override files, which override defaults, when keys collide
C.Environment abstraction — an annotation injecting a single externalized property or expression result into a field or parameter
D.Environment abstraction — an annotation that registers a bean only when the named environment grouping is active
Answer + AI explanation with Pro
13. What is Property source ordering?
Senior
A.the container's interface for querying active profiles and resolving property values from all sources
B.the defined precedence by which command-line args override files, which override defaults, when keys collide
C.an annotation injecting a single externalized property or expression result into a field or parameter
D.an annotation that registers a bean only when the named environment grouping is active
Answer + AI explanation with Pro
14. Which term means: "the defined precedence by which command-line args override files, which override defaults, when keys collide"?
Senior
A.@ConfigurationProperties
B.@Profile
C.Property source ordering
D.@Value
Answer + AI explanation with Pro
15. Which statement is correct?
Senior
A.Property source ordering — the defined precedence by which command-line args override files, which override defaults, when keys collide
B.Property source ordering — an annotation that registers a bean only when the named environment grouping is active
C.Property source ordering — an annotation injecting a single externalized property or expression result into a field or parameter
D.Property source ordering — an annotation binding a group of externalized settings sharing a prefix onto a strongly typed object
Answer + AI explanation with Pro
Free to start
Start with a free readiness check
Sign up free for the 2-minute IT readiness check and a scored result. Answers, explanations and the AI tutor on every Configuration & Profiles question come with Pro.