Vcehome > IBM > IBM Certified Solution Developer > C2040-911 > C2040-911 Online Practice Questions and Answers

C2040-911 Online Practice Questions and Answers

Questions 4

Frances is debugging an iWidget that should show a loader bar until markup is generated and shown, leveraging only lifecycle functions. Right now, she can only see the loader bar, but nothing else happens in the iWidget. She has verified that all dependencies have loaded properly and that the elements have rendered. What should she verify next?

A. Verify that the onUnload method is properly modifying the page content after loading completes.

B. Verify the onLoad method kicked off background functions needed to render the markup.

C. Verify that the readyMarkup method is properly implemented.

D. Verify that the view is a supported mode for the iWidget.

Browse 65 Q&As
Questions 5

Wendy's theme was recently installed on a server. A colleague provided her with theme components to deploy, which given design requirements, is packaged as an EAR file inside a compressed ZIP file. Which of the following is a valid option for deploying these components?

A. Use the web-dav-deploy-zip-file to deploy the compressed file. Use the IBM WebSphere Integrated Solutions console or scripts to deploy theEAR file. Use XMLAccess to import the components into the IBM WebSphere Portal server.

B. Use the web-dav-deploy-zip-file to deploy the compressed file. Use the webdav-expand-ear command to unpackage the EAR on the server,then register the new EAR on the WebSphere Integrated Solutions console.

C. Use the web-dav-deploy-zip-file to deploy the compressed file and use the XMLAccess command to run the script. Use the WebSphereIntegrated Solutions console to add the runtime configuration.

D. EAR files must be deployed using the WebSphere Integrated Solutions console, so she must remove it from the ZIP archive and install itdirectly.

Browse 65 Q&As
Questions 6

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.

Browse 65 Q&As
Questions 7

Which of the following is a false statement about limitations for a WSRP producer portlet?

A. WSRP producer portlets cannot use PUMA SPI for accessing user information.

B. WSRP producer portlets cannot access portlet render parameters.

C. WSRP producer portlets cannot use IBM WebSphere Portal internals in portlets such as engine objects or engine tags.

D. WSRP producer portlets do not support edit_defaults_compatibility portlet mode.

Browse 65 Q&As
Questions 8

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.

Browse 65 Q&As
Questions 9

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.

Browse 65 Q&As
Questions 10

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.

Browse 65 Q&As
Questions 11

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.

Browse 65 Q&As
Questions 12

A client named Rudy's Rocking Hot Rods sells high-end motor vehicles through its customized portal. When a user logs in, they are presented with several combinations of portlets and iWidgets. The user can select a car model, color, customize finishes, and perform other applicable actions. As part of a new development phase, the client has requested two updates: 1) Wire Portlet ABC to send an event to the iWidget XYZ. 2) Wire iWidget XYZ to send an event to the Portlet RSA.

What option below is not correct, assuming all portlets on the page are JSR 286- compatible?

A. If Portlet ABC defines a Java class in its portlet.xml under the element as "java.lang.String," it is able to pass that value to iWidgetXYZ.

B. iWidget XYZ will be able to receive events from Portlet ABC and send events to Portlet RSA.

C. If Portlet ABC uses a custom type defined as follows: org.za.StrongTypedthen the iWidget XYZ needs to have a corresponding payload definition as such:

D. When passing a mashup type from iWidget XYZ to Portlet RSA, which uses XSD types, that type must be manually converted because IBM WebSphere Portal does not provide an automatic type conversion mechanism.

Browse 65 Q&As
Questions 13

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.

Browse 65 Q&As
Exam Code: C2040-911
Exam Name: IBM WebSphere Portal 8.0 Solution Development
Last Update: May 09, 2024
Questions: 65 Q&As

PDF

$49.99

VCE

$59.99

PDF + VCE

$67.99