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 9 Question 56 Discussion

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

Which two annotations indicate that the transaction for a transactional test method should be committed after the test method has completed? (Choose two.)

Show Suggested Answer Hide Answer
Suggested Answer: B, C

Contribute your Thoughts:

Frank
2 months ago
I think @Rollback(false) is also necessary to prevent the transaction from being rolled back.
upvoted 0 times
...
Ressie
2 months ago
Haha, I almost selected `@Sql(alwaysCommit=true)`. That one sounds like it would just commit the transaction no matter what! Gotta be careful with those trick questions.
upvoted 0 times
Rory
8 days ago
User1: Thanks for the tip, I'll remember that for next time.
upvoted 0 times
...
Mira
10 days ago
User3: I think the correct ones are `@Commit` and `@Transactional(commit=true)`
upvoted 0 times
...
Roxane
16 days ago
User2: Yeah, that one does sound tricky.
upvoted 0 times
...
Paulina
18 days ago
User1: I almost picked `@Sql(alwaysCommit=true)` too!
upvoted 0 times
...
...
Jaime
2 months ago
But @Commit explicitly indicates that the transaction should be committed, right?
upvoted 0 times
...
Nilsa
2 months ago
I disagree, I believe it's @Sql(alwaysCommit=true) and @Transactional(commit=true).
upvoted 0 times
...
Elina
2 months ago
I agree with Alberto. Those two options make the most sense to me. The others don't seem to be directly related to committing the transaction.
upvoted 0 times
...
Alberto
2 months ago
C and E are the correct answers here. The `@Commit` and `@Transactional(commit=true)` annotations indicate that the transaction should be committed after the test method has completed.
upvoted 0 times
Stefania
25 days ago
Exactly, those annotations will ensure the transaction is committed after the test method completes.
upvoted 0 times
...
Rory
1 months ago
So we should use @Commit and @Transactional(commit=true) in our transactional test methods.
upvoted 0 times
...
Laticia
2 months ago
Yes, you're right. Those annotations indicate that the transaction should be committed.
upvoted 0 times
...
Erasmo
2 months ago
I think the correct answers are C and E.
upvoted 0 times
...
...
Jaime
3 months ago
I think the correct annotations are @Commit and @Rollback(false).
upvoted 0 times
...

Save Cancel