AEM CQ Flashcards
(37 cards)
An author and publish instance has a shared data store with a very large number of assets.
Which type of replication is recommended to avoid duplication of data?
A.Asynchronous replication.
B.Binaryless replication.
C.ClusterDataStore with no replication agents.
D.Replication with no versioning
B
Reference:
http://docs.adobe.com/docs/en/cq/5-6-1/deploying/scaling.html
Which option will enable an in-place edit of a component that contains HTML text in it?
A. cq:inplaceEditing
jcr:primaryType=”cq:InplaceEditingConfig”
active=”{Boolean}true”
editorType=”text”/>
B. cq:inplaceEditing
jcr:primaryType=”cq:InplaceEditingConfig”
active=”{Boolean}true”
editorType=”plaintext”/>
C. cq:inplaceEditing
jcr:primaryType=”cq:InplaceEditingConfig”
active=”{Boolean}false”
editorType=”title”/>
D. cq:inplaceEditing
jcr:primaryType=”cq:InplaceEditingConfig”
active=”{Boolean}true”
editorType=”html”/>
A
You have written an OSGi service with the class name com.acme.myapp.EmailUpdate, You only need this service to run on the publish instance. Which two configurations would run the service on the publish instance only? (Choose two).
A. /apps/myapp/config.publish/com.acme.myapp.EmailUpdate.properties (Node location)
com.acme.myapp.EmailUpdate.properties is a node with a jcr:primaryType=nt:file
B. /apps/myapp/config.publish/com.acme.myapp.EmailUpdate.config (Node location)
com.acme.myapp.EmailUpdate.config is a node with a jcr:primaryType=nt:file
C. /apps/myapp/config.publish/com.acme.myapp.EmailUpdate.config (Node location)
com.acme.myapp.EmailUpdate.config is a node with a jcr:primaryType=sling.OsgiConfig
D. /apps/myapp/config.publish/com.acme.myapp.EmailUpdate (Node location)
com.acme.myapp.EmailUpdate is a node with a jcr:primaryType=sling.OsgiConfig
B, C
How do you disable the “Target” context menu item on components in AEM 6.0?
A.Set the property “cq:disable Targeting” to true on the dialog node.
B.Set the property “cq:disable Targeting” to true on thecomponent node.
C.Set the property “cq:disable Targeting” to true on the cq:editConfig node.
D.Set the property “cq:disable Targeting” to true on thecq:editConfig/cq:listeners node
C
Reference:
http://docs.adobe.com/docs/en/cq/5-6-1/developing/components.html
You want to restrict the size of a custom log file and enable log file rotation. Which Apache
Sling configuration has to be changed in the AEM Web Console?
A.Apache Sling Composite Health Check
B.Apache Sling Job Manager
C.Apache Sling Logging Writer Configuration
D.Apache Sling Logging Logger Configuration
D
Reference:
http://docs.adobe.com/docs/en/cq/5-6-1/deploying/osgi_configuration_settings.html
Which three AEM jar names willstart AEM in author mode? (Choose three.)
A.quickstart-4502.jar
B.cq5-author-p4502.jar
C.aem-publish.jar
D.cq5-author-4502.jar
B,C,D
Reference:
http://docs.adobe.com/docs/en/cq/5-6-1/getting_started/download_and_startworking.html
Which log file in /crx-quickstrat/logs should you look at to see logging messages indicating events during startup?
A.Audit.log
B.Error.log
C.Stdout.log
D.Stderr.log
C
Reference:
http://docs.adobe.com/docs/en/cq/5-6-1/deploying/monitoring_and_maintaining.html
What isthe correct way to use clientlibs with Sightly?
A.meta data-sly-template=”${clientLib.all@categories=,your.cllentlib,}data-sly-unwrap>
B.meta data-sly-call=”${clientLib.all @ categories-,your.clientlib,} data-sly-unwrap>
C.meta data-sly-use-“${clientLib.all @ categorfes^’your.clientlib’}” data-sly-unwrap>
D.meta data-sly-include=”${clientLib.all @ categories=’your.cllentlib’}” data-sly-unwrap>
B
Reference:
http://blogs.adobe.com/experiencedelivers/experience-management/sightly-clientlibs/
Which property is deprecated while resolving a template (T) that can be used as a template for page (P)?
A.cq:allowedTemplates property of the jcr:contentsubnode of P or an ancestor of P
B.allowedPaths property of T
C.allowedParents property of T
D.allowedChildren property of the template of P
B
Reference:
http://docs.adobe.com/docs/en/cq/5-6-1/developing/templates.html
When installing Internet Information Services, which Application Development Feature needs to be enabled to work with the AEM Dispatcher?
A.ISAPI Filters
B.Server-Side Includes
C.CGI
D.ISAPI Extensions
D
Reference:
https://docs.adobe.com/docs/en/dispatcher/disp-install.html
Which is a valid way of creating an OSGIservice?
A.class MyServiceImpl extends ServiceRegistry { }
B.Service classMyServiceImplextends MyService }
C.@Component @Service class MyServiceImpl extends MyService {}
D./** * * */ classMyServiceImpI extends MyService { }
C
While modifying an OSGi bundle configuration from the Felix Web Console, when areconfigurationchanges applied?
A.After restarting the CQ instance,
B.After restarting the bundle.
C.After restarting the service.
D.Immediately as it takes precedence at runtime
D
Reference:
http://docs.adobe.com/docs/en/cq/5-6-1/deploying/configuring_osgi.html
Which has the highest preference during Sling Servlet registration?
A.sling.servlet.paths
B.sling.servlet.resourceTypes
C.sllng.servlet.extension
D.sling.servlet.selectors
B
Reference:
https://sling.apache.org/documentation/the-sling-engine/servlets.html
How can a JSP be included in a sightly template?
A.cq:include script=” Include.jsp7>
B.div data-sly-include=”include.jsp”>
C.div data-sly-use=”include.jsp”>
D.%@ include file=”1nclude.jsp” %>
B
Reference:
http://docs.adobe.com/content/docs/en/aem/6-0/develop/sightly.html
Assume there are multiple publish instances (publ,pub2 and pub3) serving requests for an online shopping site. The end user is allowed to provide reviews and comments for each product and about their shopping experience. The Dispatcher module is in place to load balance the requests to publish instances and there is only one author instance, named author, where content editors create the pages. When a user, named User A, provides comments and the request being served by publish Instance publ, in which three ways are these comments replicated to pub2 and pub3? (Choose three.)
A.Configure the dispatcher flush for the author pointing to a webserver uri on which the Dispatcheris deployed and configured.
B.Configure replication agents for the author pointing to publ, pub2 and pub3.
C.Configure reverse replication agents for the author pointing to publ, pub2 and pub3.
D.Configure a static agent for the author.
A,B,C
Reference:
http://docs.adobe.com/docs/en/cq/5-4/deploying/configuring_cq.html
Where are ACL node permissions for a node stored in the JCR?
A. They are stored as ACL permission in the groups under /home/groups
B. They are stored as ACL permissions in the user node under/home/users
C. They are stored as rep:policy node under the same node
D. They are stored inside the template node under/etc/designs
A
Which statement about the usage of declarative services while creating an OSGi component is true?
A. ©Property annotation is used to reference to other services from the component by component runtime
B. ©Reference annotation is optional and used to define properties available to the component
C. ©Component annotation is the only required annotationand missing which will NOT declare the class as component
D. ©Service annotation is required and describes which service Interface Is served by thecomponent
C
Reference:
http://felix.apache.org/documentation/subprojects/apache-felix-maven-scr-plugin/scr- annotations.html
Which Maven plugin allows direct installation of the bundle into AEM?
A. maven-sling-plugin
B. maven-scr-plugin
C. maven-bundle-plugin
D. maven-javadoc-plugin
A
Explanation:Reference:
http://docs.adobe.com/docs/en/cq/5-6-1/developing/developmenttools/how-to-build-aem-projects-using-apache-maven.html
Which template allowed Paths expression would allow a page to be created with the path/ content / main / page1/ page2?
A. /content/main/?
B. /content/main/[^/]+(/,*)?
C. /content/main/[A/]+[A/]
D. /content/main/*
B
Reference:
http://docs.adobe.com/docs/en/cq/5-6-1/developing/templates.html
Which command would you enter in your CQ Component script to get the template path of an AEM page in publish instance?
A. Properties.get(“cq:template”);
B. Page.getTemplate();
C. Page.getTemplate().getPath();
D. resource.getTemplate.getPath();
C
Reference:
https://helpx.adobe.com/experience-manager/using/using-sling-apis.html
Which OSGI bundle should be disabled to restrict web-based log viewing?
A. Adobe CRXDE Support (com.day.crx.crxde-support)
B. Apache Sling OSGiLogService Implementation (org.apache.sling.commons.logservi
C. Granite Requests Logging (com.adobe.granite.requests.logging)
D. Day Commons Library - Input/OutputSupport (day-commons-io)
A
Reference:
http://docs.adobe.com/docs/en/cq/5-6-1/deploying/security_checklist.html
Which three statements about configuring a development environment for a new AEM project called “customer bank”, that contains both custom OSGi services and AEM components is true? (Choose three).
A. http://aemhost>:aemport>/system/console/depfinderls used to find the dependencies
B. The repository for AEM dependency jar files can be either http://repo.adobe.com/nexus/content/groups/public/ or the local Apache Archiva with all required dependencies
C. Create a Maven project with archtypemultimodule-content-package-archetype from the repository http://repo.adobe.com/nexus/content/groups/public/
D. Create a Maven project with archtype simple-content-package-archetype from repository http://repo.adobe.com/nexu5/content/gmups/public/
A, B, C
Reference:
http://docs.adobe.com/docs/en/cq/5-6-1/developing/developmenttools/how-to-build-aem-projects-using-apache-maven.html
Which is a valid out-of-the-box sling run mode?
A. activate
B. production
C. loadsamplecontent
D. nosamplecontent
D
Explanation:Reference:
http://docs.adobe.com/docs/en/cq/5-6-1/getting_started/download_and_startworking.html
You are creating a new OSGi configuration in the repository. When are the configuration changes applied?
A. By stopping and starting the bundle that refer the service,
B. Changes are applied as soon as the node is updated by restarting the service.
C. Immediately.
D. After restarting the CQ instance
B
Reference:
http://docs.adobe.com/docs/en/cq/5-6-1/deploying/configuring_osgi.html