IBM WebSphere Portal 8.0 Solution Development C9520-911 Prüfungsfragen mit Lösungen:
1. Given the following code in the portlet.xml file, what line of code returns the value of the "test" initparam. <portlet-class>MyPortlet</portlet-class> <init-param> <name>test</name> <value>test_init_parameter</value> </init-param>
A) renderRequest.getPortalContext().getInitParameter("test");
B) renderRequest.getInitParameter("test");
C) portletConfig.getInitParameter("test");
D) renderResponse.getInitParameter("test");
2. Peter has a custom portlet skin that he wants to deploy to an IBM WebSphere Portal server. Which one of these steps can best be used to deploy his custom skin?
A) Place his skin project in the
B) Use the 'installNewSkin' ConfigEngine task.
C) Use WebDav to deploy to the skinlist entry point.
D) Use the 'uploadNewSkin' ConfigEngine task.
3. Which of the following options is not a valid parameter of the login() method of the Portlet Login service (interface com.ibm.portal.portlet.service.login.LoginService)?
A) javax.security.auth.Subject subject - A security subject to be passed to the WebSphere Application Server login modules that can be null if notneeded.
B) char[] password - The password of the user.
C) java.net.URL redirectURL - The login redirect URL.
D) java.lang.String userID - The user ID of the user.
4. Which of the following statements is not a true statement about the Portlet Login service?
A) 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.
B) 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.
C) The login service can be used to trigger a form-based login to IBM WebSphere Portal from any portlet.
D) 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.
5. 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) portalLoginContext.setRedirectURL("/wps/myportal/acceptAgreement");
B) RequestDispatcher rd = req.getRequestDispatcher("/wps/myportal/acceptAgreement"); rd.forward(req, resp);
C) RequestDispatcher rd = req.getRequestDispatcher("/wps/myportal/acceptAgreement"); rd.include(req, resp);
D) resp.sendRedirect("/wps/myportal/acceptAgreement");
Fragen und Antworten:
| 1. Frage Antwort: C | 2. Frage Antwort: C | 3. Frage Antwort: C | 4. Frage Antwort: D | 5. Frage Antwort: A |






1219 Kundenbewertungen

