levi andrew
Quiz by , created more than 1 year ago

AEM

33
0
0
netiszen
Created by netiszen over 9 years ago
nimish kumar
Copied by nimish kumar over 7 years ago
levi andrew
Copied by levi andrew almost 7 years ago
Close

AEM Quiz

Question 1 of 91

1

You are working with two components: Component A and Component B. Component B has a slightly different behavior than component A. What is the best way to reuse the default script of component A in component B?

Select one of the following:

  • Set a property in component B called sling:resourceSuperType with the path to component A and omit the default script in component B

  • Set a property in component B called sling:resourceSuperType with the path to component A and create an empty default script in component B

  • Set a property in component B called sling:resourceSuperType with the path to component A and include the default script of component A in the default script in component B

  • Copy the default script from component A into component B

Explanation

Question 2 of 91

1

What does an Item represent in a JCR repository hierarchical content model diagram?

Select one of the following:

  • The value to be stored

  • A Node or a Property

  • The UUID of Node

  • The path to a Node

Explanation

Question 3 of 91

1

Which access control policies does the JCR Session define to manage nodes?

Select one of the following:

  • Privileges to access the JCR workspace.

  • Permissions to access the JCR repository.

  • Capabilities to traverse the JCR repository.

  • A list of node locks in the JCR workspace.

Explanation

Question 4 of 91

1

How do you delete a property inside a Node object?

Select one of the following:

  • node.removeProperty(“propertyName”);

  • String propertyA = “”; node.setProperty(“propertyName”, propertyA);

  • String propertyA = null; node.setProperty(“propertyName”, propertyA);

  • node.delete(“propertyName”);

Explanation

Question 5 of 91

1

You are creating a repository-based OSGi configuration. Which name should the factory configuration node have?

Select one of the following:

  • Append “-factory” to the configuration node name.

  • Start the node name with “config-” and end it with “-<numeric_value>”.

  • Append “-<identifier>” to the name, where identifier can be any unique name.

  • Start the node name with “factory-“.

Explanation

Question 6 of 91

1

How are the resources called that are passed through a workflow?

Select one of the following:

  • WorkItem

  • Transaction

  • Lifecycle

  • Payload

Explanation

Question 7 of 91

1

You want to prompt a workflow user for information during the processing of a workflow step. Where is the content that the workflow user entered stored?

Select one of the following:

  • As part of the page.

  • As part of the workflow model.

  • As part of the workflow instance.

  • As part of the design.

Explanation

Question 8 of 91

1

What is the main purpose of the CQ HTML client library property that is called categories?

Select one of the following:

  • To easily find client libraries when the user searches categories in the author environment.

  • To uniquely name a group of client libraries to be included in templates or components and to reference dependencies to other client libraries

  • To link the categories name with the component name, so that the client library can be included automatically into the component.

  • To define the type of files that the client library contains, e.g. JavaScript and/or CSS.

Explanation

Question 9 of 91

1

What is the purpose of the Impersonators tab within the User settings?

Select one of the following:

  • Add one or more users that are allowed to take over all permissions from the current user.

  • Add one or more users that are inheriting the permissions from the current user.

  • Add one or more users that can act on the behalf of the current user.

  • Add one or more users that the current user can act on their behalf.

Explanation

Question 10 of 91

1

Which OSGi configuration settings take over precedence on start-up?

Select one of the following:

  • Any .config files from <cq-installation-dir>/crx-quickstart/launchpad/config/* on the local file system.

  • Repository nodes with type sling:OsgiConfig under /libs/*/install.

  • Repository nodes with type sling:OsgiConfig under /apps/*/config.

  • Repository nodes with type sling:OsgiConfig under /libs/*/config.

Explanation

Question 11 of 91

1

Which tab in the Apache Felix Web Console displays the list of all the users that are logged in to the repository?

Select one of the following:

  • Authenticator tab.

  • CRX Login Tokens tab.

  • Recent Request tab

  • System Information tab

Explanation

Question 12 of 91

1

How do you define the error message that should be displayed when the regex widget validation results in an error?

Select one of the following:

  • After the regular expression property in the cq:Widget element, add a new property, name it regex and enter the error message in quotes.

  • Add a property to the cq:Widget element, name it regexText and enter the error message.

  • Create a node under the cq:Widget element, name it options, then create a property called errorMessage and enter the error message

  • Create a node under the cqWidget element and name it errorMessage. Create a property called text and enter the error message.

Explanation

Question 13 of 91

1

