Cyber Monday 2024! 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 11 Question 59 Discussion

Actual exam question for VMware's 2V0-72.22 exam
Question #: 59
Topic #: 11
[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:

Annalee
2 months ago
As a wise man once said, 'When in doubt, choose option D!' Or was it 'C'? Ah, who cares, just pick one and move on!
upvoted 0 times
Charisse
1 months ago
I agree, let's just pick an option and move on.
upvoted 0 times
...
Veta
1 months ago
I'm not sure, but I'll go with option C for now.
upvoted 0 times
...
Ernie
1 months ago
I think option D is correct, inlined properties can override others.
upvoted 0 times
...
...
Chandra
2 months ago
I'm not sure, but I think C is also a valid option.
upvoted 0 times
...
Elbert
2 months ago
I agree with Claribel, because inlined properties can override properties from files.
upvoted 0 times
...
Ettie
3 months ago
Haha, this question is a real head-scratcher. I'm just going to guess and hope for the best. Maybe I'll get lucky and pick the right answer!
upvoted 0 times
Elmer
1 months ago
C) @TestPropertySource annotation loads a properties file relative to the root of the project by default sounds right to me.
upvoted 0 times
...
Mariann
2 months ago
I'm going with A) Java system properties have higher precedence than the properties loaded from @TestPropertySource.
upvoted 0 times
...
Gwenn
2 months ago
I think D) Inlined properties defined in @TestPropertySource can be used to override properties defined in property files.
upvoted 0 times
...
...
Yuette
3 months ago
B seems wrong to me. If you're using @TestPropertySource, you'd want the properties defined there to take precedence over the ones in @PropertySource.
upvoted 0 times
...
Brendan
3 months ago
I'm going with C. Loading a properties file relative to the project root is the default behavior, and that makes sense for tests.
upvoted 0 times
...
Claribel
3 months ago
I think the answer is D.
upvoted 0 times
...
Shantay
3 months ago
I think the correct answer is D. The @TestPropertySource annotation allows you to override properties defined in property files, which is really handy for testing.
upvoted 0 times
Mi
2 months ago
Definitely. It makes it easier to customize properties specifically for testing scenarios.
upvoted 0 times
...
Alesia
2 months ago
That's good to know. It's really useful for testing purposes.
upvoted 0 times
...
Buck
2 months ago
Yes, you're right. Inlined properties defined in @TestPropertySource can indeed override properties defined in property files.
upvoted 0 times
...
Truman
2 months ago
I think the correct answer is D.
upvoted 0 times
...
...

Save Cancel
az-700  pass4success  az-104  200-301  200-201  cissp  350-401  350-201  350-501  350-601  350-801  350-901  az-720  az-305  pl-300  

Warning: Cannot modify header information - headers already sent by (output started at /pass.php:70) in /pass.php on line 77