File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
The moose likes Product and Other Certifications and the fly likes Test 399: IBM WebSphere Portal V5.1, Application Development Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Certification » Product and Other Certifications
Bookmark "Test 399: IBM WebSphere Portal V5.1, Application Development" Watch "Test 399: IBM WebSphere Portal V5.1, Application Development" New topic
Author

Test 399: IBM WebSphere Portal V5.1, Application Development

Satyan Nair
Greenhorn

Joined: Aug 12, 2003
Posts: 2
Questions and answers (already posted elsewhere without answers)


====================================================================
All of the following statements are valid about debugging portlets remotely EXCEPT:
A. Some temporary resources and the configuration on the portal server are automatically generated during testing or debugging of a portlet on a remote server. They can be deleted by performing the Reset Portlets action.
B. To debug a program remotely, the program must be able to be launched in debug mode on the remote machine so that it will wait for a connection from the debugger.
C. Remote debugging is useful when debugging programs on dedicated machines such as web servers.
*D. To use Server Attach to debug a portlet or portal on a server, the portal server is first started in normal mode.

For which portlet feature is local debugging with Rational Application Developer V6.0 NOT supported?
A. Vault service
B. Cooperative portlets
C. Struts
*D. Personalization

In order to install the WebSphere Portal V5.1 Test Environment, a developer needs to select which of the following?
A. "Custom" install option when installing WebSphere Portal V5.1, then choose the option "WebSphere Portal Test Environment".
B. "Full" install option when installing WebSphere Portal V5.1 and when WebSphere Portal Test Environment automatically gets installed.
*C. "Test Environment" install option when using WebSphere Portal V5.1 installer.
D. "Portal Test Environment" install option during Rational Application Developer V6 installation.

When starting the portal server in the WebSphere Portal Test Environment, the portal server fails to start. A message is also displayed indicating that the server start failed because port 9081 is already in use. Which of the following is the MOST probable cause?
A. Rational Application Developer is running under port 9081
B. Disable WA. Security and issue command "startServer WebSphere_Portal"
*C. The application server "WebSphere_Portal" is started
D. The developer did not correctly associate the WA. file with the test environment server

Which of the following tools can the developer install for developing portlets for WebSphere Portal V5.1?
A. WebSphere Application Server
*B. Rational Application Developer
C. WebSphere Portlet Builder
D. WebSphere Business Integration Server Foundation

Which of the following statements is valid about Workplace Solutions Catalog?
A. Workplace Solutions Catalog does not allow portlets to be searched based on solutions or provider name.
B. Workplace Solutions Catalog can be personalized based on profile information.
*C. Some Portlets available for download from the Workplace Solutions Catalog site contain source code information.
D. Rational Application Developer is downloaded from the Workplace Solutions Catalog site for developing portlets.

A team of developers will create custom themes for WebSphere Portal V5.1. Which is the BEST tool for the team to use?
A. Portal Toolkit
B. Java Editors
C. WebSphere Portal Application Integrator
*D. Page Designer in Rational Application Developer

A developer is working on creating custom themes and skins. To view changes to the theme and skin JSPs without restarting the portal server, application server can be forced to automatically check for new versions of JSPs. In which of the following files does the entry "reloadingEnabled ="false" need to be changed?
A. ibm-web-ext.xml
B. ibm-web.xml
*C. ibm-web-ext.xmi
D. ibm-web-bnd.xmi

If the portal theme were changed to move the navigation region from the left side to the right side of the page, which file should be modified?
A. Navigation.xml
B. Navigation.jsp
*C. Default.jsp
D. Banner.jsp
A developer needs to create a portlet that contains only static information from an existing URL. What is the BEST out-of-box portlet option for the developer?
A. JSP Portlet
*B. Web Clipping Portlet
C. HTML Portlet
D. Rational Application Developer Portlet

Which of the following directives is required at the beginning of a JSP that will use the JSR 168 portlet tag libary?
A. <%@ taglib uri="http://javax.sun.com/portlet" prefix="portletAPI" %>
B. <%@ taglib uri="http://java.sun.com/portlet" prefix="portlet" %>
*C. <%@ taglib url="/WEB-INF/tld/portlet.tld" stem="portletAPI" %>
D. <%@ taglib uri="/WEB-INF/tld/portlet.tld" use="portlet" %>

