Limited-Time Offer: Enjoy 50% Savings! - Ends In 0d 00h 00m 00s Coupon code: 50OFF
Welcome to QA4Exam

Free practice questions with explanations

Salesforce B2B-Commerce-Developer Dumps 2026 with Free Practice Questions and Answers

Practise for the Salesforce Accredited B2B Commerce Developer Professional exam with 14 original questions, each with an answer and explanation.

Topics: Advanced Lightning Web Component Development, Basic Lightning Web Component Development, Data Management, Error Handling And Diagnostics and 2 more.

Includes single answer, multiple answers, drag and drop, dropdown and order list. A new question is added every 15 days.

B2B-Commerce-Developer Practice Set Details

Exam Code
B2B-Commerce-Developer
Questions On This Page
14
Exam Topics Covered
6 of 6
Question Types
5
Newest Question
New Question
Every 15 days
Full Question Set
221
Certification
Salesforce Developer
14 questions

Salesforce B2B-Commerce-Developer Exam Questions and Answers by Topic

Checkout Flow Development

10% of the exam

1 practice question on this topicWhat this topic covers

Question 1

Added

Single Answer

A B2B buyer's checkout requires a delivery appointment before the order can be submitted. The existing checkout uses the standard checkout flow, and the appointment must be captured in the storefront, validated before order placement, and persisted with the order. The implementation must work with the platform's checkout lifecycle rather than bypass it with a separate order-creation endpoint. What is the best design?

Correct answer: A

A checkout component integrated with the supported checkout flow can collect the value at the appropriate stage, prevent progression when validation fails, and pass the data through the checkout lifecycle for persistence. Direct order creation bypasses normal checkout processing and risks inconsistent pricing, inventory, and order handling. Browser storage is neither a durable order record nor a trusted persistence path. A product-level field describes catalog data and cannot represent a buyer-selected delivery appointment for a specific order.

Reference Implementations

15% of the exam

2 practice questions on this topicWhat this topic covers

Question 2

Added

Single Answer

A payment provider's reference implementation must support a hosted payment experience. The buyer is redirected to the provider, completes authorization, and returns to the storefront, where checkout must continue using the provider's result. The provider requires its own secure page for card entry, so the storefront must not collect or persist card details. Which implementation direction is most appropriate?

Correct answer: D

A hosted payment flow keeps card entry on the provider's secure page and uses the reference implementation's redirect and response handling to return a result to checkout. The payment outcome must be incorporated through the supported checkout lifecycle rather than treating a button click as authorization. Collecting card details in the storefront conflicts with the provider's hosted-page requirement and expands sensitive-data exposure. Client-side JavaScript cannot safely or appropriately write payment authorization data directly to an order record.

Question 3

Added

Multiple Answers

A team is implementing a custom checkout component against Salesforce's checkout reference implementations. The design requires a distinct address-editing experience and a shipping selection step, while order placement must remain coordinated by the standard checkout process. The team must not replace the entire checkout orchestration with a custom controller. Which two implementation choices align with that design? (Choose two.)

Correct answer: A, B

The address and shipping reference implementations serve distinct responsibilities: address capture or selection belongs in the address experience, while shipping-method selection belongs in the shipping experience. Their supported actions allow the custom components to participate in checkout without taking over order orchestration. Creating an order from address editing would place order submission at the wrong lifecycle stage. Payment handles payment-related work, not shipping-rate selection. Direct browser updates bypass supported checkout actions and are not a valid data-write approach.

Basic Lightning Web Component Development

20% of the exam

2 practice questions on this topicWhat this topic covers

Question 4

Added

Multiple Answers

A B2B storefront team is enhancing an existing product tile. The tile must display a compact product image and name, announce the product name to assistive technology, and navigate to the product detail page when activated. The team must retain standard storefront styling and avoid custom navigation logic that breaks in Experience Builder. Which two choices are appropriate? (Choose two.)

Correct answer: C, E

A PageReference used with Salesforce navigation APIs lets the platform resolve destinations in the current Experience Builder site context. Semantic interactive elements and meaningful image alternative text support keyboard and assistive-technology use. Concatenating URLs can fail when site paths or routing change. A title attribute does not make a div keyboard-operable or provide the semantics of a link or button. Forcing a full-page navigation bypasses the supported navigation behavior and is not needed for this interaction.

Question 5

Added

