AEM CQ Flashcards

1
Q

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

A

B

Reference:
http://docs.adobe.com/docs/en/cq/5-6-1/deploying/scaling.html

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
2
Q

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

A

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
3
Q
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

A

B, C

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
4
Q

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

A

C

Reference:
http://docs.adobe.com/docs/en/cq/5-6-1/developing/components.html

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
5
Q

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

A

D

Reference:
http://docs.adobe.com/docs/en/cq/5-6-1/deploying/osgi_configuration_settings.html

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
6
Q

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

A

B,C,D

Reference:
http://docs.adobe.com/docs/en/cq/5-6-1/getting_started/download_and_startworking.html

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
7
Q

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

A

C

Reference:
http://docs.adobe.com/docs/en/cq/5-6-1/deploying/monitoring_and_maintaining.html

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
8
Q

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>

A

B

Reference:
http://blogs.adobe.com/experiencedelivers/experience-management/sightly-clientlibs/

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
9
Q

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

A

B

Reference:
http://docs.adobe.com/docs/en/cq/5-6-1/developing/templates.html

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
10
Q

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

A

D

Reference:
https://docs.adobe.com/docs/en/dispatcher/disp-install.html

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
11
Q

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 { }

A

C

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
12
Q

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

A

D

Reference:
http://docs.adobe.com/docs/en/cq/5-6-1/deploying/configuring_osgi.html

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
13
Q

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

A

B

Reference:
https://sling.apache.org/documentation/the-sling-engine/servlets.html

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
14
Q

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” %>

A

B

Reference:
http://docs.adobe.com/content/docs/en/aem/6-0/develop/sightly.html

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
15
Q

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

A,B,C

Reference:
http://docs.adobe.com/docs/en/cq/5-4/deploying/configuring_cq.html

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
16
Q

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

A

17
Q

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

A

C

Reference:
http://felix.apache.org/documentation/subprojects/apache-felix-maven-scr-plugin/scr- annotations.html

18
Q

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

A

Explanation:Reference:
http://docs.adobe.com/docs/en/cq/5-6-1/developing/developmenttools/how-to-build-aem-projects-using-apache-maven.html

