Limited-Time Offer: Enjoy 50% Savings! - Ends In 0d 18h 9m 30s Coupon code: 50OFF

Salesforce B2B-Commerce-Developer Exam Questions & Answers (December 2026)

Salesforce Accredited B2B Commerce Developer Professional exam questions with 13 free practice questions and explained answers. Updated December 1, 2026. · See all Salesforce exams

Answer 13 scenario questions on this page and see your score as you go. No sign-up needed.

Exam Details

Exam Code
B2B-Commerce-Developer
Vendor
Salesforce
Questions
60 questions, with up to 5 additional unscored questions
Duration (minutes)
75
Passing Score
68%
Languages
English
Delivery
Proctored onsite at a testing center or in an online environment
Question Types
Single ChoiceMultiple Choice
Official Page
View Exam Page
1

Checkout Flow Development

10% of the exam

This topic covers changes to existing checkout flows in Salesforce B2B Commerce to meet customer and business requirements. Candidates must select customizations that fit the checkout process while preserving the standard steps buyers need to complete an order.

Question 1 of 13 Single Choice

A B2B storefront uses the standard checkout flow with shipping, payment, and order review. Buyers have requested a delivery note field, and the business wants the note saved with the resulting order. The team must keep the existing shipping and payment behavior, avoid adding an unnecessary checkout stage, and make the note available to order processing staff. Which approach best meets these requirements?

A B2B storefront uses the standard checkout flow with shipping, payment, and order review. Buyers have requested a delivery note field, and the business wants the note saved with the resulting order. The team must keep the existing shipping and payment behavior, avoid adding an unnecessary checkout stage, and make the note available to order processing staff. Which approach best meets these requirements?

Show Answer

Correct Answer

A

Option A is correct because it adds the requested information to the existing flow and stores it on the order without replacing shipping or payment behavior. Option B is not correct because rebuilding the full flow adds unnecessary work and risks changing standard checkout behavior. Option C is not correct because the request is to collect and retain the note during checkout. Option D is not correct because the note is unrelated to payment details.

Question 2 of 13 Multiple Choice

A distributor is updating its existing Salesforce B2B Commerce storefront. Some business accounts require a purchase order number at checkout, while other accounts do not. The current flow already validates shipping and payment and presents an order review step. The team must preserve those steps, make the purchase order number available on the order, and avoid requiring it from accounts that do not use purchase orders. Choose two.

A distributor is updating its existing Salesforce B2B Commerce storefront. Some business accounts require a purchase order number at checkout, while other accounts do not. The current flow already validates shipping and payment and presents an order review step. The team must preserve those steps, make the purchase order number available on the order, and avoid requiring it from accounts that do not use purchase orders. Choose two.

Select 2 answers, then check them.

Show Answer

Correct Answer

A, B

Options A and B are correct because account-specific collection meets the requirement, and saving the value with the order makes it available to staff. Option C is not correct because it imposes a requirement on accounts that do not use purchase orders. Option D is not correct because the business wants to retain order review. Option E is not correct because it leaves the required information out of the checkout process.

2

Reference Implementations

15% of the exam

This topic covers how Salesforce checkout and payment reference implementations use supported actions to carry out commerce operations. Candidates must identify the appropriate action for a given transaction state and apply the reference implementation behavior without substituting an action that changes the payment outcome.

Question 3 of 13 Single Choice

A B2B retailer uses a payment gateway adapter based on Salesforce's payment reference implementation. The checkout has obtained an authorization for an order, but warehouse review finds that the order cannot be fulfilled. The retailer must release the authorization and must not collect funds or retain the payment credential for later use. Which payment action should the adapter invoke?

Which payment action should the gateway reference implementation use?

Show Answer

Correct Answer

B

Option B is correct because the payment is authorized but not captured, so voidAuth releases the authorization. Option A, refund, applies after funds have been captured. Option C, capture, collects funds rather than releasing the hold. Option D, tokenize, stores a payment credential and does not cancel the authorization.

