Adobe Experience Manager Sites Developer Expert - AD0-E137 Exam Practice Test
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?
How would the Adobe Experience Manager Developer write the query to get the requested data?
Correct Answer: B
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?
Which actions would the developer take to complete this task?
Correct Answer: C
A customer added a custom property "foo:bar" to all assets. Once the property is added, the customer needs to run the following query:
select * from [dam:Asset] where isdescendantnode('/content') and [foo:bar] ="Hello" How would the customer update the indexes to make sure the query is not a traversal query?
select * from [dam:Asset] where isdescendantnode('/content') and [foo:bar] ="Hello" How would the customer update the indexes to make sure the query is not a traversal query?
Correct Answer: B
A developer needs to use the mode in Template Editor which allows template authors to define grid settings for different devices.
Which mode should the developer use?
Which mode should the developer use?
Correct Answer: B
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.)
Which two steps would the developer take to meet both requirements? (Choose two.)
Correct Answer: A,E
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
}
}
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
}
}
Correct Answer: B