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 2V0-72.22 Exam - Topic 8 Question 21 Discussion

Which two are required to use transactions in Spring? (Choose two.)
A) Add @EnableTransactionManagement to a Java configuration class. and B) Annotate a class, an interface, or individual methods requiring a transaction with the @Transactional annotation.
C) A class must be annotated with @Service and @Transaction.
D) A class requiring a transaction must implement the TransactionInterceptor interface.
E) Write a Spring AOP advice to implement transactional behavior.

VMware 2V0-72.22 Exam - Topic 8 Question 21 Discussion

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

Which two are required to use transactions in Spring? (Choose two.)

Show Suggested Answer Hide Answer
Suggested Answer: A, B

Contribute your Thoughts:

0/2000 characters
Gail
11 months ago
Isn't TransactionInterceptor a bit outdated?
upvoted 0 times
...
Luisa
11 months ago
I thought you needed @Transaction on the class too.
upvoted 0 times
...
Brianne
11 months ago
Wait, @Service isn't required? That's surprising!
upvoted 0 times
...
Paul
11 months ago
Totally agree, those are the essentials!
upvoted 0 times
...
Nakisha
11 months ago
Gotta use @EnableTransactionManagement and @Transactional for sure.
upvoted 0 times
...
Lillian
12 months ago
I don't think implementing TransactionInterceptor is necessary, but I could be wrong. I feel like it’s more about the annotations.
upvoted 0 times
...
Lacresha
12 months ago
I’m a bit confused; I thought we needed @Service for transactions, but I don't recall if it’s mandatory.
upvoted 0 times
...
Murray
12 months ago
I remember practicing with the @Transactional annotation, so I feel like that has to be one of the answers.
upvoted 0 times
...
Jerry
12 months ago
I think we definitely need to add @EnableTransactionManagement to the configuration class, but I'm not sure about the second one.
upvoted 0 times
...
Fidelia
12 months ago
Hmm, I'm a bit unsure about this one. I know @PreAuthorize is used for method-level security, but I'm not sure about the specific use cases it addresses. I'll need to review my notes to make sure I get this right.
upvoted 0 times
...
Dawne
12 months ago
I think we discussed transferring risks in class, but I'm not sure if ignoring risks is really a valid option according to the syllabus.
upvoted 0 times
...
Melita
12 months ago
I think I know the answer to this one. An HR Admin can do things like reset user passwords and modify HR properties, but they can't grant roles or configure business rules. Let me double-check that.
upvoted 0 times
...
Tesha
12 months ago
This is a good question for testing our understanding of the tradeoffs between physical and digital storage. I'll make sure to consider both the locational and security advantages that a bank might have over cloud storage.
upvoted 0 times
...
Paul
12 months ago
Hmm, I'm a little unsure about this one. The question mentions the "most prevalent" approach, but it's not clear if that means the most common or the recommended approach. I'll have to think through each option carefully.
upvoted 0 times
...

Save Cancel