All Practice Exams

100+ Free Salesforce B2B Commerce Developer AP Practice Questions

Pass your Salesforce B2B Commerce for Developers Accredited Professional (AP-202) exam on the first try — instant access, no signup required.

✓ No registration✓ No credit card✓ No hidden fees✓ Start practicing immediately
Salesforce does not publish a public pass rate Pass Rate
100+ Questions
100% Free
1 / 100
Question 1
Score: 0/0

Which standard Salesforce object represents an instance of a Lightning B2B Commerce storefront?

A
B
C
D
to track
2026 Statistics

Key Facts: Salesforce B2B Commerce Developer AP Exam

50

Questions

Salesforce AP-202 exam guide

90 min

Time Limit

Salesforce AP-202 exam guide

70%

Passing Score

Salesforce AP-202 exam guide

$200

Exam Fee

Salesforce / Trailhead Academy (retake $100)

Online

Delivery

Trailhead Academy online proctored

1+ yr

Recommended Experience

Salesforce candidate description

The Salesforce B2B Commerce for Developers Accredited Professional (AP-202) exam has 50 multiple-choice/multiple-select questions delivered in 90 minutes through Trailhead Academy online proctoring. The passing score is 70% and registration costs USD $200 (retake $100); no reference materials are allowed. Salesforce recommends one or more years of B2B Commerce development experience on the Salesforce Platform and working knowledge of Apex, SOQL, Lightning Web Components, the Connect REST API, and the Cart Calculation extension framework. The exam targets developers, consultants and system integrators delivering Lightning B2B Commerce projects.

Sample Salesforce B2B Commerce Developer AP Practice Questions

Try these sample questions to test your Salesforce B2B Commerce Developer AP exam readiness. Each question includes a detailed explanation. Start the interactive quiz above for the full 100+ question experience with AI tutoring.

1Which standard Salesforce object represents an instance of a Lightning B2B Commerce storefront?
A.CommerceStore
B.WebStore
C.B2BSite
D.Storefront
Explanation: WebStore is the standard sObject that represents a single B2B (or B2C) Commerce store. Each WebStore record holds the storefront's name, type, default currency, default language, and is linked via WebStoreNetwork to its Experience Cloud site, via WebStoreCatalog to its catalog, and via WebStoreBuyerGroup to its eligible buyer groups.
2In Lightning B2B Commerce, which object links a Buyer Group to the WebStores it can shop on?
A.WebStoreBuyerGroup
B.BuyerGroupMember
C.WebStoreNetwork
D.BuyerGroupCatalog
Explanation: WebStoreBuyerGroup is the junction object between WebStore and BuyerGroup. A BuyerGroup may be associated with multiple WebStores and a WebStore may grant access to multiple BuyerGroups. BuyerGroupMember links accounts to a buyer group, and BuyerGroupCatalog (or BuyerGroupPricebook) controls catalog/price visibility, but neither links a buyer group to a store.
3Which sObject controls which products a Buyer Group is allowed to purchase?
A.EntitlementPolicy
B.ProductCategory
C.Product2Permission
D.BuyerProduct
Explanation: EntitlementPolicy (with related EntitlementProduct child rows) defines which products a Buyer Group is entitled to see and purchase. The policy is associated with the Buyer Group through CommerceEntitlementBuyerGroup. Without an entitlement policy granting the buyer group access, products are not visible on the storefront.
4A developer must show different prices to two buyer groups for the same product. Which configuration achieves this with no Apex?
A.Single Pricebook2 with different PricebookEntry per buyer group
B.Separate Pricebook2 records assigned to each BuyerGroup via BuyerGroupPricebook
C.Custom field on Product2 storing per-group prices
D.Apex price calculator overriding base price
Explanation: Lightning B2B Commerce supports per-buyer-group pricing by associating different Pricebook2 records with each BuyerGroup through BuyerGroupPricebook. Each pricebook contains its own PricebookEntry rows. PricebookEntry is unique per Pricebook + Product2, so 'different PricebookEntry per buyer group' on a single pricebook is not possible. Apex extensions are only needed for more advanced rules (tiered, contract, negotiated).
5Which Salesforce object represents the active shopping cart of a buyer in B2B Commerce?
A.WebCart
B.Cart__c
C.CommerceCart
D.ActiveCart
Explanation: WebCart is the standard sObject for the buyer's active cart in Lightning B2B (and B2C) Commerce. CartItem (also a standard sObject) holds individual line items. ConnectApi.CommerceCart is the Apex namespace for cart REST operations — not an sObject.
6Which pair of objects represents an order placed from B2B Commerce after checkout?
A.Order and OrderItem only
B.OrderSummary and OrderItemSummary, alongside the underlying Order/OrderItem
C.WebCart and CartItem (converted)
D.CommerceOrder and CommerceOrderItem
Explanation: When a B2B Commerce checkout completes, Salesforce creates an Order/OrderItem (the source of record) and a paired OrderSummary/OrderItemSummary that participates in Order Management lifecycle (fulfillment, returns, invoices). Storefront flows and Order Management consume the *Summary objects; the original Order is largely immutable post-creation.
7A developer needs to assign a buyer's user to a specific buyer account so personalized pricing applies. Which object holds the relationship between a Buyer User (Contact) and their Buyer Account?
A.BuyerAccount
B.AccountContactRelation
C.BuyerGroupMember
D.User.AccountId via the underlying Contact
Explanation: A buyer user is a Customer Community / Buyer-licensed User tied to a Contact, which in turn is tied to an Account marked as a Buyer Account (via the BuyerAccount object). The buyer's pricing and entitlements flow from User -> Contact.AccountId -> BuyerAccount. AccountContactRelation supports many-to-many but is not how the storefront resolves the active buyer's account; that comes from the User's primary contact.
8What is the role of the BuyerAccount object?
A.Stores cart contents for guest users
B.Marks an Account record as a B2B Commerce buyer account and stores buyer-specific settings (e.g., status, tax exempt)
C.Holds buyer login credentials
D.Replaces the Account object for B2B
Explanation: BuyerAccount is a related object that 'flags' a standard Account as a buyer in B2B Commerce. It carries B2B-specific fields like BuyerStatus and TaxExemptCustomerStatus. The underlying Account, Contact, and User records remain standard.
9Which object models the catalog hierarchy assigned to a WebStore?
A.ProductCatalog and ProductCategory, joined to the store via WebStoreCatalog
B.Catalog__c and Category__c
C.WebStore.CatalogId direct lookup only
D.CommerceCatalog with embedded categories
Explanation: ProductCatalog is the top-level catalog. ProductCategory rows form the tree under it (with ParentCategoryId for hierarchy). Products are added to categories via ProductCategoryProduct. The catalog is bound to a store with WebStoreCatalog, allowing different stores to share or differ catalog assignments.
10Which object stores per-language and per-locale translations of product fields like Name and Description?
A.Translation Workbench only
B.ProductTranslation and ProductCategoryTranslation
C.Product2.LocaleData JSON field
D.Product2 child records via __l record types
Explanation: Lightning B2B Commerce uses ProductTranslation (and ProductCategoryTranslation, ProductAttributeTranslation, etc.) sObjects to localize storefront content per Language. The store's supported languages are set on WebStore, and Salesforce returns the buyer's effective language based on their session.

