Salesforce-B2C-Commerce-Cloud-Developer Practice Test

Salesforce Spring 25 Release
202 Questions

A client has a requirement to allow users on the Storefront to filter by a newly created attribute.
After creating the search refinement, what else is necessary to achieve this?

A. Ensurethe attribute has data and is indexed

B. Set the attribute as Searchable.

C. Change the productsearchrefinebar.isml template.

A.   Ensurethe attribute has data and is indexed

Explanation:

After creating a search refinement definition (to allow filtering by a new product attribute on the Storefront), you must ensure that:

The attribute contains actual data in the product catalog
The attribute is indexed in the search index
This makes it available to be used for refinements (faceted search) on the storefront

Even if you create the refinement configuration in Business Manager, it won’t work unless the attribute is indexed and populated.

πŸ”§ Steps to Achieve Filtering on a New Attribute:
βœ… Create the attribute in the product system object (if not already present).
βœ… Populate the attribute with values for the appropriate products.
βœ… Configure it as searchable and refinable in Business Manager:
Go to Merchant Tools β†’ Search β†’ Searchable Attributes
Set:
Searchable = true (if you want to search by it)
Use in Search Refinements = true (to enable filter)
βœ… Rebuild the search index so the changes take effect.
βœ… Verify in storefront: You should see the new refinement appear in the product listing page sidebar.

❌ Why the Other Options Are Incorrect:
B. Set the attribute as Searchable
This is necessary only if you want the attribute to be searchable, but not sufficient alone to make it refinable. Also, indexing is still required.
C. Change productsearchrefinebar.isml
The SFRA template already supports dynamic refinements. You don’t need to change the ISML unless you’re customizing layout or display.

πŸ“˜ Reference:
Searchable Attributes & Refinements
Indexing Product Attributes for Search

Salesforce-B2C-Commerce-Cloud-Developer Practice-Test - Home Previous
Page 33 out of 202 Pages