nerdexam
Broadcom-VMware

2V0-72.22 · Question #99

Which two statements are correct regarding the differences between @ConfigurationProperties and @Value? (Choose two.)

The correct answer is C. @ConfigurationProperties is preferable over @Value when type-safety during property binding is a E. @ConfigurationProperties supports relaxed binding of properties, but not property binding through. See the full explanation below for the reasoning.

Question

Which two statements are correct regarding the differences between @ConfigurationProperties and @Value? (Choose two.)

Options

  • A@Value must be used for environment variables, as @ConfigurationProperties cannot access the
  • B@Value supports relaxed binding of properties, but not property binding through SpEL.
  • C@ConfigurationProperties is preferable over @Value when type-safety during property binding is a
  • D@ConfigurationProperties only bind properties from .properties files, not from .yml files.
  • E@ConfigurationProperties supports relaxed binding of properties, but not property binding through

How the community answered

(33 responses)
  • A
    12% (4)
  • B
    3% (1)
  • C
    82% (27)
  • D
    3% (1)

Community Discussion

No community discussion yet for this question.

Full 2V0-72.22 Practice