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 11 Question 75 Discussion

Posted by Kati on Jul 30, 2025 at 05:33 AM

Refer to the exhibit.

Which option is a valid way to retrieve the account id? (Choose the best answer.)

Suggested Answer: B

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
24 comments · newest first
CA
Cassi 9 months ago
D is definitely not valid, @RequestParam should have a type match.
MU
Muriel 10 months ago
Wait, can you really use @PathVariable with a String? That feels off.
LA
Lauran 10 months ago
Option A is the correct way to retrieve the account id!
IL
Ilda 11 months ago
I think B is better, using long makes more sense.
MA
Marsha 11 months ago
C doesn't seem right, @RequestParam is for query params, not path.
PH
Phillip 11 months ago
I recall that @RequestParam can specify a name, so option D seems plausible, but I need to double-check the syntax.
EL
Ellen 11 months ago
I practiced a similar question, and I feel like option B could work too, but I’m not confident about the data type.
SH
Shaun 11 months ago
I'm not entirely sure, but I remember something about @RequestParam being used for query parameters, so maybe option C is the right choice?
RO
Rodolfo 12 months ago
I think option A might be correct since @PathVariable is often used for retrieving values from the URL.
ZO
Zoila 12 months ago
Ah, I think I know the answer to this one. Let me double-check the options and make sure I'm selecting the most appropriate solution.
JU
Julian 12 months ago
I've got a strategy for this. I'll carefully read through the options and think about the best way to access the account ID in the update() method.
JA
Janella 1 year ago
I'm a bit unsure about this one. I'll need to review my notes on Spring MVC and how to handle URL parameters.
ST
Stevie 1 year ago
Okay, I've seen this type of question before. I need to pay close attention to the details in the code snippet and the options provided.
BA
Barbra 1 year ago
Hmm, this looks like a Spring MVC question. I think the key is to figure out how to properly retrieve the account ID from the request. Let me think this through carefully.
AN
Anna 1 year ago
Hmm, I'm not sure. Option A and B both use @PathVariable, but Option B specifies the datatype as long, which seems more appropriate. I'll go with that one.
OM
Omega 1 year ago
I'm going with Option D. Using the @RequestParam annotation with the 'id' parameter name makes the most sense to me.
SA
Salina 9 months ago
↳ replying to Omega
Option B could work, but D seems clearer.
RU
Rueben 10 months ago
↳ replying to Omega
I prefer Option A. It feels more straightforward.
CH
Charlene 10 months ago
↳ replying to Omega
@RequestParam is definitely the way to go.
SH
Sherell 10 months ago
↳ replying to Omega
I think Option D is the best choice too!
SH
Shawn 1 year ago
Option B looks good to me. Using a long datatype for the accountId argument seems like the best way to retrieve the account ID.
LE
Lelia 1 year ago
↳ replying to Shawn
User2: I agree, using a long datatype for the accountId argument seems like the best choice.
LA
Lashandra 1 year ago
↳ replying to Shawn
User1: I think option B is the correct one.
HA
Hassie 1 year ago
I think the correct answer is B.
0/2000 characters

Save Cancel