nerdexam
Broadcom-VMware

2V0-72.22 · Question #9

Refer to the exhibit. Based on the default Spring behavior, choose the correct answer. (Choose the best answer.)

The correct answer is A. One AccountRepository bean will be instantiated since the default scope is singleton. See the full explanation below for the reasoning.

Question

Refer to the exhibit. Based on the default Spring behavior, choose the correct answer. (Choose the best answer.)

Exhibit

2V0-72.22 question #9 exhibit

Options

  • AOne AccountRepository bean will be instantiated since the default scope is singleton.
  • BThree AccountRepository beans will be instantiated as the accountRepository() method will be
  • CMany AccountRepository beans will be instantiated, depending how often accountRepository(),
  • DTwo AccountRepository beans will be instantiated as the accountRepository() method will be

How the community answered

(34 responses)
  • A
    76% (26)
  • B
    6% (2)
  • C
    3% (1)
  • D
    15% (5)

Community Discussion

No community discussion yet for this question.

Full 2V0-72.22 Practice