VMware vRealize Automation 8.x (2022) — Question 35
Which two statements are correct regarding Spring Boot auto-configuration customization? (Choose two.)
Answer options
- A. Use the @AutoConfigureAfter or @AutoConfigureBefore annotations to apply configuration in a specific order.
- B. Disable specific auto-configuration classes by using the exclude attribute on the @EnableAutoConfiguation annotation.
- C. Provide customized auto-configuration by subclassing the provided Spring Boot auto-configuration classes.
- D. Enable component scanning within auto-configuration classes to find necessary components.
- E. Control the order of auto-configuration classes applied with @AutoConfigureOrder.
Correct answer: A, B
Explanation
The correct answers, A and B, are valid because @AutoConfigureAfter and @AutoConfigureBefore allow users to dictate the order of configuration, while the exclude attribute can disable certain auto-configurations. Options C, D, and E are incorrect as they do not represent valid methods for customizing auto-configuration or are not best practices.