Which two statements are true regarding bean creation? (Choose two.)
Suggested Answer: B, 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
25 comments · newest first
EU
Eun
12 months ago
I’m surprised @Bean is used for explicit creation, I always thought it was for something else!
CY
Cyril
12 months ago
D is spot on, but B is the way to go for implicit creation!
KI
Kimberlie
1 year ago
Wait, can you really create beans with just @Autowired? Sounds off.
GE
Geoffrey
1 year ago
I thought A was correct too, but I guess not.
WE
Werner
1 year ago
B and D are definitely true!
LA
Lachelle
1 year ago
I might be confused, but I thought @Bean was for methods, not classes, so maybe C isn't correct?
JU
Justine
1 year ago
I feel like option D sounds right because we practiced using @Bean in our configuration classes to create beans explicitly.
SV
Svetlana
1 year ago
I'm not so sure about A; I remember @Autowired is more for dependency injection rather than creating beans.
GE
Geraldine
1 year ago
I think option B is definitely true since we talked about using @Component for implicit bean creation in class.
VE
Verda
1 year ago
I'm a bit confused by the wording of these options. I'll need to re-read the question and think through each answer carefully before selecting.
EM
Emeline
1 year ago
Okay, let me think this through. I know beans can be created using @Component and @Bean annotations, but I'm not sure about the details. I'll have to carefully read through the options.
KR
Kristeen
1 year ago
Hmm, I'm a bit unsure about the difference between implicit and explicit bean creation. I'll need to review my notes on that.
GL
Glen
1 year ago
This question seems pretty straightforward. I'm pretty confident I know the correct answers here.
CO
Corrina
1 year ago
I've got this! The key is understanding the difference between @Component and @Bean. A and D are the correct answers.
DA
Daniel
1 year ago
I'm feeling pretty confident about this one. Option C, the Database Migration Assistant, is definitely the way to go. It's designed for exactly this kind of scenario, and it should make the migration process a lot smoother and more efficient.
HO
Hoa
1 year ago
This seems like a straightforward question about the Approved Supplier List (ASL) and which entry would take precedence. I'll need to carefully consider the differences between local and global entries, as well as the scope of each type of entry.
HA
Harley
2 years ago
Hmm, that's a good point. I can see how @Component could be used to create beans implicitly.
JA
Jarod
2 years ago
I'm with Ilene, options B and D make more sense to me. @Component and @Bean can both create beans.
IL
Ilene
2 years ago
I disagree, I believe it's option B and D. @Component annotation can also create beans implicitly.
HA
Harley
2 years ago
I think options A and D are correct. You can create beans explicitly using @Autowired and @Bean annotations.
LE
Leonora
2 years ago
I agree with Judy, and for statement E, I don't think @Autowired is used to create beans, it is used for dependency injection.
JU
Judy
3 years ago
I don't think statement C is correct, because @Bean is used to create beans explicitly, not implicitly.
CE
Cecily
3 years ago
That's a good point, @Component does create beans implicitly. But what about statement C and E?
LE
Leonora
3 years ago
I believe statement B is also true, as @Component annotation can create beans implicitly.
CE
Cecily
3 years ago
I think statements A and D are true because @Autowired and @Bean are commonly used for creating Spring beans.