OpenExamsFREE PRACTICE — ANY EXAM

Free Salesforce Certified B2C Commerce Developer Exam Practice Questions

100 free questions · Answer explanations · No signup required

View examination details, outline and sources

Loading selected examination banks…

Sample Practice Questions

Try these 10 sample questions from the Salesforce Certified B2C Commerce Developer Exam practice bank. Each includes the answer and explanation. Continue with the interactive practice above to review the full question set.

  1. 1A developer uses the SFRA upload tools for a sandbox. Uploads connect successfully but target the wrong code version. Which configuration file should the developer correct?

    1. A. The repository's package.json file
    2. B. The repository's dw.json file
    3. C. The cartridge's hooks.json file
    4. D. The cartridge's steptypes.json file

    Answer: B

    Explanation: The documentation states, "The dw.json file contains the information required to establish a server connection and the code version to upload your cartridges to." Correcting that destination fixes the upload target; build scripts and hook or job registrations do not select it.

    Reference: Build SFRA — Upload your code; dw.json configuration

  2. 2A merchant wants several distinct products to be sold on the storefront only as one group. Which B2C Commerce product type represents that offering?

    1. A. Product set
    2. B. Variation group
    3. C. Base product
    4. D. Product bundle

    Answer: D

    Explanation: The product type list defines "Bundle: Multiple products or services that sell only as a group". A set permits separate ordering, while base products and variation groups organize variations rather than distinct items sold as a package.

    Reference: Configure Products — Define Products; product types

  3. 3Shoppers must find products by a custom model-number attribute in storefront keyword searches. The attribute currently supports only Business Manager queries. Which configuration is needed for storefront searching?

    1. A. Use the attribute only as a sorting-rule attribute
    2. B. Mark the attribute queryable again in the system object
    3. C. Configure the attribute as a searchable attribute
    4. D. Assign the attribute to a Business Manager display group only

    Answer: C

    Explanation: Searchable attributes are "Attributes that are indexed and a customer can use them to search in the storefront." Queryability supports Business Manager searches, while sorting and display grouping alone do not make the attribute searchable by shoppers.

    Reference: Supported Data Types for Search and Sorting Rules — Searchable Attributes

  4. 4An ISML template must insert the local template templates/default/components/banner.isml without initiating another storefront request. Which markup should the developer use?

    1. A. <isinclude url="components/banner.isml"/>
    2. B. <isinclude template="default/components/banner.isml"/>
    3. C. <isinclude template="components/banner.isml"/>
    4. D. <isinclude template="templates/default/components/banner.isml"/>

    Answer: C

    Explanation: The reference identifies the template attribute as a local include and says, "The path to the ISML template can only contain slashes." The template path is relative to the cartridge's templates/default language directory, so components/banner.isml is correct. The URL attribute starts a separate request; adding default or templates/default incorrectly repeats part of the lookup base.

    Reference: isinclude Element — Local template includes; template attribute and relative path

  5. 5An SFRA cartridge contains newly edited source style sheets and client-side JavaScript. Before uploading the cartridge to a sandbox, what should the developer do to prepare those assets?

    1. A. Rebuild the storefront's product search index
    2. B. Export the site's existing static content archive
    3. C. Compile the cartridge's style sheets and JavaScript
    4. D. Activate a different server-side compatibility mode

    Answer: C

    Explanation: The build instructions say, "If a cartridge has style sheets or JavaScript, compile it before uploading." The required preparation is compiling assets. Search indexing, exporting data, and changing compatibility mode do not perform that build.

    Reference: Build SFRA — Build SFRA and upload code; compilation prerequisite

  6. 6A base product represents a shirt available in several colors. Which type represents the specific red shirt that a shopper selects?

    1. A. Variation product
    2. B. Product option
    3. C. Product set
    4. D. Variation group

    Answer: A

    Explanation: The list defines "Variation: A specific instance of a base product". A particular color instance is a variation product. An option is an add-on, a set groups products, and a variation group groups products sharing an attribute.

    Reference: Configure Products — Define Products; Variation

  7. 7In a storefront using the documented B2C Commerce Search pipeline, searches for a support-related term should open a customer support landing page instead of product results. What should the merchant configure?

    1. A. A search redirect for that term
    2. B. A higher text relevance boost for that term
    3. C. A new refinement bucket for that term
    4. D. A lower availability ranking threshold

    Answer: A

    Explanation: The documentation states, "Search redirects: the merchant can redirect searches for a specific term to a landing page or category page, rather than performing a product search." Boosts and refinements affect search results, and availability ranking changes order; they do not replace the search with the specified landing page.

    Reference: Understanding the Search Pipeline — Configurable querying features; Search redirects

  8. 8A storefront page must cache its shared outer HTML while rendering a dynamic fragment with a different caching policy. How should the developer include the fragment?

    1. A. Use a URL-based remote include for the fragment
    2. B. Use a local template include to create a separate cache entry
    3. C. Use isprint to create a separate cached request for the fragment
    4. D. Use isdecorate alone to create a separate cached request

    Answer: A

    Explanation: For URL includes, the reference states, "The included URL can have a different caching policy." It gives embedding uncached dynamic HTML in a cached surrounding page as an example. A local include and ordinary printing or decoration do not create that separate URL request and caching boundary.

    Reference: isinclude Element — Remote URL includes; caching policy

  9. 9A sandbox upload targets code version v_next in dw.json, while v_current remains active. Which check verifies that the cartridge reached the configured upload destination?

    1. A. Check the cartridge list in Version Summary for v_next
    2. B. Check the cartridge list in Version Summary for v_current
    3. C. Check that the cartridge name appears on the site's cartridge path
    4. D. Check that the cartridge directory exists in the local repository

    Answer: A

    Explanation: The instructions say, "Click the Code Version link for the code version you specified in the dw.json file." They add, "If your cartridge was uploaded successfully, it appears in the list of cartridges on the Version Summary page." Check v_next, the configured destination. The active version, site registration, and local source directory do not establish that upload destination.

    Reference: Build SFRA — Upload your code; verify cartridges on the server

  10. 10A product has only a quantity-10 price in the site's active price books and no quantity-1 price in any of them. Price calculation returns NA. What price-book correction addresses the documented cause?

    1. A. Assign the same quantity-10 price to a second active price book
    2. B. Add a quantity-1 price in a price book active for the site
    3. C. Remove the quantity-10 price without adding a quantity-1 entry
    4. D. Move the quantity-10 entry to the site's inactive price book

    Answer: B

    Explanation: The price table guidance states, "If there’s no price for a quantity of one, Salesforce B2C Commerce returns NA." A quantity-1 entry in an active price book supplies the required pricing basis; moving or duplicating only the quantity-10 entry does not.

    Reference: Create Price Books and Price Tables in B2C Commerce — Create price tables; quantity-one price requirement

