Free Sitecore-XM-Cloud-Developer Exam Braindumps (page: 6)

Page 5 of 13

A developer creates templates and adds standard values; items created from the templates should automatically have the Title field populated with the name of the item.
What should they do to ensure this occurs?

  1. Set $name token in the new item's content Title field.
  2. Add sname token to the template's standard values Title field.
  3. Set_name token in the new item's content Title field.
  4. Add_name token to the template's standard values Title field.

Answer(s): A

Explanation:

In Sitecore XM Cloud, to automatically populate the Title field of items created from a template with the name of the item, the developer should set the $name token in the Title field of the template's standard values. This token is replaced with the actual item name when the item is created, ensuring that the Title field is automatically filled with the correct name.


Reference:

The use of the $name token in standard values is supported by Sitecore and is documented in their developer resources. It is specifically mentioned that Sitecore replaces the

$name token with the item's name during creation1.



A developer creates a new data template for a page. How do they ensure that the new template is available through Experience Edge?

  1. Create the template in the configured locations for Experience Edge (Feature, Foundation, Project, User Defined).
  2. Add the parent path of the template to the Experience Edge config using a patch file.
  3. Use the Experience Edge Admin API to add the template to the schema.
  4. Create the template anywhere in the /sitecore/templates folder.

Answer(s): A

Explanation:

To ensure that a new data template is available through Experience Edge, it must be created in the configured locations that are recognized by the Experience Edge schem a. These locations are typically structured under Feature, Foundation, Project, and User Defined paths within the Sitecore templates directory.


Reference:

The Experience Edge schema documentation specifies that GraphQL types are generated only for templates under the configured paths for Feature, Foundation, Project, and User Defined, which aligns with the Helix content structure principles1.



A developer wants to add a new language to a headless SXA site.
Which steps are required to add a new language in XM Cloud?

  1. Install a language pack on the Content Management instance and then add the language in /sitecore/system/languages.
  2. Add language in /sitecore/system/languages. Then, on the content item, change the language dropdown to the new language and add a new version.
  3. Add language in /sitecore/system/languages, right click the site root, and go to scripts -> Add Site language.
  4. They must enter the country code in the Language field. Then, on the content item, change the language dropdown to the new language and add a new version.

Answer(s): C



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

  1. Add standard values to the item.
  2. Add the list items to the multilist item.
  3. Set the multilist list item's data source.
  4. Add a multilist field to the template.

Answer(s): C

Explanation:

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.


Reference:

The Sitecore XM Cloud documentation provides guidance on configuring selection fields, including multilists. It details how to control the list of items by setting the Source property, which determines the items that appear in the selection list1. Additionally, developers can use the Sitecore.Data.Fields.MultilistField class to manage the items in a multilist field, including setting the data source2.






Post your Comments and Discuss Sitecore Sitecore-XM-Cloud-Developer exam with other Community members:

Exam Discussions & Posts