Sitecore-XM-Cloud-Developer Sitecore XM Cloud Developer Certification Exam Practice Test

Page: 1 / 14
Total 50 questions
Question 1

A developer is using the Content Editor to set placeholder restrictions on a placeholder called headless-footer. Because these restrictions have been set on the placeholder settings within /sitecore/Layout/Placeholder Settings, which of the following statements is correct?



Answer : B

According to the Sitecore XM Cloud Documentation for Developers1, in the Content Editor, you can set placeholder restrictions for your layout placeholders. These restrictions are applied on all pages in the site. For example, if you add restrictions for a footer, these apply for all footers on every page of the site. In this way, you can control the content that content authors can place in layout placeholders. To add a placeholder setting for a site, you need to create a placeholder item in the Layout/Placeholder Settings folder and enter the placeholder key and the allowed components2.

The other options are not correct:

A) The restrictions apply for all placeholders called headless-footer within a single site in the XM Cloud Content Management instance. This option is too narrow, as the placeholder restrictions apply to all sites that use the same placeholder key, not just one site.

C) The restrictions only apply for a placeholder called headless-footer on a designated page. This option is too specific, as the placeholder restrictions apply to all pages that use the same placeholder key, not just one page. However, you can create placeholder restrictions on specific pages in the Experience Editor, if you want to override the default settings3.

D) The restrictions only apply for subsequently created versions of a placeholder called headless-footer. This option is incorrect, as the placeholder restrictions apply to all versions of the placeholder, not just the new ones.

2: Set placeholder restrictions | Sitecore Documentation 3: Set placeholder restrictions | Sitecore Documentation 1: XM Cloud Documentation for Developers - Sitecore


Question 2

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?



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 3

A developer needs to create a site for a company and must define the data structures in Sitecore to create items and content. What should the developer use to define the data structures?



Answer : A

According to the Sitecore XM Cloud Documentation for Developers1, templates are the fundamental concept in Sitecore that determine the structure and behavior of content items. Templates define the fields, sections, and parameters that make up each item. Templates also enable inheritance, which allows items to share common fields and properties from their base templates. There are different types of templates in Sitecore, such as data templates, branch templates, and command templates2.

To create the data structures for a site, the developer should use data templates, which define the fields used to control how data is entered. Data templates form the framework around which items are built. Sitecore associates a data template with every item in the content tree. The field types determine the editing controls shown to the user and they contain the raw values that are stored in the database2.

The other options are not correct:

Rendering parameters are custom properties for a component that can be changed by the content author in the XM Cloud Pages editor. Rendering parameters allow the content author to customize the appearance and behavior of the component, but they do not define the data structure of the content item3.

Renderings are items that define the metadata and parameters for a component. Renderings link a component to a data template, a headless variant, and a rendering parameter template. Renderings are used to create and manage components in the Components builder, but they do not define the data structure of the content item4.

Component data sources are content items that provide the content for a component. Component data sources can have fields, such as text, image, or link, that can be edited by the content author in the XM Cloud Pages editor. Component data sources are based on data templates, but they are not templates themselves4.

2: Data definition and template overview | Sitecore Documentation 3: Create a component with rendering parameters | Sitecore Documentation 4: Create a component that uses a data source item | Sitecore Documentation 1: XM Cloud Documentation for Developers - Sitecore


Question 4

A content author is unable to edit a company webpage in Sitecore. Where is the best place to check if the user has Write access to this content item?



Question 5

When a developer selects the base templates for a new data template, what happens if those base templates contain a field with the same name?



Question 6

When an item is published, the Experience Edge for XM Connector publishes a static snapshot of the Layout Service output of that item. If a change is made to a data source item that is referenced on the page, how is that content made visible on the website?



Answer : A

When a change is made to a data source item in Sitecore XM Cloud, the updated content becomes visible on the website after the data source item itself is published. This is because the Experience Edge for XM Connector publishes a static snapshot of the Layout Service output, and any changes to the data source items require republishing to reflect on the website.


Question 7

A developer wants to create a webhook that sends an HTTP request to a specified endpoint when the workflow moves to the approved state. What type of webhook should they use?



Answer : C

In Sitecore XM Cloud, a webhook submit action is used to send an HTTP request to a specified endpoint when an item changes workflow state or a workflow command runs. Therefore, for a developer wanting to create a webhook that triggers when the workflow moves to the approved state, a webhook submit action would be the appropriate choice.


Page:    1 / 14   
Total 50 questions