Verified AD0-E116 Exam Dumps Q&As - Provide AD0-E116 with Correct Answers [Q50-Q75]

Share

Verified AD0-E116 Exam Dumps Q&As - Provide AD0-E116 with Correct Answers

Pass Your AD0-E116 Dumps Free Latest Adobe Practice Tests

NEW QUESTION 50
Which log file contains AEM application request and response entries?

  • A. history.log
  • B. response.log
  • C. audit.log
  • D. request.log

Answer: D

 

NEW QUESTION 51
How should a developer configure the replication agent to flush the dispatcher cache for a newly activated page?

  • A. Create a reverse replication agent on the author instance
  • B. Create a dispatcher flush agent in publish instance
  • C. Create a new replication agent and set transport URI to point to the dispatcher
  • D. Set the serialization type property of the default agent to dispatcher flush

Answer: B

 

NEW QUESTION 52
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?

  • A. Change the code of /libs/granite/ui/components/shell/clientlibs/shell/js/globalnav.js to display the new value
  • B. Modify the node /libs/cq/core/content/nav/sites by updating the jcr:title property
  • C. Create a new node /apps/cq/core/content/nav/sites and update the property jcr:itle
  • D. Modify the code of /libs/granite/ui/components/shell/globalnav/overlay/overlay.jsp to display the new value

Answer: C

 

NEW QUESTION 53
A developer wants to extend AEM Core Components to create a custom Carousel Component.
How should the developer extend the Core Components?

  • A. Make changes to the original component and assign a component group.
  • B. Use the sling:resourceSuperType property to point to the core component.
  • C. Copy the Core Carousel component to /apps/<project> folder.
  • D. Use the sling:resourceType property to point to the core component.

Answer: B

 

NEW QUESTION 54
A developer needs to create a banner component. This component shows an image across the full width of the page. A title is shown on top of the image. This text can be aligned to the left, middle, or right. The core components feature a teaser component which matches almost all requirements, but not all.
What is the most maintainable way for the developer to implement these requirements?

  • A. Inherit from the teaser core component.
  • B. Use and configure the teaser core component.
  • C. Create a new custom component from scratch.
  • D. Overlay the teaser core component.

Answer: A

Explanation:
Reference:
https://docs.adobe.com/content/help/en/experience-manager-core-components/using/components/teaser.html

 

NEW QUESTION 55
A developer needs to analyze log messages for custom Java application. 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?

  • A. OSGi -> Log Service and click logs/custom.log
  • B. Sling-> Log Support and click logs/custom.log
  • C. Sling -> Metrics and click logs/custom.log
  • D. AEM -> Log Support and click logs/custom.log

Answer: B

 

NEW QUESTION 56
What is not available in globel.jsp?

  • A. currentResource
  • B. currentNode
  • C. currentDesign
  • D. currentPage

Answer: A

 

NEW QUESTION 57
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 nodetype field have the value 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 condition field and have the value jcr:content/jcr:primaryType==cq:Page

Answer: A

 

NEW QUESTION 58
A custom AEM application contains a service component that needs to access the JCR repository within the activate method. The activate method uses ResourceResolverFactory.getServiceResourceResolver(...) without specifying a sub service name.
What should a developer do to make sure the user service mapping for the service component is available?

  • A. Wait for the service ServiceUserMapper via BundleContext.getServiceReference(...)
  • B. Create a field of type ServiceUserMapper and annotate it with @Reference using ReferencePolicy.STATIC
  • C. Create a field of type ServiceUserMapped and annotate it with @Reference
  • D. Create a field of type ServiceUserMapped and annotate it with @Reference using ReferencePolicy.DYNAMIC

Answer: A

 

NEW QUESTION 59
A developer creates an AEM editable template that includes a Layout Container. When the developer creates a page using this template, the Layout Container placeholder does NOT appear.
What is causing this issue?

  • A. The Layout Container has NOT been unlocked.
  • B. The page template has NOT been published.
  • C. The Layout Container does NOT have a policy.
  • D. The page template has NOT been enabled.

Answer: A

 

NEW QUESTION 60
A developer has a component foobar that consists of the files listed below:
script-a.js

script-b.js

foobar.html

What is the output when this component is rendered?

  • A. Option A
  • B. Option B
  • C. Option D
  • D. Option C

Answer: A

 

