Docsity
Docsity

Prepare for your exams
Prepare for your exams

Study with the several resources on Docsity


Earn points to download
Earn points to download

Earn points by helping other students or get them with a premium plan


Guidelines and tips
Guidelines and tips

Liferay Developer Certification Exam Practice Questions And 100% Verified Answers, Exams of Company Secretarial Practice

Practice questions and verified answers for the Liferay Developer Certification Exam. It covers topics such as portlet application scope session, developer properties, custom fields, plugins, Service Builder, portlet lifecycle, and hook plugins. The document also includes multiple-choice questions with correct answers and explanations. It is useful for students preparing for the Liferay Developer Certification Exam or anyone interested in learning about Liferay development.

Typology: Exams

2023/2024

Available from 12/14/2023

Estrelia
Estrelia 🇨🇦

4.4

(19)

4.9K documents

1 / 27

Toggle sidebar

Related documents


Partial preview of the text

Download Liferay Developer Certification Exam Practice Questions And 100% Verified Answers and more Exams Company Secretarial Practice in PDF only on Docsity!

Practice Questions And 100% Verified

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 answer 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 answer B. Include portal- developer.properties during Java startup, or in portal- ext.properties

Practice Questions And 100% Verified

Answers

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. user.getExpandoBridge().getAttribute() In portal.properties:login,events.post=
com.liferay.portal.events.ChannelLoginPostActionA,
com.liferay.portal.events.Defaultl_andingPageAction,
com.liferay.portal.events.LoginPostActionA hook plugin can insert a new class between DefaultLandingPageAction andLoginPostAction. A. True B. False - correct answer 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

Practice Questions And 100% Verified

Answers

D. All of the above - correct answer 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 answer 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

Practice Questions And 100% Verified

Answers

D. Lifecycle events - correct answer 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 D. Create a JSP hook that gets the desired article from the JournalArticle service - correct answer C. Embed the Web Content Display portlet, passing in portlet preferences set to the desired article After removing a customization from an Ext plugin, the recommended way to redeploy in a development environment is to: A. Redeploy the plugin and restart the server B. Undeploy the original plugin and deploy the updated plugin

Practice Questions And 100% Verified

Answers

C. Start with a clean instance of the server and deploy all plugins D. Redeploy all plugins and restart the server - correct answer C. Start with a clean instance of the server and deploy all plugins The following statements about plugins are true:(Please select all correct answers.) A. All plugins are hot-deployable B. Plugins can be used to modify core portal behavior C. Plugins can be used to modify the layout of a page D. Liferay supports six different types of plugins E. Plugins are the preferred development approach - correct answer B. Plugins can be used to modify core portal behavior C. Plugins can be used to modify the layout of a page D. Liferay supports six different types of plugins E. Plugins are the preferred development approach The "companyId" is a(n): A. Portal instance

Practice Questions And 100% Verified

Answers

B. Organization C. Site D. Team - correct answer A. Portal instance 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 B. <struts-action- path > C. <struts-action-impl> E. <struts-action > The Plugins SDK uses: A. portal-service.jar B. JAR files from the user's home directory C. portal-impl.jar

Practice Questions And 100% Verified

Answers

D. portal-plugin.jar - correct answer A. portal- service.jar 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. <custom-jsp-dir> 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. False The method to define a column in a layout template is: A. $layout.createColumn() B. $layout.defineColumn()

Practice Questions And 100% Verified

Answers

C. $processor.processColumn() D. $layout.addColumn() - correct answer C. $processor.processColumn() 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. Liferay.on('allPortletsReady',fn) A JSR-286 standard portlet extends: A. Liferay Portlet B. MVC Portlet C. Generic Portlet D. Struts Portlet E. Any Java class - correct answer C. Generic Portlet The "companyld" is a(n): A. Portal instance

Practice Questions And 100% Verified

Answers

B. Organization C. Site D. Team - correct answer A. Portal instance 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. Create an Ext plugin and overwrite the Journal indexer to index the review date B. Create a hook plugin and override the Journal service to index the review date 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. Create a hook plugin and implement an indexer post processor to index the review date The recommended way to add new functionality in Liferay is to: A. Create Ext plugins

