10/179 questions · Unlock full access
Q1

A B2B Commerce storefront for 'Quantum Robotics' is experiencing slow load times on the Product Detail Page (PDP), especially for products with numerous specifications and downloadable assets. A performance audit reveals that an Apex controller for a custom LWC is making multiple, sequential SOQL queries to fetch product attributes, related documents, and entitlement policies. Which of the following refactoring approaches offers the most significant performance improvement?

Q2

A developer at 'Momentum Manufacturing' needs to build a custom LWC that allows buyers to reorder from a previous cart. The component must display a list of past carts and, upon selection, use the `B2B Reorder` API to create a new cart with the same items. What is the correct sequence of API calls and actions to implement this functionality?

Q3

A consultant is designing a solution for 'Apex Industrial Supplies' that requires different checkout experiences for two distinct buyer groups: 'High-Volume Resellers' and 'Standard Contractors'. The 'High-Volume Resellers' need a streamlined, one-page checkout, while 'Standard Contractors' require a multi-step process with a shipping address verification step. How should this be configured in B2B Commerce?

Q4

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?

Q5Multiple answers

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)

Q6

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?

Q7

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.

Q8

**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?

Q9

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?

Q10

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?