A developer created an editable template named home-template in AEM application 'wknd'.
What is the internal structure created for this template in the CRX repository?
A.
B.
C.
D.
B
Which action is typically performed by a replication agent in AEM?
A
A customer is required to fetch only "jcr:title" property for pages created using the homepage
template.
How would the developer write the query using Querybuilder API?
A.
B.
C.
D.
A
None
C
A developer is adding a reference script to a third-party analytics tool. The script needs to be editable
since it is being modified on a schedule outside of the team's development cycle.
How should the developer complete this task?
C
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?
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?
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
}
}
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?
A
What is the correct way to implement the OSGi service class for this interface?
public interface SimpleService {
String getMessage();
}
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!";
}
}
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?
B