AEM-deck Flashcards

1
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

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
2
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 the component 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 the cq:editConfig/cq:listeners node.

A

C

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
3
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 annotation and missing which will NOT declare the class as component
D. @Service annotation is required and describes which service Interface Is served by the component

A

C

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

Which three statements about replicate permissions on a resource are true? (Select 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

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

What are three causes if Dispatcher stopped updating cache files in the cache directory on the Webserver? (Select three.)
A. The request to the page in question contains 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

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

A

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

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

Which property deprecated while resolving a tempis deprecated while resolving a template (T) that can be used as a template for page (P)?
A. cq:allowedTemplates property of the jcr:content subnode 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

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
9
Q
Assume there are multiple publish instances (pub1, 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 pub1, in which three ways are these comments replicated to pub2 and pub3? (Select three.)
A. Configure the dispatcher flush for the author pointing to a webserver uri on which the Dispatcher is deployed and configured.
B. Configure replication agents for the author pointing to pub1, pub2 and pub3.
C. Configure reverse replication agents for the author pointing to pub1, pub2 and pub3. 
D. Configure a static agent for the author.
A

A, B, C

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

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

A, C

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

You are logged in as userA and you are impersonating userB.
How are your activities logged in the access.log?
A. The logged userld is “userB impersonated by userA” B. The logged userld is “userA on behalf of userB”
C. The logged userld is “userB”
D. The logged userld is “userA”

A

C

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

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

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

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

Which should be configured to create a custom log file with a different log level?
A. Apache Sling Log Configuration
B. Apache Sling Logging Reader Configuration
C. Apache Sling Logging Logger Configuration
D. Apache Sling Logging Configuration

A

C

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
17
Q
Which is a valid out- of- the- box sling run mode?
A. activate
B. production
C. loadsamplecontent 
D. nosamplecontent
A

D

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

A

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
19
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 /libs//config
C. /libs//config, /apps//config and Felix Console
D. /apps//config, /libs//config and Felix Console

A

B

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

How do you delete a property inside a Node object?
A. node.setProperty(“propertyName”,””);
B. node.setProperty(“propertyName”,null);
C. node.delete(“propertyName”);
D. node.removeProperty(“propertyName”);

A

B

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

When configuring a custom log file on a production publish instance, which two statements are true? (Select 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

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

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

You add “sling.run.modes=publish” in sling.properties and start the instance using the command “java - jar aem- 6- p4502.jar - 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

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

Which three best practice statements are true regarding permissions and privileges? (Select 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,C,D

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

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

27
Q

The default installation location for AEM 6.0 in an Application Server is ${user.dfr}/crx- quickstart.
Which method is used to change this location?
A. Configure the sling.home parameter in the WEB-INF/web.xml file of the AEM WAR file after deployment.
B. Configure the sling.home parameter in the WEB- INF/web.xml file of the AEM WAR file before deployment.
C. Configure the sling.run.modes parameter in the WEB- INF/web.xml file of the AEM WAR file after deployment.
D. Configure the sling.run.modes parameter in the WEB- INF/web.xml file of the AEM WAR file before deployment.

A

B

28
Q

Which three statements are true when an AEM author instance is started in debug mode? (Select three.)
A. When AEM starts in debug mode, it does not force JVM to fork a separate process.
B. AEM starts with - Xdebug option (e.g; java Xdebug Xnoagent Djava.compiler=NONE Xmnjdwp:transport=dt_socket,server=y,suspend=n/address=30303jaraem6~autbor- p4502).
C. AEM starts with an option - debug (e.g; Java jaraem6 author- p4502 - debug 30303) from command line.
D. When AEM starts in debug mode, it forces JVM to fork a process.

A

B,C,D

29
Q

How can a JSP be included in a sightly template?
A. cq:include script=”include.jsp”>
B. div data- sly- include=”include.jsp”> C. <div></div>
D. %@ include file=”include.jsp” %>

A

B

30
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

C

31
Q

You are creating a new OSGi configuration in the repository.
When is 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

32
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

33
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

C

34
Q

You create an nt:unstructured node inside the apps in CRXDE Lite and then you create a folder inside the apps and click save.
What is the expected behavior?
A. The folder and nt:unstructured node, none of them will get saved.
B. The folder will get saved after refreshing the apps.
C. The folder and nt:unstructured node, both will get saved.
D. The folder will get saved.

A

A

35
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 are true? (Select three.)
A. http://:/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 archtype multimodule- content- package- archetype from the repository http://repo.adobe.com/nexus/content/groups/public/
D. Create a Maven project with archtype simple- content- package-archetypeform repository http://repo.adobe.com/nexu5/content/gmups/public/

A

A,B,C

36
Q

What is the difference between extending a component and component overlay?
A. There is NO difference.
B. Overlay is to override default component functionality. Extending is to extend the component functionality through the use of Resource Hierarchy and super types.
C. Overlay is to extend the component functionality through the use of Resource Hierarchy and super types. Extending is to override default component functionality.
D. Extending component means extending the behavior of foundation component, Overlay component is overriding the behavior of custom component.

A

B

37
Q
Which has the highest preference during Sling Servlet registration?
A. sling.servlet.paths
B. sling.servlet.resourceTypes 
C. sling.servlet.extension
D. sling.servlet.selectors
A

A

38
Q
Which three AEM jar names will start AEM in author mode? (Select three.)
A. quickstart- 4502.jar 
B. cq5- author- p4502.jar 
C. aem- publish.jar
D. cq5- author- 4502.jar
A

A,B,D

39
Q

While modifying an OSGi bundle configuration from the Felix Web Console, when are configuration changes 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

40
Q

Which statement about client libraries is true?
A. A client library node type has the jcr:primaryType value nt:folder
B. The client library for a project called myappshould be defined under /etc/clientlibs/myapp
C. To include only CSS files In the header.jsp from the client lib called “myproject.all” use
D. Use the Day CQ HTML Library Manager service in the Felix console to compress and minify the generated CSS for better performance on production systems.

A

D

41
Q

Which statement regarding an AEM instance started with author run- mode is correct?
A. Author run-mode CANNOT be used to preview a website.
B. The side-kick does NOT appear in the author mode.
C. The run-mode can be changed to publish after installation.
D. The run-mode CANNOT be changed to publish after installation.

A

D

42
Q

What is the correct way to use clientlibs with Sightly?
A. meta data- sly- template=”${clientLib.al@l categories=,your.cllentlib,}” data- sly- unwrap>
B. meta data- sly- call=”${clientLib.all @ categories- ,your.clientlib,}M data- sly- unwrap>
C. meta data- sly- use- “${clientLib.all @ categorfes^’your.clientlib’}” data- sly- unwrap>
D. meta data- sly- include=n${clientLib.all @ categories=’your.cllentlib’}” data- sly- unwrap>

A

B

43
Q

You are using IIS as the Web server with the dispatcher and your websites root folder path is /content/mycompany. The page /content/mycompany/about us is edited and activated to the AEM publish instance.
Assuming the dispatcher flush agent is not available and IIS is installed on C:\inetpub of the Windows server, what needs to done for the new version of the page to be seen from the IIS Web server?
A. Delete the subfolders of the directory “C:\inetpub\wwwroot” to dear the content cache.
B. Nothing.
C. Delete the directory “C:\inetpub\tempn to clear the content cache.
D. Delete the following directory “C:\inetpub\wwwroot\content\mycompany” to clear the content cache.

A

D

44
Q

Which is a valid way of creating an OSGI service?
A. class MyServiceImpl extends ServiceRegistry{…}
B. ©Service
classMyServiceImpl extends MyService{…}
C. ©Component
©Service
class MyServiceImpl extends MyService{…}
D. /**
*
*
*/
classMyServiceImpI extends MyService{…}

A

C

45
Q

Using the default Dispatcher configuration, which type of URL will have a response cached by the Dispatcher?
A. URL denied by the /cache sections in dispatcher. any file.
B. URL without a file extension.
C. URL with query parameters.
D. URL with an extension in its suffix.

A

D

46
Q

Which statement about replicate permissions on a resource is false?
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

D

47
Q

When configuring a custom log file on a production publish instance, which two statements are false? (Select 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

B,D

48
Q

Which statement is false when an AEM author instance is started in debug mode?
A. When AEM starts in debug mode, it does not force JVM to fork a separate process.
B. AEM starts with - Xdebug option (e.g; java Xdebug Xnoagent Djava.compiler=NONE Xmnjdwp:transport=dt_socket,server=y,suspend=n/address=30303jaraem6~autbor- p4502).
C. AEM starts with an option - debug (e.g; Java jaraem6 author p4502 debug 30303) from command line.
D. When AEM starts in debug mode, it forces JVM to fork a process.

A

A

49
Q

There is no difference between extending a component and component overlay.
A. True B. False

A

B

50
Q

Which statements about client libraries are false? (Select three.)
A. A client library node type has the jcr:primaryType value nt:folder
B. The client library for a project called myapp should be defined under /etc/clientlibs/myapp
C. To include only CSS files In the header.jsp from the client lib called “myproject.all” use
D. Use the Day CQ HTML Library Manager service in the Felix console to compress and minify the generated CSS for better performance on production systems.

A

A,B,C

51
Q

How do you create a design dialog for a AEM component?
A. Create a dialog in the component folder and set the dialog’s xtype property to designDialog.
B. Create a dialog in the component folder and name it design_dialog.
C. Create the same component path structure under the design page and create the dialog there.
D. Create a node under the component’s dialog node and set the xtype property to designDialog.

A

B

52
Q
What does an Item represent in a JCR repository ? 
A. The path to a Node 
B. The value to be stored 
C. A Node or a Property 
D. The UUID of Node
A

C

53
Q
How do you get the current rendering mode in  AEM component script? 
A. componentContext.getWCMMode(); 
B. WCMMode.fromRequest(request); 
C. JCRUtil.fromRequest(request); 
D. slingRequest.getWCMMode();
A

B

54
Q
Which is the correct way of requesting JSON representation of the content in AEM 
A. Add the query parameter ?json=true. 
B. Change the extension to .json.
C. Add a selector json. 
D. Write custom code.
A

B

55
Q
You have a page and want to create a child page. Which property will determine which templates can be used? 
A. cq:allowedPaths 
B. cq:allowedParents 
C. cq:allowedTemplates 
D. cq:allowedChildren
A

C

56
Q

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?
A. Specify an attribute called debug in the tag and set the value to true.
B. Add a query parameter to the URL called debugClientLibs with the value true.
C. Add a property called debugClientLibs to the js.txt and set the value to true.
D. Add a property called debug the client library root node and set the value to true.

A

B

57
Q

How you can get property value from a design dialog in CQ Component script ?
A. String data = properties.get(propertyName,””);
B. String data = currentPage.getStyleProperty(propertyName,””);
C. String data = currentNode.getStyleProperty(propertyName,””);
D. String data = currentStyle.get(propertyName,””);

A

D

58
Q

Which is the correct way of including CQ Tag Library in jsp?
A. cq:include script=”include.jsp
B. div data- sly- include=”include.jsp”>

A

B

59
Q

How you can get the ValueMap of a resource?
A. currentPage.getValueMap()
B. currentNode.getValueMap()
C. resourceResolver.adaptTo(ValueMap.class)
D. resource.adaptTo(ValueMap.class)

A

D

60
Q
Given the following selector: print.a4 and the URL extension is html, which script will Sling render?   
A. print.html.jsp 
B. a4.jsp 
C. a4.html.jsp
D. print.a4.jsp
A

A

61
Q
Which xtype should you use if you want to reuse a part of a dialog in another dialog? 
A. referencesdialog
B,. browsedialog 
C. tabpanel
D. cqinclude
A

D

62
Q

How do you delete a property inside a Node object?
A. String propertyA = “”; node.setProperty(“propertyName”, propertyA);
B. String propertyA = null; node.setProperty(“propertyName”, propertyA);
C. node.removeProperty(“propertyName”);
D. node.delete(“propertyName”);

A

B

63
Q

If your changes are NOT reflected in jsp. What should do you enforce a fresh parsing/compilation of the JSP file?
A. Restart the bundle Apache Sling Scripting JSP Support.
B. Restart the CQ Servlet Engine.
C. Add a query parameter in the page, which is using the JSP file.
D. Search and delete the Java Class file from within /var/classes.

A

D