Practice Questions ACTUAL QUESTIONS
AND CORRECT ANSWERS
Objects stored in the portlet application scope session are available to:
A. Any portlet on the same page
B. Any portlet in the same portlet application
C. Any portlet within the portal application
D. Only the portlet that stored the object in the session - CORRECT ANSWERS✅✅B. Any
portlet in the same portlet application
To start Liferay with developer properties:
A. Set the porta I.developer, mode property in portal-ext.properties to ''true"
B. Include portal-developer.properties during Java startup, or in portal-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 ANSWERS✅✅B. Include portal-
developer.properties during Java startup, or in portal-ext.properties
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 ANSWERS✅✅B.
user.getExpandoBridge().getAttribute()
In
portal.properties:login,events.post=\com.liferay.portal.events.ChannelLoginPostActionA,\co
m.liferay.portal.events.Defaultl_andingPageAction,\com.liferay.portal.events.LoginPostActio
nA hook plugin can insert a new class between DefaultLandingPageAction
andLoginPostAction.
A. True
, B. False - CORRECT ANSWERS✅✅B. False
The descriptor liferay-portlet.xml:
A. Defines Liferay-specific portlet features
B. Defines the categories of the Add Application menu
C. Identifies portlets that only run onLiferay
D. All of the above - CORRECT ANSWERS✅✅A. Defines Liferay-specific portlet features
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. Create a hook plugin that overrides the User service to index the required fields
B. Create a hook plugin that overrides the edit user Struts action to index the required fields
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 ANSWERS✅✅D. Create a hook plugin that implements an indexer post
processor to index the required fields
Events supported by JSR-286 portlets for inter portlet communication are:(Please select all
correct answers.)
A. Publishing events
B. Processing events
C. Global events
D. Lifecycle events - CORRECT ANSWERS✅✅A. Publishing events
B. Processing events
The recommended way to display a web content article in a theme:
A. Use the AssetEntry service in portal_normal.vm to get the desired article
B. Embed the Web Content Display portlet, passing in the desired article ID to the portlet
URL
C. Embed the Web Content Display portlet, passing in portlet preferences set to the desired
article