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.