You have renamed the CQ quickstart file to cq5-author-4502.jar. What is the correct way to install CQ 5.4 as a Windows Service?

Select one of the following:

  • In Windows open Services > Administrative Tools and then upload cq5-author-4502.jar to the control panel.

  • Use the command line and start CQ with java -Xmx512M -jar cq5-author-4502.jar -service.

  • Unpack cq5-author-4502.jar, navigate to crx-quickstart/opt/helpers and start instsrv.bat.

  • Open the Apache Felix Web OSGi console, navigate to Services and upload cq5-author-4502.jar.

Explanation

Question 14 of 91

1

You have a CQ instance configured to use LDAP authentication. In the LDAP configuration file you see the parameter “com.day.core.CRXLoginModule sufficient;”. What is the purpose of this parameter?

Select one of the following:

  • It means that if CRX can authenticate a user with the CRXLoginModule, the user is authenticated successfully; else CRX uses the next login module.

  • It means that if authentication fails with the CRXLoginModule, the complete authentication fails

  • It means that after logging in successfully, user credentials will be copied automatically to CRX.

  • It means that the authentication will use a callback implementation.

Explanation

Question 15 of 91

1

What is the purpose of a Closed User Group?

Select one of the following:

  • To define a selected group of authors with special authoring permissions

  • To define one or more Web pages on the publish instance accessible only by members of the Closed User Group

  • To define a group of users and assign them admin rights to manage workflows

  • To define a group of users that have special privileges to do system supportk

Explanation

Question 16 of 91

1

You are installing a content package with the Package Manager. What does the setting Save Threshold in the Install Package dialog mean?

Select one of the following:

  • The time limit in milliseconds to save a batch of nodes to persistent storage in one transaction.

  • The approximate number of nodes in a batch that is saved to persistent storage in one transaction.

  • The size in kilobytes to save a batch of nodes to persist storage in one transaction.

  • The maximum size in kilobytes of a temporary snapshot.

Explanation

Question 17 of 91

1

A change in a JSP is NOT being reflected. How do you enforce a fresh parsing/compilation of the JSP file?

Select one of the following:

  • Search and delete the Java Class file from within /var/classes.

  • Restart the CQ Servlet Engine.

  • Add a query parameter in the page, which is using the JSP file.

  • Restart the bundle Apache Sling Scripting JSP Support.

Explanation

Question 18 of 91

1

Which type of Replication Agent do you create to flush the Web server cache for a newly activated page?

Select one of the following:

  • Create a Reverse Replication Agent on the author instance.

  • Set the Serialization Type property of the Default Agent to Dispatcher Flush.

  • Create a new replication agent and set Transport URI to point to the Web server.

  • Create a Dispatcher Flush Agent.

Explanation

Question 19 of 91

1

You create a Replication Agent on your Author instance. Which transportation user settings should you configure?

Select one of the following:

  • User credentials of the same user sending and receiving the replication.

  • User credentials of a user sending the replication.

  • User credentials of a user receiving the replication.

  • User credentials of a user with access rights to the pages being replicated.

Explanation

Question 20 of 91

1

Which statement correctly describes the OSGi installer service?

Select one of the following:

  • It is a provider that searches for nodes of type sling:osgiConfig.

  • It is a service that scans the CRX repository for artifacts and provides them to the JCR installer.

  • It is a central service for handling installs, updates and uninstall of artifacts.

  • It is a service searching the CRX repository for folders named install.

Explanation

Question 21 of 91

1

Given the CQ Dispatcher configuration in the /filter section:
/filter
{
/0001 { /glob “*” /type “deny” }
/0002 { /glob “* /content/geometrixx[./]*” /type “allow” }
/0003 { /glob “* /content/geometrixx/company[./]*” /type “deny” }
/0004 { /glob “*” /type “allow” }
}
Which rule will be applied to the request: /content/geometrixx/company/news.html?

Select one of the following:

  • Request denied, because of rule 0001. The first rule that matches the request will be applied.

  • Request served, because of rule 0002. The configuration can only be applied to the second level path.

  • Request denied, because of rule 0003. The configuration with the closest match will be applied.

  • Request accepted, because of rule 0004. The last configuration that matches the request will be applied.

Explanation

Question 22 of 91

1

Given the configuration in the Apache Web server httpd.conf:

<Directory / >
<IfModule disp_apache2.c>
SetHandler dispatcher-handler
</IfModule>
Options FollowSymLinks AllowOverride None
</Directory>
What is the purpose of the SetHandler option?

