//Lot915 practicse questions{The bellow questions have been collected from internet}
QUESTION 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 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 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 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 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
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 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 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 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 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
QUESTION:
1
Which of the
following statements describes the value of the Vendor variable from the
following por tlet
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 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.
Answer:
B
QUESTION:
2
From what source does
the Page Builder theme instantiate drag -and-drop functionality in
terms of portlets?
A. The
<dnd:drag/> and <dnd:drop/> tags.
B. The theme
Default.jsp sets parameters for the ibmPortalConfig object that define the drag
-and-drop behaviors
for dragging portlets.
C. The Page Builder
theme does not support drag -and-drop for portlets.
D. The theme
Default.jsp instantiates drag -and-drop functionality by means of loading
ibmCSA.js and calling
instantiateDrag().
Answer:
B
QUESTION:
3
Which of the
following options are advantages of using Lotus OneUI for a portal theme?
A. Keyboard
accessibility with hover effects, also providing focus effects or equivalent
facilitation.
B. The code base is
tested for stability, accessibility, and bidirectionality in mul tiple
browsers.
C. Every page is
enforced to look the same regardless of content, disallowing different
browsers to make the
pages look different under any circumstance or user input.
D. A and B are
correct.
Answer:
D
LOT-915
QUESTION:
4
What best describes
the portal mod el REST services that are now offered with WebSphere
Portal V7.0?
A. Portlet model,
content model, navigational model
B. Portlet model, content
model, navigational model, wire model
C. Portlet model,
content model, navigational model, user profile
D. Layout model,
portlet model, content model, navigational model, wire model, user
profile
Answer:
D
QUESTION:
5
In a Web 2.0 theme,
which of the available REST services only allow for read access to the
model?
A. Layout model
B. Portlet model
C. Content model
D. Navigation model
Answer:
D
QUESTION:
6
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 eve nts.
C. Widgets and
portlets can interact by using shared render parameters.
D. widgets and
portlets can interact by using events.
Answer:
B
QUESTION:
7
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?
LOT-915
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:
8
A site needs to be
created within portal with its own title, user repository, default content,
and branding. What
single portlet is provided for creating a site within portal?
A. Content Authoring
portlet
B. Theme Customizer
portlet
C. Virtual Portal
Manager portlet
D. New Site Creation
Wizard portlet
Answer:
D
QUESTION:
9
Aside from normal
steps for deploying portlets to a page, what additional step, if any, is
necessary to
configure a portlet using t he Struts MV C 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:
10
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.
QUESTION 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 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 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 4
Which option best
describes how JSR 286-compliant portlets and widgets interact with each other?
2
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 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
Question 6
What best describes the
portal model REST services that are now offered with WebSphere Portal V7.0?
A. Portlet model, content
model, navigational model
B. Portlet model, content
model, navigational model, wire model
C. Portlet model, content
model, navigational model, user profile
D. Layout model, portlet
model, content model, navigational model, wire model, user profile
Answer: D
Question 7
IBM Rational Application
Developer provides an easy-to-use wizard for creating portlets. What options
best
describes the portlet
types that you can use while creating JSR 286-compliant portlets?
A. Basic, Empty, and Faces
B. Basic, Faces, and IBM
Struts Portlet Framework
C. Basic, Faces, and
Spring Portlet MVC Framework
D. Faces, IBM Struts
Portlet Framework, and Spring Portlet MVC Framework
3
Answer: A
Question 8
Which of the following
statements is NOT a functionality provided by IBM Rational Application
Developer?
A. Wizards for creating
portlets and portlet applications
B. WebDav client for working
with Page Builder 2 theme
C. Ability to deploy
portlets on a local WebSphere Portal server
D. Ability to deploy
portlets on a remote WebSphere Portal server
Answer: B
Question 9
Which of the following
options is not a valid Java 5 annotation tag defined by the Java Portlet
Specification?
A.
@ProcessEvent(qname=<event name>)
B.
@ServeResource(name=<resource name>)
C.
@RenderMode(name=<portlet mode name>)
D.
@ProcessAction(name=<action name>)
Answer: B
Question 10
Which variables are
defined by the defineObjects tag when used on a JSP page included within the
render
method?
A. portletRequest,
portletResponse, portletConfig, portletSession, portletPreferences,
portletPreferencesValues
B. renderRequest,
renderResponse, renderConfig, renderSession, renderPreferences
C. renderRequest,
renderResponse, portletConfig, portletSession, portletSessionScope,
portletPreferences,
portletPreferencesValues
D. request, response,
portletConfig, portletSession, portletPreferences
Answer: C
Question 11
Usha has developed a JSR-286 compliant
portlet. She wants to use it on a WSRP producer so that it can be
consumed by a remote portal server. What changes if any
should be made?
Ans;-c:- She
doesnot have to make changes
A:-She must
set the enable wsrp portlet initialization parameter to true inportlet.xml
B:- She
should change her portlet class to implement service description and markup
interface
D:-markup
registration andportletManagement
11. A remote portlet is integrated into a portal
implementation using WSRP. What new WSRP 2.0 feature
is enabled in WebSphere Portal V7.0 for sharing parameters with other portlets without wiring the
producer and consumer portlet?
A. Event operations
B. Cookie handling
C. Resource serving
D. Public render parameters
Answer: D
is enabled in WebSphere Portal V7.0 for sharing parameters with other portlets without wiring the
producer and consumer portlet?
A. Event operations
B. Cookie handling
C. Resource serving
D. Public render parameters
Answer: D
15. 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.
Answer: C
12)What ar the methods defined by the jsr 286
javax.portlet.portlet interface
a)init(),ProcessAction(),doview(),destroy()
b) init(),ProcessAction(),doview(),ProcessEvent(),ServeResource(),destroy()
c) init(),ProcessAction(),render(),ProcessEvent(),ServeResource(),destroy()
d)init(),processAction().render(),destroy()
QUESTION NO: 1
A large motorcycle manufacturer has an internet portal that serves owners and dealers of their
motorcycles. The motorcycle manufacturer has the asked the portal architect to provide options for
providing portal users with features to share their experiences with their motorcycles, talk about
rides they're taken, and join communities of other motorcycle riders with similar interests to theirs.
What solution is available to enable these types of features within portal?
A. The Content Accelerator provides these types of features.
B. The Process Accelerator provides these types of features.
C. The Dashboard Accelerator provides these types of features.
D. The Collaboration Accelerator provides these types of features.
Answer: A
QUESTION NO: 2
What portlet is available from the IBM Portlet Catalog for integrating Google Gadgets for web
pages into portal pages?
A. Feed Reader Portlet
B. WSRP Proxy Portlet
C. Web Content Viewer Portlet
D. IBM Portlet for Google Gagdets
Answer: D
QUESTION NO: 3
The IT department of the UNSC company recently implemented portal and needs to surface some
employee data in portlets. However they don't have any Java or Portal development experience
and only a handful of them have developed web applications.
Why would WebSphere Portlet Factory be a good choice for them?
A. Portlet Factory can display their data in a sortable list without additional Java code.
B. Portlet Factory can connect to their backend data.
C. Portlet Factory will allow them to implement configurable portlets.
D. Portlet Factory generates the Java code necessary to deploy portlets to WebSphere
Portal without the developer knowing Java and allows them to focus on the UI and application
logic.
Answer: D
QUESTION NO: 4
How can a nonJ2EE web application located on a separate domain from portal be integrated into
portal without programming and provide bookmarkability?
A. Configure nonJ2EE application to display within RSS Portlet
B. Configure nonJ2EE application to display within iFrame Portlet
C. Configure nonJ2EE application to display within Web Content Viewer Portlet
D. Configure nonJ2EE application to display within WebSphere Application Integrator
Portlet
Answer: D
QUESTION NO: 5
The Web 2.0 theme with support for clientside aggregation is based on the differential page
rendering (DPR) model. What key performance feature is provided by DPR?
A. Caching of portlet content.
B. Automatically converts server side portlets to client side portlets.
C. Only refreshes portions of the page that were affected by user interaction.
D. Allows faster performing portlets to render prior to slower running portlets.
Answer: C
QUESTION NO: 6
A medical equipment manufacturer has upgraded to WebSphere Portal V6.1 and would like to
leverage features available in portlets running on a separate corporate portal. It is decided the
integration will be implemented using WSRP 2.0. At a minimum what must be done in order to
take advantage of the new WSRP 2.0 features such as resource serving in WebSphere Portal
V6.1?
A. Enable WSRP 2.0 in administration console.
B. Build a consumer portlet based on the JSR 168 Portlet specification
C. Build a consumer portlet based on the JSR 268 Portlet specification
D. Integration with WSRP 2.0 not supported in WebSphere Portal V6.1
Answer: C
QUESTION NO: 7
What browser restrictions if any, exists for clients connecting to WebSphere Portal to display
content?
A. None
B. Clients must be running Microsoft Internet Explorer V7 or Firefox V1.5.0.7
C. Clients can run any version of Microsoft Internet Explorer or Firefox browsers
D. Clients must be running Microsoft Internet Explorer V6 or greater or Firefox V2.0
Answer: A
QUESTION NO: 8
A customer has requirements to remotely search portal user profiles based on attributes of the
profile using web services. How can this be accomplished in 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 API and wrap web services around API calls
Answer: B
QUESTION NO: 9
A traditional J2EE web application is being ported to WebSphere Portal V6.1 as a portlet
application. It's expected many of the actions performed by the new portlet application will require
significant processing to generate the expected output. To improve performance this output should
be cached based on specific request parameters and attributes. What portal feature provides this
type of caching?
A. Portal Caching
B. Session Caching
C. Output Caching
D. Portlet Fragment Caching
Answer: D
QUESTION NO: 10
What additional step is necessary when deploying the Remote Rendering Portlet to a page that
uses the clientside aggregation mode?
A. No additional steps are necessary.
B. Remove the Remote Rendering Portlet from the blacklist.
C. Create an HTTP proxy for AJAX to allow the portlet to render content
D. This is not possible as the Remote Rendering Portlet is not compatible with Portal Web 2.0
theme.
Answer: C
QUESTION NO: 11
Dmitry is architecting a composite application that contains multiple components. The
requirements assume that there will be multiple instances of the same composite application
created with the template. What is True about preferences of a portlet that is a part of the
composite application?
A. Preferences can be defined at the template level
B. Preferences can be modified by the template owner only
C. Each instance of the composite application can have different value for the same preference
D. Each instance of the composite application has the same value for the same preference
Answer: D
QUESTION NO: 12
A bookstore using portal would like to provide recommendations for books to identified users. The
user profile attributes are limited to username, first name, last name, and location but there is an
abundance of information about the user's ratings of books they're purchased or read. Which
personalization filtering type is most appropriate for this situation?
A. Rules Engine
B. Simple Filtering
C. Attribute Filtering
D. Collaborative Filtering
Answer: D
QUESTION NO: 13
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
Java Server Faces Framework to the same portal page?
A. Server side aggregation must be forced on page
B. Both portlets must comply with the JSR168 Portlet Specification
C. No additional steps are required
D. Framework Jars must be added to WebSphere Application Server Shared Libraries
Answer: C
QUESTION NO: 14
What option, if any, exists for AJAX portlets attempting to access services on a separate domain
by way of an AJAX call?
A. Using Portlet Services
B. They can for security reasons
C. Using the providedAJAX Proxy
D. Make a directAJAX call to the service
Answer: C
QUESTION NO: 15
Cheng is a registered user of his company's intranet portal. He accesses the portal by means of a
web browser with a valid RememberMe cookie but 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
Answer: B
QUESTION NO: 16
What software is supported for portlet development in WebSphere Portal V6.1?
A. Any application development environment that supports Java 2 Technology Edition,
V5.0 SR7
B. Rational Application Developer v5.x and higher
C. Rational Application Developer v6.x and higher
D. Rational Application Developer Version 7.5 & 7.0.6 (plugin for UTE) and WebSphere
Portlet Factory 6.1
Answer: D
QUESTION NO: 17
What project creation wizard is available in Rational Application Developer specifically for creating
new portlets for WebSphere Portal?
A. Portal Project creation wizard
B. Portlet Project creation wizard
C. Dynamic Web Project creation wizard
D. Enterprise Application Project creation wizard
Answer: B
QUESTION NO: 18
A developer is trying to create a new Portal Project in Rational Application Developer but does not
see the option to do so. What is the most likely reason for this?
A. Portal Projects can only be created in Rational Software Architect.
B. A portal development environment is not installed on the developer workstation.
C. The developer is not licensed to create Portal Projects in Rational Application Developer.
D. The optional Portal Tools were not selected during the installation of Rational Application
Developer.
Answer: D
QUESTION NO: 19
WebSphere Portal V6.1 and Rational Application Developer are installed on a developer
workstation. How can the developer take advantage of automatic portlet deployment?
A. Right click on the Portlet project, select Run As > Java Applet and select the
WebSphere Portal v6.1 server running on the workstation
B. Right click on the Portlet project, select Run As > Run on Server and select the
WebSphere Portal v6.1 server running on the workstation
C. Right click on the Portlet project, select Run As > Java Application and select the
WebSphere Portal v6.1 server running on the workstation
D. Right click on the Portlet project, select Export > War File and select the portal
installedApps directory as the destination for the exported file.
Answer: B
QUESTION NO: 20
What WebSphere Portal V6.1 installation option is best suited for an optimized development
environment?
A. Debug Installation Option
B. Performance Installation Option
C. Development Installation Option
D. Administration Installation Option
Answer: D
QUESTION NO: 21
Multiple developers are using Rational Application Developer to test and debug portal and portlets
application on a remote portal server. Developers are often finding changes they make to portlets
are not reflected on the remote portal server preview page or the preview page is missingare often
finding changes they make to portlets are not reflected on the remote portal server? Preview page
or the preview page is missing altogether.
What may be the cause of this problem?
A. Only users with the Administrator role can deploy portlets to a remote portal server.
B. The remote portal server is configured to only allow a single remote connection for
portlet deployment.
C. The developers may be using the same user ID in Rational Application Developer for deploying
portal and portlet artifacts.
D. The user ID configured in Rational Application Developer may not have the proper permissions
to create and update the portlet preview page.
Answer: C
QUESTION NO: 22
A WebSphere Portal V6.1 Development environment has been configured to use DB2 as the
portal database. How can you verify portal is properly connecting to the DB2 database and DB2
has open connections to portal?
A. Restart DB2 and watch startup logs
B. Use a database connection tool to verify DB2 is accepting connections
C. Customize a portal page, log out of portal, log back into portal and verify page customization is
saved.
D. Log into WebSphere Application server administrative console and test datasource connection
for the portal development server.
Answer: D
QUESTION NO: 23
Matt is working with a Portlet Project he created in Rational Application Developer.
After creating the portlet he has found a need to edit the web.xml and portlet.xml files.
He would like to edit these files in form based view as opposed to a source view of the files. What
editor does Rational Application Developer provide for this view?
A. XML Editor
B. Text Editor
C. System Editor
D. Deployment Descriptor Editor
Answer: C
QUESTION NO: 24
A developer has just finished updating various portal artifacts in a Rational Application Developer
Portal project. What publish option must be used when deploying the portal project to a staging
environment?
A. Deploy the Portal project directly to the staging server from Rational Application
Developer
B. Export the Portal project as EAR file and extract the EAR file in the staging server portal profile
directory.
C. Export the Portal project as WAR file and extract the WAR file in the staging server portal
profile directory.
D. Export the Portal project as a Project Deploy Set, manually copy it to the staging server and
follow the deploy instructions generated by the export wizard.
Answer: D
QUESTION NO: 25
Which best describes the Portlet life cycle methods can access Public render parameters?
A. processAction and render
B. render and serveResource
C. processAction and processEvent
D. processAction, render, serveResource and processEvent
Answer: D
QUESTION NO: 26
How can you find out the value of test public render parameter on the client side?
A. You can find it by attaching a callback function toPortletWindow.getPortletState() and then
inside the callback function you can call portletState.getParameterValue(test)
B. You can find it by attaching a callback function toPortletWindow.getPortletState() and then
inside the callback function you can call
portletState.getPublicParameterValue(test)
C. You can find it by attaching a callback function toPortletWindow.getParameter() function then
inside the callback function you can call
parameter.getPublicParameter(test)
D. You can find it by attaching a callback function toPortletWindow.getParameter() function then
inside the callback function you can call parameter.getParameter(test)
Answer: A
QUESTION NO: 27
A portlet preferences have been modified and then restores the preferences back to their default
values. According to the JSR 168 specification, what does the portlet do to restore the defaults?
A. In the view mode, the portlet calls the reset method on the PortletConfig object.
B. During a processAction invocation, the portlet calls the reset method on the
PortletPreferences object.
C. During the portlet initialization, the portlet calls the reload method on the
PortletPreferences object.
D. After a processAction invocation, the portlet calls the reset method on the
PortletResponse object.
Answer: B
QUESTION NO: 28
Sunil is developing a database access portlet. He wants to query the database in the
processAction() method and pass complex data transfer object to render() method for rendering.
What mechanism would you suggest to Sunil for transferring custom java object from action to
render phase?
A. Only way to pass data from Action to render phase is using PortletSession object
B. You cannot pass custom object created inprocessAction() method to render() method.
If you do so it will result in ClassCastException when you try to access that object in render()
method.
C. The default value of javax.portlet.actionScopedRequestAttributes container runtime option is
true. So you can set custom java object as request attribute on ActionRequest and it will be
available as request attribute in RenderRequest.
D. Change portlet.xml to set the javax.portlet.actionScopedRequestAttributes container runtime
option to true. Once actionScopedRequestAttributes is set to true you can set custom java object
as request attribute on ActionRequest and it will be available as request attribute in
RenderRequest..
Answer: D
QUESTION NO: 29
If you want to pass object of Sample class from one portlet application to another using
portlet event processing what changes would be required?
public class Sample{
private String hello;
public String getHello(){
return hello;
}
public void setHello(String hello){
this.hello = hello;
}}
A. Modify the Sample class to implement java.io.Serializable interface.
B. You don have to make any special changes if you want to pass complex object from one portlet
application file to another
C. Sharing of complex java object between different applications is not supported.
D. You must create a custom property broker service which extends
com.ibm.portal.propertybroker.service.PropertyBrokerService and register it to handle Sample
class for portlet events.
Answer: A
QUESTION NO: 30
Sunil is developing a JSR 286 compliant portlet object. How can he wants to access user
information such as firstName, lastName using the User Info object how can he get access to the
User info object?
A. PorltetSession.getUserInfo()
B. PortletRequest.getUserInfo()
C. PorltetSession.getAttribute(PortletSession.User_INFO)
D. PortletRequest.getAttribute(PortletRequest.USER_INFO).
Answer: D
QUESTION NO: 31
Evan is developing a set of 4 portlets that will be added on the same portal page. He wants to
make sure that all those portlets use similar a style for displaying error messages. What is the best
way to achieve this?
A. Use portletmsgerror style class in all your portlets
B. He should mark his JSP as error page and portal will take care of making sure that error
information has same look and feel
C. Copy the same style sheet to all your portlet war files and use the styles defined in it whenever
you want to display error message
D. Copy the style sheet only in the first portlet on that page and since the style sheet is already
loaded other portlets can use it
Answer: A
QUESTION NO: 32
Sunil is developing a simple 1 page standard portlet. Only thing that this portlet does is forward
control to different JSP based on the browser, locale,Sunil is developing a simple 1 page standard
portlet. Only thing that this portlet does is forward control to different JSP? Based on the browser,
locale, markup of the request. How can Sunil implement this functionality?
A. Use Client Profile information (CC/PP) API to find out the browser related information and
develop your logic that forwards control to different JSPs based on client information
B. Usedispatch() method of Client Profile information API instead of
PortletContext.getRequestDispatcher() method and profile information API will take care of
forwarding to different JSPs based on client information
C. He will have to create hidden inputs in the form and use javascript to submit browser
information to the server side. Then on the server side develop custom logic based on the
submitted information for forwarding control to different JSPs based on the browser.
D. There is no need to do any thing since WPS forwards control to different JSPs based on the
client. The only thing that Sunil needs to do is create standard directory structure defined by WPS
and create JSP files under appropriate directory structure. When you
callPortletContext.getRequestDispatcher(), Portal server will make sure that it picks up correct
JSP based on the client information.
Answer: A
QUESTION NO: 33
What portlet state data can you change during serveResource() method called using Ajax
request?
A. You can change data in portlet session in portlet scope only.
B. Changing of portlet state is not allowed inserveResource() method
C. You can change data in Portlet Session in portlet scope and you can set
PortletPreferences
D. You can change data in Portlet Session in application and portlet scope and you can set
PortletPreferences
Answer: C
QUESTION NO: 34
What is the guideline that you will follow to enable a portlet for parallel rendering?
A. Every portlet should be enabled for parallel rendering
B. Only WSRP consumer portlet should be enabled for parallel rendering
C. Portlets with long runningprocessAction() method should be enabled for parallel rendering
D. Portlets with long runningrender() method should be enabled for parallel rendering.
Answer: D
QUESTION NO: 35
How can you delete a Remember Me cookie from the user browser?
A. You can use the get rememberMe cookie in a javascript function and set expiration time to1st
Jan 1970
B. You can callrememberMeService.deleteCookie(request) to delete the cookie
C. Deletion of RememberMe cookie is not allowed
D. Create a URL pointing to
CookieService.getInvalidateCookieURL(request,response).toString(). When the user clicks on this
URL the rememberme cookie will be deleted
Answer: D
QUESTION NO: 36
Don is developing a web clipping portlet. One of his business requirements is to check if his users
browser supports IFrame. If it dose then display the content returned by source website in IFrame.
If it does not then write html markup in the <table> element. How does Don figure out if browser
supports IFrame or not?
A. There is no way to figure out if the browser can support IFrame
B. Portal server stores Profile Object instance as session attribute. First retrieve that object and
use itsgetAttribute(IFramesCapable method to figure out if the browser supports IFrames or not
C. Portal server stores Profile Object instance as request attribute. First retrieve that object and
use itsgetAttribute(IFramesCapable method to figure out if the browser supports IFrames or not
D. Portal server stores Profile Object instance as user preference. First retrieve that object and
use itsgetAttribute(IFramesCapable method to figure out if the browser supports
IFrames or not
Answer: C
QUESTION NO: 37
What is the output of the following code?
public PreferencePortlet extends GenericPortlet{
protected void processAction(ActionRequest actionRequest, ActionResponse){
actionRequest.getPreferences().setValue(test iewModePreferenceValue);
actionRequest.getPreferences().store();
}
protected void doView(RenderRequest renderRequest, RenderResponse
renderResponse) throws PortletException, IOException {
// Generate action URL
}
Please note that PreferencePortlet is a Portlet Specification 2.0 compliant and running in WPS 6.1.
A. The container will throw java.lang.IllegalStateException because it is not allowed to change
preference in theprocessAction() method.
B. The code will compile and execute fine. It will store test preference at the end of the
processAction() method call.
C. The container will throw java.lang.IllegalStateException because it is not allowed to change
preference in the view mode.
D. This will result in compiler error because PortletPreference does not havestore() method.
Answer: B
QUESTION NO: 38
What is the effect of adding this fragment to the portlet.xml ?
<portletapp>
<containerruntimeoption>
<name>javax.portlet.escapeXml</name>
<value>true</value>
</containerruntimeoption>
</portletapp>
A. This is invalid portlet.xml because the <containerruntimeoption> cannot be specified at the
<portletapp> level.
B. This option will apply to all portlets in the portlet application. It will make sure that the html
content written to the output stream is xml escaped.
C. This option will apply to all portlets in the portlet application. It will make sure that all the URLs
written to the portlet output stream are xml escaped
D. This option will apply to all portlets in the portlet application. It will make sure that the URLs
written to portlet output stream using Portlet Tag library are xml escaped
Answer: D
QUESTION NO: 39
Sunil is developing a Consumer portlet which will act as Target for Click to Action
portlet. This is the JSP fragment for Consumer portlet
<form class="c2a:target" action="<portlet:actionURL name='targetAction' />" >
<span class="c2a:typename"> #sample</span>
<span class="c2a:actionlabel">
Sample</span>
<input type="text" class="c2a:actionparam" name="targetValue"/>
</form>
Inside the Consumer portlet how can Sunil access the data submitted by source portlet?
A. He can overrideprocessAction() method and call
actionRequest.getParameter("c2a:actionparam") inside it
B. He can overrideprocessAction() method and call
actionRequest.getAttribute("c2a:actionparam")
C. He can overrideprocessAction() method and call
actionRequest.getParameter("targetValue").
D. He can overrideprocessEvent() method and call eventRequest.getEvent().getValue() inside it.
Answer: C
QUESTION NO: 40
Sunil is developing an Ajax Portlet. He is creating an instance of XMLHttpRequest object like this
var request = new XMLHttpRequest(); What should Sunil do to attach sampleAjax() function to
request object as event handler that gets invoked on every state change?
A. request.readystatechange =sampleAjax();
B. request.readystatechange = sampleAjax;
C. request.statechange=sampleAjax;
D. request.statechange=sampleAjax();
Answer: C
QUESTION NO: 41
How do you access PortletWindow object using the Portlet Client side portlet API?
A. newibm.portal.portlet.PortletWindow("<%=portletWindowID%>")
B. newcom.ibm.portal.portlet.PortletWindow("<%=portletWindowID%>")
C. newibm.portal.portlet.PortletWindow();
D. document.getPortletWindow()
Answer: A
QUESTION NO: 42
Can a portlet redirect a user request to different URL?
A. No portlets are not allowed to redirect user request
B. Yes portlet can redirect user requests to a different URL during the render method
C. Yes portlet can redirect user requests to a different URL during the processAction method
D. Yes portlet can redirect user requests to a different URL during the serveResource method
Answer: C
QUESTION NO: 43
John wants to cache content of a portlet, so he has defined a cache timeout of 300 in
portlet.xml like this:
<portlet>
<expirationcache>
300</expirationcache>
</portlet>
When will the cached content expire?
A. The cached content will expire after only after 300 seconds
B. The cached content will only expire after 300 milliseconds
C. The cached content will expire for all users either after 300 seconds or whenever any user
performs action on the portlet.
D. The cached content for specific user will expire either after 300 seconds or whenever that user
performs some action on the portlet.
Answer: D
QUESTION NO: 44
What content is displayed when accessing TestPortlet in the VIEW mode?
public class TestPortlet extends javax.portlet.GenericPortlet {
public void doView(RenderRequest request, RenderResponse response) throws
PortletException, IOException {
response.setContentType(request.getResponseContentType());
response.getWriter().println("Executing CertTrialPortlet.doView()");
}
@RenderMode(name="view")
public void handleView(RenderRequest request, RenderResponse response)throws
PortletException, IOException{
response.setContentType("text/html");
response.getWriter().println("Executing CertTrialPortlet.handleView()");
}}
A. ExecutingCertTrialPortlet.doView()
B. ExecutingCertTrialPortlet.handleView()
C. IllegalStateException because you cannot have both @RenderMode=view and
doView() in same portlet
D. Compiler error indicating that you cannot have both @RenderMode=view and
doView() in TestPortlet class.
Answer: B
QUESTION NO: 45
The JSPPortlet is defined as shown in the listing
public class JSPPortlet extends GenericPortlet {
public void doView(RenderRequest request, RenderResponse response) throws
PortletException, IOException {
// Set the MIME type for the render response
response.setContentType(request.getResponseContentType());
getPortletContext().getRequestDispatcher("/_JSPPortlet/jsp/html/head.jsp").include(requ
est, response);
getPortletContext().getRequestDispatcher("/_JSPPortlet/jsp/html/body.jsp").include(requ
est, response);
getPortletContext().getRequestDispatcher("/_JSPPortlet/jsp/html/footer.jsp").include(req
uest, response);
}
What output will be displayed to user when he tries to access JSPPortlet in VIEW mode?
A. User will see markup generated by head.jsp followed by body.jsp followed by
footer.jsp
B. The portlet will throw "java.lang.IllegalStateException: The response has already been
committed" exception
C. The JSPPortlet will not compile because PortletRequestDispatcher does not haveinclude()
method
D. User will see markup generated by footer.jsp since it is the last call
Answer: A
QUESTION NO: 46
Usha has developed a JSR168 compliant portlet. She wants to expose it as WSRP producer so
that it can be consumed by remote portal server. What changes, if any should be made?
A. She will have to set enableWSRP portlet initialization parameter to true in portlet.xml
B. She should change her portlet class to implement ServiceDescription and Markup interface.
C. JSR168 compliant portlets can act as WSRP producer, so she does not have to make any
changes
D. She should change her portlet class to implement ServiceDescription, Markup,
Registration and PortletManagement interface.
Answer: C
QUESTION NO: 47
The filter mapping for SampleRenderFilter is defined like this in portlet.xml:
<filter>
<filtername>
Sample Render Filter</filtername>
<filterclass>
com.ibm.SampleRenderFilter</filterclass>
<lifecycle>RENDER_PHASE</lifecycle>
</filter>
<filtermapping>
<filtername>
Sample Render Filter</filtername>
<portletname>
Sample*</portletname>
</filtermapping>
What requests would be filtered by the SampleRenderFilter?
A. This mapping will filter all the requests to the Sample Portlet only
B. This mapping will filter all the render requests to Sample portlet only
C. Filter mapping cannot have * in the portletname, so portlet deployment will fail
D. This mapping will filter all the render requests to all the portlets for which name starts with
Sample
Answer: D
QUESTION NO: 48
Tom is working on improving the performance of his theme, MyTheme. Which one of the following
steps will help with a significant improvement in the performance of the theme?
A. Remove Show tools icon from the toolbar
B. Change all HTML comments to JSP comments
C. Removeminimize, restore, and maximize buttons
D. Place the JSP tags for the Back, Edit, and Configure icons inside the <portallogic: if
loggedIn="yes"> tag
Answer: A
QUESTION NO: 49
Jamie should create a Custom Theme Attribute testAttribute and display it in her JSP.
She uses the theme policy myThemePolicy. Which one of the following steps did she
NOT perform?
A. Initialize themePolicy in the JSP to access the testAttribute.
B. Define testAttribute and testAttributeLock in the root theme policy.
C. Define testAttribute with the value required in myThemePolicy.
D. Define both testAttribute and testAttributeLock in myThemePolicy.
Answer: D
QUESTION NO: 50
Jessica needs to develop a custom theme that supports 5 levels of portal navigation and multiple
navigation styles. Not all tiers and pages will be visible to all users due to security roles. Which of
the following options best describes how she should develop the theme to prevent certain users
from seeing all the levels of navigation?
A. All navigational elements in the theme should be tested to see if they are visible according to
the appropriate theme policy set for the page.
B. In the <portalnavigation: navigationLoop/> tags use the <portallogic: if/> tags to filter page,
labels, and content from the display for user groups.
C. In the <portalnavigation: navigationLoop/> tags use the page metadata to determine if the
current tier should be visible for display.
D. All navigational elements in the theme should wrap with a <portallogic: if/> tag and be
evaluated by a visibility rule.
Answer: A
QUESTION NO: 51
The following code demonstrates an example for theme extensions
<portalthemeext:
themeExtension id="com.ibm.portal.theme.plugin.SimpleLinks" >
<portalthemeext:
themeExtensionLoop>
<a href="<portalthemeext:
themeExtensionItemUrl />" >
<portalfmt:
title varname=
'<%=(com.ibm.portal.theme.plugin.ThemeItem)themeExtension%>' /></a>
</portalthemeext:
themeExtensionLoop>
</portalthemeext:
themeExtension>
Which one of the following is TRUE about the code?
A. This code can be included in portlet or theme jsp.
B. This code can be included only in the theme or skin jsp.
C. Extension Point com.ibm.portal.theme.plugin.SimpleLinks is not defined in
plugin.xml
D. This code displays the title of all the extensions of type SimpleLinks
Answer: B
QUESTION NO: 52
Tom has created a new theme, MyTheme and is required to use it for his pages. Which one of the
following steps does he need to perform to make it available in the portal?
A. Wrap the new theme as MyTheme.war using a ZIP compression tool.
B. Use the Themes and Skins portlet under Administration > Portal User Interface.
C. Copy the DOJO directory from the wps.war file beneath the Themes directory.
D. Create a new directory path using the predefined root themes, the type of markup, and the
name of the new theme, for example: themes/html/MyTheme.
Answer: B
QUESTION NO: 53
Jeff has a portlet application that contains two portlets P1 and P2. Which one of the following
steps does he need to perform so that portlet P2 is always refreshed when it interacts with portlet
P1?
A. Portlet P2 declares the initialization parameter, wps.csa.enforce.refresh and set the value to
true.
B. Portlet P1 declares the initialization parameter, wps.csa.enforce.refresh and set the value to
true.
C. Portlet P1 declares the initialization parameter, wps.csa.enforce.refresh and set the value to
false.
D. Portlet P2 declares the initialization parameter, wps.csa.enforce.refresh and set the value to
false.
Answer: B
QUESTION NO: 54
Jacob decided to use Theme Customizer to minimize the theme development time. What can be
modified in the page layout by using the Theme Customizer?
A. Portlet skin border color
B. Portlet skin caption font style
C. Portlet mode controls
D. Portlet area layout
Answer: A
QUESTION NO: 55
Joe needs to use a tag that designates its content as a drag zone that can be dropped into drop
zones of matching types. Which tag would he use?
A. <dnd:drop/>
B. <dnd:drag/>
C. <dnd:dragHandle/>
D. <dnd:additionalAction/>
Answer: B
QUESTION NO: 56
Robin uses DOJO with the theme to support client side programming. Which one of the following
conditions does he need to be aware of?
A. Dojo widgets are supported for use in PortalWeb2 theme.
B. Dojo Parser is automatically loaded in portlets using Dojo Widgets.
C. Many instances of DOJO can exist on a single page. All portlets on a page can use individual
instances.
D. Only one instance of Dojo can be loaded in a page. The current policy is that the first
Dojo included takes precedence.
Answer: D
QUESTION NO: 57
Evan needs to share action parameters used in a portlet with an other portlet. In the binding
section of the Web Services Description Language (WSDL) files used for specifying a portlet's
participation with the Property Broker, an action parameter can be bound to several scopes. Which
one of the following options best describes the scope's
Evan can use to share the action parameters using the Property Broker.
A. Page attribute, Request attribute, Request parameter, Session attribute
B. Request attribute, Request parameter, or Session attribute
C. Request parameter or Session attribute
D. Session attribute only
Answer: B
QUESTION NO: 58
Gaz needs to write a portlet that allows an end user to view members of groups they are allowed
to manage. The list of the user groups is configured with the portlet. Which of the following PUMA
classes will help him get a list of users from a group?
A. PumaHome
B. PumaProfile
C. PumaLocator
D. PumaController
Answer: C
QUESTION NO: 59
Which of the following portal models does the Remote Model SPI allow to be accessed as REST
services?
A. ThemesAndSkinsModel
B. NavigationStateModel
C. PortletModel
D. MarkupList
Answer: C
QUESTION NO: 60
Dmitry is creating a custom Portlet Service to be used by JSR 168 and 286 portlets.
Which interface(s) must he implement to create this type of Portlet Service?
A. com.ibm.portal.portlet.service.PortletService only
B. com.ibm.portal.portlet.service.PortletService,
com.ibm.portal.portlet.service.spi.PortletServiceProvider
C. org.apache.jetspeed.portlet.service.PortletService,
com.ibm.portal.portlet.service.spi.PortletServiceProvider
D. com.ibm.portal.portlet.service.PortletService,
org.apache.jetspeed.portlet.service.PortletService,
com.ibm.portal.portlet.service.spi.PortletServiceProvider
Answer: B
QUESTION NO: 61
Will is developing a business process application, and is at the point where he is initiating the
process instance. He has used a JNDI lookup to obtain a reference to the process server remote
EJB interface.Next he codes the portlet to start the process with an input message. Once the
process starts, what is returned to the caller by the operation?
A. The processinstance name
B. The process template name
C. The object ID of the new process instance
D. A reference to the BusinessProcess session bean
Answer: C
QUESTION NO: 62
The following code sample is an excerpt from an implementation of a custom
ExplicitLoginFilter.
1 public void login(HttpServletRequest req, HttpServletResponse resp, String userID,
char[]
2 password, FilterChainContext portalLoginContext, Subject subject, String realm,
3 ExplicitLoginFilterChain chain) throws Exception {
4
5 chain.login(req, resp, userID, password, portalLoginContext, subject, realm);
6
7 String myjndiname = UserAgreementService.JNDI_NAME;
8 UserAgreementService mySrv =
9 (UserAgreementService) ctx.lookup(myjndiname);
10 if( mySrv.checkUser(userID) ) {
11 // send user to license agreement page
12 }
13 }
Evan needs to implement custom logic to check whether the user needs to accept an updated end
user agreement. Which one of the following lines of code will allow the user to be sent the friendly
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);
Answer: B
QUESTION NO: 63
Roni has developed a portlet and is debugging it on a remote server by using "Debug As
> Debug on Server " in RAD. However, though the portlet gets deployed, RAD is not providing her
with debug capabilities. What is likely to be the problem?
A. The RAD debugger has not initialized
B. The remote server is not in debug mode
C. The remote server's portlet has personalization enabled
D. The RAD installation does not have a debug server defined
Answer: B
QUESTION NO: 64
How is debug tracing enabled when a Portlet Factory model is run and where do the logs appear?
A. It is enabled by default and they are written to the SystemOut logs.
B. It is enabled by default and they are written to the WebContent/WEBINF/
logs/*.PF.log file.
C. Select the "Run with system tracing" option in the Run Configuration and they are written to the
SystemOut logs.
D. Select the "Run with system tracing" option in the Run Configuration and they are written to the
WebContent/WEBINF/ logs/*.PF.log file.
Answer: C
QUESTION NO: 65
The changes in log level made using Enable Tracing portlet would be effective till what time?
A. Until the server is restarted
B. Until the current user logs out
C. Only way the log levels would get modified is if you go to Enable tracing portlet and change
them
D. None of the above
Answer: A
QUESTION NO: 66
Usha wants to debug personalized portlet application, what all options does she have?
A. She can debug it on either local or remote server
B. She can debug it only on remote server
C. She can debug it only on personalization publishing server
D. Rational application developer does not support debugging on portlets that has dependency on
personalization
Answer: B
QUESTION NO: 67
Wylie is trying to view the debug statements in a portlet that writes its logs using the
com.ibm.wps.logging.LogManager class. What does he need to do in order to see the debug
statements?
A. Search for the statements in the SystemOut
B. Search for the statements in the SystemErr
C. Go to WAS console and enable tracing for the packages in that portlet and search for the
statements in the trace log.
D. Open the log4j properties of the portlet, find out which file the logs are being written to and
search for the statements there.
Answer: C
QUESTION NO: 68
ReallyBigCompany's new portal is in testing and the testing group users are complaining about the
performance of a custom login portlet. The users aren't very specific but are complaining very
loudly to the project manager that the portlet is 'slow'. Assuming Performance Monitoring
Infrastructure (PMI) is enabled, how does one determine the average response time of the portlet?
A. Log into the WebSphere Application Server administration console, navigate Monitoring and
Tuning>Performance Viewer>Current Activity and select Servlets from the Summary Reports. The
average response time and total requests are listed in Servlets Summary Report.
B. Log into the WebSphere Application Server administration console, navigate Monitoring and
Tuning>Performance Viewer>Current Activit and select Portlets from the Summary Reports. The
average response time and total requests are listed in Portlets Summary Report.
C. Log into the WebSphere Application Server administration console, navigate Monitoring and
Tuning>Performance Viewer>View Logs and inspect the System.out log for log4j entries
D. Log into the WebSphere Application Server administration console, navigate Monitoring and
Tuning>Performance Viewer>Request Metrics and select Servlets from the Summary Reports.
The average response time and total requests are listed in Servlets Summary Report.
Answer: A
QUESTION NO: 69
The Personalization resource wizard in Rational Application Developer is used to generate the
content spot classes and resource collection classes. If the content spot and resource collection
will be used by multiple applications, then those classes should be:
A. Deployed together with the related portlets in the portlet application WAR file.
B. Placed in the WebSphere Application Server shared library.
C. Placed directly in the pzn_root/pzn/v6.1/lib directory.
D. Uploaded using the Personalization interface.
Answer: B
QUESTION NO: 70
Don needs to integrate a custom portlet application with content stored in Lotus Web
Content Management(WCM) repository. Which of the following code fragments can he use in his
portlet to access the content in the WCM repository using the current user privileges?
A. WCM_API.getRepository().getSystemWorkspace()
B. WCM_API.getRepository().getWorkspace((String)username);
C. Repository repository = (Repository)
ctx.lookup("javax/jcr/ContentRepositoryFactory");
repository.login((Credentials) cred, library/wcm.getWorkspace()
D. WebContentService webContentService = (WebContentService)
ctx.lookup("portal:service/wcm/WebContentService");
webContentService.getRepository().getWorkspace()
Answer: D
QUESTION NO: 71
How could a JSR 168 portlet's doHelp(PortletRequest request, PortletResponse response)
method obtain a list of locales for which the portal will accept content for a request?
A. response.getLocale();
B. response.getLocales();
C. request.getLocale();
D. request.getLocales();
Answer: D
QUESTION NO: 72
Which of the following is valid about downloadable portlets from the WebSphere Portal Business
Solutions Catalog?
A. Portlets available for download are only hosted by the WebSphere Portal Business
Solutions Catalog web site.
B. Portlets available for download follow open standards.
C. Portlets available for download are free, trial based and fee based.
D. Portlets available for download are specific to a particular industry.
Answer: C
QUESTION NO: 73
Which one of the following statements are 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 itself.
Answer: B
QUESTION NO: 74
For a web application with multiple Struts portlets, how or where are the initial views of the
individual portlets specified?
A. In the welcome file list in the application's web.xml.
B. In the viewMode.page preferences attributes in the individual portlet.xml.
C. As viewMode properties in the actions section in the individual strutsconfig.xml.
D. As view attributes in the supports section of the individual portlet.xml.
Answer: B
QUESTION NO: 75
A traditional J2EE web application is being ported to WebSphere Portal V6.1 as a portlet
application.The J2EE web application is dependant on a custom Java application that wraps API
service calls to a legacy ERP system. The service calls will be leveraged by multiple portlets. In
order to better leverage built in portal features how might this Java application be rearchitected in
portal?
A. Convert the Java application into a portlet
B. Convert the Java application into a portlet service
C. Convert the Java application into a separate portlet application
D. There are no built in portal features for handling Java applications
Answer: B
QUESTION NO: 76
What is a processing advantage of public parameters over eventing?
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.
Answer: A
QUESTION NO: 77
What two portlet frameworks are built upon the Model View Controller pattern?
A. Basic Portlet and IBM Portlet Frameworks
B. Faces Portlet and Struts Portlet Frameworks
C. JSR 168 Portlet and IBM Portlet Frameworks
D. JSR 168 Portlet and JSR 268 Portlet Frameworks
Answer: B
QUESTION NO: 78
Cheng is developing a portlet which is not compatible with the Client Side Aggregation mode.
What is the best means to indicate that this portlet only supports Server Side Aggregation mode?
A. Set the com.ibm.wps.web2.renderMode context parameter in the portlet.xml
B. Set the com.ibm.wps.web2.renderMode init parameter in the portlet.xml
C. Set the com.ibm.wps.web2.renderMode portlet preference in the portlet.xml
D. Set the com.ibm.wps.web2.renderMode context parameter in the web.xml
Answer: B
QUESTION NO: 79
What is the only out of box portlet currently available for integrating Lotus Quickr 8.x and
WebSphere Portal V6.1?
A. My Places Portlet
B. RSS Feed Portlet
C. Content Viewer Portlet
D. WebSphere Application Integrator Portlet
Answer: A
QUESTION NO: 80
An insurance company would like to target specific content to user who live in the northeast and
own auto insurance. These attribute values can be accessed from the user profile. What type of
portal personalization can be used to identify this user segment and target specific content to
them?
A. Rules Engine
B. Simple Filtering
C. Attribute Filtering
D. Collaborative Filtering
Answer: A
QUESTION NO: 81
What additional step is necessary when deploying the Remote Rendering Portlet to a page that
uses the clientside aggregation mode?
A. No additional steps are necessary.
B. Remove the Remote Rendering Portlet from the blacklist.
C. Create an HTTP proxy forAJAX to allow the portlet to render content
D. This is not possible as the Remote Rendering Portlet is not compatible with Portal Web 2.0
theme.
Answer: C
QUESTION NO: 82
What option, if any, exists for AJAX portlets attempting to access services on a separate domain
by way of an AJAX call?
A. Using Portlet Services
B. They can't for security reasons
C. Using the providedAJAX Proxy
D. Make a directAJAX call to the service
Answer: C
QUESTION NO: 83
How can a nonJ2EE web application located on a separate domain from portal be integrated into
portal without programming and provide bookmarkability?
A. Configure nonJ2EE application to display within RSS Portlet
B. Configure nonJ2EE application to display within iFrame Portlet
C. Configure nonJ2EE application to display within Web Content Viewer Portlet
D. Configure nonJ2EE application to display within WebSphere Application Integrator
Portlet
Answer: D
QUESTION NO: 84
Cheng is a registered user of his company intranet portal. He accesses the portal by means of 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
Answer: B
QUESTION NO: 85
Dmitry is architecting a composite application that contains multiple components. The
requirements assume that there will be multiple instances of the same composite application
created with the template.What is True about preferences of a portlet that is a part of the
composite application?
A. Preferences can be defined at the template level
B. Preferences can be modified by the template owner only
C. Each instance of the composite application can have different value for the same preference
D. Each instance of the composite application has the same value for the same preference
Answer: D
QUESTION NO: 86
A new site needs to be created within portal with it own title, user repository, default content, and
branding. What single portlet is provided for creating a new site within portal?
A. Content Authoring Portlet
B. Theme Customizer Portlet
C. Virtual Portal Manager Portlet
D. New Site Creation Wizard Portlet
Answer: D
QUESTION NO: 87
An automobile manufacturer decides to set up developer environments using a portal single server
topology using the out of box database and security. In addition to WebSphere Portal what will be
installed on the server using this topology?
A. WebSphere Application Server
B. WebSphere Application Server andDerby Database
C. WebSphere Application Server,Derby database, and the Derby user repository
D. WebSphere Application Server, Cloudscape database, and IBM Tivoli Directory
Server
Answer: B
QUESTION NO: 88
What best describes the portal model REST services are now offered with WebSphere Portal
V6.1?
A. Portlet model, Content model, Navigational model
B. Portlet model, Content model, Navigational model, Wire model
C. Portlet model, Content model, Navigational model, User profile
D. Layout model, Portlet model, Content model, Navigational model, Wire model, User profile
Answer: D
QUESTION NO: 89
A WebSphere Portal V6.1 Development environment has been configured to use DB2 as the
portal database. How can you verify portal is properly connecting to the DB2 database and DB2
has open connections to portal?
A. Restart DB2 and watch startup logs
B. Use a database connection tool to verify DB2 is accepting connections
C. Customize a portal page, log out of portal, log back into portal and verify page customization is
saved.
D. Log into WebSphere Application server administrative console and test datasource connection
for the portal development server.
Answer: D
QUESTION NO: 90
David is working on a Portlet project in Rational Application Developer that will be deployed and
run on WebSphere Portal V6.1. What should David do to make ensure the
portlets in the portlet project are compiled using WebSphere Portal V6.1 libraries?
A. Export the Portlet project to server running WebSphere Portal v6.1 and recompile
Portlet project on that server.
B. View Properties for the Portlet project and ensure the WebSphere Portal v6.1 Server
Library is selected under Java Build Path > Libraries.
C. Ensuring all portlets in the Portlet project are of type IBM Portlet guarantees the
portlets will run on WebSphere Portal V6.1.
D. Ensuring all portlets in the Portlet project conform to the JSR 168 specification guarantees the
portlets will run on WebSphere Portal V6.1.
Answer: B
QUESTION NO: 91
A developer is trying to create a new Portal Project in Rational Application Developer but does not
see the option to do so. What is the most likely reason for this?
A. Portal Projects can only be created in Rational Software Architect.
B. A portal development environment is not installed on the developer workstation.
C. The developer is not licensed to create Portal Projects in Rational Application Developer.
D. The optional Portal Tools were not selected during the installation of Rational Application
Developer.
Answer: D
QUESTION NO: 92
What project creation wizard is available in Rational Application Developer specifically for creating
new portlets for WebSphere Portal?
A. Portal Project creation wizard
B. Portlet Project creation wizard
C. Dynamic Web Project creation wizard
D. Enterprise Application Project creation wizard
Answer: B
QUESTION NO: 93
Sophia has developed a portlet application and tested the application on WebSphere
Portal V6.1 Express Edition. Outside of normal portlet deployments tasks what must
Sophia do, if anything, to run the portlet application on WebSphere Portal V6.1 Enable &
Extend Editions?
A. No additional tasks are necessary.
B. Update the portlet.xml file to use the JSR268 tag library.
C. Recompile the portlet application using the Enable & Extend Java Development Kits.
D. Export the Portlet project to server running WebSphere Portal v6.1 Enable & Extend and
recompile Portlet project on that server.
Answer: B
QUESTION NO: 94
What post install step can be taken on a WebSphere Portal V6.1 administration install to enable
portal development performance features?
A. WPSConfig.sh enabledevelopmodestartupperformance
B. wsadmin.sh enabledevelopmodestartupperformance
C. ConfigEngine.sh enabledevelopmodestartupperformance
D. startServer.sh enabledevelopmodestartupperformance
Answer: C
QUESTION NO: 95
WebSphere Portal V6.1 and Rational Application Developer are installed on a developer
workstation. How can the developer take advantage of automatic portlet deployment?
A. Right click on the Portlet project, select Run As > Java Applet and select the
WebSphere Portal v6.1 server running on the workstation.
B. Right click on the Portlet project, select Run As > Run on Server and select the
WebSphere Portal v6.1 server running on the workstation.
C. Right click on the Portlet project, select Run As > Java Application and select the
WebSphere Portal v6.1 server running on the workstation.
D. Right click on the Portlet project, select Export > War File and select the portal
installedApps directory as the destination for the exported file.
Answer: B
QUESTION NO: 96
Jerome is attempting to use Rational Application Developer to debug a portal application on a
remote server but the connection is consistently failing. What configuration option is available in
Rational Application Developer to potentially fix this problem?
A. Enable caching under Window > Preferences > Internet > Cache.
B. Rightclick on the server in the Servers view and select Restart > Debug.
C. Increase the Debugger Timeout setting under Window > Preferences > Java > Debug.
D. Select Skip breakpoints during a run to Line operation under Window > Java > Run/Debug.
Answer: C
QUESTION NO: 97
Vytas installed Portlet Factory with the "Into existing IBM Rational Application Developer" option.
However when he opened up his RAD workspace, he could not find the "WebSphere Portlet
Factory" perspective. What should be his next course of action?
A. Reopen his workspace
B. Reinstall Portlet Factory
C. Go to the "Manage Configuration" screen of RAD, add the WPFDesigner\eclipse folder of his
Portlet Factory installation as an extension location and restart RAD
D. Go to the "Customize Perspective" screen of RAD and under the Shortcuts tab, make sure that
"WebSphere Portlet Factory" is checked off in the list of shortcut categories and restart RAD
Answer: C
QUESTION NO: 98
What is the guideline that you will follow to enable a portlet for parallel rendering?
A. Every portlet should be enabled for parallel rendering
B. Only WSRP consumer portlet should be enabled for parallel rendering
C. Portlets with long runningprocessAction() method should be enabled for parallel rendering
D. Portlets with long runningrender() method should be enabled for parallel rendering.
Answer: D
QUESTION NO: 99
Sunil is developing a JSR 286 compliant portlet object. How can he wants to access user
information such as firstName, lastName using the User Info object how can he get access to the
User info object.?
A. PorltetSession.getUserInfo()
B. PortletRequest.getUserInfo()
C. PorltetSession.getAttribute(PortletSession.User_INFO)
D. PortletRequest.getAttribute(PortletRequest.USER_INFO).
Answer: D
QUESTION NO: 100
How can you delete a Remember Me cookie from the user browser?
A. You can use the get rememberMe cookie in a javascript function and set expiration time to1st
Jan 1970
B. You can callrememberMeService.deleteCookie(request) to delete the cookie
C. Deletion of RememberMe cookie is not allowed
D. Create a URL pointing to
CookieService.getInvalidateCookieURL(request,response).toString(). When the user clicks on this
URL the rememberme cookie will be deleted
Answer: D
QUESTION NO: 101
John wants to cache content of a portlet, so he has defined a cache timeout of 300 in
portlet.xml like this:
<portlet>
<expirationcache>
300</expirationcache>
</portlet>
When will the cached content expire?
A. The cached content will expire after only after 300 seconds
B. The cached content will only expire after 300 milliseconds
C. The cached content will expire for all users either after 300 seconds or whenever any user
performs action on the portlet.
D. The cached content for specific user will expire either after 300 seconds or whenever that user
performs some action on the portlet.
Answer: D
QUESTION NO: 102
Derek is making decisions about which preferences in his portlet will be modifiable by various user
roles. Which of the following is a type of preference that can be changed by the portlet interface in
any standard mode?
A. Default preferences
B. Readonly preferences
C. Personalized preferences
D. Inherited role preferences
Answer: C
QUESTION NO: 103
The filter mapping for SampleRenderFilter is defined like this in portlet.xml:
<filter>
<filtername>
Sample Render Filter</filtername>
<filterclass>
com.ibm.SampleRenderFilter</filterclass>
<lifecycle>RENDER_PHASE</lifecycle>
</filter>
<filtermapping>
<filtername>
Sample Render Filter</filtername>
<portletname>
Sample*</portletname>
</filtermapping>
What requests would be filtered by the SampleRenderFilter?
A. This mapping will filter all the requests to the Sample Portlet only
B. This mapping will filter all the render requests to Sample portlet only
C. Filter mapping cannot have * in the portletname, so portlet deployment will fail
D. This mapping will filter all the render requests to all the portlets for which name starts with
Sample
Answer: D
QUESTION NO: 104
The <supports> element for Sample Portlet is defined in the portlet.xml as shown below:
<supports>
<mimetype>
text/html</mimetype>
<portletmode>
edit</mimetype>
</supports>
What will happen when you deploy the sample portlet?
A. The deployment will be successful and Sample Portlet will support EDIT mode
B. The deployment will be successful and Sample Portlet will support VIEW and EDIT mode
C. This will result in deployment error because every portlet must support VIEW mode and Sample
Portlet does not define it
D. None of the above
Answer: B
QUESTION NO: 105
Sunil wants to develop a User Profile portlet that will display all the user profile attributes using
Portlet Client Side API. How can he access the value of displayName attribute of the current user?
A. You cannot access user profile information using the client side API
B. He can attach a call back function toPortletWindow.getUserProfile() function. Then inside the
callback function he can call userProfile.getAttribute(displayName)
C. He can attach a call back function toPortletWindow.getUserProfile() function. Then inside the
callback function he can get list of all the userProfile attributes using
userProfile.getMap(). Then iterate over it to find displayName attribute
D. He can attach a call back function toPortletWindow.getUserProfile(username function. Then
inside the callback function he can call
userProfile.getAttribute(displayName)
Answer: B
QUESTION NO: 106
Can a portlet redirect a user request to different URL?
A. No portlets are not allowed to redirect user request
B. Yes portlet can redirect user requests to a different URL during the render method
C. Yes portlet can redirect user requests to a different URL during the processAction method
D. Yes portlet can redirect user requests to a different URL during the serveResource method
Answer: C
QUESTION NO: 107
What portlet state data can you change during serveResource() method called using Ajax
request?
A. You can change data in portlet session in portlet scope only.
B. Changing of portlet state is not allowed inserveResource() method
C. You can change data in Portlet Session in portlet scope and you can set
PortletPreferences
D. You can change data in Portlet Session in application and portlet scope and you can set
PortletPreferences
Answer: C
QUESTION NO: 108
Peter is working on a spelling mistake in the Portlet title. When he examined the portlet he noticed
that the portlet class overrides getTitle() method and the portlet.xml file for
portlet looks like this:
<resourcebundle>
com.ibm.sample.spellingmistake</resourcebundle>
<portletinfo>
<title>Spelling mistake</title>
</portletinfo>
Peter noticed spelling mistake in all three places. which value should be changed so that the portal
server will display the corrected title?
A. In the skin jsp page.
B. In thegetTitle() method of the portlet class.
C. Change the value of <title> element in portlet.xml
D. Change value of javax.portlet.title in the resource bundle spellingmistake..
Answer: D
QUESTION NO: 109
Evan is developing a set of 4 portlets that will be added on the same portal page. He wants to
make sure that all those portlets use similar a style for displaying error messages. What is the best
way to achieve this?
A. Use portletmsgerror style class in all your portlets
B. He should mark his JSP as error page and portal will take care of making sure that error
information has same look and feel
C. Copy the same style sheet to all your portlet war files and use the styles defined in it whenever
you want to display error message
D. Copy the style sheet only in the first portlet on that page and since the style sheet is already
loaded other portlets can use it
Answer: A
QUESTION NO: 110
Evan is developing a WSRP 2.0 Compliant portlet and he wants to send a custom java
object Sample as an event to the WSRP 2.0 Compliant remote portlet. What changes
should he make to the Sample class
public class Sample{
private String hello;
public String getHello(){
return hello;
}
public void setHello(String hello){
this.hello = hello;
}}
A. He should mark Sample class as Serializable
B. He should mark Sample class as Serializable as well as JAXB Serializable by adding
@XmlRootElement annotation
C. He should mark Sample class as Serializable as well as JAXB Serializable by adding
@XmlSerializable annotation
D. You cannot pass complex objects to the remote portlet.
Answer: B
QUESTION NO: 111
What is the output of the following code?
public PreferencePortlet extends GenericPortlet{
protected void processAction(ActionRequest actionRequest, ActionResponse){
actionRequest.getPreferences().setValue(test iewModePreferenceValue);
actionRequest.getPreferences().store();
}
protected void doView(RenderRequest renderRequest, RenderResponse renderResponse)
throws PortletException, IOException {
// Generate action URL
}
Please note that PreferencePortlet is a Portlet Specification 2.0 compliant and running in WPS 6.1.
A. The container will throw java.lang.IllegalStateException because it is not allowed to change
preference in theprocessAction() method.
B. The code will compile and execute fine. It will store test preference at the end of the
processAction() method call.
C. The container will throw java.lang.IllegalStateException because it is not allowed to change
preference in the view mode.
D. This will result in compiler error because PortletPreference does not havestore() method.
Answer: B
QUESTION NO: 112
Sunil is developing a database access portlet. He wants to query the database in the
processAction() method and pass complex data transfer object to render() method for rendering.
What mechanism would you suggest to Sunil for transferring custom java object from action to
render phase?
A. Only way to pass data from Action to render phase is using PortletSession object
B. You cannot pass custom object created inprocessAction() method to render() method.
If you do so it will result in ClassCastException when you try to access that object in render()
method
C. The default value of javax.portlet.actionScopedRequestAttributes container runtime option is
true. So you can set custom java object as request attribute on ActionRequest and it will be
available as request attribute in RenderRequest.
D. Change portlet.xml to set the javax.portlet.actionScopedRequestAttributes container runtime
option to true. Once actionScopedRequestAttributes is set to true you can set custom java object
as request attribute on ActionRequest and it will be available as request attribute in
RenderRequest..
Answer: D
QUESTION NO: 113
What content is displayed when accessing TestPortlet in the VIEW mode?
public class TestPortlet extends javax.portlet.GenericPortlet {
public void doView(RenderRequest request, RenderResponse response) throws
PortletException, IOException {
response.setContentType(request.getResponseContentType());
response.getWriter().println("Executing CertTrialPortlet.doView()");
}
@RenderMode(name="view")
public void handleView(RenderRequest request, RenderResponse response)throws
PortletException, IOException{
response.setContentType("text/html");\
response.getWriter().println("Executing CertTrialPortlet.handleView()");
}}
A. ExecutingCertTrialPortlet.doView()
B. ExecutingCertTrialPortlet.handleView()
C. IllegalStateException because you cannot have both @RenderMode=view and
doView() in same portlet
D. Compiler error indicating that you cannot have both @RenderMode=view and
doView() in TestPortlet class.
Answer: B
QUESTION NO: 114
How can you find out the value of test public render parameter on the client side ?
A. You can find it by attaching a callback function toPortletWindow.getPortletState() and then
inside the callback function you can call portletState.getParameterValue(test)
B. You can find it by attaching a callback function toPortletWindow.getPortletState() and then
inside the callback function you can call
portletState.getPublicParameterValue(test)
C. You can find it by attaching a callback function toPortletWindow.getParameter() function then
inside the callback function you can call
parameter.getPublicParameter(test)
D. You can find it by attaching a callback function toPortletWindow.getParameter() function then
inside the callback function you can call parameter.getParameter(test)
QUESTION NO: 115
Which best describes the Portlet life cycle methods can access Public render parameters?
A. processAction and render
B. render and serveResource
C. processAction and processEvent
D. processAction, render, serveResource and processEvent.
Answer: D
QUESTION NO: 116
The JSPPortlet is defined as shown in the listing
public class JSPPortlet extends GenericPortlet {
public void doView(RenderRequest request, RenderResponse response) throws
PortletException, IOException {
// Set the MIME type for the render response
response.setContentType(request.getResponseContentType());
getPortletContext().getRequestDispatcher("/_JSPPortlet/jsp/html/head.jsp").include(requ
est, response);
getPortletContext().getRequestDispatcher("/_JSPPortlet/jsp/html/body.jsp").include(requ
est, response);
getPortletContext().getRequestDispatcher("/_JSPPortlet/jsp/html/footer.jsp").include(req
uest, response);
}}
What output will be displayed to user when he tries to access JSPPortlet in VIEW mode?
A. User will see markup generated by head.jsp followed by body.jsp followed by
footer.jsp
B. The portlet will throw "java.lang.IllegalStateException: The response has already been
committed" exception
C. The JSPPortlet will not compile because PortletRequestDispatcher does not have
include() method
D. User will see markup generated by footer.jsp since it is the last call
Answer: A
QUESTION NO: 117
Evan wants to develop a portlet that will act as Consumer in Click to Action. He wants to develop
client side clicktoaction handler. Which best describes the way(s) can he get value submitted by
the target portlet?
A. He can retrieve the target form and the input inside from page Document object Model
B. He can retrieve the value from window.ibm.portal.c2a.event.value global variable
C. Either of the above
D. None of the above
Answer: C
QUESTION NO: 118
Sunil is developing a simple 1 page standard portlet. Only thing that this portlet does is forward
control to different JSP based on the browser, locale,Sunil is developing a simple 1 page standard
portlet. Only thing that this portlet does is forward control to different JSP? based on the browser,
locale, markup of the request. How can Sunil implement this functionality?
A. Use Client Profile information (CC/PP) API to find out the browser related information and
develop your logic that forwards control to different JSPs based on client information
B. Usedispatch() method of Client Profile information API instead of
PortletContext.getRequestDispatcher() method and profile information API will take care of
forwarding to different JSPs based on client information
C. He will have to create hidden inputs in the form and use javascript to submit browser
information to the server side. Then on the server side develop custom logic based on the
submitted information for forwarding control to different JSPs based on the browser.
D. There is no need to do any thing since WPS forwards control to different JSPs based on the
client. The only thing that Sunil needs to do is create standard directory structure defined by WPS
and create JSP files under appropriate directory structure. When you
callPortletContext.getRequestDispatcher(), Portal server will make sure that it picks up correct
JSP based on the client information.
Answer: A
QUESTION NO: 119
Jacob decided to use Theme Customizer to minimize the theme development time. What can be
modified in the page layout by using the Theme Customizer?
A. Portlet skin border color
B. Portlet skin caption font style
C. Portlet mode controls
D. Portlet area layout
Answer: A
QUESTION NO: 120
Robin uses DOJO with the theme to support client side programming. Which one of the following
conditions does he need to be aware of?
A. Dojo widgets are supported for use in PortalWeb2 theme.
B. Dojo Parser is automatically loaded in portlets using Dojo Widgets.
C. Many instances of DOJO can exist on a single page. All portlets on a page can use individual
instances.
D. Only one instance of Dojo can be loaded in a page. The current policy is that the first
Dojo included takes precedence.
Answer: D
QUESTION NO: 121
Jamie should create a Custom Theme Attribute testAttribute and display it in her JSP.
She uses the theme policy myThemePolicy. Which one of the following steps did she
NOT perform?
A. Initialize themePolicy in the JSP to access the testAttribute.
B. Define testAttribute and testAttributeLock in the root theme policy.
C. Define testAttribute with the value required in myThemePolicy.
D. Define both testAttribute and testAttributeLock in myThemePolicy.
Answer: D
QUESTION NO: 122
Joe needs to use a tag that designates its content as a drag zone that can be dropped into drop
zones of matching types. Which tag would he use?
A. <dnd:drop/>
B. <dnd:drag/>
C. <dnd:dragHandle/>
D. <dnd:additionalAction/>
Answer: B
QUESTION NO: 123
Jessica needs to develop a custom theme that supports 5 levels of portal navigation and multiple
navigation styles. Not all tiers and pages will be visible to all users due to security roles. Which of
the following options best describes how she should develop the theme to prevent certain users
from seeing all the levels of navigation?
A. All navigational elements in the theme should be tested to see if they are visible according to
the appropriate theme policy set for the page.
B. In the <portalnavigation: navigationLoop/> tags use the <portallogic: if/> tags to filter page,
labels, and content from the display for user groups.
C. In the <portalnavigation: navigationLoop/> tags use the page metadata to determine if the
current tier should be visible for display.
D. All navigational elements in the theme should wrap with a <portallogic: if/> tag and be
evaluated by a visibility rule.
Answer: A
QUESTION NO: 124
Tom has created a new theme, MyTheme and is required to use it for his pages. Which one of the
following steps does he need to perform to make it available in the portal?
A. Wrap the new theme as MyTheme.war using a ZIP compression tool.
B. Use the Themes and Skins portlet under Administration > Portal User Interface.
C. Copy the DOJO directory from the wps.war file beneath the Themes directory.
D. Create a new directory path using the predefined root themes, the type of markup, and the
name of the new theme, for example: themes/html/MyTheme.
Answer: B
QUESTION NO: 125
The following code demonstrates an example for theme extensions
<portalthemeext:
themeExtension id="com.ibm.portal.theme.plugin.SimpleLinks" >
<portalthemeext:
themeExtensionLoop>
<a href="<portalthemeext:
themeExtensionItemUrl />" >
<portalfmt:
title varname=
'<%=(com.ibm.portal.theme.plugin.ThemeItem)themeExtension%>' /></a>
</portalthemeext:
themeExtensionLoop>
</portalthemeext:
themeExtension>
Which one of the following is TRUE about the code?
A. This code can be included in portlet or theme jsp.
B. This code can be included only in the theme or skin jsp.
C. Extension Point com.ibm.portal.theme.plugin.SimpleLinks is not defined in
plugin.xml
D. This code displays the title of all the extensions of type SimpleLinks
Answer: B
QUESTION NO: 126
Jeff has a portlet application that contains two portlets P1 and P2. Which one of the following
steps does he need to perform so that portlet P2 is always refreshed when it interacts with portlet
P1?
A. Portlet P2 declares the initialization parameter, wps.csa.enforce.refresh and set the value to
true.
B. Portlet P1 declares the initialization parameter, wps.csa.enforce.refresh and set the value to
true.
C. Portlet P1 declares the initialization parameter, wps.csa.enforce.refresh and set the value to
false.
D. Portlet P2 declares the initialization parameter, wps.csa.enforce.refresh and set the value to
false.
Answer: B
QUESTION NO: 127
Robert needs to support a language that is read from left to right. Which tag would he use?
A. <portalfmt: bidi/>
B. <portalfmt: answer/>
C. <portalfmt: textParam/>
D. <portalfmt: identification/>
Answer: A
QUESTION NO: 128
Which PortalService method and return value indicates that a user has been authenticated using
the login form?
A. PortalService.isAuthenticated() returns false
B. PortalService.isFormAuthenticated() returns false
C. PortalService.isRememberMeCookie() returns false
D. PortalService.isFormAuthenticated() returns true
Answer: D
QUESTION NO: 129
Gaz needs to write a portlet that allows an end user to view members of groups they are allowed
to manage. The list of the user's groups is configured with the portlet. Which of the following
PUMA classes will help him get a list of users from a group?
A. PumaHome
B. PumaProfile
C. PumaLocator
D. PumaController
Answer: C
QUESTION NO: 130
Will is developing a business process application, and is at the point where he is initiating the
process instance. He has used a JNDI lookup to obtain a reference to the process server remote
EJB interface. Next he codes the portlet to start the process with an input message. Once the
process starts, what is returned to the caller by the operation?
A. The processinstance name
B. The process template name
C. The object ID of the new process instance
D. A reference to the BusinessProcess session bean
Answer: C
QUESTION NO: 131
Dmitry is creating a custom Portlet Service to be used by JSR 168 and 286 portlets.
Which interface(s) must he implement to create this type of Portlet Service?
A. com.ibm.portal.portlet.service.PortletService only
B. com.ibm.portal.portlet.service.PortletService,
com.ibm.portal.portlet.service.spi.PortletServiceProvider
C. org.apache.jetspeed.portlet.service.PortletService,
com.ibm.portal.portlet.service.spi.PortletServiceProvider
D. com.ibm.portal.portlet.service.PortletService,
org.apache.jetspeed.portlet.service.PortletService,
com.ibm.portal.portlet.service.spi.PortletServiceProvider
Answer: B
QUESTION NO: 132
Evan needs to share action parameters used in a portlet with an other portlet. In the binding
section of the Web Services Description Language (WSDL) files used for specifying a portlet's
participation with the Property Broker, an action parameter can be bound to several scopes. Which
one of the following options best describes the scope's
Evan can use to share the action parameters using the Property Broker.
A. Page attribute, Request attribute, Request parameter, Session attribute
B. Request attribute, Request parameter, or Session attribute
C. Request parameter or Session attribute
D. Session attribute only
Answer: B
QUESTION NO: 133
The following code sample is an excerpt from an implementation of a custom
ExplicitLoginFilter.
1 public void login(HttpServletRequest req, HttpServletResponse resp, String userID,
char[]
2 password, FilterChainContext portalLoginContext, Subject subject, String realm,
3 ExplicitLoginFilterChain chain) throws Exception {
4
5 chain.login(req, resp, userID, password, portalLoginContext, subject, realm);
6
7 String myjndiname = UserAgreementService.JNDI_NAME;
8 UserAgreementService mySrv =
9 (UserAgreementService) ctx.lookup(myjndiname);
10 if( mySrv.checkUser(userID) ) {
11 // send user to license agreement page
12 }
13 }
Evan needs to implement custom logic to check whether the user needs to accept an updated end
user agreement. Which one of the following lines of code will allow the user to be sent the friendly
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);
Answer: B
QUESTION NO: 134
ReallyBigCompany's new portal is in testing and the testing group users are complaining about the
performance of a custom login portlet. The users aren't very specific but are complaining very
loudly to the project manager that the portlet is 'slow'. Assuming
Performance Monitoring Infrastructure (PMI) is enabled, how does one determine the average
response time of the portlet?
A. Log into the WebSphere Application Server administration console, navigate Monitoring and
Tuning>Performance Viewer>Current Activity and select Servlets from the Summary Reports. The
average response time and total requests are listed in Servlets Summary Report.
B. Log into the WebSphere Application Server administration console, navigate Monitoring and
Tuning>Performance Viewer>Current Activity and select Portlets from the Summary Reports. The
average response time and total requests are listed in Portlets Summary Report.
C. Log into the WebSphere Application Server administration console, navigate Monitoring and
Tuning>Performance Viewer>View Logs and inspect the System.out log for log4j entries
D. Log into the WebSphere Application Server administration console, navigate Monitoring and
Tuning>Performance Viewer>Request Metrics and select Servlets from the Summary Reports.
The average response time and total requests are listed in Servlets Summary Report.
Answer: A
QUESTION NO: 135
How is debug tracing enabled when a Portlet Factory model is run and where do the logs appear?
A. It is enabled by default and they are written to the SystemOut logs.
B. It is enabled by default and they are written to the
WebContent/WEBINF/logs/*.PF.log file.
C. Select the "Run with system tracing" option in the Run Configuration and they are written to the
SystemOut logs.
D. Select the "Run with system tracing" option in the Run Configuration and they are written to the
WebContent/WEBINF/ logs/*.PF.log file.
Answer: C
QUESTION NO: 136
Wylie is trying to view the debug statements in a portlet that writes its logs using the
com.ibm.wps.logging.LogManager class. What does he need to do in order to see the debug
statements?
A. Search for the statements in the SystemOut
B. Search for the statements in the SystemErr
C. Go to WAS console and enable tracing for the packages in that portlet and search for the
statements in the trace log.
D. Open the log4j properties of the portlet, find out which file the logs are being written to and
search for the statements there.
Answer: C
QUESTION NO: 137
Amy is developing a portlet for WebSphere Portal 6.1 in RAD 7.5 and wishes to debug it.
There is no personalization or other reason that the portlet must be run on a remote server, so she
can debug it locally.What must be installed on the local machine?
A. WebSphere Portal 6.1 Remote Server Attach
B. A local full or admin copy of WebSphere Portal 6.1 Server
C. A local WAS server with a WebSphere Portal 6.1 Server stub
D. A local Unit Test Environment (UTE) of WebSphere Portal 6.1 Server
Answer: B
QUESTION NO: 138
A developer needs to test and debug a JSR 168 portlet running on a remote WebSphere Portal
V6.1 server. What steps are needed to prepare the remote server before the developer can use
Rational Application Developer 7.5 to test and debug?
A. The debug mode and parameters need to be set in WebSphere Portal Administration and
WebSphere Portal needs to be restarted.
B. The debug mode and parameters need to be set in WebSphere Application Server
Administrative Console and WebSphere Portal needs to be restarted.
C. The debug mode and parameters need to be set in wpconfig.properties and
WPSconfig, the WebSphere Portal configuration task needs to be run.
D. The portal.enable.jsr168 must be set to true in ConfigService.properties and
WebSphere Portal needs to be restarted.
Answer: B
QUESTION NO: 139
The changes in log level made using Enable Tracing portlet would be effective till what time?
A. Until the server is restarted
B. Until the current user logs out
C. Only way the log levels would get modified is if you go to Enable tracing portlet and change
them
D. None of the above
Answer: A
QUESTION NO: 140
For a web application with multiple Struts portlets, how or where are the initial views of the
individual portlets specified?
A. In the welcome file list in the application's web.xml.
B. In the viewMode.page preferences attributes in the individual portlet.xml.
C. As viewMode properties in the actions section in the individual strutsconfig.xml.
D. As view attributes in the supports section of the individual portlet.xml.
Answer: B
QUESTION NO: 141
Don needs to integrate a custom portlet application with content stored in Lotus Web
Content Management(WCM) repository. Which of the following code fragments can he use in his
portlet to access the content in the WCM repository using the current user privileges? Code
fragments can he use in his portlet to access the content in the WCM repository using the current
user? privileges?
A. WCM_API.getRepository().getSystemWorkspace()
B. WCM_API.getRepository().getWorkspace((String)username);
C. Repository repository = (Repository)
ctx.lookup("javax/jcr/ContentRepositoryFactory");
repository.login((Credentials) cred, library/wcm.getWorkspace()
D. WebContentService webContentService = (WebContentService)
ctx.lookup("portal:service/wcm/WebContentService");
webContentService.getRepository().getWorkspace()
Answer: D
QUESTION NO: 142
Which one of the following statements are valid regarding credential objects?
A. Credential objects are fertilizable.
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 itself.
Answer: B
QUESTION NO: 143
Which of the following is valid about downloadable portlets from the WebSphere Portal Business
Solutions Catalog?
A. Portlets available for download are only hosted by the WebSphere Portal Business
Solutions Catalog web site.
B. Portlets available for download follow open standards.
C. Portlets available for download are free, trial based and fee based.
D. Portlets available for download are specific to a particular industry.
Answer: C
QUESTION NO: 144
The Personalization resource wizard in Rational Application Developer is used to generate the
content spot classes and resource collection classes. If the content spot and resource collection
will be used by multiple applications, then those classes should be:
A. Deployed together with the related portlets in the portlet application WAR file.
B. Placed in the WebSphere Application Server shared library.
C. Placed directly in the pzn_root/pzn/v6.1/lib directory.
D. Uploaded using the Personalization interface.
Answer: B
QUESTION NO: 145
How could a JSR 168 portlet's doHelp(PortletRequest request, PortletResponse response)
method obtain a list of locales for which the portal will accept content for a request?
A. response.getLocale();
B. response.getLocales();
C. request.getLocale();
D. request.getLocales();
Answer: D
QUESTION NO: 146
What is a processing advantage of public parameters over eventing?
A. No action phase required
B. No limits to the payload data.
C. No need to distribute events to portlets.
D. Notificationare handled by the browser.
Answer: A
QUESTION NO: 147
A remote portlet is integrated into a portal implementation using WSRP. What new
WSRP 2.0 feature is enabled in WebSphere Portal 6.1 for sharing parameters with other
portlets without the wiring the producer and consumer portlet?
A. Eventing
B. Cookie Handling
C. Resource Serving
D. Public Render Parameters
Answer: D
QUESTION NO: 148
A portal customer has numerous Excel spreadsheets containing operational data for their natural
gas business. These Excel spreadsheets contain advanced formatting features such a pivot
tables. What portal accelerator enables the import and display of these Excel spreadsheets into
portal?
A. Content Accelerator
B. Dashboard Accelerator
C. SelfService Accelerator
D. Collaboration Accelerator
Answer: B
QUESTION NO: 149
Sunil is developing an Ajax Portlet. He is creating an instance of XMLHttpRequest object like this
var request = new XMLHttpRequest();What should Sunil do to attach sampleAjax() function to
request object as event handler that gets invoked on every state change?
A. request.readystatechange =sampleAjax();
B. request.readystatechange = sampleAjax;
C. request.statechange=sampleAjax;
D. request.statechange=sampleAjax();
Answer: C
QUESTION NO: 150
The SampleEventPortlet is implemented like this
pubic SampleEventPortlet extends GenericPortlet implements EvenPortlet{
@ProcessEvent(name=a.b.)
public void processABEvent(EventRequest request, EventResponse response){
System.out.printIn(Executing SampleEventPortlet.processABEvent();
}
@ProcessEvent(name=a.b.c.)
public void processABCEvent(EventRequest request, EventResponse response){
System.out.printIn(Executing SampleEventPortlet.processABCEvent();
}
public void processEvent(EventRequest request, EventResponse response){
System.out.printIn(Executing SampleEventPortlet.processEvent();
}}
What will happen when SampleEventPortlet receives a.b.c.d event?
A. ExecutingSampleEventPortlet.processEvent()
B. Executing SampleEventPortletProcessABEvent()
C. Executing SampleEventPortletProcessABCEvent()
D. The SampleEventPortlet code is not compilable because the format of name attribute in
@ProcessEvent cannot end with
Answer: C
Most imp recap before exam :-
1)The Notes mail portlet needs to store the user's Notes password. As most users will actually use
this portlet, the administrator needs to create a "Lotus Notes Credential Slot" for it through the
Credential Vault administrative portlet. Using the portlet's configure mode, the administrator sets
the vault slot ID for all portlet entries. The portlet allows users to set their personal Notes
password in edit mode. The portlet can store each user's password in the credential vault.
If the company would use a Lotus Domino server within the same single sign-on domain as
portal, it would also be possible to use an LTPAToken Credential based on the user's JAAS
Subject. This credential offers access to the domino server through an authenticated connection
that reuses the user's LTPA token
A)ADMINISTRATIVE SLOT
2)WHAT API YOU WILL USE TO IMPLEMENT PERSONALIZATIOn?
ANS:.> COM. IBM.websphere.personalization.PZN
3)The Navigation model allows read access only; -->WHICH MODEL ALLOWS READ ONLY ACEESS
4)STUDY site management portlet
5)Widgets and portlets can communicate
-->using public render parameters.
-->Using portlet events
6) What basically rad gives
Faces portlet
Empty Portlet
Basic Portlet
7)how to get ratting in portal
RatingModelController
8)Session Validation: This is called for every request before actions are triggered and the page is rendered.
This is represented by the interface com.ibm.portal.auth.SessionValidationFilter.
9)Note: At this time there is no controller for the following models:
-->NavigationModel. This is by implication of the structure of the content model.
-->NavigationSelectionModel. This is computed from the navigational state per request.
-->LanguageList, MarkupList, SkinList, and ThemeList.
10)
line 1->PumaProfile pp = service.getProfile(request); //get the use PumaProfile object--> line 1 wont be mentioned you have to find it
line 2->User user = pp.getCurrentUser(); //get the current user
line 3->PumaLocator pl = service.getLocator(request); //get the PumaLocator object
line 4 -> List user_groups_list = pl.findGroupsByPrincipal(user, false);
11)four options they will give and which of them will be true they will ask the bellow one will be true
a->The Remember me cookie does not extend the Portal Personalization feature to the public area
because a user identified by the Remember me cookie in a public area is still considered anonymous from an access control point of view.
12)
see how to get init parameters:-
A->portletConfig.getInitparameter(“test”);
13)gENERIC PORTLET IMPLEMENTS :-
EventPortlet and ResourceServingPortlet
14) If a jsp is included using serve resource and a render parameter is set in that how you will access it ?
ResourceRequest resourceRequest and ResourceResponse resourceResponse (if the JSP is included from serveResource method)
15)
you have to wire the remote portlets on the Consumer side as you would have to do when using events for local portlets.
16)which patern is wrong
@serve resource<name=action name>
17)Example1: <div class="portlet-font" style="font-size:larger">Important information</div>
Example2: <div class="portlet-font-dim" style="font-size:80%">Small and dim</div>
In this case the developer is using portlet-font and portlet-font-dim css classes, when this portlet is deployed in IBM WPS and we apply IBM theme, it will provide implementation of the class.
18)for checking performance what requests can you monitor in a portlet
Number of component requests
Number of loaded portlets
• Number of portlet errors
• Number of portlet requests
• Response time of the portlet processEvent request
• Response time of a portlet serveResource request
• Response time of the portlet action
• Response time of the portlet render.
19)7. To add a new category, edit the file in WebDAV at dav/fs-type1/themes/PageBuilder2/system/changeStyle.json and add another item to the categories array in the json object.
Example:
{"label":"My new category",
"searchStr":"Search my new category",
"datastore":"com.ibm.data.JsonStore",
"url":”path_to_your_styles_json_file"
}
where the attribute url is the path to a json file that contains the style entries for the new category. Model this json file after the one in WebDAV at
dav/fs-type1/themes/PageBuilder2/system/styles.json . --> ans
20)The portal can load the iWidget definitions from the following locations:
• A location that the portal can access via HTTP routed through the portal Ajax Proxy
• A server relative URL that is relative to the portal server
• A location within the portal WebDAV file store that is identified by a corresponding portal WebDAV URI.
answer is all the three
21)"ibmCfg.themeConfig" defines a parameter named "dndSourceDefinitions"
22)Server-side dynamic content spots
<a rel="dynamic-content" href="lm:title">
class='lm-dynamic-title'
This provides a client-side way for changing the title of the skin dynamically at runtime.
23) Most important points
The theme-related WebDAV has the following entry points:
• The list of themes (dav:themelist) displays all the themes, both Page Builder themes and non Page Builder themes, that are installed on the server.
• The list of skins (dav: skinlist) shows the list of skins that are installed on the server.
• FileStore (dav:fs-type1) is the WebDAV file store where all the static resources are stored.
– /fs-type1/themes/ is the entry point for creating, updating, or deleting static skin HTML, CSS, JavaScript, and image resources.
– /fs-type1/layout-templates/ is the entry point for creating, updating, or deleting static layout template HTML, CSS, JavaScript, and image resources.
– /fs-type1/common-resources/ is the entry point for common static resources that are shared by multiple themes
http://<server name>:<port>/wps/mycontenthandler/dav/fs-type1
http://<server name>:<port>/wps/mycontenthandler/dav/themelist/
http://<server name>:<port>/wps/mycontenthandler/dav/skinlist/
*if you want to make your theme from were you will copy the theme?
http://<server name>:<port>/wps/mycontenthandler/dav/themelist/
*what is wrong in bellow options?
Ans:-> http://<server name>:<port>/wps/mycontenthandler/dav/system
No comments:
Post a Comment