In AEM, HTL (HTML Template Language) is the preferred server-side template system for rendering components. Which statement best describes HTL's primary design goal?
Aem Development
Question · Easy
A developer needs to bind a Sling Model to an HTL template so the template can call the model's getter methods. Which HTL block statement loads the Java class?
Chapter 1: Dispatcher Farm & Multi-Site Configuration
1.1 AEM Dispatcher Configuration & Caching Fundamentals
Study guide
A Sling Model must read authored properties from the current component's resource node. Which adaptable and injection setup is correct for a model that does not need the request?
Tech Exam Prep Podcast
Listen on Spotify
Podcast
In a Sling Model, a developer wants a missing authored property to be optional rather than causing the model adaptation to fail. Which annotation attribute achieves this?
Question · Medium
Sling resolves which script to render a resource primarily based on which resource property?
A request URL is /content/site/page.print.a4.html. According to Sling's decomposition, which part is the selector string?
1.2 Multi-Site Management (MSM) & Blueprint/Live Copy Architecture
A developer registers a servlet to handle GET requests for a specific component resource type with a custom selector and extension. Which OSGi service property pattern is correct?
When developing custom components for AEM Sites, Adobe recommends building on top of which library to minimize custom code and gain accessibility and SEO features out of the box?
A developer wants a new component to inherit the rendering and dialog of an existing component while overriding only its HTL script. Which property should the new component define?
In an editable template, which mode defines components that are locked into every resulting page and stay synchronized when the template structure changes?
1.3 OSGi Configuration Management & Run Modes (.cfg.json)
Where are editable templates and their content policies stored in the AEM repository?
A content policy attached to a layout container in an editable template controls which capability?
A developer wants HTL output of an author-entered property to render stored HTML markup rather than escaping it. Which HTL context is appropriate, used deliberately?
Which HTL block statement conditionally removes the host element and its content from the output when an expression is falsy?
Chapter 2: Oak Indexing & Custom Logging
2.1 Custom Oak Index Definitions & Lucene Query Optimization
A component must render an included child resource (for example, a referenced fragment) through Sling so that its own resource type script is used. Which HTL statement is correct?
In AEM, client-side CSS and JavaScript are organized into client libraries. Which node property declares the categories another clientlib depends on so dependencies load first?
On AEM as a Cloud Service, client libraries under /apps should be made accessible to the publish tier and dispatcher via which mechanism instead of exposing /apps directly?
Question · Hard
A developer needs the current Page object (com.day.cq.wcm.api.Page) inside a Sling Model. Which injection annotation provides AEM script bindings such as currentPage?
2.2 AEM Custom Logging, Logback Configurations & Request Tracing
Which annotation should a Sling Model use to run initialization logic after all injections have completed?
A developer wants to expose a Sling Model's data as JSON for a headless or SPA consumer using the Sling Model Exporter. Which annotation enables this?
Component authoring dialogs in the modern AEM Touch UI are built primarily with which UI framework?
Within a Touch UI dialog field, which property name stores the authored value onto the component's resource node?
Chapter 3: Component Architecture, HTL & Client Libraries
3.1 Core Components & Proxy Component Pattern
A developer must run a JCR query efficiently in production AEM as a Cloud Service. What is the recommended way to ensure the query performs well?
In the AEM Sites SPA editor model, components are mapped to front-end framework components using which mechanism?
A developer needs a reusable HTL markup fragment that accepts parameters and can be called multiple times within a template. Which pair of statements is used?
An OSGi service implemented as a Declarative Services component needs configurable values supplied at runtime. Which modern OSGi annotation defines the typed configuration interface?
3.2 HTL (HTML Template Language) Block Statements & Context-Aware Escaping
A developer needs a single OSGi service implementation that can be instantiated multiple times with different configurations (for example, one per integration endpoint). Which approach is correct?
When opening a ResourceResolver for background or scheduled work in AEM, what is the Adobe-recommended, secure approach?
A developer wants code to react to content changes such as a node being created under /content. Which Sling/JCR mechanism observes repository events?
Which AEM feature lets a developer schedule recurring background jobs, such as a nightly cleanup, in a cluster-safe way?
3.3 Client-Side Libraries (Clientlibs) Architecture & Management
A custom workflow process step must implement which interface so it can be selected as a process in an AEM workflow model?
In an editable template, which structural node holds the responsive grid where authors drop components, and whose policy lists allowed components?
A developer wants to extend a Core Component's behavior in Java without copying its entire model. What is the recommended approach?
Which HTL statement iterates over a collection, exposing an item and an itemList status object (index, first, last, count)?
Chapter 4: Sling Models & OSGi Declarative Services
4.1 Sling Models Framework, Injectors & Model Exporter
A Sling Model needs to inject a child resource node named 'image' under the current resource and adapt it to another model. Which annotation is appropriate?
On AEM as a Cloud Service, custom run modes are restricted. Which run modes are supported for environment-specific OSGi configuration folders?
A developer wants to externalize a fully qualified URL (with scheme and host) for a resource path inside a Sling Model, useful for emails or publish links. Which service should be used?
A component renders nothing on the published page but works on author. Which debugging step most directly identifies whether the publish instance even resolved the script?
Analyzing And Debugging
Loading more…