Single Answer

An existing LWC displays a list of cart lines. A recent enhancement added a per-line quantity control, but changing a quantity sometimes leaves the displayed subtotal stale. The component stores lines as an array of objects and updates a nested quantity field directly. The team wants a predictable rerender without converting the component to a server-driven design. What is the best correction?

Correct answer: A

Assigning a new array reference with a new object for the changed line makes the state transition explicit and reliably triggers the component's reactive update behavior. Directly mutating a nested field can leave the framework without a new reference to observe. renderedCallback is not a manual refresh hook and invoking update logic there risks repeated rendering. A custom label is static metadata, not a runtime calculation mechanism. Deferring the same mutation with setTimeout does not make it reactive.

Advanced Lightning Web Component Development

30% of the exam

5 practice questions on this topicWhat this topic covers

Question 6

Added

Single Answer

A distributor's storefront needs a reusable LWC that shows contract pricing for the currently selected product. The pricing service is exposed by an Apex method that requires a product ID and returns data that can vary by the buyer's active account. The component is used on a product detail page, where the product can change without a full page reload. The team wants framework-managed refresh when the product changes and does not want imperative calls from event handlers. Which implementation is the best fit?

Correct answer: D

A reactive @wire configuration is the right fit: when the public product ID changes, the wire service provisions data again using the new parameter, without requiring an event-handler call. The Apex method must be cacheable for use with @wire, and its response can reflect the account context available to the storefront request. Calling only from connectedCallback risks retaining the initial product's result. renderedCallback can run repeatedly and is not a suitable data-fetch lifecycle hook. A template getter must remain synchronous and cannot safely invoke Apex.

Question 7

Added

Single Answer

A distributor wants a custom product comparison panel on its B2B storefront. The panel must show products selected from several catalog pages, preserve selections while the buyer navigates within the app, and avoid adding a server round trip for every selection change. The storefront uses Lightning Web Components, and the team wants the smallest maintainable client-side implementation. Which approach best meets the requirements?

Correct answer: B

Lightning Message Service is designed to communicate between components that may not share a direct parent-child relationship, including components on separate parts of the page. Publishing selection changes lets the comparison panel update without server calls or navigation reloads. A module-scoped variable is not a supported cross-component state mechanism and has lifecycle and isolation concerns. A custom object adds unnecessary persistence and network traffic. URL parameters force navigation and do not provide the requested responsive interaction.

Question 8

Added

Multiple Answers

A storefront product-detail component must load related availability data from Apex when its product record changes. The Apex method is read-only, accepts a product ID, and should benefit from client caching. The component should refresh the data after a buyer changes the selected fulfillment location, but it must not invoke the method before a valid product ID exists. Which two implementation choices meet these requirements? (Choose two.)

Correct answer: D, E

A cacheable, read-only Apex method can be used with the wire service, and a reactive parameter causes the wire to provision data when the product ID becomes available or changes. The component must retain the wired result and pass that result to refreshApex when it needs an explicit refresh. An imperative call in connectedCallback is not reactive to later product changes. refreshApex does not accept a record ID as a substitute for the wired result. A non-cacheable method cannot be used with @wire.

Question 9

Added

Order List

A team is adding a custom LWC to a B2B Commerce product page. The component must be available to the Experience Builder page editor and receive the product record context through the page. Arrange the implementation steps in the order they must be performed.

Drag the steps into the correct order, or use the arrows.

  1. Publish the Experience Builder site.
  2. Expose the component for the appropriate Experience Builder target in its metadata.
  3. Declare a public record-context property on the component.
  4. Add the component to the product page in Experience Builder.
Correct answer:
  1. Expose the component for the appropriate Experience Builder target in its metadata.
  2. Declare a public record-context property on the component.
  3. Add the component to the product page in Experience Builder.
  4. Publish the Experience Builder site.

The component metadata must expose a supported target before Experience Builder can offer the component. A public property provides the component's configurable or context-bound input. After those implementation steps, the component can be placed on the product page and the site published so the change is available to storefront visitors. Publishing before the component is added would omit the intended page change, and adding a component before exposing a supported target is not possible through the page editor.

Question 10

Added

Single Answer

A retailer adds a configurable LWC to an Experience Builder storefront page. Administrators must set a short heading and choose whether a promotional region is displayed, while the storefront code should receive both values through the component's public API. The team wants these values editable in Builder without hard-coding page-specific logic. Which implementation is best?