According to the JSR 168 specification, which mode provides content and logic that lets a user customize the behavior of the portlet?
A. Modify
B. View
C. Preference
*D. Edit

According to the JSR 168 specification, what tag needs to be defined in a JSP in order to have access to the RenderResponse object?
A. <portlet:init/>
B. <portletAPI:loadObjects/>
*C. <portlet efineObjects/>
D. <portletAPI:renderResponse/>

How can a JSR 168 portlet get the absolute path to a resource located at "/WEB-INF/hello.xsl"?
A. String absPath = getPortletRoot.getRealPath("/WEB-INF/hello.xsl");
B. String absPath = getPortletRoot.getPath("/WEB-INF/hello.xsl");
*C. String absPath = getPortletContext.getRealPath("/WEB-INF/hello.xsl");
D. String absPath = getPortletContext.getPath("/WEB-INF/hello.xsl");

Which of the following is valid about the ActionResponse interface?
A. It defines a portlet view of the portlet application within which the portlet is running.
B. It is used in the render method of the Portlet interface. This interface allows a portlet to set its title and generate content.
C. It encapsulates all information about the client request, parameters, request content data, portlet mode and window state.
*D. It allows a portlet to redirect the user to another URL, set render parameters, change the window state and change the portlet mode of the portlet.

Which of the following transcoding plugins is NOT provided by IB. WebSphere Portal V5.1?
*A. HTML to VXML
B. HTML to WML
C. Text
D. Image

According to the JSR 168 specification, which of the following is valid if a portlet throws an exception in the processAction() method?
A. All operations on the ActionResponse must be ignored and the render() method will be invoked.
*B. All operations on the ActionResponse must be ignored and the render() method must NOT be invoked within the current client request.
C. The portal/portlet-container discontinues processing all portlets visible on the portal page.
D. The portal/portlet-container calls the destroy() method and releases the portlet object.

A JSP that is used by a JSR 168 portlet has a JavaScript function named "doValidate()". Why should the page developer prefix a <portlet:namespace/> tag to the function name?
*A. The portlet could be deployed multiple times on a page, causing a duplicate function definition.
B. Since a portlet JSP fragment has no <head> tag, a JavaScript function cannot execute without being a member of a namespace.
C. The namespace associates the function with the correct portal theme "includeScript.jsp" for the page.
D. HTML markup attribute reference to the function would throw a NameSpaceMismatch exception during page compilation.

According to the JSR 168 specification, objects stored in the session using the PORTLET_SCOPE must be:
A. Available to all portlets of the web application during requests for all porlet windows.
*B. Available to the portlet during requests for the same portlet window that the objects were stored from.
C. Protected from other web components of the portlet application.
D. Used in conjunction with the APPLICATION_SCOPE in order to preserve the objects true state.

Which item must be specified within the portlet deployment descriptor?
A. Welcome file list
B. Preferred cache size
C. Error pages
*D. Initialization parameters

How can a Rational Application Developer 6.0 user specify that WebSphere Portal V5.1 be the target server for a new JSR 168 portlet project through the New Portal Project wizard, if at all?
A. The developer cannot because JSR 168 portlets are portal-independent.
B. The developer cannot because WebSphere Portal V5.1 does not support JSR 168 portlets.
*C. Click "Show Advanced >>" and then select "WebSphere Portal V5.1 from the "Target Server" dropdown list.
D. Click "Browse" and then navigate to the desired runtime.

A portlet can enable each user to initialize with some unique data, such as a favorite web site or background color. According to the JSR 168 specification, where should this data be stored?
A. PortletApplicationSettings
B. PortletConfig
C. PortletSession
*D. PortletPreferences

Which of the following is a correct example of embedding an image within a JSR 168 portlet?
A. <img src='<%=response.encodeImage(renderRequest.getContextPath() + "/add.gif")%>' />
B. <img src='<%=response.encode(renderRequest.getContextPath() + "/add.gif")%>' />
*C. <img src='<%=response.encodeURL(renderRequest.getContextPath() + "/add.gif")%>' />
D. <img src='<%=response.encodeLocation(renderRequest.getContextPath() + "/add.gif")%>' />