19
Q

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/*

A

B

Reference:
http://docs.adobe.com/docs/en/cq/5-6-1/developing/templates.html

20
Q

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();

A

C

Reference:
https://helpx.adobe.com/experience-manager/using/using-sling-apis.html

21
Q

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

A

Reference:
http://docs.adobe.com/docs/en/cq/5-6-1/deploying/security_checklist.html

22
Q

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

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

23
Q

Which is a valid out-of-the-box sling run mode?

A. activate

B. production

C. loadsamplecontent

D. nosamplecontent

A

D

Explanation:Reference:
http://docs.adobe.com/docs/en/cq/5-6-1/getting_started/download_and_startworking.html

24
Q

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

A

B

Reference:
http://docs.adobe.com/docs/en/cq/5-6-1/deploying/configuring_osgi.html

25
Q

Which property should be used to find the repository where the configuration changes made in the Web Console are saved?

A.Persistent Identity (PID)

B.Reference Repository

C.Component.id

D.Component.name

A

A

Reference:
http://docs.adobe.com/docs/en/cq/5-6-1/deploying/configuring_osgi.html

26
Q

Which three statements about replicate permissions on a resource are true? (Choose three).

A.The replication rights are evaluated bottom-up in the node tree.

B.The allow replication rights has higher precedence than deny replication rights.

C.To grant replication rights to a user on any resource, user has to have read permissions for/etc/replication, /bin.

D.The allow replication rights has lower precedence than deny replication rights.

A

A, B, C

Reference:
https://docs.adobe.com/docs/en/aem/6-0/administer/security/security.html

27
Q

What are three causes if Dispatcher stopped updating cache files in the cache directory on the Webserver? (Choose three).

A.The request to the page in question contain query string parameters.

B.The request to the page in question has authorization headers and dispatcher.any does not contain \allowAuthorized.

C.Dispatcher Flush agent is disabled on publish instance.

D.The request URI of the page in question should always start with /content

A

A, B, C

Reference:
https://docs.adobe.com/docs/en/dispatcher/disp-config.html

28
Q

In a typical author, publish and dispatcher setup,where is the dispatcher flush configured?

A.In the author instance.

B.In the publish instance.

C.In the dispatcher module.

D.At the webserver leve

A

A

Reference:
https://docs.adobe.com/docs/en/dispatcher.html

29
Q

Which jar name can NOT be used to install an AEM publish instance?

A.aem-publish-p4503.jar

B.cq5-publish-4505.jar

C.cq5-publish-4503.jar

D.cq5-publish_4503.jar

A

D

30
Q

You want to invert the order of display of components added to parsys provided out of the box. Recently added components always have to display on top. While implementing the new parsys component, which two options are valid? (Choose two).

A.Copy the parsys component and all its contents from /libs/foundation/components/parsys to /apps/foundation/components/parsys and modify the applicable JSPs.

B.Copy the only applicable parsys component JSPs from /libs/foundation/components/parsys to /apps/foundation/components/parsys and modify them.

C.Create a new parsys component under/apps//components/content/myparsys and apply the property sling:resourceSuperType=foundation/ components/parsy$, modify the JSP as applicable,

D.Create a new parsys component from scratch.

A

B, C

Reference:
https://docs.adobe.com/docs/en/cq/5-6/developing/components.html

31
Q

The same OSGI configuration parameter is present under /libs//config.. AND /apps//config..and modified in both locations as well as via felix Console. During runtime, what is the reload order?

A./libs//config, Felix Console and /apps//config

B.Felix Console, /apps//config and /llbs//config

C./llbs//config, /apps//config and Felix Console

D./apps//config, /libs//config and Felix Console

A

B

https://helpx.adobe.com/uk/experience-manager/6-3/sites/deploying/using/configuring-osgi.html#ResolutionOrderatRuntime

32
Q

When configuring a custom log file on a production publish instance, which two statements are true? (Choose two).

A.Web Console url http://:/system/console/slinglog provides information about Sling Logging.

B.Always start with the log level DEBUG on the production server to get more information.

C.Create a run mode based on Apache Sling Logging Logger configuration for publish run mode as org.apache.sling.commons.log.LogManager.factory.config- .

D.The physical location of the custom log file is NOT relative to the crx-quickstart folder.

A

A, C

33
Q

What does the vlt command ‘resolve’ do?

A.Removes the conflict markers.

B.Semantically resolves conflicts.

C.Removes the conflict-related artifact files.

D.Allows the path to be committed with the conflicts

A

C

Reference:
http://docs.adobe.com/docs/en/crx/2-3/how_to/how_to_use_the_vlttool.html

34
Q

You add “sling.run.modes=publish/f in sling.properties and start the instance using the command “java -jar aem-6-p4502.jar -r author”. In which mode will the instance start?

A.Both author and publish.

B.Author

C.Publish

D.Due to conflict in the run modes, AEM will not start.

A

C

when “sling.run.modes” is present in the sling.properties file, -r is always ignored from the command line.

35
Q

Which three best practice statements are true regarding permissions and privileges? (Choose three).

A.Access rights should not be assigned on a user-by-user basis.

B.Use deny statements to specify the access rights of a group of users.

C.After installation, update the passwords for the default users to prevent security breaches.

D.Use a test installation to ensure correct relationships between Users and Groups,

A

A, B, D

36
Q

What is the optimal way to check-out content from the JCR repository to the local file system?

A.Use VLT export command.

B.Create and build a package using CQ Package manager. Download and unzip the package in the local file system.

C.Use VLT import command.

D.Download content from the repository as an XML file.

A

A

37
Q
In a typical Maven project, you will have a content module that contains a file src/main/content/META-INF/vault/filter.xml which defines the filters for the AEM package built by Maven.
Your project has this structure
  • jcr_root
    • apps
      • myproject
        (components, config, template go here)
    • etc
      • designs
        • myproject
          (Css and javascript)

Select the correct filter entry that would be included in the src/main/content/META-INF/vault/filter.xml file:

A.filter root=7apps/myproject/templates7

B.filterroot=7libs/foundation7> -

C.filterroot=7apps7>

D.filter root=7etc/designs/myproject7>

A

D