Correct answer: D

Public @api properties form the component's external interface, and the component metadata describes supported Builder targets and editable properties. This allows administrators to configure the heading and promotional-region flag in the page editor while keeping implementation logic reusable. URL parsing is brittle and does not make the values Builder properties. Custom labels are org-level text resources, not per-page configuration for a boolean setting. Private fields are not available for the intended external configuration.

Data Management

15% of the exam

2 practice questions on this topicWhat this topic covers

Question 11

Added

Drag And Drop

A new B2B Commerce implementation is loading its initial catalog and account data. The integration team has separate source extracts for catalog membership, buyer access, and product pricing. Match each business relationship to the Salesforce data concept that represents it.

Drag each item onto its matching target. On a phone: tap an item, then tap a target.

A product has a price for a specific catalog and currency.
A product is available in a specific sales catalog.
A buyer account is permitted to shop in a specific web store.
Price book entry
Buyer group membership
Product-to-catalog association
Correct answer:
  • A product is available in a specific sales catalog. → Product-to-catalog association
  • A buyer account is permitted to shop in a specific web store. → Buyer group membership
  • A product has a price for a specific catalog and currency. → Price book entry

Catalog membership is represented by the association between a product and a catalog, while buyer groups govern which buyer accounts can access the relevant commerce experience or catalog. A price book entry supplies the product's price in a price book and currency context. Treating catalog membership as a buyer-group relationship confuses product availability with buyer access. A price book entry does not grant store access. Buyer-group membership does not define the product's catalog price.

Question 12

Added

Single Answer

A manufacturer is preparing buyer data for a new storefront. Its ERP supplies one record per purchasing division, while Salesforce has one Account per legal customer and several Salesforce users may place orders for each purchasing division. Orders must retain the legal customer account for reporting, but catalog access must differ by division. Which data design best satisfies these requirements?

Correct answer: D

A buyer account can represent the purchasing entity used by commerce while retaining its relationship to the legal customer account. Buyer groups provide a scalable way to control buyer access by division, and the order can preserve the appropriate account context for reporting. Creating an Account per user duplicates customer data and complicates maintenance. A user field alone does not model an account relationship or reliably supply the order account. Per-user catalogs and profile-based order attribution are not an appropriate relational design.

Error Handling and Diagnostics

10% of the exam

2 practice questions on this topicWhat this topic covers

Question 13

Added

Dropdown

A storefront administrator reports that an LWC intermittently fails after a deployment, while the browser console shows an unhandled rejection and the Apex log for one user contains no invocation. The developer needs to identify whether the failure is client-side or server-side before changing code. Complete the diagnostic sequence by selecting the best first tool and the next server-side check.

Choose the correct value for each blank.

First inspect the failing browser interaction with . If the request reaches Salesforce, correlate the affected user's server execution using .
Correct answer:

First inspect the failing browser interaction with browser developer tools and network panel. If the request reaches Salesforce, correlate the affected user's server execution using a debug log for the affected user.

The browser developer tools and network panel reveal rejected client promises, JavaScript errors, and whether a request was actually sent. If Salesforce receives the request, a debug log configured for the affected user can show the server-side execution path and exceptions. Object Manager does not diagnose a runtime browser failure. Data Loader is for data import and export. A change set report and connected app callback URL are unrelated to tracing a storefront component request.

Question 14

Added

Single Answer

A support engineer is investigating a checkout failure reported by only one buyer. Other buyers can place orders, and the failure occurs after the buyer selects shipping but before payment is submitted. The engineer has access to the affected user's browser session, Salesforce debug logs, and the checkout page configuration. The company prohibits changes to production configuration during diagnosis. What should the engineer do first?

Correct answer: A

Reproducing the failure in the affected buyer's context while collecting client and network evidence narrows the fault without changing production behavior for other buyers. Disabling the integration has broad customer impact and violates the no-configuration-change constraint. Logging every user creates noise and still may not reproduce the buyer-specific condition. Replacing the checkout page changes production configuration and risks order disruption before the cause is understood.

More Salesforce Practice Questions

Get the Full Salesforce B2B-Commerce-Developer Dumps as PDF and Practice Test

14 questions are free on this page and the full set has 221. It comes as a PDF and an online practice test, with 90 days of free updates.