BlackFriday 2024! Hurry Up, Grab the Special Discount - Save 25% - Ends In 00:00:00 Coupon code: SAVE25
Welcome to Pass4Success

- Free Preparation Discussions

VMware Exam 2V0-72.22 Topic 3 Question 48 Discussion

Actual exam question for VMware's 2V0-72.22 exam
Question #: 48
Topic #: 3
[All 2V0-72.22 Questions]

Refer to the exhibit.

Which two statements are correct regarding the HelloAutoConfig auto-configuration class when it is specified in the META-INF/spring.factories file? (Choose two.)

Show Suggested Answer Hide Answer
Suggested Answer: B, D

Contribute your Thoughts:

Rodney
5 months ago
E is a bit too aggressive. I don't think the auto-configuration should just replace any existing beans, that would be too disruptive.
upvoted 0 times
...
Annalee
5 months ago
Haha, C is just too specific. Why would the auto-configuration only work if the class isn't on the classpath? That doesn't make much sense.
upvoted 0 times
...
Casie
5 months ago
B seems right to me. The auto-configuration should only kick in if there are no other HelloService beans already defined.
upvoted 0 times
Marylou
4 months ago
Agreed. It's important to understand when the auto-configuration will take effect.
upvoted 0 times
...
Reynalda
4 months ago
Yes, option B is the correct one. The auto-configuration will only create a HelloService bean if there are no other beans of the same type already defined.
upvoted 0 times
...
Ressie
4 months ago
Yeah, that makes sense. It should only kick in when needed.
upvoted 0 times
...
Reynalda
5 months ago
I agree, option B is correct. The auto-configuration class will only create a HelloService bean if there isn't already one in the ApplicationContext.
upvoted 0 times
...
Rocco
5 months ago
Yeah, I agree. It makes sense that it would only kick in when there are no other HelloService beans in the ApplicationContext.
upvoted 0 times
...
Camellia
5 months ago
I think B is correct. The auto-configuration should only create a HelloService bean if there isn't already one.
upvoted 0 times
...
Ashleigh
5 months ago
I think B is correct. It will only create a HelloService bean if there isn't one already.
upvoted 0 times
...
...
Leontine
6 months ago
I think A and D are correct. The auto-configuration class should create a HelloService bean if it's on the classpath, but not replace any existing ones.
upvoted 0 times
Xuan
5 months ago
User 2
upvoted 0 times
...
Laurel
5 months ago
User 1
upvoted 0 times
...
...

Save Cancel