How should a developer configure the replication agent to flush the dispatcher cache for a newlyactivated page?
- A . Create a dispatcher flush agent in publish instance
- B . Create a reverse replication agent on the author instance
- C . Create a new replication agent and set transport URI to point to the dispatcher
- D . Set the serialization type property of the defaultagent to dispatcher flush
An AEM site experiences slower page loads. A developer needs to identify the slow running requests.
How should a developer analyze the requests with long response times?
- A . Use proxy.jar with the following command java -jar proxy.jar <host> <remoteport> <localport> to debug the webserver and AEM server communication
- B . Use rlog.jar with the following command $ java -jar ../opt/helpers/rlog.jar -n 10 request.log to identify long running requests
- C . Download Heapdumps from Tools > Operations > Diagnosis and analyze the Heapdumps using the Memory Analyzer Tool
- D . Embed /libs/foundation/components/timing component in the Page Component and verify the page load time
A developer has acomponent located under the path /apps. This component has a Client Library which 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 developerresolve this issue, while taking security into consideration?
- A . Change the ACLs for the Client Library.
- B . Move the Client Library under /apps/<project>library.
- C . Add the property allowProxy with a boolean value true.
- D . Allow the path to the clientlibson the dispatcher.
A developer is creating a new OSGi bundle com.custom.package.b to expose new services.
com.custom.package.a is already installed and active in the system and has the following package definition:
The system console shows the following package availability:
Bundle com.custom.package.b to be installed has the following packagedefinition:
What will happen when the developer uploads the bundle com.custom.package.b into the system?
- A . The bundle will install but fail the activation due to unsatisfied dependencies com.sample.package.b and com.sample.package.c.
- B . The bundle willinstall but fail the activation due to unsatisfied dependency com.sample.package.c.
- C . The bundle will install and activate successfully.
- D . The bundle will install but fail the activation due to unsatisfied dependency com.sample.package.b.
A developer is creating a new OSGi bundle com.custom.package.b to expose new services.
com.custom.package.a is already installed and active in the system and has the following package definition:
The system console shows the following package availability:
Bundle com.custom.package.b to be installed has the following packagedefinition:
What will happen when the developer uploads the bundle com.custom.package.b into the system?
- A . The bundle will install but fail the activation due to unsatisfied dependencies com.sample.package.b and com.sample.package.c.
- B . The bundle willinstall but fail the activation due to unsatisfied dependency com.sample.package.c.
- C . The bundle will install and activate successfully.
- D . The bundle will install but fail the activation due to unsatisfied dependency com.sample.package.b.
A developer is creating a new OSGi bundle com.custom.package.b to expose new services.
com.custom.package.a is already installed and active in the system and has the following package definition:
The system console shows the following package availability:
Bundle com.custom.package.b to be installed has the following packagedefinition:
What will happen when the developer uploads the bundle com.custom.package.b into the system?
- A . The bundle will install but fail the activation due to unsatisfied dependencies com.sample.package.b and com.sample.package.c.
- B . The bundle willinstall but fail the activation due to unsatisfied dependency com.sample.package.c.
- C . The bundle will install and activate successfully.
- D . The bundle will install but fail the activation due to unsatisfied dependency com.sample.package.b.
A developer is creating a new OSGi bundle com.custom.package.b to expose new services.
com.custom.package.a is already installed and active in the system and has the following package definition:
The system console shows the following package availability:
Bundle com.custom.package.b to be installed has the following packagedefinition:
What will happen when the developer uploads the bundle com.custom.package.b into the system?
- A . The bundle will install but fail the activation due to unsatisfied dependencies com.sample.package.b and com.sample.package.c.
- B . The bundle willinstall but fail the activation due to unsatisfied dependency com.sample.package.c.
- C . The bundle will install and activate successfully.
- D . The bundle will install but fail the activation due to unsatisfied dependency com.sample.package.b.
A developer is creating a new OSGi bundle com.custom.package.b to expose new services.
com.custom.package.a is already installed and active in the system and has the following package definition:
The system console shows the following package availability:
Bundle com.custom.package.b to be installed has the following packagedefinition:
What will happen when the developer uploads the bundle com.custom.package.b into the system?
- A . The bundle will install but fail the activation due to unsatisfied dependencies com.sample.package.b and com.sample.package.c.
- B . The bundle willinstall but fail the activation due to unsatisfied dependency com.sample.package.c.
- C . The bundle will install and activate successfully.
- D . The bundle will install but fail the activation due to unsatisfied dependency com.sample.package.b.
A developer is creating a new OSGi bundle com.custom.package.b to expose new services.
com.custom.package.a is already installed and active in the system and has the following package definition:
The system console shows the following package availability:
Bundle com.custom.package.b to be installed has the following packagedefinition:
What will happen when the developer uploads the bundle com.custom.package.b into the system?
- A . The bundle will install but fail the activation due to unsatisfied dependencies com.sample.package.b and com.sample.package.c.
- B . The bundle willinstall but fail the activation due to unsatisfied dependency com.sample.package.c.
- C . The bundle will install and activate successfully.
- D . The bundle will install but fail the activation due to unsatisfied dependency com.sample.package.b.
A developer is creating a new OSGi bundle com.custom.package.b to expose new services.
com.custom.package.a is already installed and active in the system and has the following package definition:
The system console shows the following package availability:
Bundle com.custom.package.b to be installed has the following packagedefinition:
What will happen when the developer uploads the bundle com.custom.package.b into the system?
- A . The bundle will install but fail the activation due to unsatisfied dependencies com.sample.package.b and com.sample.package.c.
- B . The bundle willinstall but fail the activation due to unsatisfied dependency com.sample.package.c.
- C . The bundle will install and activate successfully.
- D . The bundle will install but fail the activation due to unsatisfied dependency com.sample.package.b.
A developer is creating a new OSGi bundle com.custom.package.b to expose new services.
com.custom.package.a is already installed and active in the system and has the following package definition:
The system console shows the following package availability:
Bundle com.custom.package.b to be installed has the following packagedefinition:
What will happen when the developer uploads the bundle com.custom.package.b into the system?
- A . The bundle will install but fail the activation due to unsatisfied dependencies com.sample.package.b and com.sample.package.c.
- B . The bundle willinstall but fail the activation due to unsatisfied dependency com.sample.package.c.
- C . The bundle will install and activate successfully.
- D . The bundle will install but fail the activation due to unsatisfied dependency com.sample.package.b.
A developer is creating a new OSGi bundle com.custom.package.b to expose new services.
com.custom.package.a is already installed and active in the system and has the following package definition:
The system console shows the following package availability:
Bundle com.custom.package.b to be installed has the following packagedefinition:
What will happen when the developer uploads the bundle com.custom.package.b into the system?
- A . The bundle will install but fail the activation due to unsatisfied dependencies com.sample.package.b and com.sample.package.c.
- B . The bundle willinstall but fail the activation due to unsatisfied dependency com.sample.package.c.
- C . The bundle will install and activate successfully.
- D . The bundle will install but fail the activation due to unsatisfied dependency com.sample.package.b.
Sensitive information is automatically decrypted using the CryptoSupport OSGi service before the value is returned
Two AEM publish instances feed a single Dispatcher.
Which part of the Dispatcher configuration should a developer review to ensure both AEM publish instances are used?
- A . virtualhosts
- B . farms
- C . filter
- D . cache
A custom AEM application has a run time dependency to a third party OSGi bundle that is NOT included in out-of-the-box AEM. The third party dependency needs to be available for multiple applications and be upgraded separately from the custom AEM application.
How should a developer make sure that the bundle is installed on all environments?
- A . Add the dependency to the third party bundle in pom.xml of the project bundle
- B . Embed the third party bundle in the bundle that depends on it
- C . Embed the bundle in a content package to have it automatically deployed
- D . Declare the dependency correctly using a link to the OSGi Bundle Reposirory (OBR)
Too many pages are invalidated in the dispatcher cache when a page is published.
What is most likely causing this issue in the dispatcher configuration?
- A . Sticky session are NOT configured properly, resulting in requests being delivered to the wrong server.
- B . The level of cache invalidation is NOT appropriate for the published content model.
- C . File globbing in the dispatcher configuration is NOT correct.
- D . The OS file systempermissions are NOT properly configured.
A custom application contains a service component com.proj.ServiceComponent. A developer needs to configure the string value name and integer value intVal. The actualconfiguration must be deployed using a content package.
What should the developer do to meet these requirements?
- A . "Use a file com.proj.ServiceComponent.cfg with content
name=""Service name""
intVal=I""5""" - B . "Use a file com.proj.ServiceComponent.configwith content
name=""Service name""
intVal=I""5""" - C . "Use a file com.proj.ServiceComponent.xml with content <?xml version=""1.0"" encoding=""UTF-8""?> <jcr:root jcr:primaryType=""sling:OsgiConfig""
name=""Service Name""
intVal=""5""/>" - D . "Use a file com.proj.ServiceComponent.xml with content <?xml version=""1.0"" encoding=""UTF-8""?>
<jcr:root xmlns:jcr=""http://www.jcp.org/jcr/1.0"" jcr:primaryType=""sling:OsgiConfig""
name=""Service Name""
intVal=""{Integer}5""/>"
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 . A Launcher with the field path pointing to the folder and condition field and have the value jcr:content/jcr:primaryType==cq:Page
- B . A Launcher with the field condition that has the value jcr:content/page
- C . A Launcher with the field exclude that has the value jcr:nodeType==cq:Page
- D . A Launcher with the field path pointing to the folder and nodetype field have the value cq:Page
Refer to thefollowing four Client Library Folders.
A developer uses the following:
What is the resulting HTML?
- A . Option A
- B . Option B
- C . Option C
- D . Option D
A developer is working on a complex project with multiple bundles. One bundle provides an OSGiservice for other bundles.
Which two options are necessary to ensure that the other bundles can reference that OSGi service? (Choose two.)
- A . The bundles consuming the service need to import the fully qualified name of the service interface.
- B . The bundle providing the service needs to contain an adequate SCR descriptor file.
- C . The bundle providing the service needs to export the java package of the service
interface. - D . The bundle providing the service needs to contain a whitelist of allowed consumer bundles.
- E . The service needs to correctly declare metatype information.
After adding new features, a developer’s environment is experiencing slowness before ultimately running out of memory. The initial log analysis points towards a large number of open sessions.
Which action should the developer take to further monitor the overall session count on this AEM instance?
- A . Run the following command to generate thread dumps jstack -l <pid> >> threaddumps.log, analyze thread dumps to find long running sessions.
- B . Go to Web Console > Status > Threads, verify the overall thread count.
- C . Go to Tools > Operations > Monitoring. Create a new report based on Number of Active Sessions as metric.
- D . Go to <aem-install>/crx-qiuckstart/logs/strderr/log, use the following command grep -o ‘CRXSessionImpl’ strderr.log| wc -l.
The structure section of an editable template has a locked component.
What happens to the content of that component when a developer unlocks it?
- A . The content stays in the same place but it ignored on pages using the template.
- B . The content is moved to the initial section of the editabletemplate.
- C . The content is deleted after confirmation from the template author.
- D . The content is copied to the initial section of the editable template.
Which xml tag is used within the vault package definition to add a new path to a content package?
- A . <path>
- B . <filter>
- C . <content>
- D . <rule>
A developer identifies that some requests for the page /content/sampleproject/page.html take longer than other requests for the same page.
Refer to the $DOCROOT/content/sampleproject directory below. [user@group /opt/dispatcher/cache/content/sampleproject ]$ ks -la total 2
drwxr-xr-x. 5 apache apache 4096 Feb 11 11:41 . drwxr-xr-x. 3 apache apache 4096 Nov 29 16:07 .. drwxr-xr-x. 4 apache apache 4096 Feb 7 03:21 page.html -rw-r–r–. 1 apache apache 0 Feb 7 03:19 .stat The dispatcher.log file contains the following lines:
[Wed Feb 13 13:14:04 2012] [D] [1376(1572)] checking [/libs/cq/security/userinfo.json]
[Wed Feb 13 13:14:04 2012] [D] [1376(1572)] Caching disabled due to query string:
tracking_id=1350373444666
[Wed Feb 13 13:14:04 2012] [D] [1376(1572)] cache-action for [/libs/cq/security/userinfo.json]: None
How should the developer make sure that the page is always cached?
- A . "Modify the dispatcher.any file to contain the following lines:
/filter
{
…
/0023 { /type ""allow"" /url ""/content/*/*.html?tracking_id=*"" }
…
}" - B . "Modify the dispatcher.any file to contain the following lines:
/rules
{
…
/0000 { /glob ""*"" /type ""allow"" /params ""tracking_id"" }
…
}" - C . "Modify the dispatcher.any file to contain the following lines:
/ignoreUrlParams
{
…
/0002 { /glob ""tracking_id"" /type ""allow"" }
…
}" - D . "Modify the dispatcher.any file to contain the following lines:
/filter
{
…
/0023 { /type ""allow"" /url ""/content/*/*.html"" /params ""tracking_id"" }
…
}"
A developer identifies that some requests for the page /content/sampleproject/page.html take longer than other requests for the same page.
Refer to the $DOCROOT/content/sampleproject directory below. [user@group /opt/dispatcher/cache/content/sampleproject ]$ ks -la total 2
drwxr-xr-x. 5 apache apache 4096 Feb 11 11:41 . drwxr-xr-x. 3 apache apache 4096 Nov 29 16:07 .. drwxr-xr-x. 4 apache apache 4096 Feb 7 03:21 page.html -rw-r–r–. 1 apache apache 0 Feb 7 03:19 .stat The dispatcher.log file contains the following lines:
[Wed Feb 13 13:14:04 2012] [D] [1376(1572)] checking [/libs/cq/security/userinfo.json]
[Wed Feb 13 13:14:04 2012] [D] [1376(1572)] Caching disabled due to query string:
tracking_id=1350373444666
[Wed Feb 13 13:14:04 2012] [D] [1376(1572)] cache-action for [/libs/cq/security/userinfo.json]: None
How should the developer make sure that the page is always cached?
- A . "Modify the dispatcher.any file to contain the following lines:
/filter
{
…
/0023 { /type ""allow"" /url ""/content/*/*.html?tracking_id=*"" }
…
}" - B . "Modify the dispatcher.any file to contain the following lines:
/rules
{
…
/0000 { /glob ""*"" /type ""allow"" /params ""tracking_id"" }
…
}" - C . "Modify the dispatcher.any file to contain the following lines:
/ignoreUrlParams
{
…
/0002 { /glob ""tracking_id"" /type ""allow"" }
…
}" - D . "Modify the dispatcher.any file to contain the following lines:
/filter
{
…
/0023 { /type ""allow"" /url ""/content/*/*.html"" /params ""tracking_id"" }
…
}"
A developer identifies that some requests for the page /content/sampleproject/page.html take longer than other requests for the same page.
Refer to the $DOCROOT/content/sampleproject directory below. [user@group /opt/dispatcher/cache/content/sampleproject ]$ ks -la total 2
drwxr-xr-x. 5 apache apache 4096 Feb 11 11:41 . drwxr-xr-x. 3 apache apache 4096 Nov 29 16:07 .. drwxr-xr-x. 4 apache apache 4096 Feb 7 03:21 page.html -rw-r–r–. 1 apache apache 0 Feb 7 03:19 .stat The dispatcher.log file contains the following lines:
[Wed Feb 13 13:14:04 2012] [D] [1376(1572)] checking [/libs/cq/security/userinfo.json]
[Wed Feb 13 13:14:04 2012] [D] [1376(1572)] Caching disabled due to query string:
tracking_id=1350373444666
[Wed Feb 13 13:14:04 2012] [D] [1376(1572)] cache-action for [/libs/cq/security/userinfo.json]: None
How should the developer make sure that the page is always cached?
- A . "Modify the dispatcher.any file to contain the following lines:
/filter
{
…
/0023 { /type ""allow"" /url ""/content/*/*.html?tracking_id=*"" }
…
}" - B . "Modify the dispatcher.any file to contain the following lines:
/rules
{
…
/0000 { /glob ""*"" /type ""allow"" /params ""tracking_id"" }
…
}" - C . "Modify the dispatcher.any file to contain the following lines:
/ignoreUrlParams
{
…
/0002 { /glob ""tracking_id"" /type ""allow"" }
…
}" - D . "Modify the dispatcher.any file to contain the following lines:
/filter
{
…
/0023 { /type ""allow"" /url ""/content/*/*.html"" /params ""tracking_id"" }
…
}"
A developer identifies that some requests for the page /content/sampleproject/page.html take longer than other requests for the same page.
Refer to the $DOCROOT/content/sampleproject directory below. [user@group /opt/dispatcher/cache/content/sampleproject ]$ ks -la total 2
drwxr-xr-x. 5 apache apache 4096 Feb 11 11:41 . drwxr-xr-x. 3 apache apache 4096 Nov 29 16:07 .. drwxr-xr-x. 4 apache apache 4096 Feb 7 03:21 page.html -rw-r–r–. 1 apache apache 0 Feb 7 03:19 .stat The dispatcher.log file contains the following lines:
[Wed Feb 13 13:14:04 2012] [D] [1376(1572)] checking [/libs/cq/security/userinfo.json]
[Wed Feb 13 13:14:04 2012] [D] [1376(1572)] Caching disabled due to query string:
tracking_id=1350373444666
[Wed Feb 13 13:14:04 2012] [D] [1376(1572)] cache-action for [/libs/cq/security/userinfo.json]: None
How should the developer make sure that the page is always cached?
- A . "Modify the dispatcher.any file to contain the following lines:
/filter
{
…
/0023 { /type ""allow"" /url ""/content/*/*.html?tracking_id=*"" }
…
}" - B . "Modify the dispatcher.any file to contain the following lines:
/rules
{
…
/0000 { /glob ""*"" /type ""allow"" /params ""tracking_id"" }
…
}" - C . "Modify the dispatcher.any file to contain the following lines:
/ignoreUrlParams
{
…
/0002 { /glob ""tracking_id"" /type ""allow"" }
…
}" - D . "Modify the dispatcher.any file to contain the following lines:
/filter
{
…
/0023 { /type ""allow"" /url ""/content/*/*.html"" /params ""tracking_id"" }
…
}"
A developer identifies that some requests for the page /content/sampleproject/page.html take longer than other requests for the same page.
Refer to the $DOCROOT/content/sampleproject directory below. [user@group /opt/dispatcher/cache/content/sampleproject ]$ ks -la total 2
drwxr-xr-x. 5 apache apache 4096 Feb 11 11:41 . drwxr-xr-x. 3 apache apache 4096 Nov 29 16:07 .. drwxr-xr-x. 4 apache apache 4096 Feb 7 03:21 page.html -rw-r–r–. 1 apache apache 0 Feb 7 03:19 .stat The dispatcher.log file contains the following lines:
[Wed Feb 13 13:14:04 2012] [D] [1376(1572)] checking [/libs/cq/security/userinfo.json]
[Wed Feb 13 13:14:04 2012] [D] [1376(1572)] Caching disabled due to query string:
tracking_id=1350373444666
[Wed Feb 13 13:14:04 2012] [D] [1376(1572)] cache-action for [/libs/cq/security/userinfo.json]: None
How should the developer make sure that the page is always cached?
- A . "Modify the dispatcher.any file to contain the following lines:
/filter
{
…
/0023 { /type ""allow"" /url ""/content/*/*.html?tracking_id=*"" }
…
}" - B . "Modify the dispatcher.any file to contain the following lines:
/rules
{
…
/0000 { /glob ""*"" /type ""allow"" /params ""tracking_id"" }
…
}" - C . "Modify the dispatcher.any file to contain the following lines:
/ignoreUrlParams
{
…
/0002 { /glob ""tracking_id"" /type ""allow"" }
…
}" - D . "Modify the dispatcher.any file to contain the following lines:
/filter
{
…
/0023 { /type ""allow"" /url ""/content/*/*.html"" /params ""tracking_id"" }
…
}"
A developer identifies that some requests for the page /content/sampleproject/page.html take longer than other requests for the same page.
Refer to the $DOCROOT/content/sampleproject directory below. [user@group /opt/dispatcher/cache/content/sampleproject ]$ ks -la total 2
drwxr-xr-x. 5 apache apache 4096 Feb 11 11:41 . drwxr-xr-x. 3 apache apache 4096 Nov 29 16:07 .. drwxr-xr-x. 4 apache apache 4096 Feb 7 03:21 page.html -rw-r–r–. 1 apache apache 0 Feb 7 03:19 .stat The dispatcher.log file contains the following lines:
[Wed Feb 13 13:14:04 2012] [D] [1376(1572)] checking [/libs/cq/security/userinfo.json]
[Wed Feb 13 13:14:04 2012] [D] [1376(1572)] Caching disabled due to query string:
tracking_id=1350373444666
[Wed Feb 13 13:14:04 2012] [D] [1376(1572)] cache-action for [/libs/cq/security/userinfo.json]: None
How should the developer make sure that the page is always cached?
- A . "Modify the dispatcher.any file to contain the following lines:
/filter
{
…
/0023 { /type ""allow"" /url ""/content/*/*.html?tracking_id=*"" }
…
}" - B . "Modify the dispatcher.any file to contain the following lines:
/rules
{
…
/0000 { /glob ""*"" /type ""allow"" /params ""tracking_id"" }
…
}" - C . "Modify the dispatcher.any file to contain the following lines:
/ignoreUrlParams
{
…
/0002 { /glob ""tracking_id"" /type ""allow"" }
…
}" - D . "Modify the dispatcher.any file to contain the following lines:
/filter
{
…
/0023 { /type ""allow"" /url ""/content/*/*.html"" /params ""tracking_id"" }
…
}"
A developer identifies that some requests for the page /content/sampleproject/page.html take longer than other requests for the same page.
Refer to the $DOCROOT/content/sampleproject directory below. [user@group /opt/dispatcher/cache/content/sampleproject ]$ ks -la total 2
drwxr-xr-x. 5 apache apache 4096 Feb 11 11:41 . drwxr-xr-x. 3 apache apache 4096 Nov 29 16:07 .. drwxr-xr-x. 4 apache apache 4096 Feb 7 03:21 page.html -rw-r–r–. 1 apache apache 0 Feb 7 03:19 .stat The dispatcher.log file contains the following lines:
[Wed Feb 13 13:14:04 2012] [D] [1376(1572)] checking [/libs/cq/security/userinfo.json]
[Wed Feb 13 13:14:04 2012] [D] [1376(1572)] Caching disabled due to query string:
tracking_id=1350373444666
[Wed Feb 13 13:14:04 2012] [D] [1376(1572)] cache-action for [/libs/cq/security/userinfo.json]: None
How should the developer make sure that the page is always cached?
- A . "Modify the dispatcher.any file to contain the following lines:
/filter
{
…
/0023 { /type ""allow"" /url ""/content/*/*.html?tracking_id=*"" }
…
}" - B . "Modify the dispatcher.any file to contain the following lines:
/rules
{
…
/0000 { /glob ""*"" /type ""allow"" /params ""tracking_id"" }
…
}" - C . "Modify the dispatcher.any file to contain the following lines:
/ignoreUrlParams
{
…
/0002 { /glob ""tracking_id"" /type ""allow"" }
…
}" - D . "Modify the dispatcher.any file to contain the following lines:
/filter
{
…
/0023 { /type ""allow"" /url ""/content/*/*.html"" /params ""tracking_id"" }
…
}"
A developer identifies that some requests for the page /content/sampleproject/page.html take longer than other requests for the same page.
Refer to the $DOCROOT/content/sampleproject directory below. [user@group /opt/dispatcher/cache/content/sampleproject ]$ ks -la total 2
drwxr-xr-x. 5 apache apache 4096 Feb 11 11:41 . drwxr-xr-x. 3 apache apache 4096 Nov 29 16:07 .. drwxr-xr-x. 4 apache apache 4096 Feb 7 03:21 page.html -rw-r–r–. 1 apache apache 0 Feb 7 03:19 .stat The dispatcher.log file contains the following lines:
[Wed Feb 13 13:14:04 2012] [D] [1376(1572)] checking [/libs/cq/security/userinfo.json]
[Wed Feb 13 13:14:04 2012] [D] [1376(1572)] Caching disabled due to query string:
tracking_id=1350373444666
[Wed Feb 13 13:14:04 2012] [D] [1376(1572)] cache-action for [/libs/cq/security/userinfo.json]: None
How should the developer make sure that the page is always cached?
- A . "Modify the dispatcher.any file to contain the following lines:
/filter
{
…
/0023 { /type ""allow"" /url ""/content/*/*.html?tracking_id=*"" }
…
}" - B . "Modify the dispatcher.any file to contain the following lines:
/rules
{
…
/0000 { /glob ""*"" /type ""allow"" /params ""tracking_id"" }
…
}" - C . "Modify the dispatcher.any file to contain the following lines:
/ignoreUrlParams
{
…
/0002 { /glob ""tracking_id"" /type ""allow"" }
…
}" - D . "Modify the dispatcher.any file to contain the following lines:
/filter
{
…
/0023 { /type ""allow"" /url ""/content/*/*.html"" /params ""tracking_id"" }
…
}"
A developer identifies that some requests for the page /content/sampleproject/page.html take longer than other requests for the same page.
Refer to the $DOCROOT/content/sampleproject directory below. [user@group /opt/dispatcher/cache/content/sampleproject ]$ ks -la total 2
drwxr-xr-x. 5 apache apache 4096 Feb 11 11:41 . drwxr-xr-x. 3 apache apache 4096 Nov 29 16:07 .. drwxr-xr-x. 4 apache apache 4096 Feb 7 03:21 page.html -rw-r–r–. 1 apache apache 0 Feb 7 03:19 .stat The dispatcher.log file contains the following lines:
[Wed Feb 13 13:14:04 2012] [D] [1376(1572)] checking [/libs/cq/security/userinfo.json]
[Wed Feb 13 13:14:04 2012] [D] [1376(1572)] Caching disabled due to query string:
tracking_id=1350373444666
[Wed Feb 13 13:14:04 2012] [D] [1376(1572)] cache-action for [/libs/cq/security/userinfo.json]: None
How should the developer make sure that the page is always cached?
- A . "Modify the dispatcher.any file to contain the following lines:
/filter
{
…
/0023 { /type ""allow"" /url ""/content/*/*.html?tracking_id=*"" }
…
}" - B . "Modify the dispatcher.any file to contain the following lines:
/rules
{
…
/0000 { /glob ""*"" /type ""allow"" /params ""tracking_id"" }
…
}" - C . "Modify the dispatcher.any file to contain the following lines:
/ignoreUrlParams
{
…
/0002 { /glob ""tracking_id"" /type ""allow"" }
…
}" - D . "Modify the dispatcher.any file to contain the following lines:
/filter
{
…
/0023 { /type ""allow"" /url ""/content/*/*.html"" /params ""tracking_id"" }
…
}"
Set user.default to com.adobe.aem.samples-bundle:sample-service=systemUser"
A developer is working with the following HTL expression in a component rendering script:
${‘path/page.infinity.json’ @extension = ‘html’,
removeSelectors = [‘foo’],
selectors = [‘foo’, ‘bar’],
prependSuffix = ‘hello’,
suffix = ‘world’ }
What is the expected output of this expression?
- A . path/page.foo.bar.html/hello/world
- B . path/page.infinity.json.bar.html/world
- C . path/page.bar.html/hello/world
- D . path/page.bar.html/world
A developer needs to implement a functionality that requires creating a Custom Workflow Step.
Which two steps shouldthe developer take to start developing the custom behavior? (Choose two)
- A . Implement a Java class extending from class com.adobe.granite.workflow.exec.WorkflowProcess
- B . Create a Workflow component node of the Super Resource Type "cq/workflow/components/model/process" under the folder /apps/components
- C . Create a Workflow component node of the Super Resource Type "cq/workflow/components/step" under the folder /etc/workflow/models
- D . Implement a Java class with this method "public void process (WorkItem item, WorkflowSession wfsession) throws WorkflowException"
- E . Implement a Java class implementing the interface com.adobe.granite.workflow.exec.WorkflowProcess
How should a developer enable remote debugging of anAEM server without modifying the AEM start script?
- A . Enable the remote debugging service through the AEM Cloud Services menu.
- B . Rename the quickstart jar file to include the additional debug settings.
- C . Enable the remote debugging servicethrough the AEM Web Console.
- D . Include an additional JVM parameter when starting AEM with java -jar.
A developer creates a template-type for building editable templates.
The resulting editable templates and pages must always contain a specific layoutcontainer that can NOT be deleted by the author.
How should the developer meet this requirement?
- A . Add the layout container component to the structure section of the template-type
- B . Add the layout container component by including it on the actual page component
- C . Add a content policy to the template-type to disable the removal of the layout container
- D . Add the layout container component to the initial section of the template-type
An online insurance company website has user-generated content that must be replicated in all publish instances.
What action should the developer take to achieve this?
- A . Configure the dispatcher flush agent in publish instance.
- B . Configure reverse replication agents for the author.
- C . Configure the replication agent inthe publish instances.
- D . Disable static agent in the author instance.
B
Explanation:
https://docs.adobe.com/content/help/en/experience-managerdispatcher/using/configuring/page-invalidate.html
A developer is working on the following Sling Model that is being used in a component.
@Model(adaptables = SlingHttpServletRequest.class, defaultInjectionStrategy = DefaultInjectionStrategy.OPTIONAL)
public class SampleModel {
@Inject
private Page currentPage;
private boolead matchingTitle;
@PostConstruct
private void init(){
matchingTitle = title.equals(currentPage.getName());
}
public boolean isMatchingTitle(){
return matchingTitle;
}
}
The model must check if the configured value of the jct:title property for the component matches the same name of the current page. If the jcr:title property of the component has NOT been configured, then isMatchingTitle() must return false.
How should the developer inject the title property in this model?
- A . "@ValueMapValue
@Via(""jcr:title"")
@Required
private String titile;" - B . "@ValueMapValue
@Named(""jcr:title"") @Default(values = """")
private String titile;" - C . "@ValueMapValue
@Named(""jcr:title"")
@Required
private String titile;" - D . "@ValueMapValue
@Via(""jcr:title"") @Default(values = """")
private String titile;"
Which maven plugin is required to install a content package on a local AEM environment using maven?
- A . Maven Bundle Plugin
- B . Content Package Maven Plugin
- C . FileVault Package Maven Plugin
- D . MavenInstall Plugin
The dependency of an AEM project fails when a developer configures using Apache Maven.
Refer to the error information below.
INFO]—————————————
[ERROR] COMPILATION ERROR :
[INFO] —————————————
[ERROR]
/training/core/src/main/java/com/adobe/training/core/listeners/SimpleResourceListener.java
:[18,28] package org.apache.sling.api doesnot exist
[ERROR]
/training/core/src/main/java/com/adobe/training/core/filters/LoggingFilter.java:[26,28]
package org.apache.sling.api does not exist
[ERROR]
/training/core/src/main/java/com/adobe/training/core/filters/LoggingFilter.java:[27,31]
packageorg.apache.sling.engine does not exist
[ERROR]
/training/core/src/main/java/com/adobe/training/core/models/HelloWorldModel.java:[22,37]
package org.apache.sling.api.resource does not exist
[ERROR]
/training/core/src/main/java/com/adobe/training/core/models/HelloWorldModel.java:[25,33]
package org.apache.sling.api.settings does not exist
[ERROR]
/training/core/src/main/java/com/adobe/training/core/models/HelloWorldModel.java:[31,13]
cannot find symbol
symbol: class SlingSettingsService
location: class com.adobe.training.core.models.HelloWorldModel
What should a developer add to the pom.xml to fixthe Maven build?
- A . "<dependency>
<groupId>com.adode.aem</groupId> <artifactId>aem-api</artifactId> <version>6.4.0</version> <classifier>apis</classifier> <scope<provided</scope> </dependency>" - B . "<dependency>
<groupId>com.adode.aem</groupId> <artifactId>uber-jar</artifactId> <version>6.4.0</version> <classifier>apis</classifier> <scope<provided</scope> </dependency>" - C . "<resources>
<resource>
<directory>src/main/content/jcr_root</directory> <filtering>false</filtering> <excludes>
<exclude>**/.vlt</exclude>
<exclude>**/.vltignore</exclude>
<exclude>libs</exclude>
</excludes>
</resource>
</resources>"
"<repositories> - D . <repository>
<id>adobe-public-releases</id>
<name>Adobe Public Repository</name>
<url>https://repo.adobe.com/nexus/content/groups/public/</url>
<layout>default</layout>
</repository>
</repositories>"
The dependency of an AEM project fails when a developer configures using Apache Maven.
Refer to the error information below.
INFO]—————————————
[ERROR] COMPILATION ERROR :
[INFO] —————————————
[ERROR]
/training/core/src/main/java/com/adobe/training/core/listeners/SimpleResourceListener.java
:[18,28] package org.apache.sling.api doesnot exist
[ERROR]
/training/core/src/main/java/com/adobe/training/core/filters/LoggingFilter.java:[26,28]
package org.apache.sling.api does not exist
[ERROR]
/training/core/src/main/java/com/adobe/training/core/filters/LoggingFilter.java:[27,31]
packageorg.apache.sling.engine does not exist
[ERROR]
/training/core/src/main/java/com/adobe/training/core/models/HelloWorldModel.java:[22,37]
package org.apache.sling.api.resource does not exist
[ERROR]
/training/core/src/main/java/com/adobe/training/core/models/HelloWorldModel.java:[25,33]
package org.apache.sling.api.settings does not exist
[ERROR]
/training/core/src/main/java/com/adobe/training/core/models/HelloWorldModel.java:[31,13]
cannot find symbol
symbol: class SlingSettingsService
location: class com.adobe.training.core.models.HelloWorldModel
What should a developer add to the pom.xml to fixthe Maven build?
- A . "<dependency>
<groupId>com.adode.aem</groupId> <artifactId>aem-api</artifactId> <version>6.4.0</version> <classifier>apis</classifier> <scope<provided</scope> </dependency>" - B . "<dependency>
<groupId>com.adode.aem</groupId> <artifactId>uber-jar</artifactId> <version>6.4.0</version> <classifier>apis</classifier> <scope<provided</scope> </dependency>" - C . "<resources>
<resource>
<directory>src/main/content/jcr_root</directory> <filtering>false</filtering> <excludes>
<exclude>**/.vlt</exclude>
<exclude>**/.vltignore</exclude>
<exclude>libs</exclude>
</excludes>
</resource>
</resources>"
"<repositories> - D . <repository>
<id>adobe-public-releases</id>
<name>Adobe Public Repository</name>
<url>https://repo.adobe.com/nexus/content/groups/public/</url>
<layout>default</layout>
</repository>
</repositories>"
The dependency of an AEM project fails when a developer configures using Apache Maven.
Refer to the error information below.
INFO]—————————————
[ERROR] COMPILATION ERROR :
[INFO] —————————————
[ERROR]
/training/core/src/main/java/com/adobe/training/core/listeners/SimpleResourceListener.java
:[18,28] package org.apache.sling.api doesnot exist
[ERROR]
/training/core/src/main/java/com/adobe/training/core/filters/LoggingFilter.java:[26,28]
package org.apache.sling.api does not exist
[ERROR]
/training/core/src/main/java/com/adobe/training/core/filters/LoggingFilter.java:[27,31]
packageorg.apache.sling.engine does not exist
[ERROR]
/training/core/src/main/java/com/adobe/training/core/models/HelloWorldModel.java:[22,37]
package org.apache.sling.api.resource does not exist
[ERROR]
/training/core/src/main/java/com/adobe/training/core/models/HelloWorldModel.java:[25,33]
package org.apache.sling.api.settings does not exist
[ERROR]
/training/core/src/main/java/com/adobe/training/core/models/HelloWorldModel.java:[31,13]
cannot find symbol
symbol: class SlingSettingsService
location: class com.adobe.training.core.models.HelloWorldModel
What should a developer add to the pom.xml to fixthe Maven build?
- A . "<dependency>
<groupId>com.adode.aem</groupId> <artifactId>aem-api</artifactId> <version>6.4.0</version> <classifier>apis</classifier> <scope<provided</scope> </dependency>" - B . "<dependency>
<groupId>com.adode.aem</groupId> <artifactId>uber-jar</artifactId> <version>6.4.0</version> <classifier>apis</classifier> <scope<provided</scope> </dependency>" - C . "<resources>
<resource>
<directory>src/main/content/jcr_root</directory> <filtering>false</filtering> <excludes>
<exclude>**/.vlt</exclude>
<exclude>**/.vltignore</exclude>
<exclude>libs</exclude>
</excludes>
</resource>
</resources>"
"<repositories> - D . <repository>
<id>adobe-public-releases</id>
<name>Adobe Public Repository</name>
<url>https://repo.adobe.com/nexus/content/groups/public/</url>
<layout>default</layout>
</repository>
</repositories>"
The dependency of an AEM project fails when a developer configures using Apache Maven.
Refer to the error information below.
INFO]—————————————
[ERROR] COMPILATION ERROR :
[INFO] —————————————
[ERROR]
/training/core/src/main/java/com/adobe/training/core/listeners/SimpleResourceListener.java
:[18,28] package org.apache.sling.api doesnot exist
[ERROR]
/training/core/src/main/java/com/adobe/training/core/filters/LoggingFilter.java:[26,28]
package org.apache.sling.api does not exist
[ERROR]
/training/core/src/main/java/com/adobe/training/core/filters/LoggingFilter.java:[27,31]
packageorg.apache.sling.engine does not exist
[ERROR]
/training/core/src/main/java/com/adobe/training/core/models/HelloWorldModel.java:[22,37]
package org.apache.sling.api.resource does not exist
[ERROR]
/training/core/src/main/java/com/adobe/training/core/models/HelloWorldModel.java:[25,33]
package org.apache.sling.api.settings does not exist
[ERROR]
/training/core/src/main/java/com/adobe/training/core/models/HelloWorldModel.java:[31,13]
cannot find symbol
symbol: class SlingSettingsService
location: class com.adobe.training.core.models.HelloWorldModel
What should a developer add to the pom.xml to fixthe Maven build?
- A . "<dependency>
<groupId>com.adode.aem</groupId> <artifactId>aem-api</artifactId> <version>6.4.0</version> <classifier>apis</classifier> <scope<provided</scope> </dependency>" - B . "<dependency>
<groupId>com.adode.aem</groupId> <artifactId>uber-jar</artifactId> <version>6.4.0</version> <classifier>apis</classifier> <scope<provided</scope> </dependency>" - C . "<resources>
<resource>
<directory>src/main/content/jcr_root</directory> <filtering>false</filtering> <excludes>
<exclude>**/.vlt</exclude>
<exclude>**/.vltignore</exclude>
<exclude>libs</exclude>
</excludes>
</resource>
</resources>"
"<repositories> - D . <repository>
<id>adobe-public-releases</id>
<name>Adobe Public Repository</name>
<url>https://repo.adobe.com/nexus/content/groups/public/</url>
<layout>default</layout>
</repository>
</repositories>"
The dependency of an AEM project fails when a developer configures using Apache Maven.
Refer to the error information below.
INFO]—————————————
[ERROR] COMPILATION ERROR :
[INFO] —————————————
[ERROR]
/training/core/src/main/java/com/adobe/training/core/listeners/SimpleResourceListener.java
:[18,28] package org.apache.sling.api doesnot exist
[ERROR]
/training/core/src/main/java/com/adobe/training/core/filters/LoggingFilter.java:[26,28]
package org.apache.sling.api does not exist
[ERROR]
/training/core/src/main/java/com/adobe/training/core/filters/LoggingFilter.java:[27,31]
packageorg.apache.sling.engine does not exist
[ERROR]
/training/core/src/main/java/com/adobe/training/core/models/HelloWorldModel.java:[22,37]
package org.apache.sling.api.resource does not exist
[ERROR]
/training/core/src/main/java/com/adobe/training/core/models/HelloWorldModel.java:[25,33]
package org.apache.sling.api.settings does not exist
[ERROR]
/training/core/src/main/java/com/adobe/training/core/models/HelloWorldModel.java:[31,13]
cannot find symbol
symbol: class SlingSettingsService
location: class com.adobe.training.core.models.HelloWorldModel
What should a developer add to the pom.xml to fixthe Maven build?
- A . "<dependency>
<groupId>com.adode.aem</groupId> <artifactId>aem-api</artifactId> <version>6.4.0</version> <classifier>apis</classifier> <scope<provided</scope> </dependency>" - B . "<dependency>
<groupId>com.adode.aem</groupId> <artifactId>uber-jar</artifactId> <version>6.4.0</version> <classifier>apis</classifier> <scope<provided</scope> </dependency>" - C . "<resources>
<resource>
<directory>src/main/content/jcr_root</directory> <filtering>false</filtering> <excludes>
<exclude>**/.vlt</exclude>
<exclude>**/.vltignore</exclude>
<exclude>libs</exclude>
</excludes>
</resource>
</resources>"
"<repositories> - D . <repository>
<id>adobe-public-releases</id>
<name>Adobe Public Repository</name>
<url>https://repo.adobe.com/nexus/content/groups/public/</url>
<layout>default</layout>
</repository>
</repositories>"
The dependency of an AEM project fails when a developer configures using Apache Maven.
Refer to the error information below.
INFO]—————————————
[ERROR] COMPILATION ERROR :
[INFO] —————————————
[ERROR]
/training/core/src/main/java/com/adobe/training/core/listeners/SimpleResourceListener.java
:[18,28] package org.apache.sling.api doesnot exist
[ERROR]
/training/core/src/main/java/com/adobe/training/core/filters/LoggingFilter.java:[26,28]
package org.apache.sling.api does not exist
[ERROR]
/training/core/src/main/java/com/adobe/training/core/filters/LoggingFilter.java:[27,31]
packageorg.apache.sling.engine does not exist
[ERROR]
/training/core/src/main/java/com/adobe/training/core/models/HelloWorldModel.java:[22,37]
package org.apache.sling.api.resource does not exist
[ERROR]
/training/core/src/main/java/com/adobe/training/core/models/HelloWorldModel.java:[25,33]
package org.apache.sling.api.settings does not exist
[ERROR]
/training/core/src/main/java/com/adobe/training/core/models/HelloWorldModel.java:[31,13]
cannot find symbol
symbol: class SlingSettingsService
location: class com.adobe.training.core.models.HelloWorldModel
What should a developer add to the pom.xml to fixthe Maven build?
- A . "<dependency>
<groupId>com.adode.aem</groupId> <artifactId>aem-api</artifactId> <version>6.4.0</version> <classifier>apis</classifier> <scope<provided</scope> </dependency>" - B . "<dependency>
<groupId>com.adode.aem</groupId> <artifactId>uber-jar</artifactId> <version>6.4.0</version> <classifier>apis</classifier> <scope<provided</scope> </dependency>" - C . "<resources>
<resource>
<directory>src/main/content/jcr_root</directory> <filtering>false</filtering> <excludes>
<exclude>**/.vlt</exclude>
<exclude>**/.vltignore</exclude>
<exclude>libs</exclude>
</excludes>
</resource>
</resources>"
"<repositories> - D . <repository>
<id>adobe-public-releases</id>
<name>Adobe Public Repository</name>
<url>https://repo.adobe.com/nexus/content/groups/public/</url>
<layout>default</layout>
</repository>
</repositories>"
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 . Option A
- B . Option B
- C . Option C
- D . Option D
Refer to the following Client Library node structure.
+clientlibs
– jcr:primaryType="cq:ClientLibraryFolder"
– categories="[clientlibs.example]"
+ js.txt
– jcr:primaryType="nt:file" + css.txt
– jcr:primaryType="nt:file" + js
– jcr:primaryType="nt:folder"
– javascript1.js
– javascript2.js
The js.txt looks like
javascript1.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?
- A . Change the js folder to a Client Library node and add the property categories = "[clientlibs.example]"
- B . Change the js folder to a Client Library node and embed it on the clientlibs node
- C . Add #base=js as the first line in the js.txt file
- D . Split the js and css into 2 Client Libraries since they can’t be in the same Client Library
A custom bundle of an application is in state "Installed" after deploying it with Maven.
What should a developer do to change it to state "Active"?
- A . Use the "Start" action for the bundle in the Apache Felix Web Console
- B . Ensure all OSGi requirements are met and re-deploy using Maven
- C . Use the "Update" action for the bundle in the Apache Felix Web Console
- D . Reinstall the content package using the package manager
A developer creates Editable Templates based on a custom Page component. The developer wants to leverage the Style System within the Editable Templates to allow authors to switch between the Dark and Light Theme. The Style System dialog is NOT enabled for the site.
What should the developer do to resolve this issue?
- A . Define Style Definitions using PagePolicy dialog on Editable Template.
- B . Create two new client libraries with a dark and light theme and map them to the Page component.
- C . Set the sling:resourceSuperType property to core/wcm/components/page/v2/page on the Page component.
- D . Create a new dialog for the custom Page components.
From which AEM Web Console should a developer access and download full AEM Log Files?
- A . WebConsole -> System Information
- B . Status -> Log files
- C . OSGI -> Sing Log Service
- D . AEM -> Log files