Free AP-202 sample questions
Real questions from the B2B Commerce for Developers Accredited Professional practice bank, with the correct answer and an explanation for each one. No junk, no filler.
Try them in the simulator Same questions, with study, timed and flashcard modes.
Showing 10 of 20 free sample questions.
A developer is tasked with extending the standard B2B Commerce payment processing logic. The requirement is to perform a fraud check with an external service before authorizing the payment. Which reference implementation should the developer extend to incorporate this custom logic?
To improve the user experience on the Product List Page (PLP), a developer has been asked to add a 'Compare' feature. This feature requires communication between multiple, independent `productTile` LWCs and a central `productCompare` LWC located in the page header. Which two of the following are the most appropriate and scalable mechanisms for the `productTile` components to notify the `productCompare` component when a product is selected for comparison? (Select TWO)
A developer has modified an existing LWC on the cart page to display custom promotional messages. After deploying the changes, the component works correctly for authenticated users but fails to load for guest users, causing the entire cart page to show an error. The browser console shows a '403 Forbidden' error when the component's Apex controller is called. What is the most likely cause of this issue?
True or False: When creating a new custom field on the `Product2` object to store technical specifications, this field will automatically be available to be displayed on the Product Detail Page through standard components without any further configuration.
**Case Study: 'Helios Energy Solutions' Storefront Optimization** **Company Background:** Helios Energy Solutions provides advanced solar panel components to a network of certified installers. Their B2B Commerce storefront is built on the Aura template and has been live for two years. They manage a complex catalog of over 5,000 products with tiered pricing and availability rules based on installer certification levels (Bronze, Silver, Gold). **Current Situation:** The marketing team wants to launch a new feature: 'Project Kits'. A Project Kit is not a standard product but a collection of products (e.g., 10 panels, 1 inverter, 1 mounting kit) that can be added to the cart with a single click. The components of a kit should be priced individually based on the installer's tier, but a 5% discount should be applied to each item if purchased as part of the kit. The contents of a kit are defined by the marketing team and change frequently. **Technical Requirements:** 1. The 'Project Kits' must be displayed on a new, dedicated page in the storefront. 2. When a kit is added to the cart, all individual component products must be added as separate cart line items. 3. A 5% adjustment must be applied to the price of each component line item originating from a kit. 4. The solution must be manageable by a non-technical marketing user for creating and updating kits. 5. The solution must scale and not negatively impact the performance of the cart and checkout process. **Problem:** The development team is debating the best architectural approach to meet these requirements. Which of the following proposals represents the most scalable and maintainable solution using B2B Commerce best practices?
A developer needs to modify the display of product prices to include a 'Price Per Unit' calculation (e.g., '$2.50 / kg') alongside the total price. This calculation must be applied consistently across the Product List Page, Product Detail Page, and Cart. Which is the most appropriate and maintainable approach to implement this?
A storefront's checkout flow is failing intermittently with a `LimitException: Too many SOQL queries: 101`. A review of the debug logs points to a custom extension in the pricing service that is being invoked for each cart line item during checkout. The extension calculates custom discounts by querying related Account and Contract records. What is the most effective way to resolve this governor limit error?
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?
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?
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.