AD0-E103 Exam QuestionsBrowse all questions from this exam

AD0-E103 Exam - Question 60


A developer is creating a custom component on the page /latestBlogs.html that needs to list all the titles of the blogs pages under /content/blogs.

How does this component get the list of child pages?

Show Answer
Correct Answer: D

To list all the titles of the blog pages under /content/blogs, you need to adapt the resourceResolver to the PageManager service because PageManager is not a static class. Once you have the PageManager instance, you can use its getPage method to get a Page object representing /content/blogs. Then, iterate through the child pages of this Page object to print the titles. This approach ensures proper session management and efficient resource access.

Discussion

8 comments
Sign in to comment
lexxxz88Option: D
Oct 23, 2020

I think D is good. PageManager is not a static class, it is an interface.

Rafael1016Option: B
Oct 30, 2020

Page atention: It is talking about QUERY DEBUGGER, that is a tool to execute and check queries. THe API is QUERY BUILDER for that rason is not C.

pkg82Option: C
Jun 17, 2020

Can use QueryDebugger also !!!

eipeOption: C
Jul 11, 2020

Answer is C

gkay2Option: C
Jul 18, 2020

C is the correct answer

rakayaDOption: B
Dec 15, 2020

PageManager is static class. getPage() gives page object. Page object has listChildren() method to iterate all child pages. C and D are ruled out as Querydebugger is tool and Pagemanager is static cannot adapted from resourceResolver. B is closer neater than A.

chunpinOption: D
Jan 8, 2021

I go for D Explained by adobe57138 at 08-06-2020 https://experienceleaguecommunities.adobe.com/t5/adobe-experience-manager-assets/how-to-get-the-list-of-child-pages/qaq-p/365623

mtaracenaOption: D
Nov 25, 2021

Answer is D. You have to adapt ResourceResolver to PageManager, since it's not a Static Class.