NEW QUESTION 61
A developer needs to implement a header component for a website. The component has the following requirements:
- The component should be configured once on the page highest in the hierarchy.
- The header component on pages lower in the hierarchy should look the same and show the same data.
- If necessary, the configuration can be overwritten on a child page.
- The component should show a list of links that are configured in the header component.
Which code snippet for returning the list of pages should the developer use?

  • A. "public String[] getHeaderLinks(Resource componentResource) {
    final ComponentInheritanceValueMap properties = componentResource.adaptTo(ComponentInheritanceValueMap.class); return properties.getInherited(HEADER_PAGE_LIST, String[].class);
    }"
  • B. "public String[] getHeaderLinks(Resource componentResource) {
    final HierarchyNodeInheritanceVauleMap properties = componentResource.adaptTo(HierarchyNodeInheritanceVauleMap.class); return properties.getInherited(HEADER_PAGE_LIST, String[].class);
    }"
  • C. "public String[] getHeaderLinks(Resource componentResource) {
    final HierarchyNodeInheritanceValueMap properties = new HierarchyNodeInheritanceValueMap (componentResource); return properties.getInherited(HEADER_PAGE_LIST, String[].class);
    }"
  • D. "public String[] getHeaderLinks(Page page) {
    final Resource pageContent = page.getContentResource();
    final ComponentInheritanceValueMap properties = ComponentInheritanceValueMap(pageContent); return properties.get(HEADER_PAGE_LIST, String[].class);
    }"

Answer: C

 

NEW QUESTION 62
A developer creates the following code snippet to implement a simple polling importer to fetch stock prices from an external source:

The polling importer needs to fetch stock prices for a specific stock symbol and needs to be triggered every 5 minutes.
Which node structure should the developer create in CRX to make sure that the code shown is executed successfully?

  • A. Option C
  • B. Option B
  • C. Option D
  • D. Option A

Answer: A

Explanation:

 

NEW QUESTION 63
A developer creates a custom component. The component dialog includes the following two fields:

he component should display the first 'X' characters of the text entered in the 'text' input where 'X' is the number entered in the 'charLimit' input. If zero, or no value, is entered in the 'charLimit' input then the text should be unaltered. The developer creates the following Sling Model to perform the trancation:

A Null Pointer Exception occurs if NO charLimit values is set in the component dialog.
What should the developer do to resolve this issue?

  • A. Replace the defaultValue="0" attribute of the charLimit field in the dialog with defaultValue="{Long}0".
  • B. Add the @Default annotation to the 'chatLimit' variable in the Sling Model.
  • C. Replace the defaultValue="0" attribute of the 'charLimit' field in the dialog with min="0".
  • D. Change the defaultInjectionStrategy of the Truncation Sling Model to DefaultInjectionStrategy.REQUIRED.

Answer: B

 

NEW QUESTION 64
A developer must create a workflow step that assigns a 'WorkItem' to the appropriate person based on who has the least amount work to do.
The group that must perform the action is configured into the workflow.
Which non-deprecated interface should the Java implementation class use to perform the assignment?

  • A. com.day.cq.workflow.exec.WorkItem
  • B. com.day.cq.workflow.exec.ParticipantChooser
  • C. com.adobe.granite.workflow.exec.ParticipantStepChooser
  • D. com.adobe.granite.workflow.exec.WorkflowData

Answer: C

 

NEW QUESTION 65
A developer is installing a content package with the package manager. The developer needs to restrict the approximate number of nodes in a batch that is saved to persistent storage in one transaction.
How should the developer modify the number of transient nodes to be triggered until automatic saving?

  • A. Change the value of Save Threshold in the Install Package dialog-box.
  • B. Select the option MergePreserve for the Access Control Handling drop-down in the Install Package dialog-box.
  • C. Modify the export package manifest header and copy the content package to AEM installation folder.
  • D. AEM instances automatically modify the number of transient nodes based on the load balancing.

Answer: A

Explanation:
Reference:
https://helpx.adobe.com/ro/experience-manager/kt/sites/using/gettingstarted- wknd-tutorial-develop/part1.html

 

NEW QUESTION 66
A developer creates an OSGi service to access JCR content. Refer to the code snippet from the OSGi service below.
public class AccessRepository {
private static final String SERVICE_ACCOUNT_IDENTIFIER = "sample-service";
...
private final String getServiceUser() {
final Map<string, object=""> authInfo = Collections.singletonMap(ResourceResolverFactory.SUBSERVICE, (Object) SERVICE_ACCOUNT_IDENTIFIER); ResourceResolver serviceResolver = resourceResolverFactory.getServiceResourceResolver(authInfo))
...
}
}
Bundle ID = com.adobe.aem.samples-bundle
Which set of steps should the developer take to make sure that the code works?

  • A. "1. Create a System User called systemUser with appropriate ACLs
    2. Modify the Apache Sling Service User Mapper Service
    3. Set user.default to com.adobe.aem.samples-bundle:sample-service=systemUser"
  • B. "1. Create an AEM User called systemUser with appropriate ACLs
    2. Modify the Apache Sling Service User Mapper Service
    3. Set user.default to com.adobe.aem.samples-bundle:sample-service=systemUser"
  • C. "1. Create an AEM User called systemUser with appropriate ACLs
    2. Modify the Apache Sling Service User Mapper Service Amendment
    3. Set user.default to com.adobe.aem.samples-bundle:sample-service=systemUser"
  • D. "1. Create a System User called systemUser with appropriate ACLs
    2. Modify the Apache Sling Service User Mapper Service Amendment
    3. Set user.default to com.adobe.aem.samples-bundle:sample-service=systemUser"

