Black Friday Special Limited Time 70% Discount Offer - Ends in 0d 00h 00m 00s - Coupon code: 70percent

Adobe AD0-E116 Adobe Experience Manager Developer Expert Exam Practice Test

Demo: 14 questions
Total 94 questions

Adobe Experience Manager Developer Expert Questions and Answers

Question 1

The developer is presented with acomponent "Component A" which inherits from a component "Component B".

The dialog of Component A on path ../cq:dialog/../../items looks like:

+ align

- jcr:primaryType="nt:unstructured"

- sling:resourceType="granite/ui/components/coral/foundation/form/select"

- fieldLabel="Align Text"

- name="./align"

The dialog of Component B on path ../cq:dialog/../../items looks like:

+ title

- jcr:primaryType="nt:unstructured"

- sling:resourceType="granite/ui/components/coral/foundation/form/textarea"

- fieldLabel="Title"

- name="./title"

+ description

- jcr:primaryType="nt:unstructured"

- sling:resourceType="granite/ui/components/coral/foundation/form/textarea"

- fieldLabel="Description"

- name="./description"

Therequirement for the dialog is that the *Align Text* field is shown after the *Title* field.

What should the developer do without changing Component B?

Options:

A.

Move the align node from Component A to Component B and order them according the requirements.

B.

Move allthe nodes under the item node from Component B to Component A and order them according the requirements.

C.

Extend Component B with the functionality of Component A

D.

Add the property sling:orderBefore="description" to the align node.

Question 2

A developer running a local AEM instance and working on an AEM project needs to change a largenumber of files locally in filesystem. The developer needs to get the changes uploaded to the local AEM instance to verify changes almost immediately in the browser.

What action should the developer take to most efficiently meet these requirements?

Options:

A.

Build a Content Package using maven and deploy it after each change

B.

Access CRXDE and upload the files through the interface

C.

Make the changes in CRXDE, create a content package, download it and expand it into the working directory after each change

D.

Install FileVault bundle in the AEM instance and register the local working directory for synchronization

Question 3

A developer needs to create an OSGi service to run on an Author instance and send out newsletters at periodic intervals. Intervals should be customized using the Web Console Configuration. Concurrent execution must beprevented.

Which code snippet should a developer use to achieve?

Options:

A.

Option A

B.

Option B

C.

Option C

D.

Option D

Question 4

How should a developer enable remote debugging of anAEM server without modifying the AEM start script?

Options:

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.

Question 5

A custom AEM application contains a service component that needs to access the JCR repository within the activate method. The activate method usesResourceResolverFactory.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?

Options:

A.

Create a field of type ServiceUserMapper and annotateit 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 using ReferencePolicy.DYNAMIC

D.

Create a field of type ServiceUserMapped and annotate it with @Reference

Question 6

After adding new features, a developer’senvironment 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?

Options:

A.

Run the following command to generate thread dumps jstack -l >> 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 /crx-qiuckstart/logs/strderr/log, use the following command grep -o ‘CRXSessionImpl’ strderr.log| wc -l.

Question 7

Two AEM publish instances feed a single Dispatcher.

Which part of the Dispatcher configuration should a developer review to ensure both AEM publishinstances are used?

Options:

A.

virtualhosts

B.

farms

C.

filter

D.

cache

Question 8

A developer installs the latest Service pack to a local AEM author instance.

How should the developer install this package on the publish instance?

Options:

A.

Replicate from package manager of publish instance

B.

Use upload/install from OSGi console of publish instance

C.

Replicate from package manager of author instance

D.

Use upload/install from OSGi console of author instance

Question 9

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 shouldbe 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?

Options:

A.

Replace thedefaultValue=”0” attribute of the ‘charLimit’ field in the dialog with min=”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 defaultValue=”{Long}0”.

D.

Change the defaultInjectionStrategy of the Truncation Sling Model to DefaultInjectionStrategy.REQUIRED.

Question 10

There are performance, stability, and security issues with an installed AEM instance.

What should a developer do to fix these issues?

Options:

A.

Delete and reinstall the AEM instance.

B.

Install Adobe-provided Apacheconfiguration file.

C.

Stop, clear cache files, and restart the AEM instance.

D.

Install service pack updates from package share.

Question 11

A developer wants to change the log level for a custom API.

Which OSGi configuration should the developer modify?

Options:

A.

Apache Sling Logging Configuration

B.

Apache Sling Log Tracker Service

C.

ApacheSling Logging Writer Configuration

D.

Adobe Granite Log Analysis Service

Question 12

A developer creates two custom classes. ClassA has the following code:

package com.aem.abc;

import org.slf4j.Logger;

import org.slf4j.LoggerFactory;

public class ClassA {

private static final Logger logger = LoggerFactory.getLogger(this.getClass());

public void classAMethod() {

logger.debug("Message from Class A method");

}

}

The developer createsa custom log custom.log with debug level in OSGi sling log support for the Java package com.aem.abc. The developer adds another class ClassB with the following code:

package com.aem.xyz;

import org.slf4j.Logger;

importorg.slf4j.LoggerFactory;

public class ClassB {

private static final Logger logger = LoggerFactory.getLogger(this.getClass());

public void classBMethod() {

logger.debug("Message from Class B method");

}

}

Which action mustthe developer take to see the log messages in the same file from both classes?

Options:

A.

Configure custom.log in OSGi web console -> Sling -> Log Support and replace com.aem.xyz with com.aem.abc

B.

Configure custom.log in OSGi web console -> Sling -> Log Supportand replace com.aem.abc with com.aem.xyz

C.

Create separate a log file in the OSGi web console -> Sling -> Log Support for logger com.aem.xyz

D.

Configure custom.log in OSGi web console -> Sling -> Log Support and replace com.aem.abc with com.aem

Question 13

A developer is creating a custom component on the page /latestBlogs.html that needs to list all the titles of the blogs pages under /content/blogs.

How does this component get the list of child pages?

Options:

A.

Instantiate a node object with session.getNode(/content/blogs) and then iterate through the child nodes and print the title for each.

B.

Use the QueryDebugger to look for all children of /content/blogs and then iterate through the result set and print the title for each.

C.

Adapt the resourceResolver to the PageManger service, then use the getPage(/content/blogs) to instantiate a Page object andthen iterate through the child pages and print the title for each.

D.

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.

Question 14

A custom AEMapplication 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?

Options:

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)

Demo: 14 questions
Total 94 questions