Wayground logo

Free Printable Worksheets

Font size

S
M
L
XL
Worksheets

AEM Component And Sling Model Quiz

Total questions: 20

Worksheet time: 10mins

Name
Class
Date
1.

What does Sling primarily use to resolve a request?

a)

Servlet Name

b)

JCR Node Type

c)

Resource Path

d)

ClientLibrary Category

2.

Which annotation defines a Sling Model?

a)

@Component

b)

@Model

c)

@InjectService

d)

@ScriptVariable

3.

Which annotation injects JCR properties into a Sling Model?

a)

@Inject

b)

@ValueMapValue

c)

@RequestAttribute

d)

@ResourceResolver

4.

A Multifield dialog stores data as:

a)

JSON

b)

Array Property

c)

Child Nodes

d)

CSV

5.

Page properties are stored under which path?

a)

/content/page/data

b)

/content/page/metadata

c)

/content/page/jcr:content

d)

/apps/page/jcr:content

6.

What is the official name of the AEM templating engine?

a)

Velocity

b)

Sightly

c)

Mustache

d)

FreeMarker

7.

Which method is used to serve GET requests in an AEM servlet?

a)

execute()

b)

doService()

c)

doGet()

d)

onGet()

8.

Where are Editable Templates stored?

a)

/apps/project/templates

b)

/conf/project/settings/wcm/templates

c)

/content/project/templates

d)

/etc/designs/project/templates

9.

Which API is used to read content from the JCR?

a)

Node API

b)

ResourceResolver

c)

HttpClient

d)

ExperienceAPI

10.

What is sling:resourceSuperType used for?

a)

Component inheritance

b)

Dialog creation

c)

Clientlib ordering

d)

Dispatcher mapping

11.

Where are OSGi configs stored in code?

a)

/conf/project/config

b)

/etc/osgi/config

c)

/apps/project/osgiconfig

d)

/apps/project/config

12.

Which runmode identifies an author instance?

a)

prod

b)

stage

c)

author

d)

local

13.

A Content Fragment is mainly used for:

a)

Page layout

b)

Structured content for headless

c)

Dialog validation

d)

Asset processing

14.

An Experience Fragment is used for:

a)

Storing metadata

b)

Reusable content blocks across sites

c)

Creating clientlibs

d)

Defining templates

15.

Sling Model Exporter outputs content in which format?

a)

XML

b)

JSON

c)

Markdown

d)

YAML

16.

Which node type stores dialog values?

a)

cq:Page

b)

nt:file

c)

nt:unstructured

d)

sling:Folder

17.

In AEM, where is a component dialog defined?

a)

/apps//components//cq:dialog

b)

/content//dialog

c)

/conf//settings/dialog

d)

/libs/cq/dialogs/default

18.

Which annotation registers an OSGi service?

a)

@Service

b)

@Component

c)

@Activate

d)

@Property

19.

Which method is NOT a valid way to display dialog data in an AEM component?

a)

Using Sling Models with @ValueMapValue

b)

Using WCMUsePojo / Use-Class

c)

Using HTL objects like properties / currentPage

d)

Writing data directly to JCR from HTL

20.

What file is required to render a component from scratch in AEM?

a)

.content.xml

b)

component.html (or default HTL file)

c)

sling:resourceSuperType

d)

clientlibraryfolder