nerdexam
Broadcom-VMware

2V0-72.22 · Question #50

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

The correct answer is A. Add @PathVariable("id") String accountId argument to the update() handler method. See the full explanation below for the reasoning.

Question

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

Options

  • AAdd @PathVariable("id") String accountId argument to the update() handler method.
  • BAdd @PathVariable long accountId argument to the update() handler method.
  • CAdd @RequestParam long accountId argument to the update() handler method.
  • DAdd @RequestParam("id") String accountId argument to the update() handler method.

How the community answered

(36 responses)
  • A
    81% (29)
  • B
    3% (1)
  • C
    6% (2)
  • D
    11% (4)

Community Discussion

No community discussion yet for this question.

Full 2V0-72.22 Practice