Exam Sitecore-XM-Cloud-Developer Topic 3 Question 46 Discussion

Actual exam question for Sitecore's Sitecore-XM-Cloud-Developer exam
Question #: 46
Topic #: 3
Which of these options best describes the purpose of the following query to the Experience EdgeGraphQL schema?
query {
layout(site: "experienceedge", routePath: "/", language: "en") {
item {
homeltemPath: path
contentRoot: parent {
id
path
}
}
}
}

Suggested Answer: C Vote an answer

The query to the Experience Edge GraphQL schema is designed to retrieve the layout information for a specific URL, which in this case is the root path ("/") of a site named "experienceedge". This allows developers to access the Layout Service JSON for the item, which is essential for rendering the page in a headless setup.
References:The Sitecore XM Cloud documentation describes the Experience Edge schema as a read-only GraphQL schema that supports common front-end use cases for headless Sitecore development, including querying an item's layout by site and route path1.

by Jerry at Mar 19, 2025, 02:43 AM

Comments

Chosen Answer:
This is a voting comment (?) , you can switch to a simple comment.
Switch to a voting comment New
Nick name: Submit Cancel
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.

0
0
0
10