Practice Questions And 100% Verified

Answers

B. Createportlet, theme, layout template or hook plugins C. Modify Liferay's source code directly D. All of the above - correct answer B. Create portlet, theme, layout template or hook plugins Instance able portlets:(Please select all correct answers.) A. Have unique preferences per portlet B. Can be added to a page multiple times C. Share the same data within the same site D. Can be displayed in the Control Panel E. Share the same data on the same page - correct answer A. Have unique preferences per portlet B. Can be added to a page multiple times To generate remote services with Service Builder: A. Pass the switch "-Dremote-service=true" to the Ant "build-service" target B. Set the attribute "remote-service'' to "true" on the "entity" element in service,xml C. Set the attribute "remote-service" to "true" on the "service-builder" element in service.xml

Practice Questions And 100% Verified

Answers

D. All of the above - correct answer B. Set the attribute "remote-service'' to "true" on the "entity" element in service,xml The method to embed the non-instance able 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. $theme.runtime("82") 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. $processor.processPortlet() Portletevents are distributed toportlets on different pages by setting the property:

Practice Questions And 100% Verified

Answers

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. portlet.event.distribution=layout-set 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. permissionChecker.hasPermissionO Theportletlifecycle includes the methods:(Please select all correct answers.) A. destroy () B. processEvent() C. service() D. render() E. serveResource()

Practice Questions And 100% Verified

Answers

F. processAction() - correct answer A. destroy () B. processEvent() D. render() E. serveResource() F. processAction() The recommended way to turn offportletborders in a custom theme is to: A. Modifyportlet.vm to hide theportletborders B. Set the theme setting "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. Set the theme setting "portlet-setup-show-borders" to "false" An Ext plugin should be used to: A. Create aportlet B. Create a theme C. Overwrite a portal JSP file

Practice Questions And 100% Verified

Answers

D. Create a servlet filter E. Modify coreportletdeployment descriptors F. Create a web service - correct answer E. Modify coreportletdeployment descriptors 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. False The recommended way to implement a new SSO solution that captures the SSO header is to: A. Create an Ext plugin that adds a sen/let filter to capture the SSO header B. Create a hook plugin that implements a servlet filter to capture the SSO header 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. Create a hook plugin that implements a servlet filter to capture the SSO header

Practice Questions And 100% Verified

Answers

Service Builder is able to:(Please select all correct answers.) A. Generate Hibernate configuration files B. Generate base implementations of models, services, persistence and basic finders C. Generate struts-config.xml and tiles-defs.xml D. Generate web services - correct answer A. Generate Hibernate configuration files B. Generate base implementations of models, services, persistence and basic finders D. Generate web services A hook plugin can extend and override:(Please select all correct answers.) A. Core portal Struts actions B. CoreportletStruts actions C. Portletplugin Struts actions D. Layout template Struts actions - correct answer A. Core portal Struts actions B. CoreportletStruts actions

Practice Questions And 100% Verified

Answers

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" />The generated classes include:(Please select all correct answers.) A. AcmeltemServiceUtil B. AcmeltemModel C. AcmeltemLocalServiceUtil D. AcmeltemJSONSerializer E. AcmeltemPersistencelmpI - correct answer B. AcmeltemModel C. AcmeltemLocalServiceUtil E. AcmeltemPersistencelmpI The hooks that can import classes from the plugin class loader are:(Please select all correct answers.) A. Auto login hooks B. JSP hooks C. Service wrapper hooks D. Servlet filter hooks

Practice Questions And 100% Verified

Answers

E. Struts action hooks F. Indexer post processor hooks - correct answer A. Auto login hooks C. Service wrapper hooks D. Servlet filter hooks E. Struts action hooks F. Indexer post processor hooks When adding new users to Liferay, the form will display the Details, Organizations andPersonal Site sections based on the following property in portal.properties: users.form.add.main =detaiIs,organizations,personal- siteThe "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 thePersonal Site section:users.form.add.main =details,organizations A. True B. False - correct answer B. False Hook plugins can only override core JSPs, services, language keys and Struts actions.

