VMware vRealize Automation 8.x (2022) — Question 25
Which three statements are advantages of using Spring’s Dependency Injection? (Choose three.)
Answer options
- A. Dependency injection can make code easier to trace because it couples behavior with construction.
- B. Dependency injection reduces the start-up time of an application.
- C. Dependencies between application components can be managed external to the components.
- D. Configuration can be externalized and centralized in a small set of files.
- E. Dependency injection creates tight coupling between components.
- F. Dependency injection facilitates loose coupling between components.
Correct answer: C, D, F
Explanation
The correct answers, C, D, and F, highlight that Dependency Injection allows for external management of dependencies, centralizes configuration, and encourages loose coupling. In contrast, options A, B, and E are incorrect as they either misrepresent the nature of Dependency Injection or state outcomes that are not inherent benefits of the practice.