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 questionsThe 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.
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".
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.
Keep practicing
Take the free CCD-102 practice test
Ten exam-style questions with answers and explanations, plus the exam facts and study guides.
More questions
Other CCD-102 practice questions
- Question 1A developer has a sandbox with code to log a message during execution, and the following …
- Question 3Server.get(‘Show’, consentTracking.consent, cache.applyDefaultCache, function (req,res,ne…
- Question 4A developer needs to update the package.json file so that it points to the hock file for …
- Question 5A developer wants to create in Business Manager extension with the cartridge named plugin…
- Question 6A client uses tax tables in Business Manager to calculate tax. They recently started ship…
- Question 7A Digital Developer has a site export file on their computer that needs to be imported in…
