2V0-72-22 practice question 2 of 15
Which two options will inject the value of the daily.limit system property? (Choose two.)
Full set: 79 questionsIn Spring Framework, system properties are accessed through SpEL (Spring Expression Language) using the systemProperties predefined variable. The correct syntax requires using #{} for SpEL expressions. Option D uses the bracket notation systemProperties['daily.limit'] while option E uses dot notation systemProperties.daily.limit. Both are valid SpEL syntax for accessing system properties. The ${} syntax in options B and C is used for property placeholders, not for accessing system properties through SpEL.
A. Uses SpEL syntax but missing the systemProperties reference needed to access system properties.
B. Uses property placeholder syntax $() instead of SpEL syntax #{} for systemProperties.
C. Uses property placeholder syntax which resolves properties files, not system properties.
1. Spring Framework Reference Documentation 5.3.x, Section 4.3.2 "SpEL Evaluation", subsection on "Variables and Functions"
2. VMware Spring Professional Develop (2V0-72.22) Official Courseware, Module 3: "Configuration", pages 3-15 to 3-18
3. Spring Framework API Documentation, org.springframework.beans.factory.annotation.Value JavaDoc
4. "Pro Spring 5" by Iuliana Cosmina et al., Apress, Chapter 4 "Spring Configuration", pp. 142-145
5. Spring Framework Reference Documentation 5.3.x, Section 2.2.3 "Property Source Abstraction"
Keep practicing
Take the free 2V0-72-22 practice test
Ten exam-style questions with answers and explanations, plus the exam facts and study guides.
More questions
Other 2V0-72-22 practice questions
- Question 1Which two statements describe Spring JdbcTemplate? (Choose two.)
- Question 3Which two statements are true regarding Spring and Spring Boot Testing? (Choose two.)
- Question 4Which two statements are correct regarding Spring Boot auto-configuration customization? …
- Question 5Which two statements are true about @Controller annotated classes? (Choose two.)
- Question 6Which statement is true? (Choose the best
- Question 8Which two statements are correct regarding the Health Indicator status? (Choose two.)
