Salesforce-B2C-Commerce-Cloud-Developer Practice Test
Salesforce Spring 25 Release 202 Questions
A developer plans to use the /search_suggestion (Shop API) in a Storefront application and
the following property must be set to do so
suggestion.product.image:view_type
What consideration should the developer in keepin mind to ensure that image data is
returned correctly as part of search suggestions?
A. If the view_type is not set or if the view_type is unknown, the image properties are not
part of the response.
B. If the view_type is not set or if the view_type is unknown, the image size of 'small' is
used by default
C. If the view_type is not set or if theview_type is unknown, the image size of 'large' is used
by default
A. If the view_type is not set or if the view_type is unknown, the image properties are not
part of the response.
Explanation:
Key Consideration for suggestion.product.image:view_type:
The view_type property determines which image size/type is returned in search suggestions (e.g., small, medium, large).
If view_type is missing or invalid:
No image data is included in the API response.
This ensures the API doesn’t return incorrect or unintended image sizes.
Why Not Other Options?
❌ B. Defaults to 'small'
Incorrect. The API does not fall back to a default size.
❌ C. Defaults to 'large'
Incorrect. Same as above—no default is applied.