Exam Details

  • Exam Code
    :C2040-911
  • Exam Name
    :IBM WebSphere Portal 8.0 Solution Development
  • Certification
    :IBM Certified Solution Developer
  • Vendor
    :IBM
  • Total Questions
    :65 Q&As
  • Last Updated
    :Apr 10, 2025

IBM IBM Certified Solution Developer C2040-911 Questions & Answers

  • Question 41:

    Which of the following options is valid about downloadable portlets from the IBM Collaboration Solutions Catalog?

    A. Only portlets developed by IBM are hosted by the Collaboration Solutions Catalog website.

    B. Portlets available for download follow open standards.

    C. Portlets available for download are free, trial-based, or fee-based.

    D. Portlets available for download should not be used in the production environment.

  • Question 42:

    Matt is developing an interactive AJAX widget that will allow content approvers to review content without leaving their home page. Which IBM Web Content Manager API feature should he use?

    A. Web Services

    B. JSP Tags

    C. REST Services

    D. Managed Pages

  • Question 43:

    If Lola needs to create a resource collection, which of the following options must she define?

    A. An instance of the following:

    -com.ibm.websphere.personalization.ResourceCollection

    B. An instance of either of the following:

    -com.ibm.websphere.resources.ResourceCollectionImpl

    -com.ibm.websphere.resources.ResourceManager

    C. An instance of one of the following:

    -com.ibm.websphere.personalization.resources.Resource

    -com.ibm.websphere.personalization.resources.ResourceManager3

    -com.ibm.websphere.personalization.resources.ResourceDomain3

    -com.ibm.websphere.personalization.resources.AuthIDTranslator

    D. An instance of either of the following:

    -com.ibm.websphere.personalization.ResourceCollectionImpl

    -com.ibm.websphere.resources.ResourceManager

  • Question 44:

    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 values must be the last entries in the parameter value array.

    C. The public render parameter is appended with a unique identifier to distinguish it from the action/resource parameter.

    D. The public render parameter takes precedence and overwrites the value of the action/resource parameter.

  • Question 45:

    PreferencePortlet is Portlet Specification 2.0-compliant and the system is running IBM WebSphere Portal 8.0.

    What is the output of the following code?

    public PreferencePortlet extends GenericPortlet{ protected void processAction(ActionRequest actionRequest, ActionResponse){ actionRequest.getPreferences().setValue("test","ViewModePreferenceValue"); actionRequest.getPreferences ().store(); } protected void doView(RenderRequest renderRequest, RenderResponse renderResponse) throws PortletException, IOException { // Generate action URL }

    A. The container throws java.lang.IllegalStateException because it is not allowed to change preferences in the processAction() method.

    B. The code compiles and executes fine. It stores a "test" preference at the end of the processAction() method call.

    C. The container throws javax.portlet.ReadOnlyException because it is only allowed to view preferences in the processAction() method.

    D. This code results in a compiler error because PortletPreference does not have the store() method.

  • Question 46:

    The following section of a portlet deployment descriptor defines the cache setting for a portlet:

    300 private

    What is the meaning of this cache definition?

    A. The content should be cached for 300 seconds and must not be shared across users.

    B. The content should be cached for 300 milliseconds and must not be shared across users.

    C. The content should be cached for 300 seconds and can be shared across users.

    D. The content should be cached for 300 milliseconds and can be shared across users.

  • Question 47:

    Given the following code in the portlet.xml file, what line of code returns the value of the "test" init- param. MyPortlet test test_init_parameter

    A. renderRequest.getInitParameter("test");

    B. renderRequest.getPortalContext().getInitParameter("test");

    C. portletConfig.getInitParameter("test");

    D. renderResponse.getInitParameter("test");

  • Question 48:

    Evan wants to develop a portlet to act as a target using click-to-action. He wants to develop a client-side click-to-action handler. Which best describes the ways that he can get the source data submitted by the source portlet?

    A. He can retrieve the source form and the input inside from the page Document Object Model.

    B. He can retrieve the source data from the window.ibm.portal.c2a.event.value global variable.

    C. Either of the above.

    D. None of the above.

  • Question 49:

    Bill is developing a portlet that uses AJAX to retrieve information from the server. In the serveResource() method first he is setting "AdminName" request attribute and then forwarding control to a JSP for generating markup. Using best practices, how should he print the "AdminName" attribute inside the JSP?

    A. <%=resourceRequest.getAttribute("AdminName")%>

    B. <%=renderRequest.getAttribute("AdminName")%>

    C. ${requestScope.AdminName}

    D. ${portalRequest.AdminName}

  • Question 50:

    The following code defines the selectEmployee() method in a portlet:

    @processAction(name=select) void selectEmployee(ActionRequest, ActionResponse) throws PortletException, java.io.IOException { }

    To use the portlet action dispatching, which of the following key-value pairs must be set as a parameter in the HTML form?

    A. processAction / select

    B. processAction / selectEmployee

    C. javax.portlet.action / select

    D. javax.portlet.action / selectEmployee

Tips on How to Prepare for the Exams

Nowadays, the certification exams become more and more important and required by more and more enterprises when applying for a job. But how to prepare for the exam effectively? How to prepare for the exam in a short time with less efforts? How to get a ideal result and how to find the most reliable resources? Here on Vcedump.com, you will find all the answers. Vcedump.com provide not only IBM exam questions, answers and explanations but also complete assistance on your exam preparation and certification application. If you are confused on your C2040-911 exam preparations and IBM certification application, do not hesitate to visit our Vcedump.com to find your solutions here.