About the Salesforce B2B Commerce Developer AP Exam

The Salesforce B2B Commerce for Developers Accredited Professional (AP-202) credential validates the skills needed to build and customize storefronts on Lightning B2B Commerce. The exam emphasizes the modern LWR (Lightning Web Runtime) stack, the WebStore data model (Buyer Group, Buyer Account, Catalog, Pricebook, Entitlement Policy, Product2, Cart, Order Summary), Cart Calculation Apex extensions for Pricing, Promotion, Inventory, Shipping and Tax, custom Lightning Web Components inside Experience Builder, Connect REST and Commerce APIs, payment gateway integration, search and promotions, Order Management, and migration paths from the legacy CC Razor (Handlebars) B2B Commerce stack.

Assessment

50 multiple-choice/multiple-select questions delivered online and proctored through Trailhead Academy

Time Limit

90 minutes

Passing Score

70%

Exam Fee

$200 USD (retake $100) (Salesforce Trailhead Academy (online proctored))

Salesforce B2B Commerce Developer AP Exam Content Outline

~25%

Data Management and B2B Commerce Data Model

WebStore configuration, Buyer Group, Buyer Account, Catalog and ProductCategory, Product2, Pricebook2 / PricebookEntry, Entitlement Policy and Entitlement Product, Cart and CartItem, Order and OrderSummary, sharing and visibility, Buyer-to-Account relationships, and reference data loaders.

~20%

LWC and Storefront (LWR) Development

