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:
What does the collaborative services API allow the portlet developer to do?
A. The API provides the IBM Connections business cards capability to a custom portlet.
B. The API gives the user access to Microsoft Exchange and IBM Lotus Notes inboxes when developing custom portlets.
C. The API provides person tags to custom portlets.
D. The API allows the user to connect to social services such as Twitter and Facebook for custom portlets.
正解:C
質問 3:
A client wants to write several portlets for their new website. Each portlet must be labeled and record some trace information whenever it is accessed. The portlets must share common information with each other as well. When discussing best practices options with the client, which of the following would not be recommended?
A. JSPs should be used to separate output and functionality of the portlets.
B. Trace information can be logged to log files.
C. Each portlet can be labeled by its own title bar.
D. Portlets communicate via writing to a common file in the root directory.
正解:D
質問 4:
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
質問 5:
What is the outcome if a non-deferred module has a requirement on a deferred module?
A. The server-side combiner framework will ignore the dependency on the deferred module.
B. The server-side combiner framework demotes the non-deferred module to be deferred.
C. The server-side combiner framework promotes the deferred module to be non-deferred.
D. The server-side combiner framework will ignore both the non-deferred and the deferred module.
正解:C
質問 6:
Which of the following statements describes the value of the Vendor variable from the following portlet code? Profile p = (Profile) portletRequest.getAttribute(PortletRequest.CCPP_PROFILE); String vendor = p.getAttribute("Vendor").toString();
A. It contains the value of the "vendor" attribute for an identified or authenticated user or null for an anonymous user.
B. It contains the value of the configuration key "vendor" for the Profile configuration service.
C. It contains the name of the vendor of the IBM WebSphere Portal server.
D. It contains the name of the vendor of the client browser or device.
正解:D