Configuration & Profiles interview questions

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.

Take the free IT readiness check

or take a mock interview set up for this area

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

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
  1. A.@ConfigurationProperties
  2. B.@Value
  3. C.Environment abstraction
  4. D.@Profile

Answer + AI explanation with Pro

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

Answer + AI explanation with Pro

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

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
  1. A.@ConfigurationProperties
  2. B.@Value
  3. C.@Profile
  4. D.Environment abstraction

Answer + AI explanation with Pro

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

Answer + AI explanation with Pro

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

Answer + AI explanation with Pro

8. Which term means: "an annotation that registers a bean only when the named environment grouping is active"?

Mid
  1. A.Property source ordering
  2. B.@Profile
  3. C.Environment abstraction
  4. D.@ConfigurationProperties

Answer + AI explanation with Pro

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

Answer + AI explanation with Pro

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

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
  1. A.Environment abstraction
  2. B.@Profile
  3. C.Property source ordering
  4. D.@ConfigurationProperties

Answer + AI explanation with Pro

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

Answer + AI explanation with Pro

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

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
  1. A.@ConfigurationProperties
  2. B.@Profile
  3. C.Property source ordering
  4. D.@Value

Answer + AI explanation with Pro

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

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.

Take the free IT readiness check

or take a mock interview set up for this area

24,000+ questions & coding problemsSoftware & IT16,274 questionsGovernment jobs26 examsAptitudenew questions every timeAI practice interviewwith feedback65 topics to practiseMechanical1,149 questionsGATE ME9 papersEngineering Mathematics381 questions2-minute checkfreeDSA Problems1,422Civil1,005 questionsGATE CE9 papersCS Fundamentals1,209 questionsYour scores6 skillsSystem Design25Electrical / EEE1,047 questionsGATE EE9 papersRun your codeC++ · Java · PythonLow-Level Design144Electronics & Comm.975 questionsGATE EC9 papersAI help on every questionFull-Stack6,282Chemical1,005 questionsGATE CH9 papersAI whiteboardsystem designWork abroadEurope · remote · transfersESE ME1 paperGATE practice papers2019–2026ESE CE1 paperDate alertsbefore the last dateESE EE1 paperBehavioural courseHR round practiceESE ET1 paperResume optimizerProSSC JE ME1 paperApplication trackerSSC JE CE1 paperCompany-wise prepSSC JE EE1 paperRole roadmapsRRB JE1 subjectPriced in ₹UPI · cardsISRO SC1 paperGATE CS9 papersIBPS SO IT1 paperUGC NET CS1 paperSSC CGL26 papersIBPS PO26 papersRRB NTPC26 papersSSC CHSL26 papersIBPS Clerk26 papersSBI Clerk26 papersRRB Group D26 papersSSC CPO26 papersSSC GD26 papers