100% Guaranteed Results AD0-E116 Unlimited 95 Questions [2021]
AD0-E116 Dumps PDF - Want To Pass AD0-E116 Fast
Adobe AD0-E116 Exam Syllabus Topics:
| Topic | Details |
|---|---|
| Topic 1 |
|
| Topic 2 |
|
| Topic 3 |
|
| Topic 4 |
|
| Topic 5 |
|
| Topic 6 |
|
| Topic 7 |
|
| Topic 8 |
|
NEW QUESTION 18
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. Create a field of type ServiceUserMapper and annotate it with @Reference using ReferencePolicy.STATIC
- B. Wait for the service ServiceUserMapper via BundleContext.getServiceReference(...)
- 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: B
NEW QUESTION 19
The following stack trace is written in the error.log file after installing a custom application package.
Could not start bundle com.adobe.cq.sample-bundle [526]. Reason: {}. Will retry.
org.osgi.framework.BundleException: Unable to resolve com.adobe.cq.sample-bundle [526](R 526.0): missing requirement [com.adobe.cq.sample-bundle] osgi.wiring.package What are two different ways that the developer could resolve the OSGi bundle dependency error? (Choose two)
- A. Go to the project parent pom.xml file and add the dependency with the scope "compile" and instruct the bundle plugin to include the dependency in runtime
- B. Create a folder named "deploy" under $AEM_HOME/crx-quickstart/ and copy com.example.customlib-3.8.jar in there so AEM uploads it automatically
- C. Install the jar in AEM via the curl command 'curl -u username:password -F file=@"./com.example.customlib-3.8.jar" -F name="Dependency" -F force=true -F install=true http://localhost:4502/crx/packmgr/service.jsp --progress-bar -o upload.txt'
- D. Upload the file com.example.customlib-3.8.jar into /apps/<project>/libs folder in CRX DE to make it available for the OSGi bundle
- E. Go to the Dependency Finder in the System Console to find if another bundle is exporting a similar version of the classes and change the project pom.xml to match the same version
Answer: A,E
NEW QUESTION 20
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 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" - B. "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" - C. "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" - 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: B
NEW QUESTION 21
A 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?
- A. Configure the maven install plugin by defining the target URL, username and password as maven properties.
- B. Run maven with the deploy phase. Maven will install the package on all local AEM instances running without further configuration
- C. Add a maven profile and configure the content package maven plugin within this profile
- D. Write a script that does a PUT call to AEM each time maven builds a new package
Answer: C
NEW QUESTION 22
A developer determines that the dispatcher is NOT refreshing the cached page /content/sampleproject/sample.html after it is updated.
The dispatcher.any contains the following entries:
/cache
{
/docroot "/opt/dispatcher/cache"
/statfile "/tmp/dispatcher-website.stat"
/statfileslevel "2"
/rules
{
/0000 { /glob "*" /type "allow" }
}
/invalidate
{
/0000 { /glob "*" /type "deny" }
}
}
Refer to the $DOCROOT directory below:
[user@group /opt/dispatcher/cache]$ ls -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 ..
drw-r--r--. 4 root root 4096 Feb 7 03:21 content
-rw-r--r--. 1 apache apache 0 Feb 7 03:19 .stat
The dispatcher needs to cache the page and refresh it after it gets updated.
What action should the developer take to meet these requirements?
- A. Remove /statfile or /statfileslevel
- B. Delete the contents of the DOCROOT directory
- C. Add the entry /0001 { /glob "*.html" /type "allow" } in the /invalidate section
- D. Change the value of the entry /statfileslevel to "3"
Answer: C
NEW QUESTION 23
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?
- A. Goto Tools > Operations > Diagnosis > Index Manager. Select the new Indexes and run a consistency check.
- B. Goto Tools > Operations > Diagnosis > Query Performance > Slow Queries. Select a Query and Click on Explain
- C. Goto Tools > Operations > Diagnosis > Log Messages. Configure DEBUG log level on com.day.cq.search to monitor search queries.
- D. Goto Tools > Operations > Diagnosis > Download Thread Dumps. Analyze the Thread Dumps to identify long running requests.
Answer: B
NEW QUESTION 24
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 is moved to the initial section of the editable template.
- B. The content is deleted after confirmation from the template author.
- C. The content stays in the same place but it ignored on pages using the template.
- D. The content is copied to the initial section of the editable template.
Answer: A
NEW QUESTION 25
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 does not 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] package org.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 fix the 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. <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>" - C. "<dependency>
<groupId>com.adode.aem</groupId>
<artifactId>uber-jar</artifactId>
<version>6.4.0</version>
<classifier>apis</classifier>
<scope<provided</scope>
</dependency>" - D. "<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>
Answer: C
NEW QUESTION 26
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 A
- B. Option B
- C. Option C
- D. Option D
Answer: C
Explanation:
NEW QUESTION 27
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)
Answer: C
NEW QUESTION 28
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.adobe.granite.workflow.exec.ParticipantStepChooser
- C. com.day.cq.workflow.exec.ParticipantChooser
- D. com.adobe.granite.workflow.exec.WorkflowData
Answer: B
NEW QUESTION 29
A banking AEM application contains functionality to calculate a mortgage rate based on user input. A servlet in place calculates the result in the backend. A call to an internal third-party REST service is required to retrieve the average object value based on a given zip code.
The following three service interfaces are used:
MortgageCalculationServlet, MortgageCalculationService and ObjectValueLookupRestService where MortgageCalculationServlet has a dependency to MortgageCalculationService and MortgageCalculationService has a dependency to ObjectValueLookupRestService.
The calculation has many combinations of input parameters and edge cases, so the JUnit coverage must be as high as possible.
Which two strategies should the developer use to ensure testability of the application code? (Choose two)
- A. Use static methods to avoid boilerplate in application code
- B. Use the standard OSGi @Reference annotation to wire the dependencies in application code
- C. Use BundleContext.getServiceReference(...) and BundleContext.getService(...) in application code to look up for the required services just before usage
- D. Deploy a third party dependency injection container to wire dependencies more efficiently in application code
- E. Use a mock framework to be able to create and inject mocks in the test code
Answer: B,E
NEW QUESTION 30
A developer creates a Sling Servlet. The Sling Servlet is bound to a path (/service/sling/sample). Refer to the resulting code below.
@Component (immediate=true, service = {Servlet.class})
@SlingServletPaths(value = {"/service/sling/sample"})
What should the developer do to make the servlet access controlled using the default ACLs?
- A. Add @SlingServletPrefix (value = "/apps") annotation
- B. Add @SlingServletName(servletName = "AccessControlServlet") annotation
- C. Use @SlingServletResourceTypes instead of @SlingServletPaths
- D. Modify @SlingServletPaths(value = {"/bin/sling/sample"})
Answer: C
NEW QUESTION 31
A developer needs to upgrade existing components (Proxy Components) based on Core Components Version 1(v1) to Core Components Version 2(v2).
How should the developer upgrade to V2 Core Components?
- A. Modify the sling:resourceSuperType property on the V1 core components to point to V2 Component
- B. Proxy Components will be automatically upgraded to the V2 Core Component on AEM Restart
- C. Create a new Proxy Component and set sling:resourceType property to V2 Core Component
- D. Modify the sling:resourceSuperType property on the proxy component to point to V2 Component
Answer: D
NEW QUESTION 32
A developer is creating a custom component that shows a list of pages. For each page, the following items must be shown:
* Title of the page
* Description of the page
* A button with fixed text "Read more" that must be translatable
All of the above fields must be wrapped in a <div> tag.
The logic for obtaining the list of pages must be reusable for future components.
Which snippet should the developer use to meet these requirements?

