C2040-915 Question And Answer
QUESTION NO: 1
The IBM Lotus Connections portlets provide access to collaboration and social networking
features from Lotus Connections, such as Activities and Blogs. Which portlets are available from the built-in Lotus Connections portlets package?
A. Activities, Blogs, Bookmarks, Connections, Profiles
B. Activities, Blogs, Bookmarks, Connections, Profiles, Ratings
C. Activities, Blogs, Bookmarks, Tag cloud, Profiles
D. Activities, Blogs, Bookmarks, Profiles, Ratings
Answer: C
QUESTION NO: 2
Aside from normal steps for deploying portlets to a page, what additional step, if any, is necessary to configure a portlet using the Struts MVC framework and a portlet using the JavaServer Faces framework to the same portal page?
A. Server-side aggregation must be forced on a page
B. Both portlets must comply with the JSR286 Portlet Specification
C. No additional steps are required
D. Framework JAR files must be added to WebSphere Application Server shared libraries
Answer: C
QUESTION NO: 3
A customer has requirements to remotely search user profiles based on attributes of the profile using web services. How can this task be accomplished in WebSphere Portal?
A. By means of the remote portal search service
B. By means of the remote PUMA SPI REST service
C. By means of the remote virtual member manager service
D. By means of the user repository APIs and wrap web services around API calls.
Answer: B
QUESTION NO: 4
Which option best describes how JSR 286-compliant portlets and widgets interact with each other?
A. Portlets and widgets cannot interact with each other.
B. Widgets and portlets can interact by using shared render parameters and events.
C. Widgets and portlets can interact by using shared render parameters.
D. widgets and portlets can interact by using events.
Answer: B
QUESTION NO: 5
John has developed a custom step-up handler. He has implemented the two methods init() and establishAuthLevel() of the StepUpAuthHandler interface. What is the outcome of the method establishAuthLevel() returning null?
A. A null pointer exception is thrown.
B. The browser is redirected to the portal login page.
C. The browser displays the HTTP error 403 Forbidden.
D. The authentication level is assumed to be successfully established.
Answer: D
C2040-922 Question And Answer
QUESTION NO: 1
Jo wants to make a configurable list of countries available to the client side JavaScript of her XPage for use in various different fields on the web page. What would be the most efficient approach?
A. Add an @DbColumn to a server side script library to look up the country list in each place it is required
B. Perform an AJAX request to get the country list from another XPage when it is required using dojo.xhrGet
C. Use the Output Script control to create a global Client Side JavaScript object to reference when the list is required
D. Add a @Decorum to a client side script library to look up the country list in each place it is required
Answer: C
QUESTION NO: 2
Aaron has created an XPages application that has a couple of XPages to surface the same data to two different application roles in two completely different user interfaces. Each role can manipulate parts of the data, but in both cases, the data must adhere to the same business logic and rules.
What would be the best way for Aaron to implement the same business logic in each XPage?
A. Create a common Client-Side JavaScript Library for the XPages to share that the user interface can use to execute the business logic
B. Use a series of Custom Controls to hold the business logic and share them amongst the XPages
C. Create a common Server-Side JavaScript Library for the XPages to share that the user
interface can use to execute the business logic
D. The user interface and the business logic in an XPage can not easily be separated and must be maintained in each XPage
Answer: C
QUESTION NO: 3
Elizabeth needs to parse the contents of a web page held on a remote server into an
applicationScope variable via the server side onclick event of a button using Server Side
JavaScript. How would she do this?
A. It is not possible to perform network operations from Server Side JavaScript
B. Create a new Java class to perform the operation in a Java Script Library and call it from the onclick event of the button.
C. Create a new Java class to perform the operation in a Java Agent and call it from the onclick event of the button.
D. Create a new Java class to perform the operation in the WebContent\WEB-INF\src folder via the Package Explorer and call it from the onclick event of the button.
Answer: D
QUESTION NO: 4
Rick creates a Server-Side JavaScript library, and defines a few global variables at the beginning of the library. The JavaScript in his XPage and in the JavaScript library modify those global variables. The server the application runs on is heavily used, and the application settings are set to Keep Pages on Disk for best scalability. When the application executes, what is likely to happen?
A. The application will perform as expected.
B. The application will generate an error because you can not declare global Server-Side
JavaScript variables
C. The application will run, but the values of the globally defined variables may be lost when the server’s JVM garbage collects variables, causing unexpected results.
D. The application will run, but every partial or full refresh will reset the values of the global
variables when it reloads the Server-Side JavaScript library.
Answer: C