Page 1 of 1

Liferay Certified Professional Developer Questions + Answers

Posted: Thu Mar 03, 2022 7:56 am
by answerhappygod
QUESTION 1
A hook plugin can extend and override: (Please select all correct answers.)
A. CoreportalStrutsactions
B. CoreportletStrutsactions
C. Portletplugin Struts actions
D. Layout template Struts actions
Correct Answer: AB Section: (none) Explanation
Explanation/Reference:
answer is right.
QUESTION 2
To customize the default success message displayed by MVCPortlet:
A. AddacustomkeytotheSessionMessagesobject
B. Overridethelanguagekeydefault-success-messageinLanguage.properties
C. Provide a <default-message-mapping> entry in liferay-portlet.xml
D. Pass a parameter called 'success'' in the ActionURL and map it to a custom language key
Correct Answer: A Section: (none) Explanation
Explanation/Reference:
Explanation:
QUESTION 3
The recommended way to cleanly redeploy an Ext plugin is to:
A. RemovethepluginWARfilefromtheserverandredeploy
B. Setext.redeploy.enabledto''true''
C. Remove the ext-plugin-[nameof plugin],xml file in the deployed Liferay application and redeploy D. Start from a clean instance of the server and redeploy
Correct Answer: D Section: (none) Explanation
Explanation/Reference:
Explanation:
QUESTION 4
Supported plugin types in the Plugins SDK include: (Please select all correct answers.)
A. AlloyUIplugins
B. Extplugins
C. Hook plugins
D. Web plugins
E. Layouttemplateplugins
F. Portlet plugins
Correct Answer: BCDEF Section: (none)

Explanation
Explanation/Reference:
Answer: B,C,D,E,F Explanation:
QUESTION 5
Objects stored in the portlet application scope session are available to:

A. Anyportletonthesamepage
B. Anyportletinthesameportletapplication
C. Anyportletwithintheportalapplication
D. Only the portlet that stored the object in the session
Correct Answer: B Section: (none) Explanation
Explanation/Reference:
answer is perfect.
QUESTION 6
To start Liferay with developer properties:
A. SettheportaI.developer,modepropertyinportal-ext.propertiesto''true"
B. Includeportal-developer.propertiesduringJavastartup,orinportal-ext.properties
C. Navigate to Server Administration in the Control Panel and set the portal.developer.mode property to "true"
D. Copy portal-developer.properties from the portal's classes directory to the Liferay home directory and restart the server
Correct Answer: B Section: (none) Explanation
Explanation/Reference:
good answer.
QUESTION 7
The method to get the value of a custom field for a User object named "user" is:
A. ExpandoLocalServiceUtil.getAttribute(user) B. user.getExpandoBridge().getAttribute()
C. user.getExpando()
D. PortalUtil.getExpando(user)
Correct Answer: B Section: (none) Explanation
Explanation/Reference:
Explanation:

QUESTION 8
In portal.properties:
login,events.post=\
com.liferay.portal.events.ChannelLoginPostActionA,\ com.liferay.portal.events.Defaultl_andingPageAction,\ com.liferay.portal.events.LoginPostAction
A hook plugin can insert a new class between DefaultLandingPageAction and LoginPostAction.
A. True B. False
Correct Answer: B Section: (none) Explanation
Explanation/Reference:
absolute answer.
QUESTION 9
The descriptor liferay-portlet.xml:
A. DefinesLiferay-specificportletfeatures
B. DefinesthecategoriesoftheAddApplicationmenu C. Identifies portlets that only run onLiferay
D. All of the above
Correct Answer: A Section: (none) Explanation
Explanation/Reference:
Explanation:
QUESTION 10
Not all of the fields in the User object are searchable out of the box. The recommended way to make these fields searchable is to:
A. CreateahookpluginthatoverridestheUserservicetoindextherequiredfields
B. CreateahookpluginthatoverridestheedituserStrutsactiontoindextherequiredfields C. Create an Ext plugin that extends the User indexer to index the required fields
D. Create a hook plugin that implements an indexer post processor to index the required fields
Correct Answer: D Section: (none) Explanation
Explanation/Reference:
answer is true.
QUESTION 11
Events supported by JSR-286 portlets for interportlet communication are: (Please select all correct answers.)
A. Publishingevents B. Processingevents C. Global events
D. Lifecycle events
Correct Answer: AB

Section: (none) Explanation
Explanation/Reference:
answer is fit.
QUESTION 12
The recommended way to display a web content article in a theme:
A. UsetheAssetEntryserviceinportal_normal.vmtogetthedesiredarticle
B. EmbedtheWebContentDisplayportlet,passinginthedesiredarticleIDtotheportletURL
C. Embed the Web Content Display portlet, passing in portlet preferences set to the desired article D. Create a JSP hook that gets the desired article from the JournalArticle service
Correct Answer: C Section: (none) Explanation
Explanation/Reference:
answer is accurate.
QUESTION 13
After removing a customization from an Ext plugin, the recommended way to redeploy in a development environment is to:
A. Redeploythepluginandrestarttheserver
B. Undeploytheoriginalpluginanddeploytheupdatedplugin
C. Start with a clean instance of the server and deploy all plugins D. Redeploy all plugins and restart the server
Correct Answer: C Section: (none) Explanation
Explanation/Reference:
to the point answer.
QUESTION 14
The following statements about plugins are true: (Please select all correct answers.)
A. Allpluginsarehot-deployable
B. Pluginscanbeusedtomodifycoreportalbehavior C. Plugins can be used to modify the layout of a page D. Liferay supports six different types of plugins
E. Pluginsarethepreferreddevelopmentapproach
Correct Answer: BCDE Section: (none) Explanation
Explanation/Reference:
answer is up to dated.
QUESTION 15
The "companyId" is a(n):
A. Portalinstance B. Organization C. Site

D. Team
Correct Answer: A Section: (none) Explanation
Explanation/Reference:
real answer.
QUESTION 16
Creating a Struts action hook requires the following elements in liferay-hook.xml: (Please select all correct answers.)
A. <struts-hook>
B. <struts-action-path> C. <struts-action-impl> D. <override-struts-path> E. <struts-action>
Correct Answer: BCE Section: (none) Explanation
Explanation/Reference:
answer is good.
QUESTION 17
The Plugins SDK uses:
A. portal-service.jar
B. JARfilesfromtheuser'shomedirectory C. portal-impl.jar
D. portal-plugin.jar
Correct Answer: A Section: (none) Explanation
Explanation/Reference:
Explanation:
QUESTION 18
The descriptor liferay-hook.xml defines the location to override a core JSP using:
A. <url-pattern>
B. <custom-jsp-global> C. <custom-jsp-dir>
D. <jsp-override>
E. <include-and-override>
Correct Answer: C Section: (none) Explanation
Explanation/Reference:
Explanation:
QUESTION 19
To map a Service Builder entity to an existing database table in service.xml the entity name must match the database table name.

