CCD-102 practice question 27 of 30

Which line of code creates a content slot that can be included on homepage.isml to display on the home page?

Full set: 206 questions
Answer options
A:

A. id="my_banner " description="for home page" type="global" context="content" context- object="${pdict.ContentSearchResult.content}"/>

B:

B. id="my_banner " description="for home page" type="global" context="homepage"/>

C:

C. id="my_banner " description="for home page" context="global">

Correct answer
D:

D. id="my_banner " description="for home page" context="global" context- object="${pdict.CurrentHomePage}"/>

Correct Answer:
C. C. id="my_banner " description="for home page" context="global">
Explanation

The tag with context="global" creates a global content slot. Global slots are not dependent on a specific business object context (like a category, folder, or content asset) and can therefore be used on any page, including the homepage (homepage.isml). This is the standard and most direct method for creating a content slot intended for a site-wide or static page. The syntax in option C correctly defines a global slot with a unique ID and a description, making it ready for content assignment in Business Manager.

Why Incorrect

A: This option incorrectly uses context="content", which is for slots on a content asset detail page, not a general homepage. The type="global" attribute is also redundant and deprecated. B: The value homepage is not a valid value for the context attribute. Valid contexts are global, category, folder, and content. D: The context-object attribute is only used with context-specific slots (e.g., category, folder, content) to specify the object instance. It is invalid to use it with context="global".

References

1. Salesforce B2C Commerce Developer Documentation

isslot Tag: The official documentation specifies the valid attributes for the tag. It defines context="global" for slots that can appear on any page and are not tied to a specific object. It also clarifies that the context-object attribute is required only when the context is category

folder

or content

but not global.

Reference: Salesforce Help

B2C Commerce Developer

"Template-Based Slot Rendering > Create a Slot in a Template".

2. Salesforce B2C Commerce Developer Documentation

Content Slots: Documentation on content slots explains the distinction between global and context-specific slots. A global slot is explicitly defined as being usable anywhere on the site

making it the correct choice for a generic homepage banner.

Reference: Salesforce Help

B2C Commerce Developer

"Content Slots > Slot Contexts".

3. Salesforce Partner Learning Camp

B2C Commerce Developer (CCD-102) Courseware

"Content Management" Module: The courseware materials for the CCD-102 exam detail the implementation of content slots. The module on Content Management explicitly states that context="global" is used for slots on pages like the homepage

while other contexts are for pages that display specific business objects.

Reference: Salesforce Partner Learning Camp

"Programmatic Customization in SFRA" course

"Create and use content slots" section.

Scroll to Top