Last Updated On : 7-Apr-2026


Salesforce Accredited B2B Commerce Developer - AP-202 Practice Test

Prepare with our free Salesforce Accredited B2B Commerce Developer - AP-202 sample questions and pass with confidence. Our B2B-Commerce-Developer practice test is designed to help you succeed on exam day.

211 Questions
Salesforce 2026

Which three statements are true regarding event handling in the Salesforce B2B Commerce managed package? (3 answers)

A. Salesforce B2B Commerce relies on a series of Javascript click listener events.

B. Writing directly to your own custom Backbone JS Views and Models automatically integrates that data into the Salesforce B2B Commerce Backbone Views and Models.

C. Salesforce B2B Commerce relies on a central event channel for communication across various Salesforce B2B Commerce Backbone Views and Models called CCRZ.pubSub.

D. CCRZ.pubSub defines the following three functions which can be used for event handling: trigger, on, and once.

E. CCRZ.pubSub extends the Backbone.Events JavaScript object

C.   Salesforce B2B Commerce relies on a central event channel for communication across various Salesforce B2B Commerce Backbone Views and Models called CCRZ.pubSub.
D.   CCRZ.pubSub defines the following three functions which can be used for event handling: trigger, on, and once.
E.   CCRZ.pubSub extends the Backbone.Events JavaScript object

Explanation:

These statements accurately describe the event handling architecture in the Salesforce B2B Commerce managed package:

C:
Salesforce B2B Commerce relies on a central event channel called CCRZ.pubSub for communication across various Backbone Views and Models. This pub/sub (publish/subscribe) pattern enables decoupled communication between components.

D:
defines the standard event handling functions: trigger (to publish events), on (to subscribe to events), and once (to subscribe to an event for a single occurrence). These are the core methods for event-driven communication.

E:
extends the Backbone.Events JavaScript object, which provides the event handling capabilities. This inheritance gives CCRZ.pubSub all the event methods from Backbone.Events.

Why the Other Options Are Incorrect:

A:
While JavaScript click listeners may exist in the UI, the B2B Commerce architecture primarily relies on the pubSub event channel for component communication, not a series of direct click listener events.

B:
Writing directly to custom Backbone Views and Models does not automatically integrate that data into the Salesforce B2B Commerce Backbone Views and Models. Custom data must be explicitly synchronized or communicated through proper channels like pubSub events.

Reference:
Salesforce B2B Commerce Developer Guide: Event Handling with CCRZ.pubSub

What two things happen with the Cart during tax implementation?

A. New entries are written to the Cart

B. Previous entries are copied to another object

C. Previous entries are deleted from the Cart

D. New entries are written to the Order Summary

A.   New entries are written to the Cart
C.   Previous entries are deleted from the Cart

Explanation:

In the Salesforce B2B Commerce (Lightning/LWR) checkout and tax integration framework, the system manages tax data by refreshing the associated records on the Cart object (specifically the CartTax records).

Writing New Entries (A):
After the tax engine (either the default or a custom integration via sfdc_checkout.CartTaxResources) calculates the new values based on the current cart state, it writes fresh entries back to the CartTax object, linking them to the appropriate Cart Item.

Deletion of Previous Entries (C):
Every time the tax calculation is triggered (e.g., when a user changes their shipping address or adds an item), the framework first clears out the existing tax data. This ensures that old, stale tax calculations do not persist if the order parameters have changed.

Why Other Options Are Incorrect

B. Previous entries are copied to another object:
There is no standard "archiving" or copying process for tax entries during the active checkout session. The data is simply recalculated to ensure accuracy.

D. New entries are written to the Order Summary:
While tax information eventually ends up on the Order Summary, this happens during the Order Placement (Convert Cart to Order) phase. During the Tax Implementation/Calculation phase of checkout, the data resides purely on the Cart and its child objects.

Developer Note for 2026:
When implementing the CartTaxResources interface, ensure your Apex logic correctly returns a CartTax object for every taxable line item, as the system relies on the "delete-then-reinsert" pattern to maintain the integrity of the total price.

Override and extend the autoComplete method in cc_hk_Catalog.

A. Override and extend the autoComplete method in cc_hk_Catalog.

B. Override theautoComplete.search_input.minLength value in the CCRZ.uiProperties file

C. Override the autocomplete template and create and register a new handlebars helper.

D. Update the...minLength property in CC Admin, then build and activate a new cache.

A.   Override and extend the autoComplete method in cc_hk_Catalog.

Explanation:

In Salesforce B2B Commerce, autocomplete (search suggestions) behavior is controlled server-side through Commerce service classes.