Question 4 of 13 Multiple Choice

A distributor is connecting its payment provider through a Salesforce payment gateway reference implementation. Its payment policy requires authorization at checkout, capture only after the warehouse confirms shipment, and a return of funds when an already settled order is returned. The implementation must also avoid charging a buyer when storing a payment credential. Which three action mappings meet these requirements?

Choose three action mappings that align with the payment reference implementation.

Select 3 answers, then check them.

Show Answer

Correct Answer

A, B, C

Options A, B, and C are correct because authorize places the hold, capture collects funds after shipment, and refund returns funds from a settled transaction. Option D is not correct because an uncaptured authorization is released with voidAuth. Option E is not correct because capture charges the payment, while tokenization is used to store a credential without charging it.

3

Basic Lightning Web Component Development

20% of the exam

This topic covers building and enhancing storefront Lightning Web Components with public properties, template directives, and component events. Candidates must select patterns that fit a component's role and communicate correctly within a storefront page.

Question 5 of 13 Single Choice

A storefront team has added a custom promotional banner to a B2B Commerce experience site. The banner currently displays text that is hard-coded in the component, and a store manager needs to update that text for seasonal campaigns in Experience Builder. The component is already placed on the page, and the team wants to keep the change limited to the component's public configuration.

Which implementation allows the store manager to configure the banner text in Experience Builder?

Show Answer

Correct Answer

B

Option B is correct because the store manager needs to configure the banner text in Experience Builder, so the component must expose a public property in its metadata and declare the matching JavaScript field with @api. Option A is not correct because a private field cannot be set by Experience Builder. Option C is not correct because an HTML attribute alone does not expose a component property. Option D is not correct because CSS controls presentation, not configurable component data.

Question 6 of 13 Multiple Choice

A B2B storefront uses a product card child component inside a parent component that manages a comparison list. When a shopper selects a card, the parent must receive that product's identifier and add it to the list. The card component should remain reusable on other pages, and the implementation must use standard Lightning Web Component communication rather than direct DOM manipulation.

Choose two. Which changes correctly let the product card notify its parent component when a shopper selects a product?

Select 2 answers, then check them.

Show Answer

Correct Answer

A, C

Options A and C are correct because the child can dispatch productselect with the selected identifier in detail, and the parent can handle that event through onproductselect. Option B is not correct because onclick listens for a click event, not the named custom event. Options D and E are not correct because querying a parent handler or changing a child property does not provide the intended event communication. Option F uses uppercase characters in the custom event name.

Question 7 of 13 Single Choice

A storefront page displays a curated product group from an array already provided to a component. The page must show product cards when the array contains items and a short empty-state message when the array is empty. The team is updating the component template, wants to avoid direct DOM updates, and can add a simple getter to the component JavaScript.

Which approach correctly displays product cards when products are available and a message when none are available?

Show Answer

Correct Answer

A

Option A is correct because the component can evaluate its hasProducts getter and use lwc:if with a sibling lwc:else template to select the displayed content. Option B is not correct because it uses the older conditional directives and does not pair the alternatives with lwc:else. Option C is not correct because lwc:else must be on a template element. Option D is not correct because direct innerHTML changes are not the standard LWC rendering pattern.

4

Advanced Lightning Web Component Development

30% of the exam

This topic covers advanced techniques for building custom Lightning Web Components for a B2B Commerce storefront. Candidates must choose suitable component communication patterns and manage component behavior across its lifecycle.

Question 8 of 13 Single Choice

A storefront team has added a recently viewed product panel and a separate promotion banner to an LWR B2B Commerce page. They are rendered under different layout regions, so neither is a descendant of the other, and the parent layout must remain unchanged. When a shopper selects a product, the banner must receive its product identifier without adding Apex calls or coupling the components to a shared ancestor.

Which implementation best meets the communication requirement?

Show Answer

Correct Answer

A

