AEM Technical Questions Flashcards

1
Q

How does sling resolve a resource?

A

Using ResourceResolver.resolve(). A request contains a URI which maps to a resource.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
2
Q

How do you get an aem admin resource resolver?

A

Create a system user going to crx/explorer
Create a mapping for the bundle to sub service and user in the Apache Sling service user Mapper service

In code:
Create a map object with key sub service and string value service name.
Create a ResourceResolverFactory
Call ResourceResolverFactory.getResourceResolver(map)

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
3
Q

What is an xtype?

A

Xtype is a widget inside a component dialog that can be used to capture author data: text field, selection, number field

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
4
Q

What are renditions of DAM assets?

A

Different versions of an asset. For example, smaller/larger image size

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
5
Q

Can you create a page without a template?

A

No, you must select a template when creating a page.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
6
Q

What is a template?

A

A template is used to create a page. An iParsys allows components to be added to a template.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
7
Q

What is sling:resourceType?

A

The sling resource type is the path which locates a script that will be used to render the content.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
8
Q

What are scr annotations?

A
SCR annotayions are used to declare OSGi components and services.
@Component marks a class an OSGi component that will be handled by the OSGi container
@Service marks the component as a service, making it available to other classes via @Reference annotation.
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
9
Q

What are declarative services

A

Declarative Services allow you to define and consume services via metadata.
Annotations in source code can generate this metadata.
The metadata is added to the OSGi bundle manifest file by the OSGi service component.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly