Practice questions, in-depth guides, and everything you need to pass the Spring Certified Professional exam — from Spring Core to Spring Boot and beyond.
See the quality of explanations before committing to the full course.
Question 1 / 2
Spring Core · medium difficulty
Refer to the code:
@Configuration
public class MyConfig {
@Bean
public AccountRepository accountRepository() {
return new JdbcAccountRepository();
}
@Bean
public TransferService transferService() {
TransferServiceImpl service = new TransferServiceImpl();
service.setAccountRepository(accountRepository());
return service;
}
@Bean
public AccountService accountService() {
return new AccountServiceImpl(accountRepository());
}
}
Based on the default Spring behavior, how many AccountRepository beans will be instantiated?
A–D choose · Enter check
Want more questions?
2600+ exam-style questions with explanations like these, timed 60-question mock exams and topic quizzes.
6 exam sections from the official 2V0-72.22 blueprint
Free in-depth guides on every exam topic.
Spring profiles and external properties for the 2V0-72.22 exam — property precedence order, @Value vs @ConfigurationProperties, @Profile, YAML, SpEL and traps.
Master Spring MVC & REST for the 2V0-72.22 exam — DispatcherServlet, @RestController, request mapping, ResponseEntity, content negotiation, and exception handling.
Master @Transactional for the VMware Spring Professional exam — propagation, isolation, rollback rules, self-invocation, and proxy gotchas with code examples.
Practice until nothing on the exam is new — 2600+ questions covering every objective in the official exam guide.
14-day money-back guarantee · Instant access
Reviews from students who prepared with SpringCertified.
“I passed the exam with a score of 465/500. If you're wondering whether this is worth it: absolutely, 100% yes.”
— Danny
“The questions are very close to the real exam and the explanations are clear and helpful. It really helped me prepare for the Spring certification. Highly recommend.”
— Cameron
“The huge number of questions was impressive and the quality of explanations outstanding. I passed the exam effortlessly and achieved a superb score. The best preparation for the exam.”
— Katarzyna
“Studying the failed practice test questions last few days did the trick and I easily passed the actual exam today. The exam did not mostly focus on the basics but rather the particulars of things (like your practice exam does). Money well spent!!”
— James
Everything you need to know before you start studying.