Practice Free AD0-E137 Exam Online Questions
A developer is creating a new tenant called noot in an AEM Cloud Service instance. The team is using independent repositories for the different tenants. The team is also using git submodules tool.
What must the developer do to ensure the new noot tenant repository is deployed?
- A . Push the changes of the noot repository to the Adobe git repository.
- B . Add a reference to noot as a submodule of the main project in the team’s git management tool.
- C . Add a reference to the main project in the noot module in the Adobe git repository.
Which tool is used to sync content and configurations across AEM environments?
- A . Package Manager
- B . Dispatcher Configuration Tool
- C . Adobe I/O CLI
- D . Workflow Launcher
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 . Option A
- B . Option B
- C . Option C
An Adobe Experience Manager project requires to ‘deny’ all XML and JSON requests under the /path2 and /path3 context paths.
Which configuration will work?
- A . /0001 {/type "deny" extension ‘(XML|JSON)’ /path ‘(/path2|JSON/*)’}
- B . /0001 {/type "deny" extension [XML|JSON]’/path[/path2|/path3/*]’}
- C . /0001 {/type "deny" extension "[XML|JSON]’ /path'[/path2|/path3/*]"}
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?
- A . Verify the module is included in the Embed-Dependency section of the maven-bundle-plugin in the all module.
- B . Verify the module is included in the Embed-Dependency section of the maven-bundle-plugin in the ui.content module.
- C . Verify the module is included in the embeddeds section of the filevault-package-maven-plugin in the all module.
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!";
}
}
- A . Option A
- B . Option B
- C . Option C
- D . Option D
An AEM developer is trying to find logs from dispatcher modules, including filtering and serving from cache messages.
What log would be used to access this information?
- A . httpd error
- B . httpd access
- C . aem dispatcher
- D . dispatcher event log
A developer needs to identify the directory where cached files are stored.
Which dispatcher configuration property will identify the correct directory?
- A . /cache
- B . /docroot
- C . /html
- D . /var/cache