WorksheetsAEM Component And Sling Model Quiz
Total questions: 20
Worksheet time: 10mins
What does Sling primarily use to resolve a request?
Servlet Name
JCR Node Type
Resource Path
ClientLibrary Category
Which annotation defines a Sling Model?
@Component
@Model
@InjectService
@ScriptVariable
Which annotation injects JCR properties into a Sling Model?
@Inject
@ValueMapValue
@RequestAttribute
@ResourceResolver
A Multifield dialog stores data as:
JSON
Array Property
Child Nodes
CSV
Page properties are stored under which path?
/content/page/data
/content/page/metadata
/content/page/jcr:content
/apps/page/jcr:content
What is the official name of the AEM templating engine?
Velocity
Sightly
Mustache
FreeMarker
Which method is used to serve GET requests in an AEM servlet?
execute()
doService()
doGet()
onGet()
Where are Editable Templates stored?
/apps/project/templates
/conf/project/settings/wcm/templates
/content/project/templates
/etc/designs/project/templates
Which API is used to read content from the JCR?
Node API
ResourceResolver
HttpClient
ExperienceAPI
What is sling:resourceSuperType used for?
Component inheritance
Dialog creation
Clientlib ordering
Dispatcher mapping
Where are OSGi configs stored in code?
/conf/project/config
/etc/osgi/config
/apps/project/osgiconfig
/apps/project/config
Which runmode identifies an author instance?
prod
stage
author
local
A Content Fragment is mainly used for:
Page layout
Structured content for headless
Dialog validation
Asset processing
An Experience Fragment is used for:
Storing metadata
Reusable content blocks across sites
Creating clientlibs
Defining templates
Sling Model Exporter outputs content in which format?
XML
JSON
Markdown
YAML
Which node type stores dialog values?
cq:Page
nt:file
nt:unstructured
sling:Folder
In AEM, where is a component dialog defined?
/apps//components//cq:dialog
/content//dialog
/conf//settings/dialog
/libs/cq/dialogs/default
Which annotation registers an OSGi service?
@Service
@Component
@Activate
@Property
Which method is NOT a valid way to display dialog data in an AEM component?
Using Sling Models with @ValueMapValue
Using WCMUsePojo / Use-Class
Using HTL objects like properties / currentPage
Writing data directly to JCR from HTL
What file is required to render a component from scratch in AEM?
.content.xml
component.html (or default HTL file)
sling:resourceSuperType
clientlibraryfolder
