Which of the following statements is not a true statement about the Portlet Login service?
A. The login service can be used to change the default behavior in reaction to particular errors that might occur during the login, such asredirecting the user to a change password page if the user's password is expired.
B. The login service can be used to trigger a form-based login to IBM WebSphere Portal from any portlet.
C. The login service can be used to retrieve a com.ibm.portal.um.User object representing the current user and providing the current user'sprofile attributes.
D. The login service can be used to propagate information to the WebSphere Portal login, for example, in the javax.security.auth.Subject objectpassed on to the JAAS login.
正解:C
質問 2:
Bill is developing a mail portlet. One of the requirements of the mail portlet is that it should prompt the user for a user name and password on the first access, then store that information in the credential vault. After that, the mail portlet should read the credential from the credential vault and use it for logging in to the external application. Which type of credential slot should Bill use?
A. Portlet private slot
B. Administrative slot
C. Shared user slot
D. System slot
正解:A
質問 3:
In the case of a processAction or serveResource call, what is the expected behavior if an action or resource parameter has the same name as a public render parameter?
A. The public render parameter is ignored.
B. The public render parameter is appended with a unique identifier to distinguish it from the action/resource parameter.
C. The public render parameter takes precedence and overwrites the value of the action/resource parameter.
D. The public render parameter values must be the last entries in the parameter value array.
正解:D
質問 4:
Evan needs to share action URL parameters used in a portlet with another portlet. In the binding section of the WSDL files used for specifying a portlet's participation with the property broker, an action URL parameter can be bound to several scopes. Which one of the following options best describes the scopes that Evan can use to share the action URL parameters using the property broker?
A. Request attribute, Request parameter, or Session attribute
B. Session attribute only
C. Request parameter or Session attribute
D. Page attribute, Request attribute, Request parameter, Session attribute
正解:A
質問 5:
Stella is developing a CSS sub-contribution component for her custom module. Which of the followings statements is incorrect regarding CSS sub-contribution types?
A. CSS sub-contributions are only valid under a head contribution type.
B. When debug is enabled, separate link elements are generated for each CSS URL.
C. CSS sub-contributions are valid under both head and config contribution types.
D. The URL referenced in CSS sub-contribution must return valid CSS syntax.
正解:C
質問 6:
The following code sample is an excerpt from an implementation of a custom ExplicitLoginFilter.

Evan needs to implement custom logic to check whether the user needs to accept an updated user agreement. Which one of the following lines of code allows the user to be sent the friendly IBM WebSphere Portal URL 'acceptAgreement,' if the checkUser method returns true?
A. RequestDispatcher rd = req.getRequestDispatcher("/wps/myportal/acceptAgreement"); rd.forward(req, resp);
B. resp.sendRedirect("/wps/myportal/acceptAgreement");
C. portalLoginContext.setRedirectURL("/wps/myportal/acceptAgreement");
D. RequestDispatcher rd = req.getRequestDispatcher("/wps/myportal/acceptAgreement"); rd.include(req, resp);
正解:C