Option A is correct because Lightning Message Service lets unrelated components exchange messages through a custom channel without changing the parent layout. Option B is not correct because a bubbling DOM event cannot travel between unrelated component branches. Option C is not correct because shared module state is not a supported substitute for component messaging. Option D is not correct because window events bypass the supported messaging API.

Question 9 of 13 Multiple Choice

A custom availability badge on an LWR B2B Commerce storefront subscribes to a Lightning Message Channel so it can update when another component publishes an inventory change. The page can remove and reinsert the badge when shoppers switch catalog views. The team needs each active badge instance to process a message once and must avoid leaving obsolete listeners behind.

Choose two actions that will manage the Lightning Message Service subscription correctly.

Select 2 answers, then check them.

Show Answer

Correct Answer

A, B

Options A and B are correct because retaining the subscription allows the component to unsubscribe when removed and prevents duplicate subscriptions during its lifetime. Option C is not correct because renderedCallback can run repeatedly and create duplicate listeners. Option D is not correct because unsubscribe requires the subscription object. Option E is not correct because the wired message context is not available in the constructor.

5

Data Management

15% of the exam

This topic covers the Salesforce records and relationships used to organize products and make pricing available in a B2B storefront. Candidates must be able to select appropriate data relationships and account for parent records when loading related data.

Question 10 of 13 Multiple Choice

A B2B storefront already displays a product from its assigned catalog. A buyer account belongs to the correct buyer group, and the group can see the product at its standard price. The sales team has created a separate price book containing negotiated prices, but the account still sees the standard price. The product and buyer group records are active.

Choose two. Which data changes will provide the buyer group with the negotiated product price?

Select 2 answers, then check them.

Show Answer

Correct Answer

A, C

Options A and C are correct because the product needs a PricebookEntry in the negotiated price book, and that price book must be associated with the buyer group. Option B duplicates an existing category relationship and does not change pricing. Option D uses a field that does not store product prices. Option E bypasses the buyer group price book relationship.

Question 11 of 13 Single Choice

An ERP integration is preparing an initial catalog load for a new B2B storefront. The same product may appear in several Salesforce storefront categories, and the integration must preserve one Salesforce product record for each ERP product. The Product2 and ProductCategory records will be created from ERP data, and the category assignments must remain maintainable as the catalog changes.

A data integration must load products into Salesforce categories without duplicating products that appear in more than one category. Which approach should the developer use?

Show Answer

Correct Answer

B

Option B is correct because ProductCategoryProduct connects existing Product2 and ProductCategory records, allowing one product to belong to multiple categories without duplication. Option A stores category text rather than a category relationship. Option C attempts to create junction records before their parents exist. Option D associates products with price books, not categories.

6

Error Handling and Diagnostics

10% of the exam

This topic covers diagnosing errors in a Salesforce B2B Commerce system with platform and browser tools. Candidates must use evidence such as Apex debug logs, job status, and storefront requests to narrow down where a failure occurs.

Question 12 of 13 Single Choice

A buyer reports that selecting a custom storefront action sometimes produces a generic error message. The issue occurs for authenticated users, and the custom action invokes an Apex service. No trace flag is active for the affected user, and the developer needs evidence from a reproduction before changing code.

Which action is the best first step to determine whether the failure occurs in the server-side Apex operation?

Show Answer

Correct Answer

B

Option B is correct because the trace flag captures Apex execution for the affected user during a reproduction, which can expose a server-side exception. Option A does not reveal the cause of an Apex failure. Option C changes access for a different user context. Option D may show recent deployments but does not capture the failed operation.

Question 13 of 13 Multiple Choice

A B2B Commerce storefront submits an asynchronous Apex job after a buyer completes an account-level request. Some requests finish, while others remain failed, and the storefront shows only a general message. The developer can reproduce the issue by submitting a request, but needs to identify the job outcome and capture details from its execution.

Choose two. Which diagnostic sources should the developer use to investigate the failed asynchronous processing?

Select 2 answers, then check them.

Show Answer

Correct Answer

A, C

