Question 1
Which annotation is used to mark a class as a Spring-managed component eligible for component scanning?
Correct Answer:
@Component
Question 2
What is the default scope of a Spring bean defined with @Component or @Bean?
Correct Answer:
singleton
Question 3
Which annotation, placed on a method inside an @Configuration class, registers the method's return value as a bean in the ApplicationContext?
Correct Answer:
@Bean
Question 4
Which dependency injection style does Spring recommend as a best practice for required dependencies?
Correct Answer:
Constructor injection
Question 5
Given the following snippet, what does Spring inject into the AccountService constructor? @Service public class AccountService { private final AccountRepository repo; public AccountService(AccountRepository repo) { this.repo = repo; } }
Correct Answer:
The AccountRepository bean from the ApplicationContext
Question 1
Exam overview

About this Exam

Prepare with the VMware Spring Professional Develop Practice Questions - VMware Spring Professional Develop (2V0-72.22 EDU-1202) Exam practice quiz. This question bank includes 100 questions covering spring, annotation, bean, class, and method. Use it to review important concepts, identify knowledge gaps, and build confidence for the related exam, course, or assessment.

More details

Additional Information

VMware Spring Professional Develop Practice Questions - VMware Spring Professional Develop (2V0-72.22 EDU-1202) Exam

This practice set contains 100 questions from the matching question bank and focuses on spring, annotation, bean, class, and method. Work through each question carefully, review the provided solutions, and revisit topics that need more study before your next attempt.

This is an independent study resource intended for practice and review; it is not an official examination or an endorsement by any organization named in the title.

Quiz information

Frequently Asked Questions

The complete question count is available after full access is unlocked.
No fixed duration is currently configured for this quiz.
Question explanations are included where they are available in the quiz content, helping you review the reasoning after answering.
Yes. You can retake the practice test again as you continue studying during your available access period.
After your access is confirmed, you can continue into the complete practice exam from this quiz flow.
Unless explicitly stated otherwise, this page provides independent practice material for study and exam preparation and is not the official examination itself.
Keep studying

Related Questions