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.)
Suggested Answer: C, E
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
14 comments · newest first
YA
Yasuko
11 months ago
Yup, E is definitely correct!
FR
Francine
11 months ago
I think a JdbcTemplate bean won't be auto-configured.
TW
Twila
11 months ago
A DataSource bean will be auto-configured.
LE
Lettie
12 months ago
Wait, are you sure about that DataSource thing?
GE
Gertude
12 months ago
Totally agree, JdbcTemplate should be auto-configured too!
JU
Julie
12 months ago
I’m uncertain about option D; it seems like it could be true, but I thought DataSource was usually auto-configured by default.
EV
Evette
1 year ago
I feel like option A could be correct, but I also remember something about JdbcTemplate needing a DataSource to work properly.
ER
Ernest
1 year ago
I remember practicing a question like this where JdbcTemplate was auto-configured, but I can't recall if it was dependent on the DataSource.
JO
Johanna
1 year ago
I think a DataSource bean will be auto-configured if the right dependencies are present, but I'm not completely sure.
MA
Malcolm
1 year ago
I'm not entirely sure about this, but I'll give it my best shot. I'll eliminate the options that don't seem right and try to narrow it down.
SU
Sueann
1 year ago
I'm feeling pretty confident about this one. I've covered this topic in my studies, so I should be able to identify the correct statements.
IZ
Izetta
1 year ago
Okay, let's see. I think the key is understanding when the DataSource and JdbcTemplate beans are auto-configured. I'll try to reason through the options logically.
MA
Mabel
1 year ago
Hmm, I'm a bit confused on the auto-configuration rules here. I'll need to review my notes on Spring Boot's default behavior for these beans.
GE
Germaine
1 year ago
This looks like a tricky one. I'll need to carefully read through the options and think about the auto-configuration behavior of DataSource and JdbcTemplate beans in a Spring Boot app.