Free AD0-E137 Exam Braindumps
Adobe Experience Manager Sites Developer Expert Questions 16–20 (page: 5)

Updated On: 12-Mar-2026

The customer has a requirement to fetch images from a custom folder (folder1) which were modified on/after 1 January 2024.

How would the Adobe Experience Manager Developer write the query to get the requested data?

  1. select [jcr:path] from [nt:base] where isdescendantnode('/content/dam/folder1') AND [jcr:content/cq:lastModified] >= CAST("2024-01-01T00:00:00.000Z")
  2. select [jcr:path] from [dam:Asset] where isdescendantnode('/content/dam/folder1') AND [jcr:content/cq:lastModified] >= CAST("2024-01-01T00:00:00.000Z")
  3. select [jcr:path] from [cq:image] where isdescendantnode('/content/dam/folder1') AND jcr:content.[cq:lastModified] >= CAST("2024-01-01T00:00:00.000Z")

Answer(s): B



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?


  1. @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

    }

    }

  2. @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

    }

    }

  3. @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(s): A



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



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

  1. Replace AemContext with SlingContext with ResourceResolverType of JCR_OAK.
  2. Add an @Rule annotation before the line private final AemContext ctx = new AemContext();
  3. Add a ctx.load().json() method call to get the node data.

Answer(s): A



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

public interface SimpleService {

String getMessage();

}


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

    public class SimpleServiceImpl extends SimpleService {

    @Override public String getMessage() {

    return "Hello from SimpleService!";

    }

    }

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

    public class SimpleServiceImpl implements SimpleService {

    @Override public String getMessage() {

    }

    }

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

    public class SimpleServiceImpl implements SimpleService {

    @Override public String getMessage() {

    return "Hello from SimpleService!";

    }

    }

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

    public class SimpleServiceImpl implements SimpleService {

    @Override public String getMessage() {

    return "Hello from SimpleService!";

    }

    }

Answer(s): D



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?

  1. Implement ImplementationPicker service
  2. Implement ComponentExporter service
  3. Implement FallbackComponentImpl service

Answer(s): B



Viewing page 5 of 11
Viewing questions 21 - 25 out of 75 questions


Post your Comments and Discuss Adobe AD0-E137 exam prep with other Community members:

AI Tutor AI Tutor 👋 I’m here to help!