BLACK FRIDAY SALE – Unlock Up to 25% OFF on All Exam Prep! - Ends In 00:00:00 Coupon code: SAVE25
Welcome to Pass4Success

- Free Preparation Discussions

VMware 2V0-72.22 Exam - Topic 1 Question 29 Discussion

Posted by Lili on Apr 23, 2023 at 10:06 PM

Which two use cases can be addressed by the method level security annotation @PreAuthorize? (Choose two.)

Suggested Answer: B, D

Get Premium 2V0-72.22 Questions as Interactive Web-Based Practice Test or PDF Real Exam Format Detailed Explanations Instant Access Get Your Practice Test
31 comments · newest first
EL
Elza 1 year ago
I thought it was more about roles and permissions, not just identity!
DA
Danilo 1 year ago
B seems off, it’s not about the returned object.
TE
Terrilyn 1 year ago
Wait, can @PreAuthorize really do that?
KA
Karrie 1 year ago
Totally agree with A and E!
JA
Jaclyn 1 year ago
A and E are the right answers!
SH
Shawna 1 year ago
I’m leaning towards A and E for this question. They seem to fit the purpose of method level security the best.
LO
Louis 1 year ago
I’m a bit confused; I thought @PreAuthorize could also restrict access based on the returned object, but that doesn't seem right now.
KA
Kayleigh 1 year ago
I remember practicing a question where we had to choose between roles and something else. I feel like roles might be one of the answers here.
WY
Wynell 1 year ago
I think @PreAuthorize is definitely used for allowing access based on user identity, but I'm not sure about the second option.
TI
Tiffiny 1 year ago
Hmm, this seems like a pretty straightforward question. I'd probably go with option B - asking my co-worker to read the email message and attachment details. That way I can get the specific information I need without having to dig through my own sent emails.
GA
Gaynell 1 year ago
Okay, I remember learning about this in class. I believe the functionality that allows users to place orders on behalf of an account is called "Effective Account." I'm pretty confident that's the right answer.
DO
Dolores 1 year ago
Wait, I'm a bit confused. I thought moving a file online meant you could access it, but I'm not sure about the impact on DML or backup/restore. I'll need to review my notes on that.
KA
Kate 2 years ago
Ah, the age-old question of who gets to play with the code. Clearly, it's the users with the right roles and identities. No climbing through the window for you, my friend!
TE
Terina 2 years ago
↳ replying to Kate
User 2
JO
Joana 2 years ago
↳ replying to Kate
User 1
RI
Ricarda 2 years ago
C and D? Really? Those sound more like attributes of the HTTP request, not the @PreAuthorize annotation. I'm going with A and E.
VI
Viva 1 year ago
↳ replying to Ricarda
Definitely, A and E are the correct use cases for @PreAuthorize.
VI
Viva 1 year ago
↳ replying to Ricarda
I agree, C and D don't seem like use cases for @PreAuthorize. A and E make more sense.
VI
Virgina 1 year ago
↳ replying to Ricarda
C and D? Really? Those sound more like attributes of the HTTP request, not the @PreAuthorize annotation. I'm going with A and E.
AN
Antione 1 year ago
↳ replying to Ricarda
E) Allow access to a method based on roles.
PA
Page 2 years ago
↳ replying to Ricarda
A) Allow access to a method based on user identity.
DE
Dean 2 years ago
I'm not sure about E, but I think A is definitely one of the use cases.
TO
Tonette 2 years ago
This is easy! A and E are the obvious answers. The annotation is all about controlling access based on user identity and roles.
PE
Peggie 2 years ago
↳ replying to Tonette
I agree, A and E make the most sense for method level security with @PreAuthorize.
PE
Peggie 2 years ago
↳ replying to Tonette
Yes, you're right! A and E are the correct answers for @PreAuthorize.
DA
Dalene 2 years ago
I agree with Reuben. @PreAuthorize is used for role-based access control.
DO
Donte 2 years ago
I'm pretty sure B and E are the right choices. The annotation can be used to restrict access based on the returned object and the user's roles.
EL
Eleonore 2 years ago
A and E seem like the correct answers here. The @PreAuthorize annotation is used to control access to methods based on the user's identity and roles.
SA
Salome 2 years ago
↳ replying to Eleonore
Yes, @PreAuthorize allows access based on user identity and roles.
SA
Salome 2 years ago
↳ replying to Eleonore
I think A and E are the correct answers.
RE
Reuben 2 years ago
I think A and E are the correct options.
0/2000 characters

Save Cancel