Answer: A

 

NEW QUESTION 67
One content package of a custom application contains the following content paths.

The server also contains the content path /apps/myproj/configuration that must NOT be touched when installing the package.
Which two filter definitions should a developer use to always update only the contained paths upon installation in the server? (Choose two.)

  • A. Option C
  • B. Option B
  • C. Option E
  • D. Option A
  • E. Option D

Answer: A,E

 

NEW QUESTION 68
A developer has a component 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 developer resolve this issue, while taking security into consideration?

  • A. Add the property allowProxy with a boolean value true.
  • B. Change the ACLs for the Client Library.
  • C. Allow the path to the clientlibs on the dispatcher.
  • D. Move the Client Library under /apps/<project>library.

Answer: A

 

NEW QUESTION 69
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"" /params ""tracking_id"" }
    ...
    }"
  • B. "Modify the dispatcher.any file to contain the following lines:
    /ignoreUrlParams
    {
    ...
    /0002 { /glob ""tracking_id"" /type ""allow"" }
    ...
    }"
  • C. "Modify the dispatcher.any file to contain the following lines:
    /rules
    {
    ...
    /0000 { /glob ""*"" /type ""allow"" /params ""tracking_id"" }
    ...
    }"
  • D. "Modify the dispatcher.any file to contain the following lines:
    /filter
    {
    ...
    /0023 { /type ""allow"" /url ""/content/*/*.html?tracking_id=*"" }
    ...
    }"

Answer: B

 

NEW QUESTION 70
Which two methods could a developer use to obtain a Session without using a deprecated API? (Choose two.)

  • A. Option B
  • B. Option C
  • C. Option E
  • D. Option A
  • E. Option D

Answer: A,E

 

NEW QUESTION 71
An application runs specific license checks against certain DAM assets every day. It should send an email to a configured list if it finds warnings, and mark the asset accordingly. A service component that uses the Apache Sling Scheduler Service is created. DAM assets that must NOT be used anymore are hidden using ACLs and the license check must re-check them.
How should a developer obtain a resource resolver that can read and update the DAM assets?

  • A. Create a configuration line in PID com.day.cq.security.ACLSetup for the user that you obtain a session for via ResourceResolverFactory.getResourceResolver(...).
  • B. Configure the user admin in PID org.apache.sling.serviceusermapping.impl.ServiceUserMapperImpl as user.default and make sure the service user exists and has jcr:read and jcr:write permissions.
  • C. Set up a cron job with curl calls with the admin user and use request.getResourse().getResourceResolver().
  • D. Create a configuration for PID org.apache.sling.serviceusermapping.impl.ServiceUserMapperImpl.amended-damaccess that references a pre-created service user with r/w permissions and use ResourceResolverFactory.getServiceResourceResolver(...).

Answer: B

 

NEW QUESTION 72
There is a config file package.myClass.config.factory-myApp.xml - what is true? (Choose two)

  • A. The word "config" is a sign of factory
  • B. The word "factory" is a sign of factory
  • C. Should be set package.myClass.config.factory-<identifer>
  • D. Must be set package.myClass.config.factory-<identifer>

Answer: C

 

NEW QUESTION 73
A developer needs to install a content package on an AEM environment. However a content package with the same name is already installed.
What would be the safest way for the developer to install the content package to make sure only the changes of the new content package get applied?

  • A. Use the "Force Upload" option when uploading the new content package
  • B. Uninstall the existing content package before installing the new content package
  • C. Upload the content package to the CRX Package Share before installing it
  • D. Install the content package using the OSGi web console

Answer: B

 

NEW QUESTION 74
In which maven build phase is the content package assembled?

  • A. package
  • B. compile
  • C. deploy
  • D. install

Answer: A

 

NEW QUESTION 75
......

Get Top-Rated Adobe AD0-E116 Exam Dumps Now: https://prepaway.testkingpass.com/AD0-E116-testking-dumps.html