Practice Questions And 100% Verified

Answers

A. True B. False - correct answer B. False An Expando is: A. A tool for writing newportlets in Liferay B. A code generator which generates services based on service.xml C. A service in Liferay which allows you to dynamically define a collection of data D. A new administrative interface in 6.1 - correct answer C. A service in Liferay which allows you to dynamically define a collection of data 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

Practice Questions And 100% Verified

Answers

F. GlobalShutdownAction - correct answer C. UpgradeProcess The JavaScript method that executes after all theportlets 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. Liferay.on('allPortletsReady',fn) A JSR-286 standardportletextends: A. LiferayPortlet B. MVCPortlet C. GenericPortlet D. StrutsPortlet E. Any Java class - correct answer C. GenericPortlet Instance able portlets:(Please select all correct answers.) A. Have unique preferences perportlet B. Can be added to a page multiple times

Practice Questions And 100% Verified

Answers

C. Share the same data within the same site D. Can be displayed in the Control Panel E. Share the same data on the same page - correct answer A. Have unique preferences perportlet B. Can be added to a page multiple times The method to embed aportletin a layout template is: A. $layout.addPortlet() B. $processor.processPortlet() C. $layoutembedPortlet() D. $layout. process PortIet() - correct answer B. $processor.processPortlet() The method to send a redirect response and prevent resubmitting a form when a user refreshes the page is: A. clearRequ estPara mete rs () B. removeDuplicates() C. removeParameters() D. send Redirect() - correct answer D. send Redirect() If multiple Ext plugins modify struts-config-ext.xml:

Practice Questions And 100% Verified

Answers

A. Liferay merges all of the plugins into one plugin and deploys the combined plugin B. Liferay only deploys the first plugin that modifies struts-config-ext.xml and does not deploy subsequent plugins C. The last plugin deployed takes precedence D. All of the plugins deploy successfully - correct answer B. Liferay only deploys the first plugin that modifies struts-config-ext.xml and does not deploy subsequent plugins 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 A. ThemeDisplay.getUserId() B. PortaIUtil.getUserld(renderRequest) C. request.getRemoteUser()

Practice Questions And 100% Verified

Answers

Developing for Liferay requires: A. IntelliJ B. Eclipse C. NetBeans D. Liferay Developer Studio E. None of the above - correct answer E. None of the above The <liferay-ui:icon-menu> tag is used to: A. Display a list of actions B. Display navigation C. Display a list of breadcrumbs D. Display categories - correct answer A. Display a list of actions 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. liferay- portlet.xml

Practice Questions And 100% Verified

Answers

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. Create a hook plug in to add a model listener to the User object B. Create a service wrapper hook that modifies the User service 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. Create a service wrapper hook that modifies the User service All Service Builder entities contain a local reference to: (Please select all correct answers.) A. CounterLocaISe rv ice B. AssetLocaIService C. ResourceLocalService D. SocialLocalService E. WorkflowLocaISe rvice - correct answer A. CounterLocaIService

Practice Questions And 100% Verified

Answers

C. ResourceLocalService 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. Modify html/portlet/users_admin/edit_user.jsp to add the travel preferences section to theMiscellaneous section B. Set the portal property "users.form. my.account, miscellaneous"to "travel-preferences" and add the 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 B. Set the portal property "users.form. my.account, miscellaneous"to "travel-preferences" and add the corresponding JSP D. Add the custom fields to the relevant JSP using <liferay-ui;custom-attribute> A class that extends MVCPortlet must implement:

Practice Questions And 100% Verified

Answers

A. init() B. doView() C. doEdit() D. processAction() E. All of the above F. None of the above - correct answer B. doView() 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. Liferay.Portlet.ready(fn) When a hook plugin overrides the language keys for the locale "en_USthe text presented for the locale comes from: A. The core Language.properties B. The plugin Language.properties