A. True B. False
Correct Answer: B Section: (none) Explanation
Explanation/Reference:
Explanation:
QUESTION 20
In portal.properties, the following property lists portlets that can be embedded on any page: portlet.add(default.resource.check.whitelist=3,56_INST ANCE_0000,5S,S2,S6,87,88/103,113,145,164,
The property is listed in liferay-hook_6_l_0.dtd as a property that can can be overridden with a hook.
The recommended way to prevent embedding the Search portlet ("3") is to create a hook plugin.
A. True B. False
Correct Answer: B Section: (none) Explanation
Explanation/Reference:
Explanation:
QUESTION 21
The location of the XML file that determines permissions for a portlet plugin is configured by:
A. TheVMargument"resource-actions-configs"
B. Theportletproperty"resource.actions.configs"
C. The init parameter "resource-actions-configs"
D. Aportalproperty"plugin.resource.actions.configs"
Correct Answer: B Section: (none) Explanation
Explanation/Reference:
Explanation:
QUESTION 22
AlloyUI is:
A. AJavaScriptlibrary B. ACSSframework C. A tag library
D. All of the above
Correct Answer: D Section: (none) Explanation
Explanation/Reference:
Explanation:
QUESTION 23

The JavaScript method that executes as soon as the HTML document has finished loading is:
A. AUI().ready(fn)
B. Liferay.Portlet.ready(fn) C. Liferay.on(fn)
D. None of the above
Correct Answer: A Section: (none) Explanation
Explanation/Reference:
Explanation:
QUESTION 24
Advantages of hook plugins over Ext plugins include: (Please select all correct answers.)
A. Ahookpluginishotdeployable,whileanExtpluginisnot
B. Ahookpluginhasdirectaccesstotheportalclassloader,whileanExtplugindoesnot C. A hook plugin provides an easier upgrade path for overriding core services and JSPs D. A hook plugin can modify service layer classes, while an Ext plugin cannot
Correct Answer: AC Section: (none) Explanation
Explanation/Reference:
Explanation:

QUESTION 25
The recommended way to add a custom class to Liferay's startup process is to:
A. Createaportal-ext.propertiesfileintheLiferayHomedirectorythataddsthecustomclassto global.startup.events, and add the custom class to the deployed Liferay application
B. CreateanExtpluginthatreplacesthevalueofglobal.startup.eventswiththecustomclass,andaddthe custom class to the plugin
C. Create a portal-ext.properties file in the Liferay Home directory that replaces the value of global.startup.events with the custom class, and add the custom class to portal-impl.jar
D. Create an Ext plugin that adds the custom class to global.startup.events, and add the custom class to the plugin
Correct Answer: D Section: (none) Explanation
Explanation/Reference:
Explanation:
QUESTION 26
Tables are created in the database for a Service Builder entity after: A. TheAnt"build-service"targethasrun

B. Theportletisdeployedforthefirsttime
C. The portlet is added to a page for the first time D. Tables must be created manually
Correct Answer: B Section: (none) Explanation
Explanation/Reference:
Explanation:
QUESTION 27
After a portlet completes the action phase:
A. Onlythatportletenterstherenderphase
B. Allportletsonthepageentertherenderphase
C. Anyportletwhosedatahaschangedenterstherenderphase
D. Nothing happens since the render phase occurs before the action phase
Correct Answer: B Section: (none) Explanation
Explanation/Reference:
Explanation:
QUESTION 28
When embeddding a plugin portlet in a layout template with $processor.processPortlet() use the:
A. Portletname
B. FullyqualifiedportletID
C. Portlet URL
D. Fullyqualifieddisplayname
Correct Answer: B Section: (none) Explanation
Explanation/Reference:
Explanation:
QUESTION 29
The following code:
GetterUtil.getlnteger("one") returns:
A. 0
B. 1
C. The code throws a java.lang.ArithmeticException
D. The code throws a com.liferay.portal.kernel.exception.SystemException
Correct Answer: A Section: (none) Explanation
Explanation/Reference:
Explanation:
QUESTION 30

The method to get theme settings in a theme is:
A. $portalUtil.getSetting()
B. $theme.getSetting()
C. $layout.getSetting()
D. $themeDisplay.getSetting()
Correct Answer: B Section: (none) Explanation
Explanation/Reference:
Explanation:
QUESTION 31
The recommended way to customize how the User object indexes information is through a(n):
A. Hook plugin
B. Directmodificationoftheportalsource C. Ext plugin
D. Ext environment
Correct Answer: A Section: (none) Explanation
Explanation/Reference:
Explanation:
QUESTION 32
The recommended way to implement a service wrapper hook that customizes the authenticateByScreenName() method of the User service using a class called com.sample.MyUserLocalServicelmpI is to: (Please select all correct answers.)
A. Addthefollowingtoliferay-hook.xml:<service><service- type>com.liferay.portal.service.UserLocalService</service-type><service- impl>com.sample.MyUserLocalServiceImpl</service-impl></service>
B. CopyallofthemethodsfromUserLocalServicelmpItoMyUserLocalServicelmpI
C. Override the authenticateByScreenName() method in MyUserLocalServicelmpI
D. Add the following to liferay-plugin-package.properties:required -deployment- contexts=UserLocalServ ice
E. Implementcustomlogicandcallsuper.authenticateByScreenNameQifapplicable
Correct Answer: ACE Section: (none) Explanation
Explanation/Reference:
Explanation:
QUESTION 33
Service Builder entities are defined in:
A. portlet.xml
B. liferay-portlet.xml C. service, xml
D. web.xml
Correct Answer: C

Section: (none) Explanation
Explanation/Reference:
Explanation:
QUESTION 34
MVCPortlet directs page flow using:
A. Thecontroller()method
B. Arenderparametercalled"mvcPath"
C. A direct link to the JSP with a relative URL D. A public render parameter called "path"
Correct Answer: B Section: (none) Explanation
Explanation/Reference:
Explanation:
QUESTION 35
The following classes can be imported when overriding a core JSP using a hook plugin: (Please select all correct answers.)
A. Classesresidingintheglobalclassloader
B. Classesresidingintheportalclassloader
C. Classes residing in the portlet plugin class loader D. Classes residing in the hook plugin class loader
Correct Answer: AB Section: (none) Explanation
Explanation/Reference:
Explanation:
QUESTION 36
User-specific properties in the Plugins SDK for the user "jsmith'' are configured in:
A. build.jsmith.properties B. pom.xml
C. pom.jsmith.properties D. portal.settings
E. portal.properties
F. portal-ext.properties
Correct Answer: A Section: (none) Explanation
Explanation/Reference:
Explanation:
QUESTION 37
The permissionChecker.hasPermission() method requires the following parameters to determine if a user has the permissions to update a resource: (Please select all correct answers.)
A. GroupID

B. UserID
C. Action ID
D. CompanyID
E. Resourceprimarykey F. Resourcename
Correct Answer: ACEF Section: (none) Explanation
Explanation/Reference:
Explanation:
QUESTION 38
Liferay's core remote services: (Please select all correct answers.)
A. Canonlyreturnprimitivetypes
B. Performpermissionchecking
C. Must be invoked through web services
D. Are accessed through Java or web services
Correct Answer: BD Section: (none) Explanation
Explanation/Reference:
Explanation:
QUESTION 39
Language hooks cannot be used to add new language keys.
A. True B. False
Correct Answer: B Section: (none) Explanation
Explanation/Reference:
Explanation:
QUESTION 40
Liferay's persistence layer: (Please select all correct answers.)
A. ReliesonEnterpriseJavaBeanstoensurecompatibilitywithallmajorapplicationservers B. UsesHibernatebydefaulttoensurecompatibilitywithallmajordatabaseservers
C. Can be invoked directly from the UI layer
D. Can be configured to use JPA
Correct Answer: BD Section: (none) Explanation
Explanation/Reference:
Explanation:
QUESTION 41
To define portlet actions in separate classes using MVCPortlet: (Please select all correct answers.)

A. EachclassmustimplementtheMVCActioninterface
B. EachclassmustimplementtheActionCommandinterface
C. Each class must implement a processCommand() method that returns a boolean to indicate if the action completed
D. Each class must implement a renderCommand() method
Correct Answer: BC Section: (none) Explanation
Explanation/Reference:
Explanation:
QUESTION 42
A Liferay utility to verify the format of an email address is:
A. Validator.isEmailAddress() B. HTMLUtil.isEmailAddress() C. StringUtil.isEmailAddress() D. Corrector.isEmailAddress() E. GetterUtil.isEmailAddress() F. ParamUtil.isEmailAddress()
Correct Answer: A Section: (none) Explanation
Explanation/Reference:
Explanation:
QUESTION 43
The portal properties that a hook plugin can override are defined in:
A. portal.properties
B. portal-ext.properties C. Iiferay-hook_6_l_0.dtd D. liferay-hook.xml
E. portal-hook.properties F. portal-hook_6_l_0.dtd
Correct Answer: C Section: (none) Explanation
Explanation/Reference:
Explanation:
QUESTION 44
The file containing the HTML document for a typical page is:
A. portal.vm
B. portal_normal.vm C. liferay-portal.vm D. init.vm
Correct Answer: B Section: (none) Explanation

Explanation/Reference:
Explanation:
QUESTION 45
The standard JSR-286 portlet modes are: (Please select all correct answers.)
A. Help
B. Configuration C. Print
D. Edit
E. View
F. About
Correct Answer: ADE Section: (none) Explanation
Explanation/Reference:
Explanation:
QUESTION 46
The recommended way to automatically add tags when creating web content is to:
A. CreateamodellistenerinahookpluginandimplementtheonAfterCreate()method B. CreateamodellistenerinahookpluginandimplementtheonBeforeCreate()method C. Create an Ext plugin to extend and override JournalArticleLocalServicelmpI
D. Create a hook plugin and use a service wrapper to extend JournalArticleLocalService
Correct Answer: D Section: (none) Explanation
Explanation/Reference:
Explanation:
QUESTION 47
To display a success message in a JSP use:
A. <liferay-ui:successmessage="part-deleted-successfully"/>
B. <liferay-ui:successkey="part-deleted-successfully"/>
C. <alloy-ui:success key="part-deleted'' message="part-deleted-successfully" /> D. <liferay-ui:success key= "part-deleted" message="part-deleted-successfully" />
Correct Answer: D Section: (none) Explanation
Explanation/Reference:
Explanation:
QUESTION 48
A portlet application only needs the standard web.xml deployment descriptor to be considered valid.
A. True B. False
Correct Answer: B Section: (none)

Explanation Explanation/Reference:
Explanation:
QUESTION 49
The method to retrieve a list of organizations where a user has direct membership is:
A. OrganizationLocalServiceUtil.getUserOrganizations() B. UserLocaIServiceUtil.getUserOrganizations()
C. GroupLocalServiceUtil.getUserOrganizations()
D. All of the above
Correct Answer: A Section: (none) Explanation
Explanation/Reference:
Explanation:
QUESTION 50
The recommended way to share language keys across portlet applications is:
A. Createaresourcebundleinoneportletanddeclareadependencyintheotherportlets B. CreateanExtpluginwiththelanguagekeysfromalloftheportlets
C. Create a symbolic link in the portlets pointing to an external resource bundle
D. Create a hook plugin containing language keys from all of the portlets

Correct Answer: D Section: (none) Explanation
Explanation/Reference:
Explanation:
QUESTION 51
The best way to add a new language key to the portal is through:
A. TheControlPanel
B. Ahookplugin
C. An Ext plugin
D. Modifying Liferay's source
Correct Answer: B Section: (none) Explanation
Explanation/Reference:
Explanation:
QUESTION 52
The recommended way to add support for a new locale is to:

A. CreateanExtpluginthataddsalanguagepropertiesfileforthedesiredlocale
B. CreateanExtpluginthataddsalanguagepropertiesfileforthedesiredlocaleandimplementsa servlet filter mapping using IlSnFilter
C. Create a hook plugin that adds a language properties file for the desired locale and implements a servlet filter hook to invoke IlSnFilter through PortalClassLoaderFilter
D. Create a portlet plugin that overrides the core language filter to recognize the desired locale
Correct Answer: C Section: (none) Explanation
Explanation/Reference:
Explanation:
QUESTION 53
The settings in portal-developer.properties:
A. Enablefasterdeploymentofplugins
B. DisableminificationofCSSandJavaScript
C. Assist deployment from a development to a production environment D. Precompile Velocity and FreeMarker templates
Correct Answer: B Section: (none) Explanation
Explanation/Reference:
Explanation:
QUESTION 54
Portlets can use interportletcommunication to: (Please select all correct answers.)
A. Passanyserializableobjectasaneventpayload B. Triggermultipleevents
C. Invoke events directly from the render phase
D. Enforce the processing order of events
Correct Answer: AB Section: (none) Explanation
Explanation/Reference:
Explanation:
QUESTION 55
The recommended way to make an isolated change to a core JSP is to:
A. CreateanExtplugintocreateabackupoftheoriginalJSPandextendthebackupJSP
B. CreateahookplugintooverridetheoriginalJSPusingthe<liferay-util:buffer>tagtocopythecontents of the JSP
C. Create a hook plugin to override the original JSP using the <file-name>-override.jsp pattern
D. Create an Ext plugin to override the original JSP using the <liferay-util:include> tag to copy the contents of the JSP
Correct Answer: B Section: (none) Explanation

Explanation/Reference:
Explanation:
QUESTION 56
Liferay's core JavaScript framework is:
A. jQuery
B. Dojo
C. MooTools D. AlloyUI
E. YUI
Correct Answer: D Section: (none) Explanation
Explanation/Reference:
Explanation:
QUESTION 57
A Struts action hook cannot define new Struts actions.
A. True B. False
Correct Answer: B Section: (none) Explanation
Explanation/Reference:
Explanation:
QUESTION 58
AlloyUI is a framework built on:
A. YUI2
B. jQuery
C. YUI3
D. None of the above
Correct Answer: C Section: (none) Explanation
Explanation/Reference:
Explanation:
QUESTION 59
A portlet can be assigned to a category in the Add Application menu using:
A. liferay-display.xml B. liferay-portlet.xml C. liferay-category.xml D. liferay-menu.xml
Correct Answer: A Section: (none) Explanation

Explanation/Reference:
Explanation:
QUESTION 60
A solution that requires modifying the Blogs portlet by overriding several core JSPs and a Struts action is best developed as:
A. Asinglehookplugin
B. AStrutshookpluginandaJSPhookplugin
C. A single Ext plugin
D. A Struts hook plugin and several JSP hook plugins
Correct Answer: A Section: (none) Explanation
Explanation/Reference:
Explanation:
QUESTION 61
Default CSS files in a theme are imported by:
A. base.css B. main.css C. style.css D. import.ess
Correct Answer: B Section: (none) Explanation
Explanation/Reference:
Explanation:
QUESTION 62
The recommended plugin type to use for a new servlet filter is a(n):
A. Ext
B. Portlet C. Hook D. Theme
Correct Answer: C Section: (none) Explanation
Explanation/Reference:
Explanation:
QUESTION 63
To hide the default success message in a portlet that extends MVCPortlet:
A. Addthefollowingwhencreatinganaction URL:<portlet:actionURLname="addRecord"var="addRecordURL"add-process-action-success- action="false" />
B. Addthefollowingtoliferay-portletxml:<add-process-action-success-action>false</add-process-action- success-action>
C. Add the following to portlet.xml:< in it-pa ram>< na me >add -process-action -success-action </na me ><value>false</value></init-param>

D. The default success message can only be overridden by supplying a customized success message using:SessionMessages.add(actionRequest, "custom-success-message");
Correct Answer: C Section: (none) Explanation
Explanation/Reference:
Explanation:
QUESTION 64
An administrator would like to search for blog entries by the Twitter account of the author. The recommended way to add the Twitter account to the index and add the term to the search query is to:
A. CreateahookpluginthatoverridestheBlogsEntryservicetoindextheTwitteraccountandaddthe term to the search query
B. CreateahookpluginthatoverridestheStrutsactionstoindextheTwitteraccountonupdateandadd the term to the search query
C. Create an Ext plugin that extends the BlogsEntry indexer to index the Twitter account and add the term to the search query
D. Create a hook plugin that implements an indexer post processor to index the Twitter account and add the term to the search query
Correct Answer: D Section: (none) Explanation
Explanation/Reference:
Explanation:
QUESTION 65
The method to embed a portlet in a theme is:
A. $theme.addPortlet()
B. $theme.runtime()
C. $theme.embedPortlet() D. $theme.processPortlet()
Correct Answer: B Section: (none) Explanation
Explanation/Reference:
Explanation:
QUESTION 66
Color schemes are defined in:
A. liferay-color-scheme.xml
B. portal-ext.properties
C. liferay-look-and-feel.xml
D. liferay-plugin-package.properties
Correct Answer: C Section: (none) Explanation
Explanation/Reference:
Explanation:

QUESTION 67
The <portlet: defineObjects /> tag defines the variables: (Please select all correct answers.)
A. "portletPreferences" B. "renderRequest"
C. "remoteUser"
D. "portletSession''
Correct Answer: ABD Section: (none) Explanation
Explanation/Reference:
Explanation:
QUESTION 68
To ensure that all portlets added to the right-hand column of this layout template have a blue background:
<div class="my_2_column" id="main-content" role="main"> <div class= portlet-layout >
<div class="aui-w50 portlet-column portlet-column-first" id="left-hand"> $processor.processColumn ("column-l\ portlet-column-content portlet-column-content-first") </div>
<div class="aui-w50 portlet-column portlet-column-last" id = "right-hand"> $processor.processColumn ("column-2\ "portlet-column-content portlet-column-content-last") </div>
</div>
</div>
A. AddthefollowingCSStothetheme:#main-content.right-hand.portlet{background:blue;} B. AddthefollowingCSStothetheme:#right-hand.portlet{background:blue;}
C. Provide a custom JSP hook that overwrites the default style for ".column-2"
D. Add the following CSS to the theme:#right-hand {portlet-background:blue;}
Correct Answer: B Section: (none) Explanation
Explanation/Reference:
Explanation:
QUESTION 69
The method to set the value of a custom field for a BlogsEntry object ("blog") is:
A. PortalUtil.setExpando(blog)
B. blog.getExpandoBridge().setAttribute()
C. ExpandoLocalServiceUtil.setAttribute(blog) D. blog.setExpandoQ
Correct Answer: B Section: (none) Explanation
Explanation/Reference:
Explanation:
QUESTION 70
The default variables in a theme are defined in:
A. portal_normal.vm B. init.vm
C. main.vm
D. variables.vm

Correct Answer: B Section: (none) Explanation
Explanation/Reference:
Explanation:
QUESTION 71
The method to retrieve a list of users that have been added directly to a site is:
A. SiteLocalServiceUtil.getSiteUsers()
B. UserLocalServiceUtil.getSiteUsers() C. UserLocalServiceUtil.getGroupUsers() D. SiteLocalServiceUtil. getGroupUsers ()
Correct Answer: C Section: (none) Explanation
Explanation/Reference:
Explanation:
QUESTION 72
Portlet application security roles are mapped to Liferay roles in:
A. portlet.xml
B. liferay-portlet.xml

C. liferay-role.xml
D. liferay-display.xml
Correct Answer: B Section: (none) Explanation
Explanation/Reference:
Explanation:
QUESTION 73
The service() method in GenericPortlet handles all requests for a particular portlet and dispatches to the appropriate method based on the portlet mode.
A. True B. False
Correct Answer: B Section: (none) Explanation
Explanation/Reference:
Explanation:

QUESTION 74
The recommended way to escape text is:
A. StringUtil.escape() B. HtmlUtiI.escape() C. DisplayUtil.escape() D. JSPUtil.escape()
E. FormUtil.escape() F. GetterUtil.escape()
Correct Answer: B Section: (none) Explanation
Explanation/Reference:
Explanation:
QUESTION 75
The Classic theme is built using:
A. HTML 4 B. XHTML C. HTML 5 D. HTML 6 E. WML
Correct Answer: C Section: (none) Explanation
Explanation/Reference:
Explanation:
QUESTION 76
The descriptor liferay-portlet.xml defines:
A. Events
B. Theportletclass
C. The CSS class wrapper D. Resource bundles
Correct Answer: C Section: (none) Explanation
Explanation/Reference:
QUESTION 77
After adding new functionality to an Ext plugin, the recommended way to deploy in a development environment is to:
A. Stoptheserver,redeploythepluginandrestarttheserver
B. Undeploytheoriginalpluginanddeploytheupdatedplugin
C. Undeploy the original plugin, clean the server and deploy the updated plugin
D. Undeploy all plugins and deploy the updated plugin prior to redeploying the other plugins
Correct Answer: A Section: (none)

Explanation Explanation/Reference:
Explanation:
QUESTION 78
When a hook overrides a core JSP named view.jsp:
A. Thenewview.jspoverwritestheoriginalfileandtheoriginalview.jspisnolongeravailable B. Theoriginalview.jspismovedtoatemporaryfolder
C. The original view.jsp is renamed to view.portal.jsp
D. The contents of the original view.jsp and the new view.jsp are merged automatically
Correct Answer: C Section: (none) Explanation
Explanation/Reference:
Explanation:
QUESTION 79
Liferay's core local services: (Please select all correct answers.).
A. Containthebusinesslogicoftheservice
B. Enforcepermissionchecking
C. Are required if using remote services
D. Communicate to the database through the persistence layer
Correct Answer: AD Section: (none) Explanation
Explanation/Reference:
Explanation:
QUESTION 80
Beta-portlet.war requires services that are in alpha-portlet.war. To guarantee beta-portlet.war deploys after alpha-portlet.war:
A. Addthefollowingtoportletxmlinbeta-portlet.war:<init-param><name>required-deployment- contexts</name><value>alpha-portlet</value></init-param>
B. Addthefollowingtoliferay-plugin-package.propertiesinbeta-portlet.war:required-deployment- contexts=alpha-portlet
C. Addthefollowingtoliferay-portlet.xmlinbeta-portlet.war:<required-deployment-contexts>alpha- portlet</required-deployment-contexts>
D. It is not possible to declare this type of dependency
Correct Answer: B Section: (none) Explanation
Explanation/Reference:
Explanation:
QUESTION 81
Public render parameters are of the type:
A. List
B. RenderParameter C. String

D. Object
E. RenderRequest
Correct Answer: C Section: (none) Explanation
Explanation/Reference:
proper answer.
QUESTION 82
Service Builder does not generate:
A. SQLstatementstocreatetables
B. HibernateandSpringconfigurationfiles C. Axis web services
D. The view layer
Correct Answer: D Section: (none) Explanation
Explanation/Reference:
Explanation:
QUESTION 83
In a JSP that includes the <liferay-theme: defineObjects /> tag, the method to check permissions is:
A. permissionChecker.hasPermissionO
B. portalUtil.getPermissionChecker().hasPermission()
C. permissionUtil.hasPermission()
D. renderRequest.getPermissionChecker().hasPermission()
Correct Answer: A Section: (none) Explanation
Explanation/Reference:
well written answer.
QUESTION 84
The portlet lifecycle includes the methods: (Please select all correct answers.)
A. destroy()
B. processEvent() C. service()
D. render()
E. serveResource() F. processAction()
Correct Answer: ABDEF Section: (none) Explanation
Explanation/Reference:
Answer: A,B,D,E,F Explanation:
QUESTION 85

The recommended way to turn off portlet borders in a custom theme is to:
A. Modifyportlet.vmtohidetheportletborders
B. Setthethemesetting"portlet-setup-show-borders"to"false"
C. Create a JSP hook that overrides port!et_wrapper.jsp to hide theportletborders D. Set the portal property "portlet.setup.show.borders" tofalse"
Correct Answer: B Section: (none) Explanation
Explanation/Reference:
Explanation:
QUESTION 86
An Ext plugin should be used to:
A. Createaportlet
B. Createatheme
C. Overwrite a portal JSP file
D. Create a servlet filter
E. Modifycoreportletdeploymentdescriptors F. Createawebservice
Correct Answer: E Section: (none) Explanation
Explanation/Reference:
answer is clear.
QUESTION 87
The recommended way to create new methods in a core service is to use a service wrapper hook.
A. True B. False
Correct Answer: B Section: (none) Explanation
Explanation/Reference:
Explanation:
QUESTION 88
The recommended way to implement a new SSO solution that captures the SSO header is to:
A. CreateanExtpluginthataddsasen/letfiltertocapturetheSSOheader
B. CreateahookpluginthatimplementsaservletfiltertocapturetheSSOheader
C. Modify the portal source code and create an SSO servlet filter in the portal to capture the SSO header D. Create a hook plugin to override the Struts action for the Loginportletto capture the SSO header
Correct Answer: B Section: (none) Explanation
Explanation/Reference:
answer is straight.

QUESTION 89
Service Builder is able to: (Please select all correct answers.)
A. GenerateHibernateconfigurationfiles
B. Generatebaseimplementationsofmodels,services,persistenceandbasicfinders C. Generate struts-config.xml and tiles-defs.xml
D. Generate web services
Correct Answer: ABD Section: (none) Explanation
Explanation/Reference:
accurate answer.
QUESTION 90
As a best practice, a portlet plugin imports classes from: (Please select all correct answers.)
A. portal-impl.jar
B. portal-service.jar C. portlet.jar
D. ext-impl.jar
Correct Answer: BC Section: (none) Explanation
Explanation/Reference:
agreed with the mentioned answer.
QUESTION 91
The recommended way to override the updateLastLogin() method and create a new method called updateLastlmpersonation() for the User service is to:
A. CreateahookpluginandimplementaservicewrapperthatoverridestheupdateLastLogin()method and creates the updatel_astImpersonation() method in the User service
B. Createaportletpluginandimplementaservicewrapperhookthatoverridestheupdatel_astLogin() method in the User service and build a new service in the plugin that references the User service and creates the updatel_astImpersonation() method
C. Create an Ext plugin that modifies portal-spring.xml to replace the User service with a new service that overrides the updatel_astLogin() method and creates the updatel_astImpersonation() method
D. Create a hook plugin and implement a service wrapper that overrides the updatel_astLogin() method and create an Ext plugin that builds a new service to implement the updateLastImpersonation() method for the User service.
Correct Answer: B Section: (none) Explanation
Explanation/Reference:
Explanation:
QUESTION 92
Given the service.xml:
<entity name="AcmeItem" local-service = "true'' remote-service="false"> <column name= "acmeltemld" type= "long' primary= "true" /> <column name= groupld" type="long" />
</entity>
The generated classes include: (Please select all correct answers.)

A. AcmeltemServiceUtil
B. AcmeltemModel
C. AcmeltemLocalServiceUtil D. AcmeltemJSONSerializer E. AcmeltemPersistencelmpI
Correct Answer: BCE Section: (none) Explanation
Explanation/Reference:
Explanation:
QUESTION 93
The hooks that can import classes from the plugin class loader are: (Please select all correct answers.)
A. Autologinhooks
B. JSPhooks
C. Service wrapper hooks
D. Servlet filter hooks
E. Strutsactionhooks
F. Indexerpostprocessorhooks
Correct Answer: ACDEF Section: (none) Explanation
Explanation/Reference:
Answer: A,C,D,E,F Explanation:
QUESTION 94
When adding new users to Liferay, the form will display the Details, Organizations and Personal Site sections based on the following property in portal.properties:
users.form.add.main =detaiIs,organizations,personal-site
The "users.form.add.main" property is listed in the liferay-hook_6_l_0.dtd as a portal property that can be overridden with a hook.
Deploying a hook with the following property in the portal.properties file will remove the Personal Site section:
users.form.add.main =details,organizations
A. True B. False
Correct Answer: B Section: (none) Explanation
Explanation/Reference:
okay.
QUESTION 95
Hook plugins can only override core JSPs, services, language keys and Struts actions.
A. True B. False

Correct Answer: B Section: (none) Explanation
Explanation/Reference:
Explanation:
QUESTION 96
An Expando is:
A. AtoolforwritingnewportletsinLiferay
B. Acodegeneratorwhichgeneratesservicesbasedonservice.xml
C. AserviceinLiferaywhichallowsyoutodynamicallydefineacollectionofdata D. A new administrative interface in 6.1
Correct Answer: C Section: (none) Explanation
Explanation/Reference:
Explanation:
QUESTION 97
The recommended way to implement code that only runs once to modify columns in the database is with a (n):
A. GlobalStartupAction B. ServicePreAction C. UpgradeProcess
D. ServicePostAction E. VerifyProcess
F. GlobalShutdownAction
Correct Answer: C Section: (none) Explanation
Explanation/Reference:
Explanation:
QUESTION 98
The bundled property file that contains settings for a development environment is:
A. portal-ext.properties
B. portal-developer,properties C. developer, properties
D. None of the above
Correct Answer: B Section: (none) Explanation
Explanation/Reference:
fine.
QUESTION 99
Only an Ext plugin can:
A. Overridelanguagekeys

B. Modifytheinitializationparametersofacoreportlet C. Create a model listener
D. Override a JSP
E. OverrideLiferayservices
Correct Answer: B Section: (none) Explanation
Explanation/Reference:
assessed answer,

QUESTION 100
To customize the User service in a hook plugin, create a class that extends:
A. UserServicelmpI
B. UserServiceBaseImpI C. UserService
D. UserServiceWrapper
Correct Answer: D Section: (none) Explanation
Explanation/Reference:
proper ANSWER.
QUESTION 101
The recommended way to override multiple JSPs in the Documents and Media portlet is to:
A. CreateaseparatehookpluginforeachJSP B. CreateanExtplugin
C. Create a hook plugin that contains all the JSPs D. Copy them directly into Liferay
Correct Answer: C Section: (none) Explanation
Explanation/Reference:
Explanation:
QUESTION 102
Default rankings in the Message Boards portlet are set as portlet preferences. To make all new instances of the portlet display custom rankings, it is recommended to:
A. NavigatetoSystemDefaultsintheControlPanelandupdatetheportletpreferences
B. Createahookpluginthatmodifiesthedefaultmessage.board.ranksportalproperty
C. Create an Ext plugin that contains the desired configuration inportlet-ext.xml
D. Create a JSP hook that overrides the rankings for all instances of the Message Boardsportlet

Correct Answer: C Section: (none) Explanation
Explanation/Reference:
Explanation:
QUESTION 103
The method to send a redirect response and prevent resubmitting a form when a user refreshes the page is:
A. clearRequestParameters()
B. removeDuplicates()
C. removeParameters()
D. send Red irect()
Correct Answer: D Section: (none) Explanation
Explanation/Reference:
Explanation:
QUESTION 104
The recommended way to modify the Wiki portlet configuration to recognize a new public render parameter defined in a portlet plugin:
A. Createahookpluginandaddthepublicrenderparameterdefinitiontoportlet-custom.xml
B. CreateanExtpluginandaddthepublicrenderparameterdefinitiontoportlet-ext.xml
C. Create a portlet plugin and re-implement the logic of the Wiki portlet and define the new public render parameter in portlet.xml
D. Create an Ext plugin and add the public render parameter definition to portlet-custom.xml
Correct Answer: B Section: (none) Explanation
Explanation/Reference:
Explanation:
QUESTION 105
The element that defines a database table in service.xml is:
A. <entity>
B. <table>
C. <db-table> D. <object>
Correct Answer: A Section: (none) Explanation
Explanation/Reference:
Explanation:
QUESTION 106
If the expiration cache in portlet.xml is set to "-1":
A. Thefindercachedoesnotexpire B. Ehcachedoesnotexpire

C. The portlet cache does not expire D. All of the above
Correct Answer: C Section: (none) Explanation
Explanation/Reference:
Explanation:
QUESTION 107
To define a primary key named ''bookld" in service.xml:
A. <primary-columnname=bookld"/>
B. <columnname=bookldprimary=true"/> C. <primary name= "bookld" />
D. <column primary="bookId" />
Correct Answer: B Section: (none) Explanation
Explanation/Reference:
Explanation:
QUESTION 108
The JavaScript method that executes after all the portlets on the page have finished loading is:
A. Liferay.Portlet.ready(fn)
B. AUI().ready(fn)
C. Liferay.on('allPortletsReady',fn) D. None of the above
Correct Answer: C Section: (none) Explanation
Explanation/Reference:
Explanation:
QUESTION 109
A JSR-286 standard portlet extends:
A. LiferayPortlet B. MVCPortlet
C. GenericPortlet D. StrutsPortlet E. AnyJavaclass
Correct Answer: C Section: (none) Explanation
Explanation/Reference:
Explanation:
QUESTION 110
Thecompanyld" is a(n):

A. Portalinstance B. Organization C. Site
D. Team
Correct Answer: A Section: (none) Explanation
Explanation/Reference:
answer is great.
QUESTION 111
Site administrators would like to search for web content based on the review date. The review date is not currently indexed when web content is published. The recommended way to add the review date to the search index is to:
A. CreateanExtpluginandoverwritetheJournalindexertoindexthereviewdate
B. CreateahookpluginandoverridetheJournalservicetoindexthereviewdate
C. Create a hook plugin and override the edit article Struts action to index the review date D. Create a hook plugin and implement an indexer post processor to index the review date
Correct Answer: D Section: (none) Explanation
Explanation/Reference:
Explanation:
QUESTION 112
The recommended way to add new functionality in Liferay is to:
A. CreateExtplugins
B. Createportlet,theme,layouttemplateorhookplugins C. Modify Liferay's source code directly
D. All of the above
Correct Answer: B Section: (none) Explanation
Explanation/Reference:
fine.
QUESTION 113
Instanceable portlets: (Please select all correct answers.)
A. Haveuniquepreferencesperportlet
B. Canbeaddedtoapagemultipletimes C. Share the same data within the same site D. Can be displayed in the Control Panel
E. Sharethesamedataonthesamepage
Correct Answer: AB Section: (none) Explanation
Explanation/Reference:
Explanation:

QUESTION 114
To generate remote services with Service Builder:
A. Passtheswitch"-Dremote-service=true"totheAnt"build-service"target
B. Settheattribute"remote-service''to"true"onthe"entity"elementinservice,xml
C. Set the attribute "remote-service" to "true" on the "service-builder" element in service.xml D. All of the above
Correct Answer: B Section: (none) Explanation
Explanation/Reference:
Explanation:
QUESTION 115
The method to embed the non-instanceable Language portlet with the name "82" in a theme is:
A. $theme.include("82")
B. $theme.runtime("82")
C. $theme.runtime("82_INSTANCE_abcl23") D. $theme.include("82_INSTANCE_abcl23")
Correct Answer: B Section: (none) Explanation
Explanation/Reference:
Explanation:
QUESTION 116
The method to embed a portlet in a layout template is:
A. $layout.addPortlet()
B. $processor.processPortlet() C. $layoutembedPortlet()
D. $layout. process PortIet()
Correct Answer: B Section: (none) Explanation
Explanation/Reference:
all RIGHT.
QUESTION 117
Portlet events are distributed to portlets on different pages by setting the property:
A. portlet.event.distribution=all-pages
B. event.distribution=all-pages
C. portlet.event.distribution=layout-set
D. No specific property setting is required
Correct Answer: C Section: (none) Explanation
Explanation/Reference:

Explanation:
QUESTION 118
The method to define a column in a layout template is:
A. $layout.createColumn()
B. $layout.defineColumn()
C. $processor.processColumn() D. $layout.addColumn()
Correct Answer: C Section: (none) Explanation
Explanation/Reference:
answer is verified,
QUESTION 119
If multiple Ext plugins modify struts-config-ext.xml:
A. Liferaymergesallofthepluginsintoonepluginanddeploysthecombinedplugin
B. Liferayonlydeploysthefirstpluginthatmodifiesstruts-config-ext.xmlanddoesnotdeploysubsequent plugins
C. The last plugin deployed takes precedence
D. Allofthepluginsdeploysuccessfully
Correct Answer: B Section: (none) Explanation
Explanation/Reference:
approved answer.,
QUESTION 120
Methods for retrieving the current users ID include: (Please select all correct answers.)
A. ThemeDisplay.getUserId()
B. PortaIUtil.getUserld(renderRequest) C. request.getRemoteUser()
D. Liferay.getUserld(renderRequest) E. Page.getUserld()
Correct Answer: ABC Section: (none) Explanation
Explanation/Reference:
Explanation:
QUESTION 121
Developing for Liferay requires:
A. IntelliJ
B. Eclipse
C. NetBeans
D. Liferay Developer Studio E. Noneoftheabove
Correct Answer: E

Section: (none) Explanation
Explanation/Reference:
Explanation:
QUESTION 122
The <liferay-ui: icon-menu> tag is used to:
A. Displayalistofactions
B. Displaynavigation
C. Display a list of breadcrumbs D. Displaycategories
Correct Answer: A Section: (none) Explanation
Explanation/Reference:
Explanation:
QUESTION 123
Portlets are placed in the Control Panel using:
A. portlet.xml
B. liferay-portlet.xml
C. liferay-plugin-package.properties D. liferay-look-and-feel.xml
Correct Answer: B Section: (none) Explanation
Explanation/Reference:
Explanation:
QUESTION 124
The recommended way to validate a user against an external system when adding a user through the UI or a web service is to:
A. CreateahookplugintoaddamodellistenertotheUserobject
B. CreateaservicewrapperhookthatmodifiestheUserservice
C. Create a Struts action hook to perform validation when the user form is submitted
D. Create an Ext plugin to modify the core Spring configuration to override the User service
Correct Answer: B Section: (none) Explanation
Explanation/Reference:
Explanation:
QUESTION 125
All Service Builder entities contain a local reference to: (Please select all correct answers.)
A. CounterLocaIService B. AssetLocaIService
C. ResourceLocalService D. SocialLocalService

E. WorkflowLocaIService
Correct Answer: AC Section: (none) Explanation
Explanation/Reference:
Explanation:
QUESTION 126
An administrator would like to add a new travel preferences section in the Miscellaneous section of the user form. The travel preferences are stored as custom fields. The recommended way to implement the solution using a hook plugin is to: (Please select all correct answers.)
A. Modifyhtml/portlet/users_admin/edit_user.jsptoaddthetravelpreferencessectiontotheMiscellaneous section
B. Settheportalproperty"users.form.my.account,miscellaneous"to"travel-preferences"andaddthe corresponding JSP
C. Create a Struts action hook to persist the Expando value to the database
D. Add the custom fields to the relevant JSP using <liferay-ui;custom-attribute>
Correct Answer: BD Section: (none) Explanation
Explanation/Reference:
Explanation:
QUESTION 127
A class that extends MVCPortlet must implement:
A. init()
B. doView()
C. doEdit()
D. processAction()
E. Alloftheabove
F. None of the above
Correct Answer: B Section: (none) Explanation
Explanation/Reference:
Explanation:
QUESTION 128
The JavaScript method that executes after each portlet on the page loads is:
A. AUI().ready(fn)
B. Liferay.Portlet.ready(fn)
C. Liferay.on(allPortletsReady', fn) D. None of the above
Correct Answer: B Section: (none) Explanation
Explanation/Reference:
Explanation:

QUESTION 129
When a hook plugin overrides the language keys for the locale "en_USthe text presented for the locale comes from:
A. ThecoreLanguage.properties
B. ThepluginLanguage.properties
C. The plugin Language_en.properties, then the core Language.properties
D. The plugin Language_en.properties, then the core Language_en.properties
Correct Answer: D Section: (none) Explanation
Explanation/Reference:
Explanation:
QUESTION 130
The method to retrieve an integer submitted as a form field named "widgetCount"' is:
A. GetterUtil.getInteger(actionRequest,"widgetCount")
B. RequestUtiI.getInteger(actionRequest,"widgetCount)
C. HTMLUtil.getInteger(actionRequest, "widgetCount")
D. ParamUtil.getInteger(actionRequest, "widgetCount")
E. FormUtil.getInteger(actionRequest,"widgetCount")
F. AlloyUtil.getInteger(actionRequest, "widgetCount")
Correct Answer: D Section: (none) Explanation
Explanation/Reference:
Explanation:
QUESTION 131
The Ant target that removes compiled class files from the plugin is:
A. obliterate B. destroy C. remove D. clean
E. reset
F. terminate
Correct Answer: D Section: (none) Explanation
Explanation/Reference:
Explanation:
QUESTION 132
Customizations to a theme are made in the folder:
A. _unstyled B. .styled
C. themes D. _diffs
E. custom

Correct Answer: D Section: (none) Explanation
Explanation/Reference:
Explanation:
QUESTION 133
The method to retrieve a list of users added directly to an organization is:
A. OrganizationLocalServiceUtil.getOrganizationUsers() B. UserLocalServiceUtil.getOrganizationUsers()
C. GroupLocalServiceUtil.getOrganizationUsers()
D. All of the above
Correct Answer: B Section: (none) Explanation
Explanation/Reference:
Explanation:
QUESTION 134
To remove some of the core portlets from the Add Application menu and add them in the Control Panel:
A. Createahookpluginthatmodifiestheportalpropertiesdefault.control.panel.portletsanddefault.add .application.portlets
B. CreateanExtpluginthatmodifiesliferay-plugin-package.xmlandliferay-display.xml
C. Create an Ext plugin that modifies liferay-portlet-ext.xml and liferay-display.xml
D. Create an Ext plugin that modifies liferay-look-and-feel.xml
Correct Answer: C Section: (none) Explanation
Explanation/Reference:
appropriate answer.
QUESTION 135
All render logic must be implemented in the JSP when using MVCPortlet:
A. True B. False
Correct Answer: B Section: (none) Explanation
Explanation/Reference:
assessed answer.
QUESTION 136
The descriptor liferay-display.xml:
A. Definestheinitialviewsfortheportlet
B. DefinesthecategoriesintheAddApplicationmenu C. Provides the ability to use Liferay's permission system D. All of the above

Correct Answer: B Section: (none) Explanation
Explanation/Reference:
answer is good.
QUESTION 137
To display the language key "add-part'' use:
A. <liferay-ui:localekey="add-part"/>
B. <liferay-ui:languagekey="add-part"/> C. <liferay-ui;message key = "add-part" /> D. <aui-ui:message key ="add-part" />
Correct Answer: C Section: (none) Explanation
Explanation/Reference:
specific answer.
QUESTION 138
Default RSS feeds are set as portlet preferences. To make all new instances of the RSS poitlet display a single custom RSS feed, it is recommended to:
A. CreateahookplugintoaddamodellistenertothelayouttoupdatetheportletpreferencesofanyRSS portlet added to the page
B. CreateanExtpluginthatcontainsthedesiredconfigurationinportlet-ext.xml
C. Create a JSP hook that overrides the RSS portlet's default configuration settings
D. Navigate to System Defaults in the Control Panel and update the portlet preferences
Correct Answer: B Section: (none) Explanation
Explanation/Reference:
Explanation:
QUESTION 139
ThemeDisplay.getUserId() returns a value of -1 for the Guest user.
A. True B. False
Correct Answer: B Section: (none) Explanation
Explanation/Reference:
answer is correct.
QUESTION 140
To allow more than one instance of a portlet on the same page setinstanceabletotrue" in:
A. liferay-portlet.xml
B. liferay-display.xml
C. liferay-plugin-package.xml D. liferay-layout-template.xml E. portlet.xml

F. web.xml
Correct Answer: A Section: (none) Explanation
Explanation/Reference:
Explanation:
QUESTION 141
The business logic for UserLocalServiceUtil is found in:
A. UserLocaIServiceUtil B. UserLocalServicelmpI C. Use rLocalService
D. UserServicelmpI
E. UserServiceUtil
Correct Answer: B Section: (none) Explanation
Explanation/Reference:
Explanation:
QUESTION 142
Portlets that extend MVCPortlet require annotations on action methods.
A. True B. False
Correct Answer: B Section: (none) Explanation
Explanation/Reference:
sophisticated answer.
QUESTION 143
A hook plugin can be used to: (Please select all correct answers.)
A. Modifyaportallanguagekey B. Modifyathemeplugin
C. Override a portal JSP
D. Override the User service
E. OverridePortalLDAPUtil
Correct Answer: ACD Section: (none) Explanation
Explanation/Reference:
Explanation:
QUESTION 144
The recommended way to strip content from the outgoing response is to:
A. Createahookpluginthatimplementsaservicepostactiontostripcontentfromtheresponse B. CreateanExtpluginthatimplementsaservletfiltertostripcontentfromtheresponse

C. Create a hook plugin that implements a servlet filter to strip content from the response
D. Create a hook that implements a request post processor to strip content from the response
Correct Answer: C Section: (none) Explanation
Explanation/Reference:
right answer.