VMware vRealize Automation 8.x (2022) — Question 64
Which two statements about BeanFactoryPostProcessors are true? (Choose two.)
Answer options
- A. Allows for the transformation of Spring bean definitions after the beans have been instantiated.
- B. Allows for the transformation of Spring bean definitions before the beans are instantiated.
- C. Creates proxies for the Spring beans that require an extra behavior like transaction management.
- D. PropertySourcesPlaceholderConfigurer implements BeanFactoryPostProcessor and is used to read property values from the Spring Environment.
- E. Detects annotations such as @PostConstruct and @PreDestroy and then invokes appropriate behavior.
Correct answer: B, D
Explanation
The correct answers are B and D. Option B is accurate as BeanFactoryPostProcessors modify bean definitions before the beans are instantiated, which is critical for configuration. Option D is also correct because PropertySourcesPlaceholderConfigurer is indeed a BeanFactoryPostProcessor that reads property values from the Spring Environment, while the other options either describe post-instantiation behavior or specific functionalities not directly related to BeanFactoryPostProcessors.