AEM interview questions and answers for developers and architects

AEM interview questions check whether you understand how Adobe Experience Manager turns content in a repository into a cached web page: authors edit on the author tier, content is published to the publish tier, and the Dispatcher caches and filters what visitors get. Developers are then asked about the stack underneath, which is the JCR content repository, Apache Sling's resource resolution, OSGi services, HTL templates and Sling Models. Architect rounds add caching and invalidation, multi-site management, headless delivery and the differences in AEM as a Cloud Service.

By Published 8 min read

How AEM interviews are structured

AEM roles split into back-end developers (Java, OSGi, Sling), front-end developers (HTL, client libraries, sometimes a single-page app framework), full-stack AEM developers who do both, and architects who own topology, caching and integrations. Most loops start with concept questions, then ask you to explain a component you built, and end with a scenario such as a stale page after publishing. Because AEM is a commercial Adobe product, interviewers expect you to separate classic on-premise or Adobe-managed installations from AEM as a Cloud Service, where several rules differ. Feature details change between releases, so state what you have used rather than guessing at the newest behavior.

  1. Platform conceptsAuthor and publish, Dispatcher, JCR, Sling, OSGi, run modes.
  2. Component deep diveWalk through one component: dialog, Sling Model, HTL, client library, and how authors use it.
  3. Code or config reviewA Sling Model with an admin session, a Dispatcher filter that allows too much, a query with no index.
  4. Architecture scenarioMulti-site rollout, cache strategy, headless delivery to an app, or a cloud migration.

AEM fundamentals questions

Platform basics for AEM developers
QuestionWhat it testsWhat a strong answer shows
What do the author and publish tiers do?TopologyAuthors create and edit content on the author tier, behind login. Activated content is replicated to publish instances, which serve visitors. They are separate instances with separate repositories.
What is the Dispatcher?DeliveryAEM's caching and load-balancing module for the web server (Apache httpd) in front of publish. It caches rendered pages as files, filters which requests reach AEM, and invalidates cache when content is published.
What is the JCR?RepositoryThe Java Content Repository standard: a tree of nodes and properties. AEM uses Apache Jackrabbit Oak as its implementation, storing pages, assets, code and configuration.
What is Apache Sling?Request handlingThe web framework that maps a URL to a resource in the repository, then picks a script or servlet based on the resource type, selectors, extension and HTTP method.
What is OSGi in AEM?ModularityThe module system (Apache Felix) that runs Java code as bundles exposing services. Components, services and configurations can be started, stopped and configured at runtime.
What is HTL?TemplatingThe HTML Template Language (formerly Sightly): plain HTML with data-sly-* attributes and expressions. It escapes output by context by default, which blocks most XSS.
What is a Sling Model?Component logicAn annotated Java class adapted from a resource or request, with properties injected from content and OSGi services. HTL calls it with data-sly-use.
Editable or static templates?TemplatesStatic templates are defined by developers in code. Editable templates are built by template authors in the UI, with structure, initial content and policies that control which components are allowed.
/apps versus /libs?Customization/libs holds product code and must never be changed. Customizations go under /apps, which Sling searches first, using overlays or the Sling Resource Merger to change only what is needed.
What are run modes?ConfigurationLabels such as author, publish, dev or prod that select which OSGi configurations and content apply to an instance.
Platform basics for AEM developers. Scroll sideways on a small screen.

Sling, JCR and OSGi questions

function decompose(uri) {
  const dot = uri.indexOf(".");
  if (dot < 0) return { resourcePath: uri, selectors: [], extension: "", suffix: "" };
  const rest = uri.slice(dot + 1);
  const slash = rest.indexOf("/");
  const head = slash < 0 ? rest : rest.slice(0, slash);
  const parts = head.split(".");
  return {
    resourcePath: uri.slice(0, dot),
    selectors: parts.slice(0, -1),
    extension: parts[parts.length - 1],
    suffix: slash < 0 ? "" : rest.slice(slash),
  };
}

