Refer to the exhibit.

Which statement is true? (Choose the best answer.)
Suggested Answer: C
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
33 comments · newest first
EA
Earleen
12 months ago
A is definitely not true. Interfaces are the way to go for repositories!
TY
Ty
12 months ago
D seems off to me. You can use interfaces without declaring them as beans.
AL
Alaine
1 year ago
Wait, are JPA annotations really necessary for Spring Data JDBC?
BE
Bernardo
1 year ago
Totally agree with C! Makes life so much easier.
EM
Emilio
1 year ago
I think C is the right answer. Spring Data JPA does that automatically.
TR
Tresa
1 year ago
I’m a bit confused about D. I thought any class implementing a repository needs to be a Spring Bean, but I’m not sure if it’s mandatory for all cases.
ER
Erick
1 year ago
I practiced a similar question about repository implementations last week, and I think C is true because Spring Data JPA does generate implementations automatically.
GE
Gerald
1 year ago
I’m not entirely sure, but I feel like JPA annotations are more relevant for JPA itself rather than Spring Data JDBC. So B might not be correct.
LU
Luis
1 year ago
I remember discussing the differences between classes and interfaces in our last study group. I think CustomerRepository can actually be an interface, so A seems off.
MI
Michal
1 year ago
Oof, this is a tough one. I'm not as familiar with the specifics of Spring Data as I'd like to be. I'll need to think through each option carefully and see if I can eliminate any that are clearly incorrect.
AR
Ardella
1 year ago
This is a good test of my knowledge of Spring Data. I'll need to draw on my understanding of the different Spring Data modules and how they work with repositories. I'm feeling confident I can figure this out.
DE
Delsie
1 year ago
Okay, I think I've got a handle on this. The key is to identify the true statement about the CustomerRepository interface. I'll carefully consider each option and eliminate the ones that don't seem quite right.
LA
Lai
1 year ago
Hmm, I'm a bit confused by the options here. I'll need to make sure I understand the differences between a class and an interface, as well as the role of JPA annotations and Spring Beans in this context.
CA
Carmen
1 year ago
This looks like a tricky question about Spring Data repositories. I'll need to carefully review the options and think through the differences between Spring Data JPA and Spring Data JDBC.
CO
Cortney
2 years ago
I'm not sure, but I think D could also be correct because a class implementing CustomerRepository needs to be declared as a Spring Bean.
FA
Fannie
2 years ago
I agree with Kristian, C makes sense because Spring Data JPA can automatically generate the implementation.
ET
Ettie
2 years ago
C is the way to go. Spring Data JPA can automatically generate the implementation of the repository interface.
LO
Lore
2 years ago
C) An implementation of this repository can be automatically generated by Spring Data JPA.
LA
Lajuana
2 years ago
B) JPA annotations are required on the Customer class to successfully use Spring Data JDBC.
MI
Miles
2 years ago
A) CustomerRepository should be a class, not an interface.
TI
Tiffiny
2 years ago
Haha, CustomerRepository as a class? That's a good one! Definitely option A is not the right answer.
JI
Jillian
2 years ago
True, a class implementing CustomerRepository needs to be a Spring Bean.
EL
Eleonora
2 years ago
Yeah, option C seems more likely. Spring Data JPA can generate the implementation.
LE
Leonora
2 years ago
Haha, I agree! CustomerRepository should definitely be an interface.
RO
Rosamond
2 years ago
B seems like the right answer to me. JPA annotations are required on the Customer class to work with Spring Data JDBC.
FL
Floyd
2 years ago
Yes, B is the correct answer. JPA annotations are a must for Spring Data JDBC.
VA
Valentine
2 years ago
Definitely, JPA annotations are essential for Spring Data JDBC to function correctly.
CA
Cathern
2 years ago
I agree, without JPA annotations, Spring Data JDBC won't work properly.
GR
Graciela
2 years ago
B is correct. JPA annotations are necessary for Spring Data JDBC.
KR
Kristian
2 years ago
I think the answer is C.
JE
Jettie
2 years ago
I think the correct answer is D. The repository interface needs to be implemented and declared as a Spring Bean for Spring Data to generate the implementation automatically.
VE
Venita
2 years ago
User 2
PA
Paz
2 years ago
User 1