AD0-E137 Sample Questions

AD0-E137 Sample Questions & Answers

Component, SPA and workflow development makes up the biggest share, ahead of content synchronization, environment upgrades and migration, dispatcher and multi-tenancy configuration, and CI/CD pipelines with package management.

Launch the full AD0-E137 simulator →

Showing 10 of 20 free samples.

  1. Question 1Advanced

    AEM Development · SPA Development

    A project requires implementing a Single Page Application (SPA) using React on AEM as a Cloud Service. To enable in-context editing for authors, the developer must ensure that the React components can be correctly mapped to AEM components. Which mechanism is fundamental for achieving this mapping in the AEM SPA Editor framework?

    Show answer & explanation

    Correct answer: A

    The MapComponents helper function is the core mechanism provided by the AEM SPA Editor SDK for React. It takes a list of AEM resource types and maps them to their corresponding React components. This mapping allows the SPA Editor to dynamically instantiate the correct React component based on the JSON model received from AEM, which contains the :type property for each component. This is the essential bridge between the AEM content structure and the front-end SPA rendering.

  2. Question 2Intermediate

    AEM Development · Workflow Development

    A business requirement specifies that whenever a 'Press Release' page is published, an email notification must be sent to a list of subscribers stored in an external system. The process must be reliable and handle potential failures when calling the external email service. Which AEM feature should be used to implement this requirement robustly?

    Show answer & explanation

    Correct answer: C

    AEM Workflows are designed for orchestrating multi-step, long-running, and potentially fallible processes. By creating a workflow model with a custom Java process step that calls the external email service, you gain reliability, retry capabilities, and administrative oversight. A workflow launcher can be configured to automatically start this workflow when a 'Press Release' page is modified or replicated. This is superior to an event listener, which is less robust for handling failures with external systems.

  3. Question 3IntermediateSelect 2

    AEM Development · Headless Implementation

    A media company wants to use AEM to manage structured content for a mobile application. The content, consisting of articles with a title, byline, body, and hero image, needs to be delivered as JSON. The mobile app team wants to query for articles based on specific criteria (e.g., by author or tag). Which AEM features should a developer primarily use to build this headless solution? (Select TWO)

    Show answer & explanation

    Correct answers: A, C

  4. Question 4Beginner

    AEM Development · Testing

    When writing a JUnit test for a Sling Model using AEM Mocks, a developer needs to provide a mock Resource object that the model will be adapted from. Which context object from the AEM Mocks framework is used to create and load mock JCR content structures?

    Show answer & explanation

    Correct answer: B

    The AemContext object (from io.wcm.testing.mock.aem.junit5.AemContext) is the primary entry point for writing AEM unit tests with AEM Mocks. It provides methods like load().json() to build a mock resource tree from a JSON file and currentResource() to set the context resource. The model can then be adapted from this context resource, allowing for isolated testing of the model's logic without a running AEM instance.

  5. Question 5Advanced

    AEM Development · Third-party Integration

    A developer is tasked with integrating a third-party REST API to fetch real-time stock market data for a component. The API requires an API key for authentication, which should be stored securely and be configurable per AEM environment. What is the recommended approach for managing this API key and making the HTTP call from an OSGi service?

    Show answer & explanation

    Correct answer: B

    This approach follows AEM best practices for security and configuration management. The OSGi Configuration Admin allows the API key to be stored as a secret, managed via run modes or Cloud Manager secret variables, and kept out of the codebase and content. Injecting this configuration into the service cleanly separates configuration from code. Using a robust HTTP client library like Apache HttpClient provided by AEM is the standard for making reliable external calls.

  6. Question 6Beginner

    Build and Deployment · Build Process

    A development team is using the AEM Project Archetype to create a new project. They want to ensure that all code packages, content packages, and dispatcher configurations are built and deployed together. Which Maven profile should be invoked to build all sub-modules and create a single, deployable 'all' package?

    Show answer & explanation

    Correct answer: D

    In the standard AEM Project Archetype structure, the autoInstallSinglePackage profile is configured in the root pom.xml. When this profile is activated (e.g., mvn clean install -PautoInstallSinglePackage), Maven builds all the individual modules (core, ui.apps, ui.content, etc.) and then uses the content-package-maven-plugin to embed them into a single 'all' package. This 'all' package is the final artifact that gets deployed to AEM, ensuring all parts of the project are installed together.

  7. Question 7Intermediate

    Build and Deployment · CI/CD Pipeline

    In an AEM as a Cloud Service CI/CD pipeline, which quality gate is specifically designed to scan the project's code for security vulnerabilities, performance anti-patterns, and violations of AEM development best practices?

    Show answer & explanation

    Correct answer: B

    The Code Scanning gate in a Cloud Manager pipeline is a mandatory step that performs static code analysis on the project's source code. It uses a combination of SonarQube, Oak-Pal content package validation, and Dispatcher configuration validation to enforce quality standards. This gate is crucial for ensuring the stability, security, and performance of code deployed to AEM as a Cloud Service environments.

  8. Question 8Advanced

    Build and Deployment · Package Management

    A developer needs to create a content package that includes all user-generated content (UGC) under /content/usergenerated but specifically excludes any sub-trees marked with a jcr:mixinTypes property of cq:LiveSync. What is the correct way to define this in the package's filter.xml?

    Show answer & explanation

    Correct answer: D

    The filter.xml syntax for content packages in AEM is path-based and does not support filtering based on JCR property values or mixin types. The include/exclude rules operate solely on the node paths. To achieve such conditional packaging, a more advanced solution like a custom build hook (using the content-package-maven-plugin's hooks feature) or a script that programmatically builds the package definition would be required.

  9. Question 9Intermediate

    Environment Maintenance · Content Synchronization

    A project involves migrating content from a staging author instance to a production author instance. The content includes pages, assets, and user permissions (ACLs). The team wants to ensure the content is transferred reliably and can be easily rolled back if issues occur. Which tool is most appropriate for this one-time, administrator-driven content promotion?

    Show answer & explanation

    Correct answer: C

    For administrator-driven content migration between environments (like staging to prod), using content packages is the standard and most reliable method. It allows for precise definition of content paths (filters), inclusion of ACLs, and versioning. The resulting package is a single ZIP file that can be downloaded, stored, and then uploaded to the target instance. Crucially, packages can be uninstalled, providing a straightforward rollback mechanism. Replication is for author-to-publish, and the Content Transfer Tool is for migrating to AEMaaCS.

  10. Question 10Intermediate

    Environment Maintenance · Upgrades and Migration

    True or False: When migrating from AEM 6.5 to AEM as a Cloud Service, custom OSGi services that use the @Reference annotation with a policy=dynamic and cardinality=optional are guaranteed to work without modification.

    Show answer & explanation

    Correct answer: B

    This is false. While the syntax is valid, the underlying architecture of AEM as a Cloud Service is different. The service referenced might not be available or might have been replaced by a different API. Furthermore, the dynamic nature of the cloud environment means services can be restarted or redeployed more frequently. Code must be resilient. All code, regardless of its apparent compatibility, must be reviewed and tested against the Cloud Service SDK and analyzed with the Cloud Readiness Analyzer.

Ready for the real thing?

The full AD0-E137 simulator has every exam-style question, timed mode, and instant scoring.