const assert = require("node:assert");
assert.deepStrictEqual(decompose("/content/shop/en/products.detail.print.html/red/large"), {
  resourcePath: "/content/shop/en/products",
  selectors: ["detail", "print"],
  extension: "html",
  suffix: "/red/large",
});
assert.deepStrictEqual(decompose("/content/shop/en.html").selectors, []);
console.log("ok");
How Sling splits a request URL, simplified. Run with Node. Real Sling first finds the longest path that exists in the repository, so a node named with dots is handled correctly.
  • How does Sling choose the script for a resource? It reads sling:resourceType, looks for that path under /apps and then /libs, and picks the script whose name best matches the selectors, extension and method. If none fits, it walks up sling:resourceSuperType, which is how proxy components inherit from Core Components.
  • Where would the simplified split above go wrong? A DAM asset node named logo.png. Real Sling resolves the existing resource logo.png first, while splitting at the first dot would look for a resource called logo.
  • How should a service read content without a user request? With a service user mapped to the bundle and a ResourceResolver obtained for that sub-service, with only the permissions it needs. Administrative sessions are deprecated for this and a common review finding.
  • Why must you close ResourceResolvers you open? Each one holds a repository session. Leaking them in a scheduler or event handler slowly exhausts memory. Use try-with-resources.
  • What is the difference between a page node and its jcr:content? A page is a cq:Page node; its properties and component content live in the child jcr:content node, with components as further child nodes.
  • How do you query content safely? QueryBuilder or JCR-SQL2 against properties that have an Oak index. A query without a matching index traverses the repository, logs warnings and can stall an instance; define a custom index when needed.
  • How are OSGi configurations managed? As configuration files in the code package, in folders named by run mode, so dev, stage and prod get different values without code changes. Secrets in the cloud service use environment variables rather than files.
  • What is an OSGi service and how is it injected? A Java interface implemented by a component and registered in the service registry. Declarative Services annotations wire references, and Sling Models can inject them with @OSGiService.

Components, templates and content questions

@Model(adaptables = Resource.class,
       defaultInjectionStrategy = DefaultInjectionStrategy.OPTIONAL)
public class ProductTeaser {

    @ValueMapValue private String title;
    @ValueMapValue private String productId;
    @OSGiService   private ProductService products;

    private boolean onSale;

    @PostConstruct
    void init() {
        onSale = productId != null && products.isOnSale(productId);
    }

    public String getTitle()  { return title; }
    public boolean isOnSale() { return onSale; }
}

<!-- productteaser.html (HTL) -->
<div class="teaser" data-sly-use.model="com.example.shop.core.models.ProductTeaser"
     data-sly-test="${model.title}">
  <h3>${model.title}</h3>
  <span class="badge" data-sly-test="${model.onSale}">On sale</span>
</div>
A Sling Model and its HTL. Not executed here; it compiles only against AEM's APIs inside a project.
  • What are Core Components and why proxy them? Adobe's maintained, configurable base components. Projects create proxy components in /apps that point to a Core Component through resourceSuperType, so upgrades flow in while the project controls naming and styling.
  • What files make up a typical component? The HTL script, a cq:dialog for author input, optional cq:design_dialog or policies, cq:editConfig for edit behavior, and a client library for CSS and JavaScript.
  • What are client libraries? Folders of CSS and JavaScript with categories. Pages include categories; embed merges libraries into one file to cut requests, and dependencies load others separately.
  • Content Fragment or Experience Fragment? A Content Fragment is structured, presentation-free content based on a model, suited to headless delivery through APIs such as GraphQL. An Experience Fragment is a reusable, designed group of components, such as a header or promo, with layout.
  • What is Multi Site Manager? A way to create live copies of a blueprint site for other languages or regions. Changes roll out by rollout configs, and local edits can break inheritance for a component or page.
  • How do workflows work? Models of steps (participant, process, OR and AND splits) started manually or by launchers on repository events, used for approvals, asset processing or translation.
  • How do you make a component's output JSON for a single-page app? The Sling Model Exporter, which serializes the model to JSON with an exporter annotation, used by the SPA editor and headless consumers.

Dispatcher, performance and cloud questions

