A backing bean for a page must hold its value over multiple requests for the current user. Which three bean
scopes are applicable? (Choose three.)
A.
requestScope
B.
backingBeanScope
C.
viewScope
D.
pageFlowScope
E.
sessionScope
F.
applicationScope
Explanation:
C: View scope: The object is available until the view ID for the current view activity changes. This becomes
handy when you use partial page rendering. If you have a dependent list box, you might send a server request
to refresh the list box. When a response is returned, the request scope will be gone but the view scope will be
still there.
D: A pageFlow scope exists for each task flow instance and has a lifespan between request and session scope.
The lifetime of the scope spans across all pages in a bounded task flow.
E: Session scope: The object is available for the duration of the session, which is user instance-specific. A use
case for a session scope bean is a user info bean that stores information about a user, which is read from the
database or an LDAP server, to avoid unnecessary queries.
Incorrect Answers:
A: Request scope: The object is available from the time an HTTP request is made until a response is sent back
to the client. From another perspective, a request scope starts with a request to be issued from one view to
another for navigation cases that don’t perform a redirect but a default server-side forward. The scope spans
across all non-view activities that follow the view of interest to the next view activity.
B: The backing bean scope is comparable to the request scope, with the difference in that it exists for a specific
client component. In general, all managed beans used in reusable components should be configured to
backingBean scope. For example, bounded task flows that are designed to be regions on a page should use
the backingBean scope if more than one instance of the task flow is expected to be on a single page.
F: Application scope: An application scope object is available for the duration of the application and is shared
among users. This scope may be used to hold static objects that are the same for all users.
http://xmlandmore.blogspot.se/2009/10/types-of-scopes-in-fusion-web.html