Welcome to ExamTopics
ExamTopics Logo
- Expert Verified, Online, Free.
exam questions

Exam 2V0-72.22 All Questions

View all questions & answers for the 2V0-72.22 exam

Exam 2V0-72.22 topic 1 question 89 discussion

Actual exam question from VMware's 2V0-72.22
Question #: 89
Topic #: 1
[All 2V0-72.22 Questions]

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

  • A. @Value must be used for environment variables, as @ConfigurationProperties cannot access the environment.
  • 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 concern.
  • D. @ConfigurationProperties only bind properties from .properties files, not from .yml files.
  • E. @ConfigurationProperties supports relaxed binding of properties, but not property binding through SpEL.
Show Suggested Answer Hide Answer
Suggested Answer: CE 🗳️

Comments

Chosen Answer:
This is a voting comment (?). It is better to Upvote an existing comment if you don't have anything to add.
Switch to a voting comment New
james2033
9 months, 3 weeks ago
Selected Answer: CE
See https://docs.spring.io/spring-boot/docs/current/reference/htmlsingle/#features.external-config.typesafe-configuration-properties.vs-value-annotation https://docs.spring.io/spring-boot/docs/current/reference/htmlsingle/#features.external-config.typesafe-configuration-properties.relaxed-binding
upvoted 2 times
...
Community vote distribution
A (35%)
C (25%)
B (20%)
Other
Most Voted
A voting comment increases the vote count for the chosen answer by one.

Upvoting a comment with a selected answer will also increase the vote count towards that answer by one. So if you see a comment that you already agree with, you can upvote it instead of posting a new comment.

SaveCancel
Loading ...