Caching and delivery questions for senior candidates
QuestionWhat it testsWhat a strong answer shows
How does Dispatcher cache invalidation work?CachingOn activation, publish sends a flush request. Dispatcher touches a stat file at a configured folder level, and cached files older than it are treated as stale and re-fetched on the next request.
Why deny by default in Dispatcher filters?SecurityPublish exposes powerful selectors and endpoints. Filters should allow only the paths, extensions and selectors the site needs and block admin consoles, JSON dumps of the repository and query endpoints.
A page shows old content after publishing. Where do you look?DebuggingReplication queue on author, the page on publish directly, Dispatcher flush logs and the stat file level, then any CDN cache in front with its own TTL.
How do you cache personalized pages?DesignCache the shared page and load the personal fragment separately: client-side calls, Sling Dynamic Include, or edge logic, so the main page stays cacheable.
What changes in AEM as a Cloud Service?PlatformCode deploys only through Cloud Manager pipelines, /apps and /libs are immutable at runtime, publish scales automatically behind an Adobe-managed CDN, and asset processing runs in cloud services. Exact behavior evolves, so check current docs.
How is a typical AEM project structured?Code layoutA Maven multi-module project (often generated from Adobe's archetype) with a core bundle for Java, ui.apps for components, ui.content for sample content and configuration, ui.frontend for front-end builds, and a Dispatcher module.
Caching and delivery questions for senior candidates. Scroll sideways on a small screen.
  • An author instance becomes slow every afternoon. How do you investigate? Request logs and thread dumps for long requests, workflow and asset processing queues, traversal warnings from queries, and Oak maintenance tasks such as revision cleanup.
  • How would you deliver content to a mobile app? Content Fragment models and fragments, exposed through a headless API such as GraphQL with persisted queries that can be cached, and the app owning presentation.
  • How do you protect publish from heavy query load? Do not expose query endpoints, precompute lists at authoring time or through indexed queries cached by Dispatcher, and set cache rules for JSON responses too.
  • How do you plan a migration from on-premise to the cloud service? Run Adobe's analysis tooling where available to find incompatible code (custom replication agents, mutable /apps content, unsupported APIs), fix code first, then move content in waves and test caching end to end.

Fictional example

Answering "Walk me through a component you built"
Interviewer
Pick an AEM component you built and take me from the dialog to the cached page.
Candidate
A product teaser. Authors pick a product ID and a title in the dialog, which writes both as properties on the component node under the page's jcr:content. Sling resolves the resource type to our proxy in /apps, the HTL calls a Sling Model that injects those properties and an OSGi service to check if the product is on sale. The output is cached by Dispatcher like the rest of the page, so the sale badge could go stale. We fixed that by loading the badge from a small cached JSON endpoint with a short TTL instead of baking it into the page, which kept the page itself cacheable. I also added a policy so the component is only allowed in the content container of two templates.

AEM practice plan

  • Days 1 and 2: if you have access to an AEM SDK or a sandbox, generate a project from the archetype and trace one Core Component from proxy to rendered HTML.
  • Day 3: write a Sling Model with injected properties and a service, and render it with HTL; break the injection on purpose and read the error log.
  • Day 4: draw the author, publish, Dispatcher and CDN path, and explain flush, stat files and TTLs out loud.
  • Day 5: write three Dispatcher filter rules for a site and explain what each blocks.
  • Days 6 and 7: prepare two stories: a component you built end to end, and a production issue (stale cache, slow query, failed deployment) with the evidence you used.

AEM back-end rounds lean on Java; Java developer interview questions covers the language side. Self-managed author and publish instances have often run on cloud VMs, which AWS EC2 interview questions covers, and SPA editor work overlaps with React interview questions.

AEM answers mix many layers, and interviewers notice when you skip the Dispatcher. Natively, an AI interview assistant for Mac and Windows, records a text transcript of a mock AEM round on your own computer, so you can confirm you traced the request all the way to the cache. In practice it can read an HTL snippet, a Dispatcher rule or a log line from a screenshot and suggest points to raise, and with Pro or the free trial it uses the résumé and job description you add. The transcript and notes are saved for review.

Questions people ask

What AEM questions are asked in developer interviews?

Author versus publish, the Dispatcher, JCR, Sling resource resolution, OSGi services, HTL, Sling Models, editable templates, Core Components, Content and Experience Fragments, and how a page is cached and invalidated.

What is the difference between AEM author and publish?

Authors create and edit content on the author instance behind login. Activated content is replicated to publish instances, which serve visitors through the Dispatcher cache.

Do AEM interviews ask about AEM as a Cloud Service?

Often, especially for architects. Expect questions on Cloud Manager pipelines, immutable /apps and /libs at runtime, the managed CDN and what must change when moving from an on-premise installation.

How do I prepare for an AEM interview?

Trace one component from dialog to Sling Model to HTL to the cached page, rehearse Dispatcher flush and filters, and prepare a story about a production issue you diagnosed.

Where to go next

Practice with the same assistant you would use on a call: it listens, transcribes and suggests answers from your own resume and the job description.

Facts on this page were last checked on . Product details come from the Natively app itself; if something here is out of date, tell us at hello@heynatively.com.

Keep reading

Put it on your own machine.

A live-conversation assistant that runs locally. Your conversations stay on your machine.

macOS 12+ · Windows 10/11

© 2026 Natively AI Private Limited

Source-available under the Natively Personal Use Source License v1.0 · IP geolocation by DB-IP