Options A and C are correct because the Apex Jobs page can show a failed job’s status and error details, while a trace flag can capture execution during a reproduction. Option B shows rendered page content, not an asynchronous Apex stack trace. Option D does not provide full job exceptions. Option E does not rerun a Queueable job.

Continue Your B2B-Commerce-Developer Preparation

You have seen 13 questions from a full set of 221. Prepare with the B2B-Commerce-Developer dumps PDF and the Web-Based Practice Test.

PDF

  • Compatible with All Devices
  • Printable Format
  • No Download Limits

Practice Test

  • Check your timing and weak areas
  • No Practice Limits
  • Regularly Updated
Get Full Access
  • 100% Money-Back Guarantee
  • 90 Days Free Updates
  • Instant Access

Frequently Asked Questions

What makes checkout and payment questions difficult on B2B-Commerce-Developer?

These questions test more than the order of checkout steps. You need to choose a customization that meets a business requirement while preserving the standard steps buyers need to complete an order. Payment reference implementations add a separate challenge because the supported action must fit the transaction state. Review each scenario by identifying the current state first, then decide which action preserves the intended payment outcome.

How demanding are the Lightning Web Component topics?

Lightning Web Components account for half of the listed topic weighting, with advanced development alone covering 30 percent. Questions can require you to distinguish public properties and template directives from component events, then select a communication pattern or lifecycle behavior suited to the component's role. Do not study these as isolated definitions. Practise tracing how a storefront component receives data, responds to change, and communicates with other components.

Why can reading about reference implementations fail to prepare me for the scenarios?

A common preparation gap is memorizing action names without connecting them to the transaction state and resulting payment behavior. The exam topic specifically asks candidates to identify an appropriate supported action, not to substitute one that changes the outcome. The Exam4Success PDF can support focused review away from a development environment. For each reference implementation concept, write down the state, the suitable action, and the behavior it should preserve.

What often makes B2B Commerce error diagnosis feel confusing?

Failures can appear in different parts of the system, so a storefront symptom alone may not reveal where the problem began. This exam expects you to use evidence from Apex debug logs, job status, and storefront requests to narrow down the failure. Candidates can lose time by checking tools without a specific question in mind. Practise matching each piece of evidence to the layer it can help investigate, then follow the evidence before changing code.

What practical development skills does this credential focus on?

The exam is aimed at developers working with Salesforce B2B Commerce storefronts. Its topics bring together checkout customization, payment reference behavior, Lightning Web Components, product and pricing data relationships, and platform diagnostics. That mix reflects the work of extending a storefront while respecting standard commerce behavior. Use the topic outline to identify which of these responsibilities you already handle and which ones you want to strengthen through targeted exercises.

Will this exam help me demonstrate that I can build more than storefront components?

Yes, its coverage extends beyond component construction. Candidates also need to reason about checkout flow changes, supported payment actions, product and pricing relationships, and troubleshooting evidence. The advanced Lightning Web Component section is substantial, but focusing only on code patterns would leave important areas untouched. To build a balanced preparation plan, map a recent B2B Commerce task you have handled to each exam topic and flag any area where your experience is limited.

How can I tell if I am ready for the 75-minute exam?

Readiness means being able to make topic-based decisions under time pressure, not just recall terminology. The exam has 60 questions and may include up to 5 additional unscored questions, with a stated passing score of 68 percent. The Exam4Success Practice Test format can help you check pacing and identify weak topics. After a timed attempt, review missed answers by topic and choose one area for focused revision before repeating the exercise.

Where should I begin if I am new to Salesforce B2B Commerce development?

Start with the topic weights and give advanced Lightning Web Component development the largest share of your study time, followed by basic component development. Then build familiarity with checkout flow changes, reference implementation actions, data relationships, and error diagnostics. The exam is delivered in English at a testing center or online in a proctored environment. Use the Exam4Success PDF to structure topic review, and practise applying each concept to a storefront scenario.

Exam4Success is an independent exam preparation provider and is not affiliated with or endorsed by Salesforce.