Topics in this practice bank

These topics describe the available practice for Salesforce Certified B2C Commerce Developer Exam. Review the examination outline and its sources for scope and allocation details.

  • B2C Commerce Setup
    • Configure IDE and WebDAV cartridge deployment
    • Import data through Business Manager
    • Configure cartridge path order
    • Create a site with currency and taxation settings
    • Assign storefront data configurations
  • Work With a B2C Site
    • Manage product and search models, categories, inventory, and pricebooks
    • Configure payment and shipping for storefront orders
    • Manage Content Assets, Page Designer, Content Slots, and Content Folders
  • Data Management Using Business Manager Usage
    • Configure site search preferences and settings
    • Configure search refinements and sorting definitions
    • Configure logging categories and access logs
    • Extend system object types with attributes
    • Determine, create, and configure custom objects
    • Inspect and resolve code performance issues
    • Configure OCAPI Data and Shop API permissions
    • Recognize service configuration in development
  • Application Development
    • Develop ISML templates
    • Debug scripts and controllers
    • Develop JavaScript controllers with SFRA patterns and APIs
    • Develop Page Designer page types and components
    • Implement forms, validation, CSRF protection, and field bindings
    • Implement localization across templates, forms, files, and attributes
    • Write non-sensitive data to custom logs
    • Integrate, deploy, and use service instances
    • Extend functionality using hook extension points
    • Apply code, performance, and scalability best practices
    • Enable external interoperability with OCAPI Shop and Data APIs
    • Develop scheduled jobs and job scripts

How to use these free practice questions

Choose an answer, check the explanation, and review your progress by chapter. Practice questions and explanations are free to access without signing up.

These are independent study questions, not actual examination items. For examination requirements and official information, view Salesforce Certified B2C Commerce Developer Exam details.