Which two mechanisms of autowiring a dependency when multiple beans match the dependency's type are correct? (Choose two.)
Suggested Answer: A, D
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
30 comments · newest first
MO
Moon
6 months ago
I feel like A and D cover all bases well.
ST
Stefanie
6 months ago
B is good, but I prefer A and D.
KI
Kina
7 months ago
What about B? It seems valid too.
CA
Candra
7 months ago
I agree, A is definitely correct.
IS
Isaiah
7 months ago
I’m not sure about C, sounds a bit off.
GW
Gwen
7 months ago
I think B is also a valid option.
TI
Timothy
7 months ago
Wait, is @Autowired really optional for fields?
CH
Chantell
8 months ago
A and D are correct!
KE
Keshia
8 months ago
Haha, who needs to know this stuff anyway? Just use trial and error, it'll work out eventually.
TH
Thaddeus
8 months ago
A and D are the way to go. The other options are just plain silly.
PR
Providencia
8 months ago
C and E are definitely wrong. Who would even think of using those?
DE
Denny
9 months ago
B and D seem to be the right options. Gotta love those annotations!
KA
Kallie
9 months ago
A and D are correct. I'm pretty sure about that.
KA
Kathryn
9 months ago
I thought A and E were correct, but I’m confused about when @Autowired is actually required.
OS
Osvaldo
9 months ago
I feel like @Qualifier is really important, but I can't recall if it can stand alone without @Autowired. Maybe C is a possibility?
MA
Malinda
9 months ago
I remember practicing a question similar to this, and I think B and D were the answers we discussed.
LI
Lisbeth
9 months ago
I think it's definitely A and D, but I'm not entirely sure if @Autowired is optional in some cases.
WI
Wilbert
10 months ago
I'm confident that A and B are the correct answers. The @Qualifier annotation can be used on the class, and the @Autowired annotation can be used on either fields or setter methods.
SH
Shenika
10 months ago
I think the key is using the @Qualifier annotation to specify which bean should be injected. The @Autowired annotation is optional, but it's a good practice to use it as well. I'd go with A and D.
KA
Kattie
10 months ago
Hmm, I'm pretty sure the correct answers are B and D. The @Qualifier and @Autowired annotations need to be used together, and they can be used on both setter methods and fields.
NA
Nana
10 months ago
I think A and D are the best options.
LU
Luann
11 months ago
Totally agree with A and D!
TA
Tarra
11 months ago
E could work, but I’m not sure about optional @Autowired.
ST
Stephaine
11 months ago
I'm a bit confused on this one. I know we need to use the @Qualifier and @Autowired annotations, but I'm not sure if we can use them together on a field or if they need to be separate. I'll have to review my notes.
NA
Nadine
11 months ago
I think the answer is A and D. The @Qualifier annotation helps resolve ambiguity when there are multiple beans of the same type, and it can be used with both fields and setter methods.
LU
Ludivina
6 months ago
I’m leaning towards A and C. What do you think?
AR
Arlette
6 months ago
A and D are definitely the best choices!
CY
Cyril
6 months ago
I think B and D could work as well.
KA
Kayleigh
6 months ago
A and D seem right to me too.
JA
Jaleesa
10 months ago
I agree with A and D. Makes sense!