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
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)- A7% (2)
- B3% (1)
- C83% (25)
- D7% (2)
Community Discussion
No community discussion yet for this question.
