Welcome to ExamTopics
ExamTopics Logo
- Expert Verified, Online, Free.

Unlimited Access

Get Unlimited Contributor Access to the all ExamTopics Exams!
Take advantage of PDF Files for 1000+ Exams along with community discussions and pass IT Certification Exams Easily.

Exam AD0-E103 topic 1 question 60 discussion

Actual exam question from Adobe's AD0-E103
Question #: 60
Topic #: 1
[All AD0-E103 Questions]

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?

  • A. Instantiate a node object with session.getNode(/content/blogs) and then iterate through the child nodes and print the title for each.
  • B. Use PageManager.getPage("/content/blogs") of the static PageManager class to instantiate a Page object and then iterate through the child pages and print the title for each.
  • C. Use the QueryDebugger to look for all children of /content/blogs and then iterate through the result set and print the title for each.
  • D. Adapt the resourceResolver to the PageManager service, then use the getPage(/content/blogs) to instantiate a Page object and then iterate through the child pages and print the title for each.
Show Suggested Answer Hide Answer
Suggested Answer: B 🗳️
Reference:
https://helpx.adobe.com/experience-manager/6-2/sites/developing/using/reference-materials/javadoc/com/day/cq/wcm/api/PageManager.html

Comments

Chosen Answer:
This is a voting comment (?) , you can switch to a simple comment.
Switch to a voting comment New
lexxxz88
Highly Voted 3 years, 6 months ago
I think D is good. PageManager is not a static class, it is an interface.
upvoted 6 times
...
mtaracena
Most Recent 2 years, 4 months ago
Answer is D. You have to adapt ResourceResolver to PageManager, since it's not a Static Class.
upvoted 1 times
...
chunpin
3 years, 3 months ago
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
upvoted 1 times
...
rakayaD
3 years, 4 months ago
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.
upvoted 1 times
...
Rafael1016
3 years, 5 months ago
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.
upvoted 2 times
...
gkay2
3 years, 9 months ago
C is the correct answer
upvoted 1 times
...
eipe
3 years, 9 months ago
Answer is C
upvoted 1 times
...
pkg82
3 years, 10 months ago
Can use QueryDebugger also !!!
upvoted 1 times
...
Community vote distribution
A (35%)
C (25%)
B (20%)
Other
Most Voted
A voting comment increases the vote count for the chosen answer by one.

Upvoting a comment with a selected answer will also increase the vote count towards that answer by one. So if you see a comment that you already agree with, you can upvote it instead of posting a new comment.

SaveCancel
Loading ...