IT Certifications · AP-202

Salesforce B2B Commerce Developer AP Exam Practice Test

The Salesforce B2B Commerce Developer AP exam practice page focuses on technical decisions involved in extending buyer-facing storefronts. The available questions touch on Lightning Web Component accessibility, reusable business logic, Apex services, product data integration, custom domains, deployment packaging, and secure handling of commerce operations.

Exam overview

Exam providerSalesforce
Exam codeAP-202
CategoryIT Certifications

About the Salesforce B2B Commerce Developer AP Exam

B2B Commerce development connects Salesforce data and server-side logic with storefront interactions and external services. Developers must consider how a component communicates with an Apex service, where shared rules should live, and how record access affects business operations. The practice scenarios also involve exposing custom product fields to integrations, configuring a secure custom domain, and packaging changes for release. Order submission and payment integrations add reliability and data-protection concerns: idempotency can help prevent duplicate fulfillment actions, while sensitive payment details should be handled in ways that avoid unnecessary storage in custom records. Testing should account for users with different record permissions so services behave safely when access is limited. These subjects reflect practical implementation choices rather than verified official exam domains.

Sample Practice Questions

Review a selection from this exam's published US Practice Tests practice bank.

Question 1

A storefront uses a custom Lightning Web Component to display a product list. Which approach best supports accessible interaction for keyboard users?

  1. AUse semantic controls and ensure interactive elements can receive keyboard focus
  2. BRender all controls as noninteractive images with text alternatives
  3. CRemove visible focus indicators to keep the design minimal
  4. DRequire pointer input for every product action
Show answerCorrect answer: A

Semantic controls and keyboard-accessible focus behavior allow users who navigate without a pointer to operate the storefront. Images and hidden focus indicators do not provide equivalent interaction support.

Question 2

A team is choosing where to place a reusable business rule needed by multiple storefront entry points. Which design choice is generally preferable?

  1. AImplement the rule independently in every user-interface component.
  2. BPut the rule in a reusable server-side service or other appropriate shared layer.
  3. CEncode the rule in page styling so it cannot be changed by users.
  4. DStore the rule only in a comment for developers to interpret.
Show answerCorrect answer: B

A shared business-logic layer promotes consistent behavior across entry points and avoids duplicated implementations. The precise layer depends on the use case, but UI styling and comments are not substitutes for executable rules.

Question 3

A storefront needs a reusable server-side operation to validate a business rule before changing commerce data. Which design best supports reuse and maintainability?

  1. AEncapsulate the rule in a clearly scoped server-side service and have callers use that service
  2. BDuplicate the rule independently in each page component
  3. CEnforce the rule only through client-side styling
  4. DPut the rule in a comment for future developers
Show answerCorrect answer: A

A shared server-side service provides a consistent enforcement point for callers and avoids duplicated logic. Client-side presentation alone cannot be relied on to enforce a business rule.

Question 4

An administrator wants a buyer-facing storefront to use a custom domain with HTTPS. Which platform capability is most directly relevant to configuring the domain for a Salesforce site?

  1. ASalesforce domain and site configuration, including the appropriate custom domain setup
  2. BA product category sort order
  3. CAn Apex test execution setting
  4. DA cart item quantity rule
Show answerCorrect answer: A

A custom storefront domain and HTTPS are managed through Salesforce domain and site configuration, with the precise setup depending on the site architecture. Catalog ordering and cart rules do not configure the site’s hostname or transport security.

Question 5

A developer needs to add a custom field to product records and make it available to a storefront integration. Which step is necessary beyond creating the field?

  1. AEnsure the relevant integration user has permission to read the field
  2. BRename the field label to match the storefront route
  3. CAdd the field to every buyer account’s contact record
  4. DDisable field-level security for all users
Show answerCorrect answer: A

A field’s existence does not automatically make it accessible to the user executing an integration. Object and field permissions must allow the appropriate integration user to read it, while avoiding unnecessarily broad access.

Question 6

A B2B storefront feature is deployed through a release pipeline. What should the deployment package include to support a reliable release?

  1. AOnly the changed component, even if it depends on new configuration.
  2. BThe required code and its dependent metadata or configuration, validated in an appropriate target environment.
  3. CEvery metadata item in the organization, whether related or not.
  4. DA screenshot of the feature instead of deployable assets.
Show answerCorrect answer: B

A release should include the feature’s required dependencies and configuration, and it should be validated in the target environment. Omitting dependencies can cause deployment or runtime failures; including everything indiscriminately raises risk.

Question 7

A storefront component needs to call a server-side operation that performs a privileged business action. Which design principle is most important?

  1. ATrust all parameters supplied by the browser because the storefront is authenticated
  2. BValidate authorization and input on the server before performing the action
  3. CHide the button and assume that prevents direct requests
  4. DPut the privileged logic in client-side JavaScript only
Show answerCorrect answer: B

Client-side controls can be bypassed, so the server must validate both the caller’s authorization and the submitted data before carrying out a privileged operation.

How to use this practice test

Access the free question bank for a session of up to 20 random questions from the 50 published practice questions. After the session, review your results to identify which Salesforce Commerce development scenarios need closer attention, such as access-aware Apex tests, integration design, or storefront accessibility.

Preparation tips

  • Build or inspect a Lightning Web Component product list and check keyboard navigation, focus order, and accessible interaction patterns.
  • Trace a storefront action through its Apex service, identifying reusable business rules and the record-access checks required before changing commerce data.
  • Practice mapping a custom product field from Salesforce metadata through the integration path that makes it available to a storefront.
  • Sketch an order-integration flow that handles retries with idempotency and keeps sensitive payment data out of custom Salesforce records where possible.
  • Review how deployment packaging captures storefront components, Apex, metadata, and configuration needed to release a feature consistently.
Official sourceOfficial exam page ↗