Weekend Sale Limited Time Flat 70% Discount offer - Ends in 0d 00h 00m 00s - Coupon code: 70spcl

Adobe AD0-E137 Adobe Experience Manager Sites Developer Expert Exam Practice Test

Page: 1 / 5
Total 50 questions

Adobe Experience Manager Sites Developer Expert Questions and Answers

Question 1

A customer created a workflow launcher to trigger the "Custom Workflow" based on "Node Created" under the folder /var/classes, but the workflow is not triggered.

What is the reason the workflow is not triggered?

Options:

A.

"Workflow Process Legacy Mode" is disabled at the "Adobe Granite Workflow Configuration Service" OSGi configuration.

B.

AEM does not allow new nodes to be created under /var/classes.

C.

Changes under /var/classes do not trigger workflows.

Question 2

Which tool is commonly used to manage front-end dependencies and automate tasks like bundling, minification, and transpilation in an AEM project?

Options:

A.

Webpack

B.

Apache Sling

C.

Maven

D.

AEM Sites Console

Question 3

A client wants to ensure that only specific components are available to content authors when using an editable template in AEM. Additionally, they require that certain fields within a content fragment model adhere to strict validation rules for data integrity.

Which two steps would the developer take to meet both requirements? (Choose two.)

Options:

A.

Use editable templates to directly configure field validation rules.

B.

Configure field validation within the content fragment model.

C.

Create and assign a new workflow to enforce component usage.

D.

Enable dynamic templates for flexible content creation.

E.

Define policies in the editable template to control allowed components.

Question 4

A developer is using the Oak query engine.

Which query language is recommended?

Options:

A.

JCR-SQL

B.

SQL

C.

XPath

Question 5

A developer is creating a new component to be included in an SPA. They created a Sling Model and React component but are experiencing issues getting them to work together.

Which change is needed to make sure these two components work together?

Options:

A.

Extend the AEM Component component with the MapTo component.

B.

In the AEM Component, implement a MapTo method that references the Sling Model.

C.

In the React component, implement a MapTo method that references the AEM component.

Question 6

What is the correct way to implement the OSGi service class for this interface?

public interface SimpleService {

String getMessage();

}

Options:

Options:

A.

@Component(service = SimpleService.class, immediate = true)

public class SimpleServiceImpl extends SimpleService {

@Override

public String getMessage() {

return "Hello from SimpleService!";

}

}

B.

@Component(service = MySimpleService.class, immediate = true)

public class SimpleServiceImpl implements SimpleService {

@Override

public String getMessage() {

}

}

C.

@Component(service = MySimpleService.class, immediate = true)

public class SimpleServiceImpl implements SimpleService {

@Override

public String getMessage() {

return "Hello from SimpleService!";

}

}

D.

@Component(service = SimpleService.class, immediate = true)

public class SimpleServiceImpl implements SimpleService {

@Override

public String getMessage() {

return "Hello from SimpleService!";

}

}

Question 7

A developer is debugging an issue where a Sling Model is not properly adapting to the resource. Upon investigation, the developer notices the following Sling Model code:

@Model(adaptables = Resource.class)

public class MyCustomModel {

}

What is causing the issue?

Options:

A.

The adaptable type in the @Model annotation is incorrect.

B.

The title field is not properly annotated with @Inject.

C.

The resource path in the init() method is hard-coded and may not be adaptable.

D.

The @PostConstruct method is not properly annotated.

Question 8

A customer has the requirement to use SAML authentication on AEM using their SAML 2.0 compatible IDP.

Example:

    AEM: www.wknd.com/content/siteB/index.html

    IDP: https://www.idpB.com

How should an AEM Developer configure their SAML Authentication Handler?

Options:

A.

com.adobe.granite.auth.saml.SamlAuthenticationHandler.userIntermediatePath : /content/siteB

com.adobe.granite.auth.saml.SamlAuthenticationHandler.assertionConsumerServiceURL : https://www.idpB.com

B.

com.adobe.granite.auth.saml.SamlAuthenticationHandler.path : /content/siteB

com.adobe.granite.auth.saml.SamlAuthenticationHandler.idpUrl : https://www.idpB.com

C.

com.adobe.granite.auth.saml.SamlAuthenticationHandler.userIntermediatePath : /content/siteB

com.adobe.granite.auth.saml.SamlAuthenticationHandler.serviceProviderEntityId : https://www.idpB.com

Question 9

A developer needs to configure two style options (style-a and style-b) for a text component so authors can choose between different pre-defined styles for their content. What is the correct way to define the cq:editConfig node?

Options:

A.

/ cq:editConfig

/cq:style

- jcr:primaryType: "nt:unstructured"

- cq:styleClasses: ["style-a", "style-b"]

- cq:styleLabel: "Text Styles"

B.

