2V0-72.22PSE · Question #85
What Spring Boot Starter can be used for a Spring REST Application?
The correct answer is A. spring-boot-starter-web. spring-boot-starter-web (option A) is correct because it bundles everything needed for a Spring REST application: Spring MVC, an embedded Tomcat server, Jackson for JSON serialization, and validation support - all in one dependency. Options B and C (spring-boot-starter-rest and…
Question
What Spring Boot Starter can be used for a Spring REST Application?
Options
- Aspring-boot-starter-web
- Bspring-boot-starter-rest
- Cspring-boot-starter-rest-mvc
- Dspring-boot-starter-web-mvc
How the community answered
(41 responses)- A95% (39)
- B2% (1)
- D2% (1)
Explanation
spring-boot-starter-web (option A) is correct because it bundles everything needed for a Spring REST application: Spring MVC, an embedded Tomcat server, Jackson for JSON serialization, and validation support - all in one dependency. Options B and C (spring-boot-starter-rest and spring-boot-starter-rest-mvc) do not exist in the Spring Boot ecosystem and are fabricated distractors. Option D (spring-boot-starter-web-mvc) is also non-existent; while "Spring MVC" is the underlying framework, the actual starter artifact is simply named -web.
Memory tip: Think "web = the whole package" - REST APIs are web applications, so the -web starter is the one-stop shop. If you see -rest anywhere in a starter name, it's a trap.
Topics
Community Discussion
No community discussion yet for this question.