Labour Day Special - Limited Time 65% Discount Offer - Ends in 0d 00h 00m 00s - Coupon code: top65certs

Adobe AD0-E116 Dumps

Page: 1 / 4
Total 94 questions

Adobe Experience Manager Developer Expert Questions and Answers

Question 1

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 theservlet access controlled using the default ACLs?

Options:

A.

Add @SlingServletPrefix (value = "/apps") annotation

B.

Use @SlingServletResourceTypes instead of @SlingServletPaths

C.

Modify @SlingServletPaths(value = {"/bin/sling/sample"})

D.

Add @SlingServletName(servletName ="AccessControlServlet") annotation

Question 2

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?

Options:

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;"

Question 3

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?

Options:

A.

Add the entry /0001 { /glob "*.html" /type "allow" } in the /invalidate section

B.

Change the value of the entry /statfileslevel to "3"

C.

Delete the contents of the DOCROOT directory

D.

Remove /statfile or/statfileslevel

Question 4

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?

Options:

A.

com.adobe.granite.workflow.exec.ParticipantStepChooser

B.

com.day.cq.workflow.exec.ParticipantChooser

C.

com.day.cq.workflow.exec.WorkItem

D.

com.adobe.granite.workflow.exec.WorkflowData

Question 5

For each CRX node in the hierarchy, which actions can be configured using the user admin interface?

Options:

A.

Read, Modify, Create, Delete, Read ACL, Edit ACL, Replicate

B.

Read, Write, Read ACL, Edit ACL, Replicate

C.

Read, Write, Delete, Edit ACL, Replicate

D.

Read, Modify, Create, Delete, Read ACL, Edit ACL

Question 6

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?

Options:

A.

AEM instances automatically modify the number of transient nodes based on the load balancing.

B.

Modify the export package manifest header and copy the content package to AEM installation folder.

C.

Select the option MergePreserve for the Access Control Handling drop-down in the Install Package dialog-box.

D.

Change the value of Save Threshold in theInstall Package dialog-box.

Question 7

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)

Options:

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

Question 8

From which AEM Web Console should a developer access and download full AEM Log Files?

Options:

A.

WebConsole -> System Information

B.

Status -> Log files

C.

OSGI -> Sing Log Service

D.

AEM -> Log files

Question 9

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 assetaccordingly. 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 thatcan read and update the DAM assets?

Options:

A.

Set up a cron job with curl calls with the admin user and use request.getResourse().getResourceResolver().

B.

Create a configuration line in PID com.day.cq.security.ACLSetup for the user that you obtain a session forvia ResourceResolverFactory.getResourceResolver(...).

C.

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.

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(...).

Question 10

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?

Options:

A.

Goto Tools > Operations > Diagnosis > Log Messages. Configure DEBUG log level on com.day.cq.search tomonitor search queries.

B.

Goto Tools > Operations > Diagnosis > Query Performance > Slow Queries. Select a Query and Click on Explain

C.

Goto Tools > Operations > Diagnosis > Index Manager. Select the new Indexes and run a consistency check.

D.

Goto Tools > Operations > Diagnosis > Download Thread Dumps. Analyze the Thread Dumps to identify long running requests.

Question 11

In which two ways can a developer keep simple and maintanable CRX Access Control Lists? (Choose two)

Options:

A.

Use Deny statements extensively

B.

Delete the `everyone` group

C.

Use Deny statements sparingly

D.

Assign access rights to user groups rather than users

E.

Assign access rights user by user

Question 12

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 13

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?

Options:

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.

Question 14

A service component periodically retrieves content from an external REST interface and saves the information in JCR. The REST endpoint is configured via an OSGi service property. There is one URL for production (runmode prod) and another URL for all other environments.

How should a developer configure the OSGi service?

Options:

A.

Underneath /apps//settings, create the sub folders global and prod and node with name .conf each and configure the properties via node properties.

B.

Underneath /config//settings, create the sub folders config.default and config.prod and a file with the name .config each and list the properties as key value pairs in there.

C.

Underneath /apps/, create the sub folders config and config.prod and a file with the name .config each and list the properties as key value pairs in there.

D.

Underneath /config//settings, create the sub folders config and config.prod and a file with the name .config each and list the properties as key value pairs in there.

Page: 1 / 4
Total 94 questions