A developer is required to create a package with these requirements:
Package Name: aem-package
Content Path: /content/aem-site
Group: aem_group
What is the correct zip package file created in Adobe Experience Manager package manager?
Answer : A
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
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?
Answer : C
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?
Answer : A
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
A developer is working on an Adobe Experience Manager project that uses a multi-module maven build. A new module was just added to the project. When the following build command is executed, the new module is not installed:
mvn clean install -PautoInstallSinglePackage
What should the developer verify to ensure the package is being included as part of the installation process?
Answer : C
A developer created a component with the following fields:

What is the correct HTL code and resultant valid URL path generated?
A)
HTL code:
Page Path:
/content/testsite/en/page1.html/product/test1
B)
HTL code:
Page Path:
/content/testsite/en/page1/product/test1.html
C)
HTL code:
Page Path:
/product/test1.html/content/testsite/en/page1
Answer : B