IBM C2040-911 Online Practice
Questions and Exam Preparation
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
:Jul 14, 2026
IBM C2040-911 Online Questions &
Answers
Question 21:
The following code sample uses the PUMA SPI within a standard portlet.
Sunil needs to retrieve attributes on the current user. Which one of the following lines of code, if inserted at line 6, will provide the functions to retrieve attributes from the User object?
A. PumaProfile p = service.getProfile( (javax.portlet.ActionRequest) request); B. PumaProfile p = service.getProfile( (javax.portlet.PortletRequest) request); C. PumaController p = service getController( (javax.portlet.ActionRequest) request); D. PumaController p = service getController( (javax.portlet.PortletRequest) request);
C. PumaController p = service getController( (javax.portlet.ActionRequest) request);
Question 22:
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. char[] password - The password of the user. B. java.lang.String userID - The user ID of the user. C. java.net.URL redirectURL - The login redirect URL. D. javax.security.auth.Subject subject - A security subject to be passed to the WebSphere Application Server login modules that can be null if notneeded.
C. java.net.URL redirectURL - The login redirect URL.
Question 23:
Which one of the following statements is valid regarding credential objects?
A. Credential objects are serializable. B. To create a slot for storing active credentials, set the active parameter of the CredentialVaultService.createSlot method to true. C. Passive credential objects hide the credential's secret from the portlet. D. Portlets that use active credential objects need to extract the secret from the credential to authenticate with the backend.
B. To create a slot for storing active credentials, set the active parameter of the CredentialVaultService.createSlot method to true.
Question 24:
Tyson is the sole IBM WebSphere Portal administrator in his company. He has developed a portlet that uses content spots to bind certain portlet markup to users specific to a certain group accessing the portlet itself. What bindings can Tyson create to associate the users with the content spots to be shown?
A. He can use Personalization Rules based on user and group information, hiding and showing the content spots per each grouping as desired. B. He can use the ContentPresentationModel to hide and show content spots based on any parameter included in the ContentPresentationResource and change the content spot based on the user's group C. He can store a personalization rule in the theme that creates a new version of the portlet for each user group automatically on first access,using the PortletClientModel and leveraging the PUMA UserGroup object D. Portlets cannot include dynamic content spots.
A. He can use Personalization Rules based on user and group information, hiding and showing the content spots per each grouping as desired.
Question 25:
On an ongoing basis, Ken wants to track status messages from an application that he is writing. Which one of the following options should he use as a best practice to make the status messages available?
A. He should write messages to to SystemOut.log since it is the easiest to implement. B. He should write them to SystemError.log since they are status messages and could be considered errors. C. He should use the standard Java logger at an "info" level since "info" is the default trace level for IBM WebSphere Portal server. D. He should use the standard Java logger at an "error" level since they are status messages and could be considered errors.
C. He should use the standard Java logger at an "info" level since "info" is the default trace level for IBM WebSphere Portal server.
Question 26:
What is a processing advantage of public parameters over event operations?
A. No action phase required. B. No limits to the payload data. C. No need to distribute events to portlets. D. Notifications are handled by the browser. E. No action phase required and no need to distribute events to portlets.
C. No need to distribute events to portlets.
Question 27:
Which of the following statements is not a true statement about the Portlet Login service?
A. The login service can be used to trigger a form-based login to IBM WebSphere Portal from any portlet. B. 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. C. 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. D. 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 retrieve a com.ibm.portal.um.User object representing the current user and providing the current user'sprofile attributes.
Question 28:
Corrie needs to create several iWidgets that will interact with each other. She is evaluating the mechanisms that she can use to share state information between the iWidgets. Which one of the following options is the best way to accomplish this?
A. Use the JSR 286 defined event and payload mechanism. B. Store state information in the user's session. C. Implement public render parameters. D. Declare the state sharable in the ItemSet definition and register listeners in the individual iWidgets to be informed when shared state changes.
D. Declare the state sharable in the ItemSet definition and register listeners in the individual iWidgets to be informed when shared state changes.
Question 29:
The following section of a portlet deployment descriptor defines the cache setting for a portlet: 300private 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.
A. The content should be cached for 300 seconds and must not be shared across users.
Question 30:
Cheng is a registered user of his company's intranet portal. He accesses the portal by a web browser with a valid RememberMe cookie but he has not logged into the portal during the current session. How does the portal treat Cheng?
A. Identified and authenticated B. Identified and unauthenticated C. Unidentified and authenticated D. Unidentified and unauthenticated
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.