Select one of the following:

  • Enable the CQ Dispatcher only for requests to the / page.

  • URL rewrite configuration directory for the CQ Dispatcher.

  • Enable the CQ Dispatcher for all requests to the server.

  • Define the name of the CQ Dispatcher configuration file.

Explanation

Question 23 of 91

1

You want to create a custom widget. In which type of folder should you create the custom widget?

Select one of the following:

  • Create a folder within the component’s folder, then assign nodeType = nt:folder and name it “widgets”

  • Create a folder of nodeType = nt:unstructured within your project folder and CQ will recognize it automatically

  • Create a folder under your /etc/design, nodeType = nt:folder and name it “widgets”

  • Create a folder under your project folder in /apps with the nodeType = cq:ClientLibraryFolder and set property sling:resourceType = widgets/clientlib

Explanation

Question 24 of 91

1

Which flag should you set when you configure the mod_rewrite rules of the Apache Web server when you are including the CQ Dispatcher module?

Select one of the following:

  • ‘G’ flag to force the server to return a 410 Gone status with the response.

  • `PT’ flag to send the original request through to processing pipeline for the Dispatcher to respond.

  • ‘R’ flag to force all the requests to be redirected to the location specified in the rewrite rule.

  • ‘T’ flag to set the MIME type for all the HTTP responses.

Explanation

Question 25 of 91

1

You want the process script to automatically advance the workflow to the next step after execution. Which dialog form field of a Process Step must be set to true?

Select one of the following:

  • Process Arguments.

  • Timeout Handler.

  • Timeout.

  • Handler Advance.

Explanation

Question 26 of 91

1

You want to debug a CQ HTML client library in the author instance. You want to avoid compressing the JavaScript file. What must you do?

Select one of the following:

  • Add a property called debugClientLibs to the js.txt and set the value to true.

  • Add a property called debug the client library root node and set the value to true.

  • Add a query parameter to the URL called debugClientLibs with the value true.

  • Specify an attribute called debug in the <cq:includeClientLib> tag and set the value to true.

Explanation

Question 27 of 91

1

You want to request a JSON representation of the content. What do you have to do with the request?

Select one of the following:

  • Add the query parameter ?json=true.

  • Change the extension to .json.

  • Add a selector json.

  • Write custom code.

Explanation

Question 28 of 91

1

What is the purpose of the Export Package Manifest header?

Select one of the following:

  • Stores the defined packages in the CQ installation folder.

  • Define packages that are copied into a .war file.

  • Stores the defined packages as ZIP file for uploading to CRX.

  • Define packages that can be imported by other bundles.

Explanation

Question 29 of 91

1

You are creating a component on the page /hotNews.html that needs to list all the titles of the news pages under /news. How does this component get the list of child pages?

Select one of the following:

  • Use PageManager.getPage(“/content/news”) of the static PageManager class to instantiate a Page object and then iterate through the child pages

  • Use the QueryBuilder to look for all children of /news and then iterate through the result set

  • Instantiate a Node object with session.getNode(/content/news) and then iterate through the child nodes

  • Use Sling’s resourceResolver to adapt the request resource to a PageManager object, then use the getPage(/content/news) to instantiate a Page object and then iterate through the child pages

Explanation

Question 30 of 91

1

You want to create a new javax.jcr.Node nodeC as a copy of nodeA . nodeC should also be a child of nodeB. What should you do?

Select one of the following:

  • Node nodeC = nodeB.copy(nodeA.getPath(), nodeA.getName());

  • Node nodeC = nodeA.duplicate(nodeB.getPath());

  • Node nodeC = com.day.cq.commons.jcr.JcrUtil.copy(nodeA, nodeB, nodeA.getName());

  • Node nodeC = javax.jcr.session.copy(nodeA, nodeB, nodeA.getName());

Explanation

Question 31 of 91

1

You want to view request information sent to the server. Which browser-based tool should you use?

Select one of the following:

  • Website administration

  • Apache Felix Web console

  • CQ Servlet Engine console

  • JCR Content Explorer

Explanation

Question 32 of 91

1

You are configuring a Replication Agent. What does the check box Use for reverse replication in the Agent Settings dialog mean?

Select one of the following:

  • If checked, this agent will notify the user about a successful replication from the author to a publish instance.

  • If checked, this agent will perform a rollback of a failed replication from an author to a publish instance.

  • If checked, this agent will be used to replicate user generated content from the publish to the author instance.

  • If checked, this agent will be used to restore a previous version from another instance.

Explanation

Question 33 of 91

1

You want to define a Java based CQ workflow process step. Which interface must your class implement?

Select one of the following:

  • The com.day.cq.workflow.exec.WorkflowProcess interface.

  • The org.osgi.service.event.EventHandler interface.

  • The com.day.cq.workflow.exec.JavaWorkflow interface.

  • The com.day.cq.workflow.exec.WorkflowData interace.

Explanation

Question 34 of 91

1

You are configuring the dispatcher configuration file dispatcher.any. What does the glob /invalidate {/0001 {/glob “*.html” /type “allow” }} enforce the dispatcher to do when the Web page /content/mypage.html gets activated?

Select one of the following:

  • The complete cache is invalidated

  • All cached .html files are physically deleted

  • Only the cached .html files are invalidated

  • Delete the cached file /mypage.html and create a new cached /mypage.html file

Explanation

Question 35 of 91

1

How can you configure a CQ component to allow an Author to edit content without opening a dialog?

Select one of the following:

  • Create and configure the /cq:editConfig/cq:inplaceEditing node under the component node.

  • Create and configure the /cq:editConfig/cq:inplaceEditing node under the component’s design dialog node.

  • Create and configure the /cq:editConfig/cq:dropTargets node under the component node.

  • Create and configure the /cq:editConfig/cq:inplaceEditing node under the component’s default script node.

Explanation

Question 36 of 91

1

You want to extend the foundation Text/Image component by creating a new component. Which is the correct value to add to the property resourceSuperType in the new component?

Select one of the following:

  • foundation/components/textimage.

  • libs/foundation/components/textimage.

  • components/textimage.

  • /foundation/components/textimage.

Explanation

Question 37 of 91

1

You have changed the CRX admin password. Which console or tool do you also need to update?

Select one of the following:

  • CRXDE Lite

  • CQSE Admin Console

  • Apache Felix Web Console

  • CQ User Administration Console

Explanation

Question 38 of 91

1

You created a site /project/en and want to add language sites /de and /fr. What is the best practice to create the additional language sites?

Select one of the following:

  • Use the WCM console to copy and paste from /en.

  • Use the Language Copy tool.

  • Create a workflow with a custom process step that creates the according language pages whenever you create a new /en page.

  • Create and download a CQ package containing the /en site. Open the zip file and rename the /en folder
    to /fr or /de, then reinstall the package.

Explanation

Question 39 of 91

1

You have an active bundle which is configured via CRX repository. What do you have to do after you have saved changes to the configuration to apply them?

Select one of the following:

  • Go to the Felix Web OSGi Console, stop and then start the bundle.

  • Restart the CQ instance.

  • Go to the Felix Web OSGi Console and re-activate the bundle.

  • Nothing. Changes are automatically applied.

Explanation

Question 40 of 91

1

You have a page and want to create a child page. Which property has the highest priority to determine which templates can be used?

Select one of the following:

  • cq:allowedParents

  • cq:allowedChildren

  • cq:allowedPaths

  • cq:allowedTemplates

Explanation

Question 41 of 91

1

You have successfully installed CRX and crx-launchpad on Websphere Application Server. How do you install CQ5?

Select one of the following:

  • Upload the cq-quickstart.jar file to the Felix Console and start the Jar file.

  • Start cq-quickstart .jar file within the Application Server.

  • Upload and install cq.war file to the Application Server.

  • Install CQ using content packages.

Explanation

Question 42 of 91

1

How does the Configuration Admin service use Persistence IDs (PID)?

Select one of the following:

  • It stores the date for the last configuration.

  • It stores all the versions of the entire configuration for a service.

  • It generates a new PID every time the configuration of the services changes.

  • It associates the service configuration data with PIDs.

Explanation

Question 43 of 91

1

You want to add additional features to a Node. What should you do?

Select one of the following:

  • Add a new jcr:primaryType value to the Node.

  • Invoke the Node’s addMixin() method passing the name of a mixin.

  • Replace current jcr:primaryType with jcr:mixinType.

  • Add a new nt:base Node type to the Node.

Explanation

Question 44 of 91

1

Which is a difference between an OSGI bundle and a Java package?

Select one of the following:

  • None. You can install and activate any java package in an OSGI container

  • A jar file cannot be inside an OSGI Bundle

  • The bundle contains extra metadata defined in a MANIFEST.MF file

  • The bundle package structure is completely different than the one of a .jar file

Explanation

Question 45 of 91

1

You want to install bundles through CRX only in the author instance. Which folder name can you use for that purpose?

Select one of the following:

  • All folders named install.author.

  • The folder runmodes.author.

  • All folders under the install folder that are named author.

  • All folders under the install folder.

Explanation

Question 46 of 91

1

You are logged in as userA and you are impersonating userB. How are your activities logged in the access.log?

Select one of the following:

  • The logged userId is “userA”

  • The logged userId is “userB"

  • The logged userId is “userA on behalf of userB”

  • The logged userId is “userB impersonated by userA”

Explanation

Question 47 of 91

1

You have configured the cached property in the dispatcher module. What is the difference between:
request 1 = /content/mypage/mypic.small.png?? and request 2 = /content/mypage/mypic.png?size=small

Select one of the following:

  • No difference. Request 1 and request 2 both get cached

  • request 1 gets cached, request 2 does not get cached

  • request 2 gets cached, request 1 does not get cached

  • No difference. Neither request 1 nor request 2 get cached

Explanation

Question 48 of 91

1

You have created a bundle with CRXDE. What does the .bnd file contain?

Select one of the following:

  • The Activator class to notify start and stop events

  • Extra metadata about the bundle used by the CRXDE build process.

  • The list of all classes inside the bundle

  • The compilation and deployment steps of the bundle

Explanation

Question 49 of 91

1

When you are saving or updating a configuration in the Configurations tab in the Apache Felix Web OSGi Console, where are these configuration settings saved?

Select one of the following:

  • To the CRX /var/config/ path.

  • Under <cq-installation-dir>/crx-quickstart/launchpad/config/.

  • The new configuration is only kept at runtime.

  • In an internal SQLite DB used by the Apache Felix Web OSGi Console.

Explanation

Question 50 of 91

1

Which service property does an Event Subscriber need to subscribe to an Event Handler in the OSGi Event Admin service?

Select one of the following:

  • event.type

  • event.name

  • event.title

  • event.topic

Explanation

Question 51 of 91

1

Which xtype should you use if you want to reuse a part of a dialog in another dialog?

Select one of the following:

  • browsedialog

  • tabpanel

  • cqinclude

  • referencesdialog

Explanation

Question 52 of 91

1

How can you replicate to a specific agent using the CQ Replicator interface?

Select one of the following:

  • With the Replicator method replicateToAgent().

  • The object ReplicationOptions contains a method replicateToAgent and you need to pass the ReplicationOptions object as a parameter to the replicate() method of the Replicator class.

  • You need to create a Filter in the ReplicatorOptions object and set the agent that will replicate. Then you pass the ReplicatorOptions object to the replicate() method of the Replicator class.

  • You cannot replicate to a specific Agent.

Explanation

Question 53 of 91

1

You want to change the configuration of a bundle during runtime in the repository. Which location has the highest priority?

Select one of the following:

  • <cq-installation-dir>/crx-quickstart/launchpad/config/* on the local file system

  • /apps/*/config/*

  • /libs/*/config/*

  • /etc/design/config/*

Explanation

Question 54 of 91

1

In your CQ Component script you want to read a property value which has been created with a design dialog. How can you get the value?

Select one of the following:

  • String data = properties.get(propertyName,””);

  • String data = currentNode.getStyleProperty(propertyName,””);

  • String data = currentPage.getStyleProperty(propertyName,””);

  • String data = currentStyle.get(propertyName,””);

Explanation

Question 55 of 91

1

You have created two templates, tempA and tempB. In the property allowedChildren of tempA you include tempB. You create a pageA based on tempA and add a property cq:allowedTemplates with a list of templates, but excluding tempB. Can you select tempB to create a page as child of pageA?

Select one of the following:

  • Yes, because the allowedChildren property has precedence over cq:allowedTemplates.

  • No, tempB needs to be added to the property cq:allowedTemplates of pageA to accomplish that.

  • No, tempA needs to be added to the property allowedParents of tempB to accomplish that.

  • Yes, because property allowedChildren is checked only if property allowedParents is present.

Explanation

Question 56 of 91

1

You want to create a page with the CQ PageManager. The parent path does NOT yet exist. Which template is assigned to the parent pages?

Select one of the following:

  • None. An exception is thrown because the path doesn’t exist.

  • The parent pages will be created but no template will be assigned.

  • The parent pages will be created with the same template as defined for the new page.

  • None. Nodes of node type cq:Page are created for the parent path.

Explanation

Question 57 of 91

1

What is the most significant difference between the Edit and the Design mode?

Select one of the following:

  • Sidekick is expanded and minimized respectively

  • In Design mode authors can enter content to modify the design of the page

  • Content edited in Edit mode is saved to the current page, content edited in Design mode is saved to the design settings assigned to the current page

  • The Edit mode is mainly used by regular authors while the Design mode is mainly used by super authors

Explanation

Question 58 of 91

1

You create a custom workflow process using the CQ API. Which method or methods needs to be implemented when your class implements the WorkflowProcess Interface?

Select one of the following:

  • start(), execute(), end().

  • process().

  • execute().

  • start(), process(), end().

Explanation

Question 59 of 91

1

You want to configure two hostnames pointing to two different site structures in the same CQ instance. Which configuration must be set in the Apache Web server?

Select one of the following:

  • You have to create two dispatcher.any configuration files one for each hostname and include the two file paths to the httpd.conf file.

  • You have to create a port forwarding configuration in the httpd.conf file to handle the two hostnames.

  • You have to create two VirtualHost entries and in each entry specify the rewrite rule to each site structure for each host.

  • You have to load the Dispatcher module twice in the httpd.conf and name it with the two hostnames that you want to use.

Explanation

Question 60 of 91

1

How do you disable WebDAV access on the publish instance?

Select one of the following:

  • Remove the WebDAV bundle from the Apache Felix Web OSGI console

  • In the CRX User Management Console disable the WebDAV user group

  • Comment according servlet mappings in web.xml and stop the WebDAV bundle in the Apache Felix Web OSGi console

  • Start CQ with java -jar cq-publish-4503.jar -nobrowser -nowebdav

Explanation

Question 61 of 91

1

What does the Configuration Admin Service in OSGi provide?

Select one of the following:

  • It provides a set of tools and APIs to create, package and delete OSGi bundles.

  • It provides a GUI tool to edit all the OSGi bundles.

  • It provides tools to manage the access permissions of OSGi bundles.

  • It allows for the management of configuration information.

Explanation

Question 62 of 91

1

You are creating a component to render a modified image. What is the proper way to build the URL of the image in order to enable caching of the response?

Select one of the following:

  • /<pathToStoredComponent>.html?run=imageScript&value=parameter1 .

  • /<pathToStoredComponent>.parameter1.imageScript.jpg .

  • /<pathToStoredComponent>.imageScript.html?render=jpg&value=parameter1.

  • /<pathToStoredComponent>.imageScript.jpg?value=parameter1.

Explanation

Question 63 of 91

1

How do you get the current rendering mode within a CQ component script?

Select one of the following:

  • slingRequest.getWCMMode();

  • WCMMode.fromRequest(request);

  • JCRUtil.fromRequest(request);

  • componentContext.getWCMMode();

Explanation

Question 64 of 91

1

You need to restore a version of a node. How do you get the versionManager object?

Select one of the following:

  • com.day.cq.commons.jcr.JcrUtil.getVersionManager();

  • jcrSession.getWorkspace().getVersionManager();

  • currentPage.getVersionManager();

  • slingRequest.getParameter(“versionManager”);

Explanation

Question 65 of 91

1

Which provider service scans the CRX repository for artifacts and provides them to the OSGi installer?

Select one of the following:

  • Sling JCR Installer.

  • Apache Felix Installer.

  • Launchpad Provider.

  • Sling JCR ClassLoader.

Explanation

Question 66 of 91

1

You want to override an OSGi component configuration in CRX. What happens if you do NOT specify a property in the CRX configuration that is required by the component?

Select one of the following:

  • It will use the default configuration for the unspecified property.

  • You will get an exception when the component script tries to access the property.

  • The complete CRX configuration will be ignored and the Felix Console configuration will be used instead.

  • CRX will not let you save the configuration node until you define all the required parameters for that component.

Explanation

Question 67 of 91

1

You want to create a CQ HTML client library. What is the file js.txt used for?

Select one of the following:

  • To store all the JavaScript code used in the client library.

  • It will contain the JavaScript usage instructions for the client library.

  • It contains a collection of JavaScript functions used globally within the project.

  • It will contain the paths to all the JavaScript files that will be included in the client library.

Explanation

Question 68 of 91

1

Which is the correct JSP Tag Library Directive to include the standard CQ Tag Library?

Select one of the following:

  • <%@taglib prefix=”cq” uri=”http://www.day.com/taglibs/cq/1.0″ %>

  • <%@include file=”/libs/foundation/global.jsp” %>

  • <%@taglib prefix=”sling” uri=”http://sling.apache.org/taglibs/sling/1.0″ %>

  • <%@page import =”com.day.cq.wcm.api”%>

Explanation

Question 69 of 91

1

How do you get the two .jar files jcr-2.0.jar and crx-shared.jar that need to be copied to the Websphere folder holding the shared libraries?

Select one of the following:

  • Unpack cq.war and copy both files to Websphere’s shared libraries folder.

  • Copy crx-<version>-<edition>.jar to Websphere’s shared libraries folder.

  • Start CRX Quickstart with java -jar crx-<version>-<edition>.jar -unpack and copy both files from the unpacked folder to Websphere’s shared libraries folder.

  • Download both files via CRX Package Manager and copy both files to Websphere’s shared libraries folder.

Explanation

Question 70 of 91

1

Which statement about the docroot paramter in the cache section of the CQ Dispatcher configuration file is true?

Select one of the following:

  • It should be the same path where the CQ server is installed.

  • It is required to be the same as the document root of the Web server.

  • It can be any path inside the filesystem that can be modified by the Web server.

  • It should be the same as the one configured in the repository as docroot property.

Explanation

Question 71 of 91

1

You want to check the response time of a request for a page. Which log file should you choose?

Select one of the following:

  • <cq-install-dir>/crx- quickstart/logs/server.log

  • <cq-install-dir>/crx- quickstart/logs/request.log

  • <cq-install-dir>/crx- quickstart/logs/access.log

  • <cq-install-dir>/crx- quickstart/logs/stdout.log

Explanation

Question 72 of 91

1

You want to add a new tab to the page properties dialog. What should you do?

Select one of the following:

  • Copy the page properties dialog from the foundation/page component, add a new tab node specifying the cq:Panel node to render the new tab.

  • In the component definition add a property to set the path to the foundation/page properties dialog and another property to set the new tab definition.

  • You cannot override the page properties dialog.

  • Create only the tab cq:Panel node and add a property resourceType pointing to the foundation/page properties dialog.

Explanation

Question 73 of 91

1

When does CQ automatically create a version in a default CQ installation (author and publish instance)?
When content in an author instance is modified and saved

Select one of the following:

  • When content in an author instance is modified and saved

  • When content in an author instance is activated to a publish instance

  • After building a package that includes modified and saved content in author instance

  • After saving changes to a template configuration or after saving code changes of a component script

Explanation

Question 74 of 91

1

How can you use the CRX repository to install an OSGi bundle?

Select one of the following:

  • Copy the bundle into the /apps/config folder.

  • Copy the bundle into the /apps/install folder

  • Copy the bundle to the /config folder, which you need to add to your project folder.

  • Copy the bundle into the /libs/config folder.

Explanation

Question 75 of 91

1

Which is the correct way to get the ValueMap of a resource?

Select one of the following:

  • resourceResolver.adaptTo(ValueMap.class)

  • resource.adaptTo(ValueMap.class)

  • currentNode.getValueMap()

  • currentPage.getValueMap()

Explanation

Question 76 of 91

1

Which option do you need to add to the Java-based crx-quickstart command to specify that you will be using an LDAP authentication?

Select one of the following:

  • Dcom.day.crx.core.CRXUserManagerImpl=crx-quickstart/server/etc/ldap_login.conf

  • Djava.security.auth.login.config=crx-quickstart/server/etc/ldap_login.conf

  • Dcom.day.crx.security.ldap.LDAPLoginModule=required

  • Dcom.day.crx.security.ldap.principals.LDAPPrincipalProvider=crx- quickstart/server/etc/ldap_login.conf

Explanation

Question 77 of 91

1

How do you create a configuration for an OSGi bundle within CRX that is specific to only the author instance?

Select one of the following:

  • Add a property called “run_mode” to the node sling:OsgiConfig and assign it the value “author”.

  • Use the CRX browser to create a folder in /apps/myproject called “author” and then create a new node and select “nt:unstructured” as the node type.

  • Use the CRX browser to create a folder in /apps/myproject called “author” and then create a new node and select “sling:OsgiConfig” as the node type.

  • Use the CRX browser to create a folder in /apps/myproject called “config.author” and then create a new node and select “sling:OsgiConfig” as the node type

Explanation

Question 78 of 91

1

During a workflow step a comment is added requiring an update of a paragraph on a Web page. Where does the workflow author make the change?

Select one of the following:

  • In the content page within the workflow step.

  • In the Workflow Model.

  • In the Workflow Instance.

  • In the design page.

Explanation

Question 79 of 91

1

What is the difference between Simple Versioning and Full Versioning?

Select one of the following:

  • Simple Versioning requires mix:simpleVersionable node type and Full Versioning requires mix:versionable node type.

  • Simple Versioning only versions some system-specific properties. With Full Versioning all properties are versioned.

  • Both are the same and there is no difference other than the name of the mixin type.

  • Under Simple Versioning versions are added as direct successors of the previous version. Under Full Versioning a new version can be added as a direct successor of a version that already has another direct successor.

Explanation

Question 80 of 91

1

You want to run a script as a workflow step. Which workflow step should you select?

Select one of the following:

  • Participant step.

  • Process step.

  • Container step.

  • Split step.

Explanation

Question 81 of 91

1

You want to switch to preview mode by modifying the URL. What should you do?

Select one of the following:

  • Add the parameter wcmmode=preview to the URL.

  • Add the parameter request=preview to the URL.

  • Add the selector preview as the fist selector in the URL.

  • Add the suffix preview to the URL.

Explanation

Question 82 of 91

1

Given the following selector: print.a4 and the URL extension is html, which script will Sling render?

Select one of the following:

  • print.html.jsp

  • a4.html.jsp

  • print.a4.jsp

  • a4.jsp

Explanation

Question 83 of 91

1

Which should you use to get the root node of a JCR workspace?

Select one of the following:

  • jcrSession.getRootNode();

  • node.getRootNode();

  • slingRequest.getPath(“/”);

  • com.day.cq.commons.jcr.JcrUtil.getNode (“/”);

Explanation

Question 84 of 91

1

Which tab in the Apache Felix Web OSGi Console is used to install OSGi bundles?

Select one of the following:

  • OSGi Installer tab.

  • Bundles tab.

  • Services tab.

  • Components tab.

Explanation

Question 85 of 91

1

How can you use the Apache Felix Web OSGi console to check if an OSGi bundle is running?

Select one of the following:

  • Select the Bundles tab > check that your bundle is listed > check that the status is Active.

  • Select the Configuration Status tab > then Bundles tab > check that your OSGi component is listed.

  • Select the Components tab > check that your bundle is listed > check that the status is Active.

  • Select the Services tab > check that your OSGi component is listed > check that the status is Active.

Explanation

Question 86 of 91

1

Which method of the ResourceResolver Interface uses resources mapping to retrieve property values?

Select one of the following:

  • resolve().

  • getResource().

  • map().

  • getSearchPath().

Explanation

Question 87 of 91

1

How does the OSGi installer manage a bundle if a bundle with the same symbolic name is already installed?

Select one of the following:

  • It uses the new bundle only if it has a higher version.

  • Stops the current bundle and allows the user to select which one to start.

  • Keep the old one and write an error to the log file.

  • The previous bundle is replaced by the last provided bundle.

Explanation

Question 88 of 91

1

How do you create a design dialog for a CQ component?

Select one of the following:

  • Create a dialog in the component folder and set the dialog's xtype property to designDialog.

  • Create a dialog in the component folder and name it design_dialog.

  • Create the same component path structure under the design page and create the dialog there.

  • Create a node under the component's dialog node and set the xtype property to designDialog.

Explanation

Question 89 of 91

1

You want to use a different page properties dialog instead of the one out of the box. How do you configure it?

Select one of the following:

  • Create a dialog in the page-component folder referenced by the template definition via sling:resourceType and name it "dialog".

  • Create a dialog in the template definition node and name it pageProperties.

  • Create the dialog in the template definition node, name it "dialog" and add a property xtype with the value pageProperties.

  • Create the dialog in the foundation's page-component node and name it the same as your template definition.

Explanation

Question 90 of 91

1

What is the purpose of sending values as selectors in the URL instead of sending them as query parameters?

Select one of the following:

  • To avoid caching the response in the Web server.

  • To enable the response to be cached in the Web server.

  • To avoid creating a session object in the application server.

  • To improve security.

Explanation

Question 91 of 91

1

Which kind of HTTP requests are logged by default in the Recent Requests tab of the Apache Felix Web Console?

Select one of the following:

  • Requests made to CQ pages.

  • Requests related to the Apache Felix Web OSGi Console.

  • Requests made to the installed bundles that are used by CQ pages.

  • All the requests made to CQ instances.

Explanation