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:

Marg
5 days ago
I think option A might be correct because I remember something about system properties having higher precedence in Spring.
upvoted 0 times
...
Layla
11 days ago
I've got a good strategy for this. I'll start by eliminating the options I'm sure are wrong, then focus on the remaining ones and try to reason through which one is the best answer based on my understanding of @TestPropertySource.
upvoted 0 times
...
Reyes
16 days ago
I'm a bit confused by the options here. I know @TestPropertySource is related to loading properties for tests, but I'm not sure how it interacts with other property sources like @PropertySource. I'll have to review my notes on this.
upvoted 0 times
...
Carlee
22 days ago
Okay, let me see. I remember that @TestPropertySource is used to load properties specifically for tests, so I think the answer is probably C - it loads a properties file relative to the project root by default.
upvoted 0 times
...
Yvonne
27 days ago
Hmm, I'm a bit unsure about this. I know @TestPropertySource has something to do with loading properties for tests, but I'm not sure about the details. I'll have to think this through carefully.
upvoted 0 times
...
Cecil
1 months ago
I'm pretty confident about this one. I think the answer is D - inlined properties in @TestPropertySource can override properties in property files.
upvoted 0 times
...
Lemuel
6 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
5 months ago
I agree, option B does sound like a bad idea. Overriding properties with inlined properties seems more flexible.
upvoted 0 times
...
Hyun
6 months ago
D) Inlined properties defined in @TestPropertySource can be used to override properties defined in property files.
upvoted 0 times
...
Roselle
6 months ago
A) Java system properties have higher precedence than the properties loaded from @TestPropertySource.
upvoted 0 times
...
...
Victor
6 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
6 months ago
Option A is the way to go. System properties should always take precedence, that's like Testing 101.
upvoted 0 times
...
Chanel
7 months ago
I'm not sure, but I think Java system properties have higher precedence than @TestPropertySource.
upvoted 0 times
...
Tresa
7 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
Willis
5 months ago
User4: Let's go with C then, it seems to make the most sense.
upvoted 0 times
...
Markus
5 months ago
User3: I'm not sure, but it does sound like the most straightforward option.
upvoted 0 times
...
Chantell
5 months ago
User2: I agree, that's the default behavior of @TestPropertySource.
upvoted 0 times
...
Tamar
5 months ago
User1: I think C is correct. It loads a properties file relative to the project root.
upvoted 0 times
...
Karon
5 months ago
User4: User3, I think you're right. A seems like the most logical choice.
upvoted 0 times
...
Annelle
5 months ago
User3: I'm not sure, but I think A is the correct answer. Java system properties have higher precedence, right?
upvoted 0 times
...
Lavelle
5 months ago
User2: I agree with User1. D makes sense to me too.
upvoted 0 times
...
Eleni
5 months ago
User1: I think D is the correct answer. Inlined properties can override properties from files.
upvoted 0 times
...
...
Tony
7 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
7 months ago
I agree with Tequila, because inlined properties can override properties from files.
upvoted 0 times
...
Tequila
7 months ago
I think the correct answer is D.
upvoted 0 times
...

Save Cancel