Which of the following should a developer do to deploy a portlet application from Rational Application Developer 6.0?
A. Publish to the WebSphere Test Environment.
B. Create a runtime profile from the main menu Run command.
*C. Export a WAR file, and then install it through the WebSphere Portal administrative tools.
D. Export a WAR file, and then install it through the WebSphere Application Server API.

Which of the following tags could cause problems if used in portlet markup for a portlet JSP?
*A. <span>
B. <table>
*C. <link>
D. <script>

According to the JSR 168 specification, during initialization, the portlet object may throw an "UnavailableException" or a "PortletException". In this case, the portlet container must:
*A. Not place the portlet object into active service and it must release the portlet object.
B. Not place the portlet object into active service, but keep the portlet object instantiated.
C. Place the portlet object into active service and immediately call the destroy() method.
D. Place the portlet object into active service and provide for exception processing.

Which of the following can the "New Portlet Project (JSR 168)" wizard in Rational 6.0 Developer directly create?
A. iFrame JSR 168 portlet
B. Search JSR 168 portlet
C. Clipper JSR 168 portlet
*D. Basic JSR 168 portlet

A portlet needs to share some transient data with other portlet of the same application. According to the JSR 168 Specification, the session scope that is used for this type of requirement is:
A. PORTLET_SCOPE
B. WEBAPPLICATION_SCOPE
*C. APPLICATION_SCOPE
D. SERVLET_SCOPE

According to the JSR 168 specification, which object provides the portlet object with information to be used during initialization and also provides access to the portlet context?
A. PortletSettings
*B. PortletConfig
C. PortletData
D. PortletApplicationSettings

When using the PortletContext, which of the following is supported?
A. Sending messages to the JSP
B. Setting request parameters
C. Forwarding to servlets
*D. Including JSPs

What API can a JSR 168 portlet's doView(PortletRequest request, PortletResonse response) method use to determine a user's choice of Spanish for the view language?
A. request.getUserLocale();
*B. request.getLocale();
C. response.getUserLocale();
D. response.getLocale();

According to the JSR 168 specification, which of the following allows users to change how the portlet window is displayed within the portal page?
A. Window Mode
*B. Window State
C. Portal Mode
D. Portlet Configuration
Which of the following will happen when a developer right clicks on the "WebSphere Portal V5.1 Server Attach" server and selects the "Reset Portlets" option?
*A. The portlet's destroy() and init() methods are called.
B. The portlet's destroy(), init(), processAction() and render() methods are called.
C. The portlet applications, preview page and preview label being used by the developer will be removed.
D. The portlet applications and preview page being used by the developer will be removed.

The WebSphere Portal log file contains messages and trace information, if tracing is enabled. Which of the following is the default run-time log file?
A. <was_root>/logs/tracefile.log, where <was_root> is the WebSphere Application Server installation directory
B. <wp_root>/log/SystemOut.log, where <wp_root> is the WebSphere Portal installation directory
*C. <wp_root>/log/wps_<date_time>.log, where <wp_root> is the WebSphere Portal installation directory and <date_time> is the date and time that the file was created
D. <wp_root>/log/wps_runtime_<date_time>.log, where <wp_root> is the WebSphere Portal installation directory and <date_time> is the date and time that the file was created

Which file contains the JSR 168 portlet-specific initialization parameters?
A. portal.xml
*B. portlet.xml
C. web.xml
D. webapp.xml

A developer has deployed a portlet to an external WebSphere Portal 5.1 server. However, any changes to the JSP after deployment are not being updated, except after a restart of WebSphere Portal 5.1 server. What is the MOST likely reason for this problem?
A. The browser is caching the previous version of the web page.
B. WebSphere Portal 5.1 server is caching the previous version of the web page.
*C. "reloadingEnabled" was NOT set to "true" in the "ibm-web-ext.xmi" file.
D. "reloadEnable" was NOT set to "true" in the "ibm-web-ext.xmi" file.

In a JSP, the debuggable lines where breakpoints can be set are which of the following?
*A. Scriptlets and JSP expressions.
B. HTML code and scriptlets.
C. JSP expressions and HTML code.
D. Scriptlets, JSP expressions and HTML code.

