Free Sitecore Sitecore-XM-Cloud-Developer Exam Actual Questions

The questions for Sitecore-XM-Cloud-Developer were last updated On Dec 16, 2024

Question No. 1

A developer needs to remove a site collection folder. Which script should they run from the Content Editor?

Show Answer Hide Answer
Correct Answer: D

To remove a site collection folder in Sitecore XM Cloud, the developer should run the ''Remove Site Collection Folder'' script from the Content Editor. This script is specifically designed to remove site collection folders and all associated items, ensuring a clean removal process.


Question No. 2

A build to XM Cloud fails. Which options are available for a developer to diagnose the error?

Show Answer Hide Answer
Question No. 3

Users in XM Cloud Pages want to modify and add specific components at a given point on the page. What would a developer do to allow the users to accomplish this task?

Show Answer Hide Answer
Correct Answer: B

According to the Sitecore XM Cloud Documentation for Developers1, a placeholder is a named location on a page where components can be inserted. A placeholder can have one or more components assigned to it, and the content author can add, remove, or reorder the components in the XM Cloud Pages editor. To create a placeholder for a page, you need to follow these steps2:

In the Content Editor, create or select a rendering item that defines the metadata and parameters for your component.

In the rendering item, in the Data section, in the Layout field, enter the HTML markup for your component. Include a placeholder tag with a unique name, such as <sc-placeholder key='my-placeholder' />.

In the Content Editor, create or select a placeholder settings item that defines the allowed components for your placeholder. You can also clone an existing placeholder settings item and modify it as needed.

In the placeholder settings item, in the Data section, in the Key field, enter the same name as the placeholder tag, such as my-placeholder.

In the placeholder settings item, in the Data section, in the Allowed Controls field, select the components that you want to allow in the placeholder. You can also use the Edit button to open the Allowed Controls dialog box and select the components from a tree view.

Register the component and the placeholder settings in the Components builder and add them to the Components library.

In the XM Cloud Pages editor, drag and drop the component to the page and use the placeholder to insert other components as needed.

2: Create a placeholder for a component | Sitecore Documentation 1: XM Cloud Documentation for Developers - Sitecore


Question No. 4

Which of the following tasks are performed by the publishing pipeline to create an accurate snapshot of the content available for publishing from the Content Management instance? Select all that apply.

Show Answer Hide Answer
Correct Answer: A, B, D

The publishing pipeline in Sitecore XM Cloud performs several tasks to ensure an accurate snapshot of content is available for publishing from the Content Management instance. These tasks include calculating additional entities to publish, calculating dependencies, and resolving dependencies. These steps are crucial for maintaining the integrity and consistency of the published content.


Question No. 5

When a developer designates a Sitecore template field multilist type, what should they do next?

Show Answer Hide Answer
Correct Answer: C

After designating a Sitecore template field as a multilist type, the next step is to set the data source for the multilist. This involves specifying the location within the content tree from which the list items will be drawn. The data source defines the scope of items that can be selected and displayed in the multilist.