Adobe Experience Manager Assets Developer Free Sample Questions

Description

Covers dispatcher and multi-tenancy configuration, component, SPA and workflow development, CI/CD pipelines and package management, and content synchronization, upgrades and migration.

20 free sample questions250 in the full practice test

Try simulator

AD0-E137 Sample Questions

  1. Question 1

    Advanced

    Configurations · Dispatcher Configuration

    A financial services client is implementing a multi-tenant AEM as a Cloud Service solution. To maintain security and performance isolation, they require that each tenant's dispatcher cache invalidation only affects that specific tenant's content. Which dispatcher configuration setting is most critical to achieve this granular invalidation?

    Answer and explanation

    Correct answer: B

    The combination of a unique document root for each tenant's site (e.g., /var/www/html/tenantA) and a /statfileslevel that corresponds to the depth of the site structure within that docroot ensures that auto-invalidation via .stat file creation is scoped only to that tenant's directory tree. When content is activated for tenantA, the .stat file is touched only within tenantA's hierarchy, leaving tenantB's cache untouched. Setting /statfileslevel to 0 disables auto-invalidation, which is incorrect. Using /virtualhosts helps with domain mapping but doesn't inherently solve cache invalidation isolation. Unique cache roots are a part of the solution but are ineffective without the correct /statfileslevel and unique docroots.

  2. Question 2

    Intermediate

    Configurations · OSGi Configuration

    A developer is creating a custom OSGi service that needs to behave differently in author and publish environments. The service requires a specific external API endpoint URL which varies per environment. What is the AEM best practice to manage this environment-specific configuration?

    Answer and explanation

    Correct answer: C

    The AEM standard for managing environment-specific OSGi configurations is to use run mode-specific config folders. By creating config.author and config.publish folders within the project's /apps/my-project/ directory, AEM will automatically apply the correct org.acme.MyService.cfg.json file based on the active run mode of the instance. This approach avoids hardcoding, keeps configuration out of the code, and is the standard deployment practice for AEM projects.

  3. Question 3

    Intermediate

    Configurations · Oak Indices

    During a performance audit of an AEM Sites implementation, a consultant discovers that a frequently used query to find articles by a custom metadata tag (acme:tags) is consistently slow and appears in the slow-queries.log. The current repository does not have a custom index for this property. What is the most effective method to resolve this performance issue?

    Answer and explanation

    Correct answer: B

    For queries that filter by a specific property value, creating a custom Oak property index is the standard and most efficient solution. By defining an oak:index node (e.g., under /oak:index/acmeTags) with type='property', propertyNames=['acme:tags'], and reindex=true, the Oak repository will build an index that allows for rapid lookups based on that property, drastically improving query performance and avoiding costly repository traversals. Using a Lucene index is more suitable for full-text search. Modifying the query without an index won't solve the underlying traversal issue. Increasing heap size is a temporary fix for memory issues, not slow queries.

  4. Question 4

    Intermediate

    Configurations · Authentication Integration

    An organization needs to integrate their on-premise Active Directory with AEM for user authentication. The security team requires that the integration uses a standard, secure protocol and that AEM does not store user passwords. Which AEM authentication handler should be configured to meet these requirements?

    Answer and explanation

    Correct answer: C

    The LDAP (Lightweight Directory Access Protocol) Identity Provider is the specific AEM OSGi configuration designed to integrate with directory services like Active Directory. It allows AEM to delegate authentication to the external LDAP server, meaning AEM never stores the passwords. It also supports user and group synchronization, fulfilling the typical requirements for enterprise integration with Active Directory.

  5. Question 5

    Intermediate

    AEM Development · Component Development

    A developer needs to create a complex AEM component that displays aggregated data from several child resources. The business logic requires iterating over these children, performing calculations, and then exposing the final computed values to the HTL script. What is the most appropriate and maintainable approach to implement this logic?

    Answer and explanation

    Correct answer: B

    Sling Models are the recommended best practice for encapsulating business logic for AEM components. Using a Sling Model allows for clean separation of concerns, moving complex logic out of the presentation layer (HTL). By using annotations like @ChildResource and a @PostConstruct init method, the model can efficiently access JCR data, perform necessary computations, and expose the results through simple getter methods, which can then be easily accessed in HTL. This approach is highly testable, maintainable, and scalable.

  6. Question 6

    Advanced

    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?

    Answer and 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.

  7. Question 7

    Intermediate

    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?

    Answer and 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.

  8. Question 8

    IntermediateMultiple answers

    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)

    Answer and explanation

    Correct answers: A, C

  9. Question 9

    Beginner

    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?

    Answer and 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.

  10. Question 10

    Advanced

    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?

    Answer and 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.

Register free for 10 more questions

Or unlock all 250 AD0-E137 questions with explanations, timed mode and flashcards.