The class:
👉 cc_hk_Catalog
contains the autoComplete method responsible for:
* Processing search input
* Returning product/category suggestions
* Controlling autocomplete logic

When a developer needs to customize or extend autocomplete behavior, the correct approach is to:
* Create a subscriber extension.
* Override the autoComplete method.
* Extend the existing logic while preserving base functionality.

This follows B2B Commerce’s supported extension/override framework.

Why the Other Options Are Incorrect

B. Override the autoComplete.search_input.minLength in CCRZ.uiProperties
Incorrect. This only changes a UI configuration value (minimum characters before search). It does not extend or override autocomplete logic.

C. Override the autocomplete template and create a handlebars helper
Incorrect. Handlebars templates affect presentation only. They cannot modify backend autocomplete processing.

D. Update minLength in CC Admin and rebuild cache
Incorrect. Again, this changes configuration behavior only. It does not override or extend the autocomplete method itself.

Salesforce Concept Reference
B2B Commerce extensibility model:
* Hook classes (cc_hk_*)
* Subscriber overrides
* Delegate pattern for safe extensions

Typical customization areas:
* Search behavior
* Pricing
* Catalog logic

A developer suspects recent edits to a checkout flow have created a bug based on flow errors being emailed. Given the emails and some inputs known to trigger the issue, which two activities should the developer consider in their investigation?

A. Use the Org Browser tool in the IDE to download the flow XML and run a diff report

B. Look at the previous flow versions and compare them with the current one

C. Open the Flow, Select Debug, Provide the Inputs, Select Run

D. Open the Flow and select Attach to Live Session, Provide the Session Id, Select Attach

B.   Look at the previous flow versions and compare them with the current one
C.   Open the Flow, Select Debug, Provide the Inputs, Select Run

Explanation:

When troubleshooting checkout flow errors in Salesforce B2B Commerce, developers should focus on two key activities:

Compare flow versions (B):
Reviewing previous versions of the flow against the current one helps identify what changes may have introduced the bug. This is a standard debugging practice to isolate regressions.

Debug with inputs (C):
Using the Flow Debug tool allows the developer to simulate the flow with the same inputs that triggered the error. This provides visibility into where the flow fails and helps confirm the root cause.

Why the Other Options Are Incorrect

A. Use the Org Browser tool in the IDE to download the flow XML and run a diff report:
While technically possible, this is not the recommended or standard approach for debugging flows. Salesforce provides version comparison and debug tools directly.

D. Attach to Live Session:
Not a supported method for debugging flows. Flows are debugged using the built-in Debug option, not by attaching to live sessions.

Reference:
Salesforce Flow Debugging Guide: “Use the Debug option in Flow Builder to test flows with specific inputs. Compare flow versions to identify changes that may have introduced errors.”

Which three pages should be enabled for the Guest user profile for a storefront to have anonymous checkout? (3 answers)

A. CCPaymentInfo

B. CheckoutNew

C. OrderView

D. Checkout

E. OrderConfirmation

A.   CCPaymentInfo
D.   Checkout
E.   OrderConfirmation

Explanation:

To complete a purchase without logging in, the guest user must be able to navigate the final "funnel" of the checkout process. Each of these pages serves a specific technical role in that sequence:

A. CCPaymentInfo:
This page (often used as an iframe or a sub-component within the checkout flow) is responsible for capturing payment details, such as Credit Card info or PO numbers. For anonymous users, the profile must have explicit access to this page to successfully transmit sensitive payment data to the Salesforce backend.

D. Checkout:
This is the primary entry point for the checkout process. It handles the transition from the shopping cart to the shipping and billing entry screens. If the guest user does not have access to this page, they will be redirected to the login page as soon as they click "Checkout."

E. OrderConfirmation:
Once the transaction is successfully processed, the system redirects the user to the confirmation page. This page displays the final order number and summary. Without access to this page, a guest user would receive an "Authorization Required" error immediately after clicking "Place Order," even if the order was technically created in the database.

Detailed Analysis of Incorrect Answers

B. CheckoutNew:
This is incorrect. In the standard B2B Commerce for Visualforce managed package, CheckoutNew is generally a legacy or internal page. The standard, modern checkout flow uses the Checkout page. Enabling both or the wrong one can lead to routing issues.

C. OrderView:
This is incorrect. The OrderView page is typically used for the Order History feature within the "My Account" section. Since anonymous users do not have an account or a persistent login session to view past orders, they do not need access to OrderView. Their view of the specific order they just placed is handled by the OrderConfirmation page.

B2B-Commerce-Developer Exam Questions - Home Previous
Page 3 out of 43 Pages