2V0-72.22PSE · Question #26
What are the two reasons Spring be used to build a Java application? (Choose two.)
The correct answer is B. Spring provides a Dependency Injection container. E. Spring provides abstractions over infrastructure such as persistence and messaging. Spring is fundamentally a Dependency Injection (DI) container (B) - it manages object creation and wiring so you don't manually instantiate dependencies - and it provides abstractions over infrastructure (E) like JPA for databases, JMS for messaging, and Spring Data, shielding…
Question
What are the two reasons Spring be used to build a Java application? (Choose two.)
Options
- ASpring automates a Java application build.
- BSpring provides a Dependency Injection container.
- CSpring automates deployment of Java applications to all of the major cloud providers.
- DSpring provides comprehensive Java IDE support.
- ESpring provides abstractions over infrastructure such as persistence and messaging.
How the community answered
(43 responses)- A2% (1)
- B86% (37)
- C5% (2)
- D7% (3)
Explanation
Spring is fundamentally a Dependency Injection (DI) container (B) - it manages object creation and wiring so you don't manually instantiate dependencies - and it provides abstractions over infrastructure (E) like JPA for databases, JMS for messaging, and Spring Data, shielding you from low-level boilerplate. Option A is wrong because Spring is not a build tool; that's the job of Maven or Gradle. Option C is false because Spring doesn't automate cloud deployment - tools like Spring Cloud or external CI/CD pipelines handle that, and no single framework covers "all major cloud providers" automatically. Option D is incorrect because IDE support is provided by the IDE vendors themselves (IntelliJ, Eclipse), not by Spring. Memory tip: Think of Spring's core value as "wiring + wrapping" - it wires your objects together (DI container) and wraps messy infrastructure (persistence, messaging) with clean APIs.
Topics
Community Discussion
No community discussion yet for this question.