Deal of The Day! Hurry Up, Grab the Special Discount - Save 25% - Ends In 00:00:00 Coupon code: SAVE25
Welcome to Pass4Success

- Free Preparation Discussions

VMware Exam 2V0-72.22 Topic 9 Question 70 Discussion

Actual exam question for VMware's 2V0-72.22 exam
Question #: 70
Topic #: 9
[All 2V0-72.22 Questions]

Which statement about @TestPropertySource annotation is true? (Choose the best answer.)

Show Suggested Answer Hide Answer
Suggested Answer: D

Contribute your Thoughts:

Lemuel
1 months ago
Option B? Really? That can't be right. Who would ever want to not load properties from @PropertySource? Sounds like a bad idea to me.
upvoted 0 times
Wei
8 days ago
I agree, option B does sound like a bad idea. Overriding properties with inlined properties seems more flexible.
upvoted 0 times
...
Hyun
20 days ago
D) Inlined properties defined in @TestPropertySource can be used to override properties defined in property files.
upvoted 0 times
...
Roselle
27 days ago
A) Java system properties have higher precedence than the properties loaded from @TestPropertySource.
upvoted 0 times
...
...
Victor
1 months ago
Hold up, is this a trick question? I'm gonna go with D, just to be safe. Gotta love those inlined properties, am I right?
upvoted 0 times
...
Devora
1 months ago
Option A is the way to go. System properties should always take precedence, that's like Testing 101.
upvoted 0 times
...
Chanel
2 months ago
I'm not sure, but I think Java system properties have higher precedence than @TestPropertySource.
upvoted 0 times
...
Tresa
2 months ago
I'm going with C. The default behavior is to load a properties file relative to the project root, right? Seems like the most straightforward option.
upvoted 0 times
Eleni
1 days ago
User1: I think D is the correct answer. Inlined properties can override properties from files.
upvoted 0 times
...
...
Tony
2 months ago
Option D sounds right to me. The docs say @TestPropertySource can be used to override properties from other sources. Seems like the best answer here.
upvoted 0 times
...
Gracia
2 months ago
I agree with Tequila, because inlined properties can override properties from files.
upvoted 0 times
...
Tequila
2 months ago
I think the correct answer is D.
upvoted 0 times
...

Save Cancel