Exam Information
Free practice questions with explanations
Sitecore Sitecore-XM-Cloud-Developer Practice Questions
Answer a question to see the correct answer and the explanation, or click Show answer. Newest questions first.
- Questions
- 19
- Answered
- 0
- Correct
- 0
- Score
- -
-
1 Question 1 Single choice XM Cloud Architecture and Developer Workflow
A digital team runs a headless site on XM Cloud with a Next.js front end hosted on Vercel. Their content team is adding a new Content Editor-authored section and reports that changes made in XM Cloud Pages are not visible on the preview of the front end, even though the item exists in the content tree. The developer confirms the rendering host is configured and reachable. The team must keep the content authoring workflow unchanged and avoid giving editors direct access to the rendering host. Which action should the developer take FIRST to diagnose the issue?
Correct Answer: BExplanationIn XM Cloud, content authored in the CMS reaches the delivery layer only after publishing to Experience Edge, and the front end reads from there. Checking whether the item has been published to the relevant environment is the logical first diagnostic step and does not change the editor workflow or require host access. Republishing the Content Delivery database refers to legacy XP architecture that XM Cloud does not use. Rebuilding Solr is unrelated because XM Cloud does not depend on a local Solr index for layout delivery. Disabling the workbox would not affect whether published content is visible to the rendering host.
-
2 Question 2 Single choice Data Modeling
A retailer is modelling product data in XM Cloud. Each product has a set of variants, and each variant has its own price, SKU, and inventory status. Marketing wants editors to manage variants inside the product item, and the front-end team needs to query all variants of a product in a single GraphQL request from Experience Edge. The team also wants to avoid duplicating product attributes across variants. Which data model design best meets these requirements?
Correct Answer: CExplanationA hierarchical model in which variants are child items of the product keeps variants managed inside the product in the content tree, lets the front end retrieve them through the parent item's children in a single delivery query, and lets shared product attributes live on the parent without duplication. A flat list linked by SKU forces a second lookup and breaks the single-query requirement. Storing JSON in a text field removes schema validation and makes editing error-prone. A multilist pointing to a separate root separates variants from their product and complicates authoring and querying in one request.
-
3 Question 3 Single choice Deployment of XM Cloud Projects
A systems integrator manages an XM Cloud project that must be promoted from a development environment to a production environment. The organisation requires that every deployment is traceable to a commit, that no developer has direct credentials to the production XM Cloud environment, and that a failed deployment does not leave the production site partially updated. The team currently runs deployments manually from a laptop. Which approach best satisfies all three requirements?
Correct Answer: CExplanationA pipeline that builds from a specific tagged commit gives traceability, and storing a scoped deployment credential in the pipeline keeps individual developers away from production credentials. Atomic promotion is achieved through the pipeline's build artefact being deployed as a unit rather than hand-copied. A shared administrator account violates the no-direct-credential requirement and manual copying risks partial updates. Restoring content databases between environments is not how XM Cloud deploys code and would overwrite production content. A nightly scheduled deployment from development lacks the approval and commit traceability the organisation requires.
-
4 Question 4 Single choice Renderings and Layout
A front-end developer builds a Next.js site on XM Cloud using the JSS SDK. A marketing hero component is placed in the page layout by editors, and the component receives its fields from the layout data. Editors report that the hero shows the placeholder text from the code even after they set a value in the Content Editor. The developer confirms the field is named Title in the template and the component reads props.fields.heading. Which change resolves the mismatch with the least impact on existing pages?
Correct Answer: CExplanationThe JSS component receives field values keyed by the template field's name, so reading props.fields.title aligns the code with the authored data and requires only a code change. Renaming the field would break any existing content and data already stored under Title. A default value on the field does not change the key the component reads. Rendering parameters are a separate mechanism for presentation settings and would not supply the content field the component expects.
-
5 Question 5 Single choice Security for Developers
A developer is building a custom XM Cloud application that calls a backend service to submit lead data. The service must only accept requests from the XM Cloud Pages editing context and from the production front end, and the team must not store any long-lived secret in client-side JavaScript. The backend uses OAuth 2.0 client credentials for service-to-service calls. Which design best meets these constraints?
Correct Answer: CExplanationKeeping the client credentials in server-side environment variables and exchanging them for tokens inside a server-side route means the secret never reaches the browser, satisfying the constraint on client-side secrets. Embedding the secret in public runtime configuration exposes it to every visitor. Disabling authentication removes the access control the backend needs, and IP-based blocking cannot enforce editing context. A long-lived token in the browser is both a secret exposure and a violation of the no-long-lived-secret rule.
-
6 Question 6 Single choice Sitecore APIs & Webhooks
An integration team needs to be notified in near real time whenever an item is published in XM Cloud so that an external search index can be refreshed. The notification must include the item identifier and must not require the external system to poll the CMS. The team also wants failed notifications to be retried without losing events. Which approach best fits these requirements?
Correct Answer: CExplanationA publish-triggered webhook pushes an event to the external system as publishing happens, meeting the near real-time and no-polling requirements, and the receiving endpoint can acknowledge events so the sender can retry unacknowledged deliveries. Polling the authoring API every few minutes is polling by definition and introduces latency. Direct database access bypasses the supported integration model and is unsupported in XM Cloud, which does not expose the CM database. Manual email is neither automated nor reliable.
-
7 Question 7 Single choice Sitecore Content Serialization
A team manages Sitecore items for templates, renderings, and placeholder settings in a Git repository. Developers sometimes change templates in the CMS, and the repository falls out of sync. The team needs a serialization approach that stores items as readable text files that merge cleanly in pull requests, and that keeps the CM and the code in step during deployment. Which serialization format and workflow best meets these needs?
Correct Answer: BExplanationText-based item serialization in YAML is readable, produces line-level diffs that merge cleanly in pull requests, and can be applied consistently by the deployment pipeline so the CMS and repository stay aligned. Binary backups cannot be diffed or merged and overwrite content wholesale. A single monolithic XML export is hard to review and merge across branches, and manual regeneration is error-prone. OData is a query and data access protocol, not a serialization workflow for template and rendering items, and manual import through the UI is not repeatable.
-
8 Question 8 Single choice XM Cloud Pages
An editor reports that a new hero component is not showing in the Pages editor for one site, although it appears in the component list for another site on the same XM Cloud tenant. The component was added to the rendering definitions and a new route was deployed. The development lead says the component is registered in the shared component map used by both sites. Which investigation step is most likely to identify the cause?
Correct Answer: DExplanationPages only offers components that are allowed in a given placeholder for the template a site uses, so a component present in the shared map can still be absent from one site's allowed renderings or placeholder configuration. Checking those settings is the targeted step. Clearing the browser cache and changing users would not change site-level permissions for components. Adjusting delivery cache time does not affect editor component lists, and recreating the item would break any existing references to its identifier.
-
9 Question 9 Multiple choice Security for Developers
A developer is hardening a custom XM Cloud front-end application that exposes a preview route for editors. The security team requires that only authenticated editors can reach the preview route, that editor sessions cannot be reused after sign-out, and that no credentials appear in browser storage. Which TWO measures meet these requirements? (Choose two.)
Correct Answer: A, EExplanationVerifying the editing context on the server ensures only legitimate editor requests render the preview, and short-lived HttpOnly Secure cookies that are invalidated on sign-out prevent reuse and keep credentials out of script-accessible storage. Storing tokens in localStorage exposes them to script and violates the storage rule. Passing a secret in a query string leaks it through logs and history. Disabling session timeout conflicts with the requirement that sessions cannot be reused after sign-out.
-
10 Question 10 Multiple choice Renderings and Layout
A team builds a reusable promo banner rendering for an XM Cloud site. Editors must be able to change the banner's background style per placement without creating a new content item, and the same banner must be reusable across pages with different layouts. Which TWO design choices best meet these requirements? (Choose two.)
Correct Answer: B, DExplanationRendering parameters defined on the rendering and set per placement let editors vary presentation at each usage without new content items, and the component reads them from the layout data. Hard-coding a component per colour multiplies maintenance and defeats reuse. Storing the colour in CSS forces a deployment for every change. Standard values on the page template apply to all pages and cannot vary per placement.
-
11 Question 11 Drag and drop Data Modeling
A publisher is restructuring its XM Cloud content model for articles, authors, and topic taxonomy. The team needs each relationship to be represented with the right structure for the required behaviour. Match each requirement to the modelling choice that best meets it.
Drag each item onto its matching target. On a phone: tap an item, then tap a target.
An article may belong to several topics, and topics should be reusable across many articlesEach article must be linked to exactly one primary author and the author's details must be shown on the articleArticle pages must be grouped under a section structure that mirrors the site navigationMultilist reference field to topic itemsSingle-link reference field to an author itemSeparate database table linked to articles by an external keyParent-child item hierarchy under the sectionInline rich text field that copies the author details into each articleCorrect Answer:- Each article must be linked to exactly one primary author and the author's details must be shown on the article → Single-link reference field to an author item
- An article may belong to several topics, and topics should be reusable across many articles → Multilist reference field to topic items
- Article pages must be grouped under a section structure that mirrors the site navigation → Parent-child item hierarchy under the section
ExplanationA single-link reference gives exactly one author whose details can be resolved at delivery time. A multilist lets many articles share the same topic items, which is the reusable many-to-many pattern. Hierarchy under a section reflects navigational structure and supports path-based delivery. Copying author details inline creates duplicated, drifting content, and an external database table sits outside the XM Cloud content model and would not be managed through its authoring and delivery pipeline.
-
12 Question 12 Drag and drop Sitecore APIs & Webhooks
An integration developer is connecting an external system to XM Cloud. Each requirement below needs the API surface suited to it. Match each requirement to the correct API or mechanism.
Drag each item onto its matching target. On a phone: tap an item, then tap a target.
Receive a notification when content is published so a cache can be clearedCreate and update content items programmatically in the authoring environmentRead published content for a website front end with low latencyExperience Edge delivery GraphQL endpointUnauthenticated Sitecore Experience Platform service endpoints on the CM hostAuthoring GraphQL API with an authenticated tokenDirect SQL queries against the Content Delivery databasePublish-triggered webhookCorrect Answer:- Read published content for a website front end with low latency → Experience Edge delivery GraphQL endpoint
- Create and update content items programmatically in the authoring environment → Authoring GraphQL API with an authenticated token
- Receive a notification when content is published so a cache can be cleared → Publish-triggered webhook
ExplanationThe Experience Edge delivery endpoint serves published content quickly and is designed for front-end reads. Writes to content belong to the authoring API, which requires authentication. Publish webhooks push events to external systems so caches can respond without polling. Direct SQL access is not a supported XM Cloud integration path, and unauthenticated CM endpoints would breach the security expectations for the platform.
-
13 Question 13 Dropdown Deployment of XM Cloud Projects
A developer uses the Sitecore CLI to work with an XM Cloud project in a CI pipeline. The pipeline must authenticate non-interactively using a credential stored in the pipeline's secret store and must not open a browser prompt on the build agent. Complete the command by selecting the correct value for each blank.
Choose the correct value for each blank.
dotnet sitecore login --client-id $CLIENT_ID --client-secret $CLIENT_SECRETCorrect Answer:dotnet sitecore login --silent-mode --client-id $CLIENT_ID --client-secret $CLIENT_SECRET
ExplanationThe Sitecore CLI login command accepts a flag for non-interactive authentication, which is the option that avoids interactive prompts on a build agent while using client credentials from the secret store. Interactive mode is the opposite of what the pipeline needs. The authority and cloud options configure the identity endpoint and do not suppress prompting, so they do not satisfy the non-interactive requirement by themselves.
-
14 Question 14 Dropdown Sitecore Content Serialization
A developer is configuring a serialization module for a project so that template items are included in source control and rendering items are excluded from automatic deployment. Select the correct value for each blank in the module configuration statement.
Choose the correct value for each blank.
Include module type with scope for the templates folder under the project root.Correct Answer:Include module type Templates with scope Full for the templates folder under the project root.
ExplanationTemplate items are the structural definitions the team wants versioned, so the Templates include module is the correct choice, and a Full scope serializes the whole template subtree including fields and sections. Rendering items would be included through their own module, not this one. The Ignored and Shared values describe excluded or differently scoped behaviour, and Single scope would omit the child fields that define the template.
-
15 Question 15 Single choice XM Cloud Architecture and Developer Workflow
A team runs an XM Cloud site with a Next.js application and needs to choose where server-side rendering logic should run so that personalisation decisions use the visitor's request context and the page still benefits from edge caching for anonymous visitors. Which architectural decision best meets both requirements?
Correct Answer: AExplanationRunning personalisation in middleware or a server route gives access to the request context, while keeping anonymous responses free of per-user data lets the edge cache them safely. Client-only rendering delays personalisation and shifts work to the browser. Caching everything at the edge serves the wrong content to personalised visitors. Storing personalised output in the content database would serve the same variant to everyone and misuses the delivery store.
-
16 Question 16 Single choice Sitecore APIs & Webhooks
A developer is building a front-end component that must fetch a list of published articles from Experience Edge. The query must return only the fields the component renders, the list must be paginated, and the team wants to avoid over-fetching to keep page weight low. Which query approach best meets these requirements?
Correct Answer: AExplanationA GraphQL query that selects only needed fields avoids over-fetching, and cursor pagination with first and after keeps each response bounded. Fetching everything and filtering in the browser defeats the page-weight goal. Using the authoring API with an administrator token from the browser exposes privileged credentials and targets the wrong endpoint for delivery. Downloading a full export on each load is inefficient and unnecessary for a delivery read.
-
17 Question 17 Single choice Security for Developers
A security review finds that a custom XM Cloud front-end application allows any signed-in editor to open a preview of any site on the tenant, including sites owned by other business units. The organisation requires that editors can preview only the sites they are assigned to, and that the restriction is enforced where the request is processed. Which fix best meets this requirement?
Correct Answer: DExplanationAuthorisation enforced on the server for each request ensures that a preview for an unassigned site is refused regardless of what the interface shows or how the route is named. Hiding sites in the UI leaves the endpoint open to direct requests. A confirmation prompt is not an access control. Renaming routes is security through obscurity and does not stop an editor who knows or discovers a URL.
-
18 Question 18 Single choice Data Modeling
A product team models a multilingual catalogue in XM Cloud with product descriptions that differ per language, while product SKUs, prices, and images are identical across languages. The team wants to avoid duplicating the shared values and keep translators working only on text. Which model best meets these needs?
Correct Answer: CExplanationLanguage versions of a single item let shared fields hold one value that is inherited across languages, while only the language-specific description is translated in each version. Separate items per language duplicate shared values that will drift apart over time. A single tagged text field complicates validation and workflow for translators. An external translation service sits outside the content model and removes the translation workflow the team relies on in the CMS.
-
19 Question 19 Single choice Sitecore Content Serialization
A team is preparing a serialization-based deployment for an XM Cloud project. Their pipeline applies serialized items to the CM on each release, and the last release unexpectedly removed several content items that editors had created directly in the CMS. The team must keep editor-created content intact while still deploying template and rendering changes from source control. Which change best addresses the root cause?
Correct Answer: BExplanationThe root cause is that the serialization scope covers content owned by editors and the deployment is allowed to delete items absent from source control. Narrowing the modules to developer-owned folders and using a create-and-update deployment policy stops the removal of editor content. Manual copying reintroduces the same risk and is not repeatable. Hourly publishing does not restore deleted authoring items. Separating editor content into Git misplaces authoring content into the code repository and would not stop the deletion behaviour.
These are 19 of the 50 questions in the full Sitecore-XM-Cloud-Developer pack.
Get All 50 QuestionsGet all 50 questions & answers
Full access options for Sitecore Sitecore-XM-Cloud-Developer
Self-study
PDF Version
- 50 actual exam questions
- Compatible with all devices
- Printable PDF format
- No download limits
- 90 days free updates
- 24/7 customer support
Best value
Bundle Pack
- Discounted PDF + online access
- 50 actual exam questions
- Both PDF and online practice test
- Free 90 days updates
- No download or practice limits
- 24/7 customer support
Exam simulation
Online Practice Test
- 50 actual exam questions
- Actual exam environment
- 90 days free updates
- Browser-based software
- 24/7 customer support
100% Money Back Guarantee
Your success comes first
At DumpsProvider, we give you a 100% money back guarantee on all of our exam dumps. For us, your success is the #1 priority and we are more than confident that our exam material will help you pass the Sitecore-XM-Cloud-Developer Exam (Sitecore XM Cloud Developer Certification Exam) on your very first attempt.
In a rare case, if you fail your exam, we will refund your amount without asking a single question.