C2040-911 Exam Details

  • Exam Code
    :C2040-911
  • Exam Name
    :IBM WebSphere Portal 8.0 Solution Development
  • Certification
    :IBM Certifications
  • Vendor
    :IBM
  • Total Questions
    :65 Q&As
  • Last Updated
    :

IBM C2040-911 Online Questions & Answers

  • Question 1:

    Rafael needs to create a way for non-administrator users to change the look of the Portal 8.0 theme. Which solution will provide the simplest answer?

    A. Use multiple custom themes.
    B. Create new dynamic content spots to serve multiple CSS files.
    C. Use the new module and profile features to define and load different CSS.
    D. Create a custom theme style to be deployed in the theme's CSS directory, and modify styles.json to include the style.

  • Question 2:

    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 name of the vendor of the IBM WebSphere Portal server.
    B. It contains the name of the vendor of the client browser or device.
    C. It contains the value of the configuration key "vendor" for the Profile configuration service.
    D. It contains the value of the "vendor" attribute for an identified or authenticated user or null for an anonymous user.

  • Question 3:

    Quinn is creating a module that adds a customized Dojo lightbox for a disclaimer to overlay the screen as soon as the page loads using dojo.addOnLoad. She has already created myLightBox.css and intends to write the JavaScript event triggering the lightbox inline. What must Quinn do to ensure she gets the desired functionality at minimal performance cost?

    A. Quinn should add all this code right after the theme's tag to ensure the functionality happens as soon as the body markup is loading.
    B. Quinn must add the tag pointing to myLightBox.css into the block. The JavaScript can be added anywhere therein as long asthe page uses the nondeferred profile and the event is added to the event handler
    C. Quinn must create a CSS sub-contribution type in her module pointing to myLightBox.css. The JavaScript can be added anywhere therein aslong as the page uses the default deferred profile and the event is added to the event handler.
    D. Quinn should really write all CSS and JavaScript inline for performance reasons so secondary requests to the server are never made.

  • Question 4:

    Which of the following statements is true when using a resource URL in AJAX?

    A. Changing state of the portlet is not allowed during the serveResource() method.
    B. The portlet mode and window state can be changed during the serveResource() method.
    C. New render parameters can be set during the serveResource() method.
    D. Portlet preferences can be set during the serveResource() method.

  • Question 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. resp.sendRedirect("/wps/myportal/acceptAgreement");
    B. portalLoginContext.setRedirectURL("/wps/myportal/acceptAgreement");
    C. RequestDispatcher rd = req.getRequestDispatcher("/wps/myportal/acceptAgreement"); rd.forward(req, resp);
    D. RequestDispatcher rd = req.getRequestDispatcher("/wps/myportal/acceptAgreement"); rd.include(req, resp);

  • Question 6:

    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 7:

    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 8:

    A software delivery executive, by the name of Fry, is developing a custom theme called Popplers. He has deployed the theme with six custom layouts (Lla, Zdb, Bdr, Amy, Pff and Hms) at dav:fs- type1/themes/Popplers/layout-templates.

    Over the past few days, he has been trying to scope three of these layouts (Lla, Zdb and Bdr) however, none of them are visible in the WebSphere Portal 8.0 Layout tab.

    He has performed the following steps:

    Refreshed browser's cache 4) Reloaded the page What is the problem with Popplers based on the information provided?

    A. One cannot partially scope custom layouts in a theme. Just like the default Portal 8.0 theme, you must scope all defined custom layouts.
    B. Step 1 is incorrect. Changing the URL value to ibmCfg.themeConfig.themeRootURI+"/system/layouts.json" will resolve the issue.
    C. Step 2 is incorrect because layouts must be listed alphabetically - listing them as Bdr, Lla and then Zdb will correct the issue.
    D. The last two steps are in the wrong order - perform step 4 first and then step 3 to solve the problem.

  • Question 9:

    Chris wants to do performance tuning in his mobile theme. What would be the first step he should take to achieve this task?

    A. Apply caching rules to the HTTP server.
    B. Use a third-party minification tool to compress the JavaScript files.
    C. Change dynacache settings.
    D. Configure cache manifest file.

  • Question 10:

    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.

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.