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 54 Discussion

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

Refer to the exhibit.

What statement is true about @DirtiesContext?

Show Suggested Answer Hide Answer
Suggested Answer: A, B

Contribute your Thoughts:

Lizette
2 months ago
Hmm, this is a tricky one. I'm leaning towards D, since that would be the most targeted approach. But I better double-check the docs to be sure.
upvoted 0 times
Wenona
23 days ago
User2: Yeah, I agree. Let's double-check the documentation just to be sure.
upvoted 0 times
...
Orville
1 months ago
User1: I think D is the correct answer.
upvoted 0 times
...
...
Lynelle
2 months ago
This question is a real dirt-y one! I'll have to go with B, though. Recreating the context after the test is the safest way to ensure a clean slate.
upvoted 0 times
...
Kati
2 months ago
But A makes more sense because it mentions recreating the ApplicationContext before the test method.
upvoted 0 times
...
Miles
2 months ago
I'm going with C. It seems like the most efficient approach, revertingng only the changes to Spring beans instead of recreating the entire context.
upvoted 0 times
Cassie
4 days ago
D seems like a good option too. Recreating only the modified Spring beans inside the test method.
upvoted 0 times
...
Annamae
5 days ago
I agree with B. It makes sense to recreate a new ApplicationContext after the test method.
upvoted 0 times
...
Peggie
7 days ago
I think A is the correct option. It mentions recreating a new ApplicationContext before the test method.
upvoted 0 times
...
Erick
11 days ago
I'm going with C. It seems like the most efficient approach, reverting only the changes to Spring beans instead of recreating the entire context.
upvoted 0 times
...
...
Demetra
2 months ago
I disagree, I believe the correct answer is B.
upvoted 0 times
...
Larue
2 months ago
Option B makes the most sense to me. The docs clearly state that @DirtiesContext will recreate the ApplicationContext after the test method, not before.
upvoted 0 times
...
Kati
2 months ago
I think the answer is A.
upvoted 0 times
...

Save Cancel
a