VMware vRealize Automation 8.x (2022) — Question 31

Which two statements are true regarding bean creation? (Choose two.)

Answer options

Correct answer: B, D

Explanation

Option B is correct because a Spring bean can indeed be created automatically by using the @Component annotation along with component scanning. Option D is also correct as it allows for explicit bean creation using methods annotated with @Bean in configuration classes. Options A, C, and E are incorrect because @Autowired is used for dependency injection, not for bean creation, and @Bean does not require the component-scanner to create beans.