nerdexam
Broadcom-VMware

2V0-72.22 · Question #78

Refer to the exhibit. Which two statements are correct regarding auto-configuration of DataSource and JdbcTemplate beans given a Spring Boot application with only these two dependencies? (Choose two.)

The correct answer is C. A JdbcTemplate bean will be auto-configured. E. A DataSource bean will be auto-configured. See the full explanation below for the reasoning.

Question

Refer to the exhibit. Which two statements are correct regarding auto-configuration of DataSource and JdbcTemplate beans given a Spring Boot application with only these two dependencies? (Choose two.)

Exhibit

2V0-72.22 question #78 exhibit

Options

  • AA DataSource bean will not be auto-configured.
  • BA JdbcTemplate bean will not be auto-configured.
  • CA JdbcTemplate bean will be auto-configured.
  • DA DataSource bean will be auto-configured only if a JdbcTemplate bean is explicitly defined.
  • EA DataSource bean will be auto-configured.

How the community answered

(30 responses)
  • A
    7% (2)
  • B
    3% (1)
  • C
    83% (25)
  • D
    7% (2)

Community Discussion

No community discussion yet for this question.

Full 2V0-72.22 Practice