A PortletServiceHome object is retrieved from which of the following?
*A. a javax.naming.Context.
B. the javax.portlet.PortletContext.
C. the javax.portlet.PortletRequest.
D. the javax.portlet.PortletConfig.

When a cooperative portlet is a source of data, how is the data delivered to a target portlet?
*A. a parameter bound to a specified scope
B. an action
C. a SOAP message
D. a portlet preference

When following a model-view-controller (MVC paradigm in designing a portal application, creating a portlet service would most often be associated with which portion of the design?
A. Mode
B. View
*C. Controller
D. Data Access

Which of the following statements BEST reflects when a portlet JSP should directly access a datasource?
A. When it is appropriate to have a JSP that is associated with the portlet VIEW mode directly access a back-end datasource.
B. When it is appropriate to have a JSP that is associated with the portlet EDIT mode directly access a back-end datasource.
C. When it is appropriate to have a JSP directly access a back-end datasource if used in conjunction with a command cache.
*D. When it is not considered BEST practice to have portlet JSPs connect directly to a back-end datasource.

A customer has an old web application that uses a proprietary user database. The customer wants to integrate the web application into a portlet so that users have a Single Sign-On (SSO) experience. It would be possible to leverage the CredentialVaultService and provide the desired true Single Sign-On experience ONLY if:
A. The backend Web Application supports BASIC Authentication.
*B. An existing Credential Object type such as HttpBasicAuth can be used or specially coded.
C. The backend Web Application supports Trust Association Interceptor (TAI).
D. The LDAP database was extended with fields that contain a copy of the username and password of the Web Application.

For an action that is registered with the Property Broker, which of the following constraints applies to the action?
A. It may NOT declare any output parameters.
B. It must declare exactly one input parameter.
C. It can optionally declare a name attribute.
*D. It must provide an actionNameParam attribute if a name attribute is specified.

Which of the following characteristics does NOT apply to the two JDBC data controls supplied in Rational Application Developer, Relational Record and Relational Record List?
A. The relational record list corresponds to a JDBC rowset.
B. Both objects can be used to connect to any JDBC compliant datasource.
C. The relational record allows the developer to display, update and/or create a record.
*D. Production level use of these data controls is encouraged.

All of the following are properties of the default vault that can be customized EXCEPT:
A. Allowing the adapter to create and delete resources.
B. Setting the adapter to be readonly or read-write.
*C. The encryption algorithm used.
D. User distinguished name to store administrative credentials under.

In Rational Application Developer, a datasource is configured in the:
A. Unit Test Environment's administration console.
B. file that the portlet is associated with.
C. Portlet perspective Project Navigator.
*D. Server configuration editor.

The typical way a Struts application can apply a stylesheet to XML data is to implement a Struts Action that writes directly to the response object. What can be done in the Portal environment to achieve the same effect, if anything can be done at all?
A. Customize the Struts processing by extending the WpsRequestProcessor class.
*B. Implement a Struts action class based on the IStrutsPrepareRender interface which will be executed during the render phase of portal.
C. Use the StrutsViewXmlCommand command pattern class to write to the output stream of the response object.
D. This is not possible, as the response object is not available during the portlet's action processing.

What three properties are delivered by the "My Tasks" portlet to the task processing portlet?
A. TemplateName, InputProperties, TaskUIHandle
B. ProcessInstanceID. ReturnPageID. ClientUI
C. TaskID. InputMessageType, CustomPageID
D. TaskID. ReturnPageID. TaskUIHandle

What portlet application characteristics lead to consideration of the Portal Struts framework?
A. application that provides several fine-grained portlets that can be placed on a page.
B. simple, single screen, data display portlet.
*C. application to be presented in a multi-screen, wizard-like, user interaction model.
D. Applications that communicate with enterprise applications and need to be built quickly.

Which of the following can be used to collect a variety of data related to visitors' actions and behavior for analysis and reporting?
A. Rules engine
B. Resource engine
*C. LikeMinds Listener
D. Feedback Listener

All the best!


Satyan Nair<br />IBM Websphere Certified(154)
 
It is sorta covered in the JavaRanch Style Guide.
 
subject: Test 399: IBM WebSphere Portal V5.1, Application Development