ExamDumpster

Free AP-202 sample questions

Work through these free AP-202 sample questions, each with an answer and an explanation. You will see new Lightning Web Components, checkout flows and commerce data. Read the explanation for any you miss, then try that change in your own storefront.

Try them in the simulator Same questions, with study, timed and flashcard modes.

Showing 10 of 20 free sample questions.

Question 1Choose one

A developer needs to ensure that when a buyer's `Cart` is activated, a custom `Cart_Audit__c` record is created to log the cart details for reporting. This logic must execute regardless of how the cart is activated (e.g., via the UI, API, or another automated process). What is the most reliable way to implement this requirement?

Question 2Choose one

A business requires that shipping costs be calculated by a third-party logistics provider's API during checkout. The API requires the cart items' weight, dimensions, and the destination address. Which B2B Commerce reference implementation provides the correct interface to implement this external callout?

Question 3Choose one

A developer is building a custom Lightning Web Component to display product details. To fetch the product data, the developer uses the `@wire` decorator with the `getRecord` adapter from `lightning/uiRecordApi`. The business has now requested that the component include a 'Refresh' button to manually refetch the latest product data from the server. How can the developer implement this refresh functionality?

Question 4Choose one

A developer needs to create a custom checkout flow step that collects delivery instructions from the buyer. Which of the following components is essential for making a custom LWC available as a screen component within the Flow Builder?

Question 5Choose one

**Case Study: 'Cascade Chemical Corp' Data Migration** **Company Background:** Cascade Chemical Corp is a large chemical supplier migrating its B2B operations to Salesforce B2B Commerce. They have a complex data structure in their legacy ERP system that needs to be imported into Salesforce. **Data Migration Requirements:** 1. **Products:** 50,000 `Product2` records with multiple images and specification documents stored in Salesforce CMS. 2. **Buyer Accounts:** 5,000 `Account` records with related `Contacts`. 3. **Price Books:** 200 `Pricebook2` records, each with thousands of `PricebookEntry` records linking products to prices. 4. **Entitlement Policies:** A complex matrix where specific Buyer Accounts are entitled to purchase specific Product Categories from specific Catalogs. 5. **Data Relationships:** The integrity of relationships between Accounts, Entitlement Policies, Catalogs, and Price Books is critical for the store to function correctly. **Technical Challenge:** The implementation team needs to perform the initial data load efficiently and ensure all relationships are correctly established. The process must be repeatable for testing in different sandboxes before the production deployment. The team is considering various tools and methods for this complex data loading task. **Question:** Given the complexity and inter-dependencies of the B2B Commerce data model, which of the following represents the most effective and reliable strategy for this data migration? erDiagram BUYER_ACCOUNT ||--|{ CONTACT : has BUYER_ACCOUNT ||--o{ WEBSTORE_BUYER_GROUP : memberOf WEBSTORE_BUYER_GROUP ||--|{ ENTITLEMENT_POLICY : has ENTITLEMENT_POLICY ||--|{ PRODUCT_CATALOG : grantsAccessTo PRODUCT_CATALOG ||--|{ PRICEBOOK2 : uses PRODUCT2 ||--|{ PRICEBOOK_ENTRY : hasPriceIn PRICEBOOK2 ||--|{ PRICEBOOK_ENTRY : contains PRODUCT_CATEGORY ||--o{ PRODUCT2 : contains

Question 6Choose one

A developer has created a custom LWC to be used on the B2B Commerce home page. The component needs to access the ID of the current `WebStore`. Which is the standard, most efficient way for the LWC to obtain the `WebStoreId`?

Question 7Choose 2

What are the primary responsibilities of the `ccrz.cc_hk_Pricing` service extension class in the B2B Commerce (CloudCraze) framework? (Select TWO)

Question 8Choose one

A developer is writing a Jest test for a Lightning Web Component that displays product information. The component uses the `@wire` service to call an Apex method `getProductDetails`. How should the developer mock the data returned by the wired Apex method in the Jest test?

Question 9Choose one

True or False: The B2B Commerce Search index is updated in real-time, meaning that a new product becomes searchable the instant its `IsActive` flag is set to true.

Question 10Choose one

During checkout, a developer needs to validate that the total quantity of a specific product category ('Hazardous Materials') does not exceed a limit defined on the buyer's Account record. This validation must prevent the user from proceeding to the payment step. Where should this validation logic be implemented?

10 more free samples are waiting

Create a free account to unlock the whole AP-202 sample bank, or get full access to all 179 practice questions in the simulator.

Create account