Exam AD0-E103 All QuestionsBrowse all questions from this exam
Question 23

A developer needs to create a new component called "Component A". Component A must show a list of other components that all have a resource type of existing

"Component B". Component A must render this list of tiles for each Component B where the tile rendering is different from the default one. The list of rendered tiles must be reusable by future new components.

How should the developer implement this functionality?

    Correct Answer: A

    To implement the functionality where Component A shows a list of other components (Component B) with a different tile rendering, the developer should create a script for tile rendering in Component B. Then, in Component A, the developer can use the data-sly-resource attribute along with a Sling selector to render these tiles. This approach allows the reusability of the tile rendering logic and adheres to the requirement of differing from the default rendering, while also ensuring that the tiles can be reused by future new components.

Discussion
chunpinOption: A

Answer: A

subbaOption: A

Answer A