- A. Option A
- B. Option B
- C. Option C
- D. Option D
Answer: C
Explanation:
Reference:
https://docs.adobe.com/content/help/en/experience-manager-htl/using/htl/block-statements.html
NEW QUESTION 33
An application contains an OSGi configuration that contains a password.
How should a developer prevent this sensitive information from being stored in plain text in JCR?
- A. 1. Use console at /system/console/crypto to encrypt the value
2. Either create an encrypted value for each AEM instance and use runmodes to apply the different values or make sure relevant instances share the same master key
3. When loading the value in the code, call CryptoSupport.unprotect(_) before using the value - B. 1. Use console at /system/console/configMgr and tick the checkbox "encrypt" before saving a configuration
2. Either create an encrypted value for each AEM instance and use runmodes to apply the different values or make sure relevant instances share the same master key
3. Sensitive information is automatically decrypted using the CryptoSupport OSGi service before the value is returned - C. 1. Use console at /system/console/configMgr and tick the checkbox "encrypt" before saving a configuration
2. Use encrypted values work across all instances
3. When loading the value in the code, call CryptoSupport.unprotect(...) before using the value - D. 1. Use console at /system/console/crypto to encrypt the value
2. Either create an encrypted value for each AEM instance and use runmodes to apply the different values or make sure relevant instances share the same master key
3. Sensitive information is automatically decrypted using the CryptoSupport OSGi service before the value is returned
Answer: A
NEW QUESTION 34
......
Updated Verified AD0-E116 Q&As - Pass Guarantee: https://www.prep4pass.com/AD0-E116_exam-braindumps.html
AD0-E116 Practice Exam Dumps - 99% Marks In Adobe Exam: https://drive.google.com/open?id=1OddM6clG8hhQL3mWxxsDYFvRRt9EfIGp
