Question 71
After a recent code deployment, an AEM site is experiencing longer than usual query execution time. The deployment package contained some new Lucene index definitions. A developer needs to identify the long-running queries and confirm that the new index definitions are getting applied correctly.
Which action should the developer take to investigate this problem?
· Go to Tools > Operations >Diagnosis > Download Thread Dumps. Analyze the Thread Dumps to identify long-running requests.
· Go to Tools > Operations >Diagnosis > Log Message. Configure DEBUG log level on com.day.cq.search to monitor search queries.
· Go to Tools > Operations > Diagnosis > Index Manager. Select the new Indexes and run a consistency check.
· Go to Tools > Operations >Diagnosis > Query Performance > Slow Queries. Select a Query and Click on Explain.
Reference: https://docs.adobe.com/content/help/en/experience-manager-65/administering/operations/operations-dashboard.html
Explanation: Explain query section
Explanation: Explain query section
Question 72
A developer installs the latest Service pack to a local AEM author instance.
How should the developer install this package on the publish instance?
· Replicate from package manager of publish instance.
· Use upload/install from the OSGI console of publish instance.
· Use upload/install from the OSGI console of the author instance.
· Replicate from the package manager of the author instance.
Question 73
A developer creates a template-type for building editable templates.
The resulting editable templates and pages must always contain a specific layout container that can NOT be deleted by the author.
How should the developer meet this requirement?
· Add the layout container component by including it on the actual page component.
· Add a content policy to the template-type to disable the removal of the layout container
· Add the layout container component to the initial section of the template-type.
· Add the layout container component to the structure section of the template-type.
Note: https://helpx.adobe.com/experience-manager/6-3/sites/developing/using/page-templates-editable.html
Structure: Components defined in the template structure cannot be moved on a resulting page nor deleted from any resulting pages.
Structure: Components defined in the template structure cannot be moved on a resulting page nor deleted from any resulting pages.
Question 74
There are performance, stability, and security issues with an installed AEM instance.
What should a developer do to fix these issues?
· Delete and reinstall the AEM instance.
· Install Adobe-provided Apache configuration file.
· Stop, clear cache files, and restart the AEM instance.
· Install service pack updates from package share.
Question 75
A developer needs to ensure that the path /content/<proj>/segments exists in all environments with the correct initial content that the developer provides in a package. Content that exists in that path should NOT be affected.
Which import mode should the developer use in the filter definition?
· update
· merge
· replace
· optional
Question 76
A developer has a component located under the path /apps. This component has a Client Library that is directly loaded onto a page. The publish instance loads the page correctly. The dispatcher also loads the page but the Client Library is missing.
How should the developer resolve this issue, while taking security into consideration?
· Change the ACLs for the Client Library.
· Move the Client Library under /apps/<project>library.
· Add the property allowProxy with the boolean value true.
· Allow the path to the clientlibs on the dispatcher.
Question 77
How should a developer configure the replication agent to flush the dispatcher cache for a newly activated page?
• 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 dispatcher.
• Create a dispatcher flush agent in publish instance.
• Create a reserve replication agent on the author instance.
Question 78
Which option will enable an in-place edit of a component that contains HTML text in it?
A. Exhibit A
B. Exhibit B
C. Exhibit C
D. Exhibit D
Question 79
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
Question 80
Which log file should a developer use to search for exception stack traces?
• <aem-install>/crx-quickstart/logs/request.log
• <aem-install>/crx-quickstart/logs/info.log
• <aem-install>/crx-quickstart/logs/access.log
• <aem-install>/crx-quickstart/logs/error.log
Question 81
A developer needs to change the label “Sites” in the navigation of AEM author to “Websites”.
Which action should the developer take to achieve this?
• Modify the node /libs/cq/core/content/nav/sites by updating the icr:title property value.
• Change the code of /libs/granite/ui/components/shell/clientlibs/shell/js/globalnav.js to display the new value
• Create a new node /apps/cq/core/content/nav/sites and update the property jcr:title.
• Modify the code of /libs/granite/ui/components/shell/globalnav/overlay/overlay.jsp to display the new value.
References:
http://localhost:4502/crx/de/index.jsp#/libs/cq/core/content/nav/sites
Explanations:
We need to overlay the “/libs/cq/core/content/nav/sites” to include in the package etc
Question 82
Refer to the following Client Library node structure.
+clientlibs
- jer:primaryType="cq:ClientLibraryFolder”
- categories=”" (clientlibs.example]”
+ js.txt
- jer:primaryType="nt: file”
+ css.txt
- jer:primaryType="nt: file”
+ js
- jer:primaryType="nt: folder”
+ javascripti.js
+ javascript2.js
The js.txt looks like
+ javascriptl.js
+ javascript2.js
The JavaScript is NOT present in the Client Library when it is loaded.
What should a developer do to resolve this issue?
• Change the js folder to a Client Library node and embed it on the clientlibs node.
• Change the js folder to a Client Library node and add the property categories=”[clientlibs.example]”.
• Split the js and css into 2 Client Libraries since they can’t be in the same Client Library.
• Add #base=js as the first line in the js.txt file.
Question 83
A developer needs to analyze log messages for custom Java applications. The developer writes the following Java class:
The developer creates a custom log named custom.log with a debug level in OSGi web console for Java package com.abc.xyz.
Where should the developer look in the OSGi web console to view the above message?
• OSGi -> Log Service and click logs/custom.log
• Sling-> Log Support and click logs/custom.log
• AEM -> Log Support and click logs/custom.log
• Sling -> Metrics and click logs/custom.log
Question 84
Which maven plugin is required to install a content package on a local AEM environment using maven?
• Maven Install Plugin
• FileVault Package Maven Plugin
• Content Package Maven Plugin
• Maven Bundle Plugin
Question 85
A developer needs to implement a functionality that requires creating a Custom Workflow Step.
Which two steps should the developer take to start developing the custom behavior? (Choose two.)
• Implement a Java class with this method “public void process(WorkItem item, WorkflowSession wfsession) throws WorkflowException”.
• Implement a Java class extending from class com.adobe.granite.workflow.exec.WorkflowProcess.
• Create a Workflow component node of the Super Resource Type “cq/workflow/components/model/process” under the folder /apps//components.
• Implement a Java class implementing the interface com.adobe.granite.workflow.exec.WorkflowProcess.
• Create a Workflow component node of the Super Resource Type “cq/workflow/components/step” under the folder /etc/workflow/models.
Question 86
In which two ways can a developer keep simple and maintainable CRX Access Control Lists? (Choose two.)
• Delete the ‘everyone’ group.
• Use Deny statements sparingly.
• Assign access rights to user groups rather than users.
• Assign access rights user by user.
• Use Deny statements extensively.
Question 87
The developer is working on a project locally and needs to install packages manually. The deployments to the localhost must be automated to speed up development. This functionality must be toggled on and off, depending on the needs of the developer.
Which step should the developer take to achieve this?
• Write a script that does a PUT call to AEM each time maven builds a new package.
• Configure the maven install plugin by defining the target URL, username, and password as maven properties.
• Run maven with the deploy phase. Maven will install the package on all local AEM instances running without further configuration.
• Add a maven profile and configure the content package maven plugin within this profile.
Note: The Content Package Maven Plugin is used to configure the deployment target.
Question 88
A developer needs an existing workflow to run only when pages are created under a certain folder?
What should the developer create to achieve this?
• A Launcher with the field excludes that has the value jcr:nodetype==cq:Page.
• A Launcher with the field path pointing to the folder and nodetype field has the value cq:Page.
• A Launcher with the field condition that has the value jcr:content/page.
• A Launcher with the field path pointing to the folder and condition field and have the value jcr:content/jcr:primaryType==cq:Page.
Ref: http://localhost:4502/libs/cq/workflow/admin/console/content/launchers.html
Question 89
A developer wants to consume AEM Page Data in a Single Page Application. The Single Page Application is coded to understand JSON format. Only page content should be exposed through JSON. All the existing components are based on foundation components.
Which change should the developer make in the existing components to support this requirement?
• Invoke the page URL with the extension .json to get the values to construct the required output.
• Add JSON as the default extension in Apache Sling Servlet/Split Resolver and Error Handler Configuration.
• Implement a Sling Model Exporter for the components.
• Create a custom sling event handler to handler JSON requests.
Reference:
https://docs.adobe.com/content/help/en/experience-manager-learn/foundation/development/understand-sling-model-exporter.html
Explanation:
Apache Sling Model Exporter comes with a Sling provided Jackson Exporter that automatically serializes an “ordinary” Sling Model object into JSON. The Jackson Exporter, while quite configurable, at its core inspects the Sling Model object, and generates JSON using any “getter” methods as JSON keys, and the getter return values as the JSON values.
Question 90
A developer creates an editable template with a Layout Container. The developer needs to restrict the Layout Container to just one column layout.
What should the developer do to the editable template to enforce this restriction?
• Using Template Editor set the responsive settings to 1 column for Layout Container Policy.
• Add a responsive column control component to the template and set the column type to 1.
• Overlay wcm.foundation.components.page.responsive Client Library and set @max_col to 1.
• Using Template Editor, lock the Structure Component for the template.
Question 91
A developer is creating a custom component on the page /latestBlogs.html that needs to list all the titles of the blog pages under /content/blogs.
How does this component get the list of child pages?
• Instantiate a node object with session.getNode(/content/blogs) and then iterate through the child nodes and print the title for each.
• Use PageManager.getPage(“/content/blogs”) of the static PageManager class to instantiate a Page object and then iterate through the child pages and print the title for each.
• Use the QueryDebugger to look for all children of /content/blogs and then iterate through the result set and print the title for each.
• Adapt the resourceResolver to the PageManager service, then use the getPage(/content/blogs) to instantiate a Page object and then iterate through the child pages and print the title for each.
Question 92
Which dialog configuration should the developer use to meet all of these requirements?
A developer is working on a dialog for a contact list component. The dialog has the following requirements:
1. The list of contacts must include one or more entries.
2. Contact details must include a full name.
3. Contact details must include an email address
4. Contact details can optionally include a short bio
5. Authors need to be able to rearrange the contacts in the list
Which dialog configuration should the developer use to meet all of these requirements?
A.
B.
C.
D.
Reason: Composite property should be with multifield, not with the container.
Question 93
A developer is working on an HTL script for a custom component. The script has the following requirements:
This script must list the title of every child page of the current page.
If a child page does not have any children, then its title should link directly to that page.
If a child page has children, then the title of every one of its children should be listed beneath its title. The title of every grandchild page should link directly to that page.
Which HTL script should the developer use to meet these requirements?
A.
<ul data-sly-list.child-“${currentPage.listChildren}”>
<li>
<sly data-sly-test.grandchildren="$ {child.listChildren}”>
<b>$ {child.title}</b>
<ul data-sly-list.grandchild="$ {grandchildren} ”>
<li>
<a href="S${grandchild.path @ extension = ‘html’ }”>$
{qrandchild.title}</a>
</li>
</ul>
</sly>
<sly data-sly-test="S { !grandchildren} “>
<a href="S{child.path @ extension = ‘html’}">${child.title}</a>
</sly>
</li>
</ul>
B.
<ul data-sly-list.child-"${currentPage.listChildren}”>
<li>
<sly data-sly-test.grandchildren="$ (child. listChildren}”>
<b>${child.title}</b>
<ul data-sly-list.grandchild="$ {grandchildren} “>
<li>
<a href="${grandchild.path}”>${grandchild.title}</a>
</li>
</ul>
</sly>
<sly data-sly-test="$ { ! grandchildren} “>
<a href="${child.path}">${child.title}</a>
</sly>
</li>
</ul>
C.
<ul data-sly-list.child-"${currentPage.listChildren}”>
<li>
<sly data-sly-test.grandchildren="${child.listchildren}”>
<b>${child.title}</b>
<ul data-sly-list.grandchild="$ {grandchildren} ”>
<li>
<a href="${grandchild.path}”>${grandchild.title}</a>
</li>
</ul>
</sly>
<sly data-sly-test="${!child.listchildren}*>
<a href="${child.path} ”>${child.title}</a>
</sly>
</li>
</ul>
D.
<ul data-sly-list.child-"${currentPage.listChildren}%>
<li>
<sly data-sly-test.grandchildren="${(child.listChildren}”>
<b>${child.title}</b>
<ul data-sly-list.grandchild="$ {grandchildren} ”>
<li>
<a href="S{grandchild.path @ extension = ‘html’ }”>$
{grandchild.title}</a>
</li>
</ul>
</sly>
<sly data-sly-test="$(!child.listChildren}”>
<a href="${child.path @ extension = ‘html’}”>${child.title}</a>
</sly>
</li>
</ul>
Question 94
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?
A. In the content page within the workflow step.
B. In the Workflow Model.
C. In the Workflow Instance.
D. On the design page.
A. In the content page within the workflow step.
B. In the Workflow Model.
C. In the Workflow Instance.
D. On the design page.
Question 95
You want to run a script as a workflow step. Which workflow step should you select?
A. Participant step.
B. Process step.
C. Container step.
D. Split step.
A. Participant step.
B. Process step.
C. Container step.
D. Split step.
Question 96
How are the resources called that are passed through a workflow?
A. WorkItem.
B. Transaction.
C. Lifecycle.
D. Payload.
A. WorkItem.
B. Transaction.
C. Lifecycle.
D. Payload.
Question 97
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?
A. start(), execute(), end().
B. start(), process(), end().
C. execute().
D. process()
A. start(), execute(), end().
B. start(), process(), end().
C. execute().
D. process()
Question 98
What is the purpose of sending values as selectors in the URL instead of sending them as query parameters?
A. To avoid caching the response in the Web server.
B. To enable the response to be cached in the Web server.
C. To avoid creating a session object in the application server.
D. To improve security.
A. To avoid caching the response in the Web server.
B. To enable the response to be cached in the Web server.
C. To avoid creating a session object in the application server.
D. To improve security.
Question 99
Which type of Replication Agent do you create to flush the Web server cache for a newly activated page?
A. Create a Reverse Replication Agent on the author instance.
B. Set the Serialization Type property of the Default Agent to Dispatcher Flush.
C. Create a new replication agent and set Transport URI to point to the Web server.
D. Create a Dispatcher Flush Agent.
A. Create a Reverse Replication Agent on the author instance.
B. Set the Serialization Type property of the Default Agent to Dispatcher Flush.
C. Create a new replication agent and set Transport URI to point to the Web server.
D. Create a Dispatcher Flush Agent.
Question 100
How do you delete a property inside a Node object?
A - node.removeProperty("propertyName");
B - String propertyA = ""; node.setProperty("propertyName", propertyA);
C - node.delete("propertyName");
D - String propertyA = null; node.setProperty("propertyName", propertyA);
A - node.removeProperty("propertyName");
B - String propertyA = ""; node.setProperty("propertyName", propertyA);
C - node.delete("propertyName");
D - String propertyA = null; node.setProperty("propertyName", propertyA);
Question 101
When does a new configuration inside a service take effect when we are changing them in crx repository
a. When you restart the bundle of that service
b. Restart the server
c. Immediately
d. Will take place once service is restarted
a. When you restart the bundle of that service
b. Restart the server
c. Immediately
d. Will take place once service is restarted
Question 102
A set of pages follow template A. You add a new component in that template and then refresh those pages again. You don’t see the component there. What is the reason? one ans?
a. Browser cache
b. Jsp might have to be recompiled
c. The component path was the wrong
d. Pages have to be recreated
a. Browser cache
b. Jsp might have to be recompiled
c. The component path was the wrong
d. Pages have to be recreated
Question 103
There is an external dependency that you have included in your pom.xml file. But when you install the bundle in the felix console, the bundle is not active. To include the classes from the external dependency, which one of the below will you use?a. Private Package
b. Import-Package
c. Export Packaged.
b. Import-Package
c. Export Packaged.
D. Include-Resource
Question 104
I am deploying the latest bundle in felix console. But getting the older version of bundle in logs. How can I clear the cache of older version?
Getting this in logs:
org.apache.felix.eventadmin Service [com.roche.hcpeu.components.eventstream.impl.DesignImporterReplicationHandler,3410] EventAdmin: Exception during event dispatch [org.osgi.service.event.Event [topic=com/day/cq/replication] | [org.osgi.service.event.EventHandler] | Bundle(com.roche.hcpeu.hcpnext-core [410])] (java.lang.IllegalStateException: This session has been closed)
java.lang.IllegalStateException: This session has been closed
org.apache.felix.eventadmin Service [com.roche.hcpeu.components.eventstream.impl.DesignImporterReplicationHandler,3410] EventAdmin: Exception during event dispatch [org.osgi.service.event.Event [topic=com/day/cq/replication] | [org.osgi.service.event.EventHandler] | Bundle(com.roche.hcpeu.hcpnext-core [410])] (java.lang.IllegalStateException: This session has been closed)
java.lang.IllegalStateException: This session has been closed
Please check all the dependencies in your project while installing the package. Secondly from the felix console stop and delete the OLD bundle and reinstall the NEW one.
Question 105
Which of the below are not true for a typical author runmode
a. You cannot change it to a publish instance after installation ..yes
b. You can change it to a publish after installation
c. You cannot preview the page
d. Sidekick is not available
a. You cannot change it to a publish instance after installation ..yes
b. You can change it to a publish after installation
c. You cannot preview the page
d. Sidekick is not available
Question 106
Which bundle should be disabled in order to prevent web-based log viewing
a. Disable Granite request logging
b. Disable Apache sling logging Service
c. Disable Apache Commons I/O
d. Disable CRXDE UI
a. Disable Granite request logging
b. Disable Apache sling logging Service
c. Disable Apache Commons I/O
d. Disable CRXDE UI
Reference: Is it Apache Commons I/O. Though even after disabling the /bin/crxde/logs path works.
The answer should be d. You can try to disable bundle – Adobe CRXDE Support com.day.crx.crxde-support. The path=/bin/crxde/logs is binded to servlet com.day.crx.ide.CRXDELogServlet
Question 107
To configure the development environment for an new project with custom OSGI services and AEM components? (3 options)
A. http://port:host/system/console/depfinderls used to find dependencies.
B. repository of dependencies jar files can be either http://repo.adobe.com/nexus/content/groups/public/
or the local Apache Archiva with all required files
C. Create a maven project with archtype multimode-content-package.
D. Create a maven project with archtype sample-content-package.
A. http://port:host/system/console/depfinderls used to find dependencies.
B. repository of dependencies jar files can be either http://repo.adobe.com/nexus/content/groups/public/
or the local Apache Archiva with all required files
C. Create a maven project with archtype multimode-content-package.
D. Create a maven project with archtype sample-content-package.
Question 108
You have three publish instances publish1 , publish3, publish2 . If you update the content in one of the instance publish 1. How would you replicate this content among other instances (select three)
a. Setup a standing/static agent in author
b. Setup reverse replication from author to the three publish instances
c. Setup the replication from author to publish
d. Setup dispatcher cache agent in author
a. Setup a standing/static agent in author
b. Setup reverse replication from author to the three publish instances
c. Setup the replication from author to publish
d. Setup dispatcher cache agent in author
Question 109
If you have a CSS that needs to be included as a client library in the project… Which of the following statements are true?
a. HTML Library Manager has an configuration option to minify CSS from the OSGI Console
b. To include only CSS from a client library named clientlibs.all use the following syntax
c. Clientlibs for a project are typically placed under etc/clientlibs
d. Some invalid option
a. HTML Library Manager has an configuration option to minify CSS from the OSGI Console
b. To include only CSS from a client library named clientlibs.all use the following syntax
c. Clientlibs for a project are typically placed under etc/clientlibs
d. Some invalid option
Question 110
Which url shows server logs?A. http://localhost:8088/system/console/slinglog (Sling)
B. http://localhost:8088/system/console/status-slinglogs (Status)
B. http://localhost:8088/system/console/status-slinglogs (Status)
c. http://localhost:8088/system/console/logs (OSGi)
D. http://localhost:8088/bin/crxde/logs (does not exist)
D. http://localhost:8088/bin/crxde/logs (does not exist)
A and B are correct. Option D doesn't exist. While with Option C, you will see the status of the Logging Service. With Option A and B, you will be able to see the logs.
Question 111
In a default environment, where is the Dispatcher Flush configured?
A. Dispatcher Module
B. publish instance
C. author instance
D. webserver
B. publish instance
C. author instance
D. webserver
Note:
Dispatcher flush is configured in Author instance. I meant the configurations are always done on Author instance, not Publish. But the Agent which should flush Dispatcher Cache should be “Agents on Publish” and NOT “Agents on Author”.and then the configuration should be replicated to stay at Publishers. This is done to remove latency from Page Activation and Replication.
Question 112
which scenario the dispatcher stopped updating the cache? (3 Answers)
A. Request pages contain the Query string.
B. The request has authorization headers and dispatcher.any not having \allowauthorized
C. Dispatcher flush is disabled in publish
D. The request should start with /content.
Question 113
A. activate
B. production
C. loadsamplecontent
D. nosamplecontent
A. Request pages contain the Query string.
B. The request has authorization headers and dispatcher.any not having \allowauthorized
C. Dispatcher flush is disabled in publish
D. The request should start with /content.
Question 113
A developer wants to automatically truncate request log files once they exceed 10 MB.
Which OSGi configuration should the developer modify?
Apache Sling Customizable Request Data Logger
Apache Sling Logging Configuration
Apache Sling Logging Writer Configuration
Adobe Granite Log Analysis Service
Question 114
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
Question 115
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:temp|ate"/-);
B. Page.getTemplate();
C. Page.getTemplate().getPath();
D. resource.getTemplate.getPath();
Question 116
Which is a valid out-of-the-box sling run mode?A. activate
B. production
C. loadsamplecontent
D. nosamplecontent
Question 117
The AEM system turned out to be too Slow, Out of Memory and some other scenario
What could be the reason?
Unclosed JCR Sessions
Question 118
What if the dispatcher is not 'optimally' configured
Cache not done effectively, Excessive configuration increases the speed of caching.
Question 119
A Stage author just available through a dispatcher through a default port: 80
What is the significance of the port?
80 is the default port for the dispatcher.
Question 120
Given a specific URL with a query parameter? The page is not cached. What should be done?
ignorUrlParams in the dispatcher.any
Question 121
Which attribute enables the bundle to be configurable on Felix console?
@property
Question 121
Question 122
Question 123
Question 124
Question 125
Question 126
Question 127
Question 128
Question 129
Question 130
Question 132
Question 133
Question 135
Question 121
You are using IIS as the Web server with the dispatcher and your website's 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.
Question 122
Which three best practice statements are true regarding permissions and privileges?
(Choose three).
(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,
Question 123
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
Question 124
Which statement about client libraries is true?
A. A client library node type has the jcr:primaryType value nt:folder (cq:clientLibraryFolder)
B. The clientlibrary 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 <cqincludeClientLib categories="myproject all/>
D. Use the Day CQ/Adobe Granite HTML Library Manager service in the Felix console to compress and minify the generated CSS for better performance on production systems.
Question 125
Which statement about the usage of declarative services while creating an OSGi component is true?
A. Property annotation is used to refer 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 a component
D. Service annotation is required and describes which service Interface Is served by the component
Question 126
Which two URLs will show the server logs? (Choose two.)
A. http://{server}/system/console/status-slinglogs
B. http://{server}/system/console/slinglog
C. http://{server}/bin/crxde/logs
D. http://{server}/system/console/logs
Question 127
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.
Question 128
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/depfinder is 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 Archive with all required dependencies
C. Create a Maven project with archetype multimodule-content-package-archetype from the repository http://repo.adobe.com/nexus/content/groups/public/
D. Create a Maven project with archetype simple-content-package-archetype from repository http://repo.adobe.com/nexu5/content/gmups/public/
Question 129
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
Question 130
How do you delete a property inside a Node object?
A. node.setProperty(npropertyName","");
B. node.setProperty("propertyName",null);
C. node.delete("propertyName");
D. node.removeProperty("propertyName");
Question 131
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/*
Question 132
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?
/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
Question 133
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"
Question 134
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
Question 135
Which Maven plugin allows the direct installation of the bundle into AEM?
A. maven-sling-plugin
B. maven-scr-plugin
C. maven-bundle-plugin
D. maven-javadoc-plugin
Question 136
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 {
Note:
Old Way -- ©Component ©Service class MyServiceImpl extends MyService
New way -- @compone(service=MyService.class) public class MyServiceImpll implements MyService {}
Question 137
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 the dispatcher.any file.
B. URL without a file extension.
C. URL with query parameters.
D. URL with an extension in its suffix.
Question 138
Which three AEM jar names will start AEM in author mode? (Choose three.)
A. quickstart-4502.jar
B. cq5-author-p4502.jar
C. aem-publish.jar
D. cq5-author-4502.jar
Note
"The default install (an author instance on localhost:4502) can be changed simply by renaming the jar file before launching it for the first time. The naming pattern is: cq-<instance-type>-p<port-number>.jar"
A. quickstart-4502.jar starts in the author (default behavior)
B. cq5-author-p4502.jar starts in the author (explicitly set to the author)
C. aem-publish.jar starts in publish (explicitly set to publish)
D. cq5-author-4502.jar starts in the author (explicitly set to the author)
Question 139
How do you specify the osgi config of a java class in Publish runmode?
A. /apps/system/config/org.apache.felix.webconsole.internal.servlet.OsgiManager jcr:primary type= sling:osgiConfig
B. /apps/system/config/org.apache.felix.webconsole.internal.servlet.OsgiManager.config jcr:primary type= sling:osgiConfig
C. /apps/system/config/org.apache.felix.webconsole.internal.servlet.OsgiManager.config jcr:primary type= nt:file
D. /apps/system/config/org.apache.felix.webconsole.internal.servlet.OsgiManager.properties jcr:primary type= nt:file
Question 140
If we start the AEM server in debugger mode what will happen?
A. It will fork a child process for sure.
B. It will not fork any child process
Question 141
Which of the following statements is true?
a) allow takes higher precedence over deny
b) allow takes lower precedence over deny
c)The Allow replication rights have higher precedence than the Deny replication rights.
Question 142
Overview of AEM Logs
Logging in AEM is based on Sling principles: \crx-quickstart\logs
access.log: All access requests to CQ WCM and the repository are registered here.
error.log: Error messages (of varying levels of severity) are registered here.
request.log: Each access request is registered here together with the response.
server.log: All actions made by the server are registered here.
stderr.log: Holds error messages, again of varying levels of severity, generated during startup.
stdout.log: Holds logging messages indicating events during startup.
History.log: This log file contains information about which action is performed on the content. It contains high-level logs about the actions performed by editors (actions can be edit, view, delete, etc). This log is probably only relevant to author instances.
Upgrade.log -- Provides a log of all upgrade operations that run from com.day.compat.code upgrade and com.adobe.cq.upgradesexecutor package.By default, this log level is set to info.
Upgrade.log -- Provides a log of all upgrade operations that run from com.day.compat.code upgrade and com.adobe.cq.upgradesexecutor package.By default, this log level is set to info.
Error.log -- Error messages (of varying levels of severity like INFO, ERROR, DEBUG, etc.) are registered here.
Question 143
Hierarchy of log4j logging levels are as follows in Highest to Lowest order?
TRACE
DEBUG
INFO
WARN
ERROR
Note: The high-level logs contain all the logs of lower levels like in case of Trace log level, it will include all the logs of debug, info, warn, and error as well.
Question 144
Servlet Registration Order
Servlets can be registered as OSGi services. The following service reference properties are evaluated for Servlets defined as OSGi services of type javax.servlet.Servlet (all those property names are defined in org.apache.sling.api.servlets.ServletResolverConstants (since API 2.15.2) or org.apache.sling.servlets.resolver.internal.ServletResolverConstants (before API 2.15.2)):
sling.servlet.resourceTypes
sling.servlet.resourceSuperTypes
sling.servlet.selectors
sling.servlet.extensions
sling.servlet.methods
sling.servlet.paths
sling.servlet.paths.strict
sling.servlet.prefix
sling.core.servletName
Question 145
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.
Question 146
Which statement about the usage of declarative services while creating an OSGi component is true?
A. ©Property annotation is used to refer 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 a component
D. ©Service annotation is required and describes which service Interface Is served by the component
Question 148
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 have higher precedence than deny replication rights.
C. To grant replication rights to a user on any resource, the user has to have read permissions for/etc/replication, /bin.
D. The allow replication rights have lower precedence than deny replication rights.
Question 149
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 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.
Question 150
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.
Question 151
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
Question 152
Which property is deprecated while resolving a template (T) that can be used as a template for the 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
The answer is "B", but in AEM 6.2+ allowedPaths is re-enabled. nothing of above is deprecated - https://experienceleaguecommunities.adobe.com/t5/adobe-experience-manager/template-allowedpaths-is-deprecated/qaq-p/175899
Question 153
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.
Question 154
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/*
he right answer there is B. /content/main/[^/]+(/,*)?.
· /content/main/? and /content/main/* are not correct because in these cases allowed paths are:
· /content/main
· /content/main/
· /content/main/[A/]+[A/] you already identified as wrong, and I agree there.
This /content/main/[^/]+(/,*)? regex matches path /content/main/page1 just perfectly because it says that path should start with /content/main/ then there should be some non empty name.
Remember, that property allowedPaths used to validate the path of the page, where you are going to create a new one (in this case with name page2).
Question 155
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/<projectid>/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.
Question 157
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)
Note:
The answer should be A. You can try to disable bundle – Adobe CRXDE Support com.day.crx.crxde-support. The path=/bin/crxde/logs is binded to servlet com.day.crx.ide.CRXDELogServlet
Question 158
Which Maven plugin allows the direct installation of the bundle into AEM?
A. maven-sling-plugin
B. maven-scr-plugin
C. maven-bundle-plugin
D. maven-javadoc-plugin
Question 159
You have written an OSGi service with the class name com.acme.myapp.EmailUpdate, You only this service to run on the publish instance. Which two configurations would run the service on the publish instance only? (Choose two).
A. Option A
B. Option B
C. Option C
D. Option D
Question 160
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
Question 161
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
Question 162
Which is a valid out-of-the-box sling run mode?
A. activate
B. production
C. loadsamplecontent
D. nosamplecontent
Question 163
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:temp|ate"/-);
B. Page.getTemplate();
C. Page.getTemplate().getPath();
D. resource.getTemplate.getPath();
Question 164
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
Question 165
How do you delete a property inside a Node object?
A. node.setProperty(npropertyName","");
B. node.setProperty("propertyName",null);
C. node.delete("propertyName");
D. node.removeProperty("propertyName");
Question 166
When configuring a custom log file on a production publish instance, which two statements are true? (Choose two).
A. Web Console url http://<aemhost>:<port>/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- <identlfier>.
D. The physical location of the custom log file is NOT relative to the crx-quickstart folder.
Question 167
What does the vlt command 'resolve' do?
A. Removes the conflict markers.
B. Semantically resolves conflicts.
C. Removes the conflict-related artifact files.
D. It allows the path to be committed to the conflicts.
Question 168
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.
Note:
when "sling.run.modes" is present in the sling.properties file, -r is always ignored from the command line.
Question 169
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,
Question 170
What is the optimal way to check-out content from the JCR repository to the local file system?
A. Use the VLT export command.
B. Create and build a package using the CQ Package manager. Download and unzip the package in the local file system.
C. Use the VLT import command.
D. Download content from the repository as an XML file.
No comments:
Post a Comment
If you have any doubts or questions, please let us know.