/ cq:editConfig

/cq:style

- jcr:primaryType: "nt:unstructured"

- cssClasses: ["style-a", "style-b"]

- styleLabel: "Text Styles"

C.

/ cq:editConfig

/cq:style

- jcr:primaryType: "nt:unstructured"

- cssClasses: ["style-a", "style-b"]

- styleLabel: "Text Styles"

D.

/ cq:editConfig

/cq:style

- jcr:primaryType: "nt:unstructured"

- cssStyles: ["style-a", "style-b"]

- cssLabel: "Text Styles"

Question 10

What is the default file to store the dispatcher cache configuration?

Options:

A.

/etc/httpd/conf.dispatcher.d/cache/_cache.xml

B.

/etc/httpd/conf.dispatcher.d/cache/_cache.any

C.

/etc/httpd/conf.dispatcher.d/cache/*_cache.config

D.

/etc/httpd/conf.dispatcher.d/cache/cache.conf

Question 11

A developer is tasked with designing a solution to accommodate multiple client projects within a single Adobe Experience Manager (AEM) instance, each requiring its own set of unique resources, code, and content.

Given the need for true multi-tenancy, where each tenant operates independently with zero knowledge of other tenants and no shared code, content, or common authors, which approach should the developer recommend?

Options:

A.

Implement separate author and publish instances for each tenant, ensuring complete isolation of resources, code, and content, thereby achieving true multi-tenancy.

B.

Encourage the use of component groups and allowedPaths properties to logically separate tenant-specific components and templates within the same AEM instance.

C.

Utilize AEM’s out-of-the-box multi-tenancy capabilities to segregate tenants within the same author and publish instances, relying on access control lists (ACLs) and content path organization to ensure separation.

D.

Rely on content fragment variations to isolate tenant-specific content within shared templates.

Question 12

A developer is creating a dialog for a component, which has a checkbox field. After saving the component configuration, the developer noticed that the checkbox value is stored as a String type in JCR.

What should be done to store the checkbox value as a Boolean type in JCR?

Options:

A.

Implement JCR Event Listener to change field type afterwards

B.

Add TypeHint field to the dialog

C.

Use Switch instead of Checkbox

Question 13

How would a developer create a new Adobe Experience Manager project version 2.0 for 6.5 using the Adobe Experience Manager Maven Archetype with package com.mysite?

Options:

A.

mvn -B org.apache.maven.plugins:maven-archetype-plugin:3.2.1:generate \

-D archetypeGroupld=com.mysite \

-D archetypeArtifactld=aem-project-archetype \

-D archetypeVersion=6.5 \

-D appTitle="My Site" \

-D appld="com.adobe.aem" \

-D version="latest" \

-D aemVersion="2.0"

B.

mvn -B org.apache.maven.plugins:maven-archetype-plugin:3.2.1:generate \

-D archetypeGroupld=com.adobe.aem \

-D archetypeArtifactld=aem-project-archetype \

-D archetypeVersion=50 \

-D appTitle="My Site" \

-D appld="mysite" \

-D groupld="com.mysite" \

-D version="2.0" \

-D aemVersion="6.5"

C.

mvn -B org.apache.maven.plugins:maven-archetype-plugin:3.2.1:generate \

-D archetypeGroupld=com.adobe.aem \

-D archetypeArtifactld=aem-project-archetype \

-D archetypeVersion=${jabebrrl_nmqjiwqo} \

-D appTitle="My Site" \

-D appld="siteld" \

-D groupld="com.mysite" \

-D version="2.0" \

-D aemVersion="latest"

Question 14

A developer has created a new Sling Model called Flarp. The developer wants to create a unit test for this Sling Model.

The current unit test looks like this:

@ExtendWith(AemContextExtension.class)

class FlarpImplTest {

private final AemContext ctx = new AemContext();

@BeforeEach

public void setUp() throws Exception {

ctx.addModelsForClasses(FlarpImpl.class);

}

@Test

public void testGetName() {

final String expected = "<>";

ctx.currentResource("/content/bar");

Flarp bar = ctx.request().adaptTo(Flarp.class);

String actual = bar.getName();

assertEquals(expected, actual);

}

}

What needs to be changed for the unit test to successfully test the getName() method of the Flarp Sling Model?

Options:

A.

Replace AemContext with SlingContext with ResourceResolverType of JCR_OAK.

B.

Add an @Rule annotation before the line private final AemContext ctx = new AemContext();

C.

Add a ctx.load().json() method call to get the node data.

Question 15

Which action is typically performed by a replication agent in AEM?

Options:

A.

Transferring content and digital assets from the author instance to the publish instance.

B.

Synchronizing user permissions between the author and publish instances.

C.

Transferring Core components for use in AEM Sites.

Page: 1 / 5
Total 50 questions