Building custom Lightning Web Components for B2B Commerce, the LWR Experience Builder, page variations, theme layouts, Public Commerce LWR Library, accessing context (sessionContextApi, productApi), wire adapters from commerce/* modules, and progressive enhancement vs SSR/CSR considerations.

~25%

Cart and Checkout Flow Development

Checkout Flow customization with the CheckoutComponent, sub-flows, the Cart Calculation framework, Apex Type extensions for Pricing, Promotion, Inventory, Shipping and Tax, registering extensions on the WebStore, integration sub-flows, payment authorization, and order placement via Connect REST API.

~15%

Reference Implementations and Integration

Connect REST API and Commerce APIs (Search, Pricing, Cart, Checkout, Order), payment gateway adapters (Apex implementations of CommercePayments.PaymentGatewayAdapter), tax/shipping provider integrations, Order Management hand-off, and considerations when migrating from legacy CC Razor (Handlebars) to Lightning B2B Commerce.

~15%

Error Handling, Diagnostics and Search

Debug logs, Apex Job monitoring, cart calculation pipeline status (Computed/Failed/Processing), search index management, search results customization, Einstein for Commerce considerations, promotion/coupon engine debugging, governor limits, and idempotent retry patterns.

How to Pass the Salesforce B2B Commerce Developer AP Exam

What You Need to Know

  • Passing score: 70%
  • Assessment: 50 multiple-choice/multiple-select questions delivered online and proctored through Trailhead Academy
  • Time limit: 90 minutes
  • Exam fee: $200 USD (retake $100)

Keys to Passing

  • Complete 500+ practice questions
  • Score 80%+ consistently before scheduling
  • Focus on highest-weighted sections
  • Use our AI tutor for tough concepts

Salesforce B2B Commerce Developer AP Study Tips from Top Performers

1Build a scratch org with the B2B Commerce features enabled, create a WebStore via the Commerce App, and load reference Aloha data with the Quickstart so you can practice the full data model.
2Master the five Cart Calculation calculator Type classes (Pricing, Promotion, Inventory, Shipping, Tax) — know which abstract class each extends, the run() signature, and how Salesforce invokes them in sequence.
3Practice registering a Cart Calculation extension: create the Apex class, deploy it, then map it to the WebStore via Setup or the WebStoreCartExt object so Salesforce calls your code.
4Memorize the canonical B2B Commerce objects: WebStore, WebStoreBuyerGroup, BuyerGroup, BuyerAccount, ProductCatalog, ProductCategory, Product2, Pricebook2, PricebookEntry, EntitlementPolicy, EntitlementProduct, WebCart, CartItem, OrderSummary.
5Know the Connect REST API endpoints under /services/data/vXX.X/commerce/webstores/{webstoreId}/ — products, search, carts, checkouts, orders — and which Apex ConnectApi.CommerceCart and ConnectApi.CommerceCatalog methods mirror them.
6Walk through a CheckoutComponent customization: copy the standard checkout flow, add a sub-flow, replace a step (shipping, tax, payment), and trigger the integration sub-flow that calls your Apex.
7Understand payment gateway adapters: implement CommercePayments.PaymentGatewayAdapter, register PaymentGateway and PaymentGatewayProvider records, and know which methods (authorize, capture, sale, refund, void, tokenize) you must support.
8Review the Public Commerce LWR Library — sessionContextApi, productApi, and cart wire adapters are commonly tested for retrieving live storefront context inside custom LWCs.

Frequently Asked Questions

How many questions are on the AP-202 B2B Commerce Developer exam?

The exam has 50 multiple-choice and multiple-select questions delivered in 90 minutes. It is online proctored through Trailhead Academy and no hard-copy or online reference materials may be used during the exam.

What is the passing score and fee for AP-202?

The passing score is 70%. Registration is USD $200 plus applicable taxes, and the retake fee is USD $100. Each retake requires a fresh registration through Trailhead Academy with a mandatory waiting period between attempts.

Does AP-202 cover legacy CC Razor B2B Commerce or only Lightning B2B Commerce?

The current AP-202 exam focuses on Lightning B2B Commerce — the modern LWR-based stack with the WebStore data model, Apex Cart Calculation extensions, and Lightning Web Components. Legacy CC Razor / Handlebars knowledge may appear in a small number of awareness-level or migration questions, but the bulk of the exam targets the modern platform.

What experience does Salesforce recommend before sitting AP-202?

Salesforce recommends at least one year of B2B Commerce development experience on the Salesforce Platform, comfort with Apex, SOQL, DML, Lightning Web Components, the Connect REST API, and the Cart Calculation extension framework. Holding the Platform Developer I credential is also recommended.

What are Cart Calculation extensions in B2B Commerce?

Cart Calculation extensions are Apex classes that extend the abstract Type classes (CartExtension.PricingCartCalculator, CartExtension.PromotionsCartCalculator, CartExtension.InventoryCartCalculator, CartExtension.ShippingCartCalculator, CartExtension.TaxCartCalculator). You register them on the WebStore so Salesforce invokes your code during cart calculation to apply custom pricing, promotions, inventory checks, shipping rates, and taxes.

Which APIs power headless B2B Commerce storefronts?

Salesforce exposes the Connect REST API (commerce/webstores/{id}/...) and the Commerce APIs (Search, Cart, Checkout, Pricing, Order) for headless B2B Commerce. These same APIs back the LWR-based storefront. For server-side integrations you can also call the related Apex equivalents in the ConnectApi namespace.

Is the Salesforce Platform Developer I a prerequisite for AP-202?

No formal prerequisite is required. However, Salesforce strongly recommends that candidates already hold the Salesforce Certified Platform Developer I credential because the AP-202 exam assumes deep Apex, SOQL, DML, and Lightning Web Component knowledge.