2V0-72.22 Annotation Practice Questions
The free 2V0-72.22: Professional Develop VMware Spring questions that deal with annotation, with answers and explanations. The full bank and the timed practice test cover every topic the exam asks about.
Question #1
A developer is building a Spring Boot application. Which annotation is used to start the application?
Correct answer: C
Explanation
@SpringBootApplication is a composite annotation that enables auto-configuration and component scanning.
Question #5
A developer wants to secure a REST API. Which Spring annotation is used to enforce security?
Correct answer: D
Explanation
The @PreAuthorize annotation is used to define security constraints on methods in a Spring application.
Question #8
In which of the following scenarios is @Autowired annotation used?
Correct answer: C
Explanation
The @Autowired annotation is used in Spring to inject dependencies into a class.
Question #10
What is the purpose of the @Service annotation in a Spring application?
Correct answer: D
Explanation
The @Service annotation is used to mark a class as a service component in the service layer of a Spring application.
Continue with 2V0-72.22: Professional Develop VMware Spring
Unlock the full question bank
You have read the first 10 questions. A subscription opens every question in 2V0-72.22: Professional Develop VMware Spring, the full timed practice test, and your progress and weak-topic reporting.
Single exam
$19.99for 30 days
Full question bank and practice test for one exam, for 30 days.
Single exam
$49.99for 1 year
One exam for a full year. Nothing renews and nothing to cancel.
Full access
$39.99/mo
Every exam in the catalogue, month to month.
Full access
$199.99/yr
Every exam in the catalogue for a year.
Already subscribed? Sign in to pick up where you left off.
All 2V0-72.22: Professional Develop VMware Spring practice questions →
