VMware vRealize Automation 8.x (2022) — Question 36

Spring puts each bean instance in a scope. What is the default scope? (Choose the best answer.)

Answer options

Correct answer: B

Explanation

The default scope for beans in Spring is 'singleton', meaning that only one instance of the bean will be created and shared throughout the application context. The 'prototype' scope creates a new instance each time it is requested, while 'request' and 'session' scopes are used in web applications for specific lifecycles tied to HTTP requests and sessions.