Configuration & Profiles interview questions

15 real Configuration & Profiles questions from the Spring bank, as asked in Indian campus drives and tech interviews. Every question has a verified answer and an AI-tutor explanation on placd — free to start.

1. What is @Value?

Junior
  1. A.an annotation injecting a single externalized property or expression result into a field or parameter
  2. B.an annotation that registers a bean only when the named environment grouping is active
  3. C.an annotation binding a group of externalized settings sharing a prefix onto a strongly typed object
  4. D.the defined precedence by which command-line args override files, which override defaults, when keys collide
Reveal the answer + AI explanation — free account

3. Which statement is correct?

Junior
  1. A.@Value — an annotation that registers a bean only when the named environment grouping is active
  2. B.@Value — the container's interface for querying active profiles and resolving property values from all sources
  3. C.@Value — an annotation binding a group of externalized settings sharing a prefix onto a strongly typed object
  4. D.@Value — an annotation injecting a single externalized property or expression result into a field or parameter
Reveal the answer + AI explanation — free account

4. What is @ConfigurationProperties?

Mid
  1. A.an annotation injecting a single externalized property or expression result into a field or parameter
  2. B.the container's interface for querying active profiles and resolving property values from all sources
  3. C.an annotation binding a group of externalized settings sharing a prefix onto a strongly typed object
  4. D.an annotation that registers a bean only when the named environment grouping is active
Reveal the answer + AI explanation — free account

6. Which statement is correct?

Mid
  1. A.@ConfigurationProperties — an annotation that registers a bean only when the named environment grouping is active
  2. B.@ConfigurationProperties — the container's interface for querying active profiles and resolving property values from all sources
  3. C.@ConfigurationProperties — the defined precedence by which command-line args override files, which override defaults, when keys collide
  4. D.@ConfigurationProperties — an annotation binding a group of externalized settings sharing a prefix onto a strongly typed object
Reveal the answer + AI explanation — free account

7. What is @Profile?

Mid
  1. A.an annotation binding a group of externalized settings sharing a prefix onto a strongly typed object
  2. B.the container's interface for querying active profiles and resolving property values from all sources
  3. C.an annotation injecting a single externalized property or expression result into a field or parameter
  4. D.an annotation that registers a bean only when the named environment grouping is active
Reveal the answer + AI explanation — free account

9. Which statement is correct?

Mid
  1. A.@Profile — the defined precedence by which command-line args override files, which override defaults, when keys collide
  2. B.@Profile — the container's interface for querying active profiles and resolving property values from all sources
  3. C.@Profile — an annotation binding a group of externalized settings sharing a prefix onto a strongly typed object
  4. D.@Profile — an annotation that registers a bean only when the named environment grouping is active
Reveal the answer + AI explanation — free account

10. What is Environment abstraction?

Mid
  1. A.an annotation binding a group of externalized settings sharing a prefix onto a strongly typed object
  2. B.the defined precedence by which command-line args override files, which override defaults, when keys collide
  3. C.the container's interface for querying active profiles and resolving property values from all sources
  4. D.an annotation that registers a bean only when the named environment grouping is active
Reveal the answer + AI explanation — free account

11. Which term means: "the container's interface for querying active profiles and resolving property values from all sources"?

Mid
  1. A.Environment abstraction
  2. B.@Profile
  3. C.Property source ordering
  4. D.@ConfigurationProperties
Reveal the answer + AI explanation — free account

12. Which statement is correct?

Mid
  1. A.Environment abstraction — the container's interface for querying active profiles and resolving property values from all sources
  2. B.Environment abstraction — the defined precedence by which command-line args override files, which override defaults, when keys collide
  3. C.Environment abstraction — an annotation injecting a single externalized property or expression result into a field or parameter
  4. D.Environment abstraction — an annotation that registers a bean only when the named environment grouping is active
Reveal the answer + AI explanation — free account

13. What is Property source ordering?

Senior
  1. A.the container's interface for querying active profiles and resolving property values from all sources
  2. B.the defined precedence by which command-line args override files, which override defaults, when keys collide
  3. C.an annotation injecting a single externalized property or expression result into a field or parameter
  4. D.an annotation that registers a bean only when the named environment grouping is active
Reveal the answer + AI explanation — free account

14. Which term means: "the defined precedence by which command-line args override files, which override defaults, when keys collide"?

Senior
  1. A.@ConfigurationProperties
  2. B.@Profile
  3. C.Property source ordering
  4. D.@Value
Reveal the answer + AI explanation — free account

15. Which statement is correct?

Senior
  1. A.Property source ordering — the defined precedence by which command-line args override files, which override defaults, when keys collide
  2. B.Property source ordering — an annotation that registers a bean only when the named environment grouping is active
  3. C.Property source ordering — an annotation injecting a single externalized property or expression result into a field or parameter
  4. D.Property source ordering — an annotation binding a group of externalized settings sharing a prefix onto a strongly typed object
Reveal the answer + AI explanation — free account

Free to start

Answers, AI explanations, and a scored voice mock interview

Sign up free to check your answers with explanations, ask the AI tutor anything on any question, and take one full AI mock interview — scored like a real panel.

Practice Configuration & Profiles free