Adobe Experience Manager Sites Developer Expert AD0-E137 Exam Questions

Page: 1 / 14
Total 50 questions
Question 1

A developer needs to customize the handling of assets in a complex workflow model where different paths process assets based on their metadata and trigger specific external services.

Which approach is a best practice for implementing this solution?



Answer : B


Question 2

A developer is asked to create an Adobe Experience Manager servlet MyServlet that listens for HTTP requests capable of handling the GET method. The servlet must be registered using Declarative Services (OSGi) and be bound to a specific resource type /my/resourcetype allowing it to serve requests for a particular component.

What is the correct way to register a servlet?

A)

@SlingServletResourceTypes(resourceTypes ="/my/resourcetype", methods = {"get"})

public class MyServlet extends SlingSafeMethodServlet {

@Override

protected void doGET(SlingHttpServletRequest request, SlingHttpServletResponse response) throws ServletException, IOException {

// Handle get request

}

}

B)

@SlingServletResourceTypes(resourceTypes="/my/resourcetype", methods = { "GET" })

public class MyServlet extends SlingAllMethodsServlet {

@Override

protected void doGet(SlingHttpServletRequest request, SlingHttpServletResponse response) throws ServletException, IOException {

// Handle get request

}

}

C)

@SlingServletResourceTypes(resourceTypes ="/my/resourcetype", methods = { "get" })

public class MyServlet extends SlingSafeMethodServlet {

@Override

protected void doGet(HttpServletRequest request, HttpServletResponse response) throws ServletException, IOException {

// Handle get request

}

}



Answer : A


Question 3

A developer is creating a set of SPA components, half of which do not require a custom component exporter. The developer needs to override the default exporter for the remaining components.

How can the developer meet this goal?



Answer : B


Question 4

A developer wants to deliver personalized content on a webpage.

Which rule should be applied in the dispatcher configuration to ensure cache efficiency?



Answer : A


Question 5

A university wants to roll out content updates to all the schools affiliated with it. The individual schools have configured their respective homepages with a space allocated to display updated university information. The rest of the homepage is dedicated to school-specific information.

What is the recommended approach to roll out university updates on all the schools' homepages?



Answer : B


Question 6

A developer is writing a unit test for a service that depends on a query of nodes inside the JCR.

What is the correct approach to unit testing the service?



Answer : A


Question 7

A developer is tasked with displaying the results from an external API call using Server Side Rendering in Adobe Experience Manager.

Which actions would the developer take to complete this task?



Answer : A


Page:    1 / 14   
Total 50 questions