Exam Information
Free practice questions with explanations
Salesforce B2B-Commerce-Developer Practice Questions
Answer a question to see the correct answer and the explanation, or click Show answer. Newest questions first.
- Questions
- 11
- Answered
- 0
- Correct
- 0
- Score
- -
-
1 Question 1 Single choice Advanced Lightning Web Component Development
A B2B Commerce storefront team is building a custom Lightning Web Component that displays a real-time stock message on the product detail page. The component must call a server-side Apex method that returns inventory for up to 40 products per page load. The security team requires that buyers only see inventory for products their account is entitled to, and that the Apex method must not expose data across accounts. The developer wants the component to remain reusable across multiple storefronts and to avoid writing a custom authentication layer. Which implementation best meets these requirements?
Correct Answer: CExplanationMarking the Apex method with @AuraEnabled (cacheable where read-only) and using with sharing ensures the query runs under the buyer's record access and the platform's sharing model, which supports reuse across storefronts without a custom auth layer. Passing the account identifier from a public property lets the client choose the account, so it can't be trusted for entitlement. Without sharing bypasses record visibility, making a hard-coded entitlement list both fragile and insecure. Returning everything and filtering in the browser exposes cross-account data to anyone who inspects the response.
-
2 Question 2 Single choice Basic Lightning Web Component Development
A storefront developer is enhancing an existing Lightning Web Component that renders a product comparison table. Users report that after selecting a product, the table does not update when the parent component passes a new array of products. The developer has confirmed the parent is reassigning the array variable rather than mutating its contents. The component uses the standard reactive property model in Lightning Web Components. The developer needs a minimal change that keeps the component's public API unchanged and does not require a Lightning Data Service adapter. Which change should the developer make?
Correct Answer: EExplanationIn Lightning Web Components, a property decorated with @api is reactive when the parent reassigns it, which is exactly the scenario described and keeps the public API intact. The @track decorator is largely unnecessary for reassigned top-level values and does not fix a missing public binding. JSON round-tripping adds needless overhead and is not the reactive mechanism. Static resources and loadScript are for third-party libraries, and lwc:dom is a rendering directive unrelated to property reassignment.
-
3 Question 3 Single choice Checkout Flow Development
A wholesale company runs its B2B storefront on a standard checkout flow. Business requirements state that a shipping-method selection must be validated against the buyer's contracted carrier list before the buyer can proceed to payment, and the change must not break checkout for accounts that have no custom carrier contract. The team wants to keep the default checkout flow upgradeable and avoid copying the entire flow. Which approach best satisfies these constraints?
Correct Answer: AExplanationExtending the default checkout flow through its supported custom integration point keeps the standard flow upgradeable while letting the carrier check run at the shipping step. Conditioning the logic on the existence of a contract record satisfies the requirement that accounts without a custom contract are unaffected. Rebuilding the whole flow would lose upgradeability and duplicate standard behaviour. Hiding the step and forcing a carrier breaks buyer choice, and validating after payment is too late for the requirement.
-
4 Question 4 Single choice Data Management
A B2B distributor is migrating 2 million legacy price book entries from an ERP into a Salesforce B2B Commerce org during a weekend cutover window. The integration team must load the data without creating duplicate product or price book records on rerun, and the business wants to be able to reconcile loaded rows back to ERP keys. The org has a strict API call budget shared with other integrations. Which approach is the most appropriate for the load?
Correct Answer: BExplanationA Bulk API upsert keyed on a unique external ID lets reruns update existing rows instead of duplicating them, and the ERP key provides the reconciliation path. Bulk API processes large volumes efficiently within a limited API budget compared with individual REST calls. Inserting without a unique constraint invites duplicates that a later cleanup must fix. The Data Import Wizard is unsuited to two million rows and manual deletion is error-prone.
-
5 Question 5 Single choice Error Handling and Diagnostics
A buyer on a B2B storefront reports that adding a configurable bundle to the cart intermittently fails with a generic error message, but only for buyers in one account hierarchy. The developer has access to the Apex debug logs for the affected user, the Storefront Health check, and the Experience Builder preview. The developer needs to identify the failing server-side call without changing the code or granting extra permissions to the affected buyer. Which action should the developer take FIRST?
Correct Answer: DExplanationEnabling a debug log for the specific affected user captures the server-side context of the intermittent failure without modifying code or permissions, which is the first diagnostic step the scenario allows. Redeploying would destroy the evidence and is a heavy-handed fix. Granting administrator rights changes security posture and can mask the very permission-related fault. Preview runs as an internal user and cannot reproduce account-hierarchy-specific behaviour.
-
6 Question 6 Multiple choice Reference Implementations
A B2B storefront uses a custom payment integration built on the payment reference implementation. The team must add support for a new payment method that requires a tokenized card and a separate authorization step before the order can be placed. The security review requires that raw card numbers never touch Salesforce servers and that payment authorization results are recorded on the order before the checkout completes. Which two implementation choices best meet these requirements? (Choose two.)
Correct Answer: B, EExplanationPassing a tokenized identifier into the authorization action and recording the returned reference on the payment record meets both the audit and the no-raw-card requirements. Using a hosted field so only the token reaches Salesforce keeps raw card data out of the org. Sending the raw number from a component, even over HTTPS, violates the requirement, and storing it encrypted still places it in the org. Running authorization after order creation and allowing failures to pass means checkout can complete without a valid authorization.
-
7 Question 7 Single choice Advanced Lightning Web Component Development
A storefront team is building a Lightning Web Component for a product configurator that must work on both desktop and mobile buyer sessions. The configurator loads option data via a wire adapter and writes user selections into a shared cart context used by three sibling components. The team observes that on mobile, selections sometimes revert after navigation between the configurator and the cart page. The team must keep the sibling components decoupled and avoid adding a third-party state library. Which design is most appropriate?
Correct Answer: AExplanationA shared pub-sub module provides decoupled communication across sibling components without a third-party library, and clearing subscriptions in disconnectedCallback prevents stale listeners that cause mobile navigation glitches. Re-firing state from the parent on every render couples components and can loop. Browser local storage bypasses platform-supported state flow and creates its own staleness issues. Deep property chaining is fragile and does not reach siblings that are not direct descendants.
-
8 Question 8 Single choice Checkout Flow Development
A B2B company needs its checkout to collect a purchase order number from buyers and to validate that the number is unique per account before the order is submitted. Some accounts already use a legacy PO format that must still be accepted. The business asks for the change to be delivered in the next sprint without altering other checkout steps. Which implementation is the best fit?
Correct Answer: CExplanationCustomizing only the purchase order step and calling an Apex validation keeps the change scoped, allows the legacy-format exception, and blocks duplicates before submission, which meets the sprint constraint. A blanket validation rule would reject legacy formats and affect every account. Moving the number into notes removes validation entirely. An hourly job cancels orders after the fact rather than preventing duplicates at submission.
-
9 Question 9 Multiple choice Data Management
A storefront supports both B2B buyers and an external product information system. Product images are updated frequently by merchandisers, and the integration must keep catalog data consistent while minimizing storage consumption and API usage. The team must also ensure that products with no active price book entry are not visible to buyers. Which two actions best meet these requirements? (Choose two.)
Correct Answer: B, DExplanationLinking images through content document references stores each file once and updates them in place, which conserves storage and avoids repeated uploads. Deactivating products that lack an active price book entry hides them from buyers directly through the catalog state the sync controls. Uploading copies every night wastes storage and API calls. Entitlement policies govern access rather than price book visibility, and base64 text fields bloat record size and degrade performance.
-
10 Question 10 Single choice Error Handling and Diagnostics
A B2B storefront shows a checkout error for a subset of buyers only after the company enabled a new integration that updates account records. The error appears in the browser console as a failed call to a checkout-related Apex method. The team is considering several responses. A developer needs to find out whether the new integration's record updates are triggering the failure, while keeping the production storefront available. Which action best isolates the cause?
Correct Answer: CExplanationReproducing in a full-copy sandbox with and without the integration isolates whether its record updates cause the failure while leaving production available. Disabling the integration account in production is a broad outage and not a diagnostic step. Rolling back production metadata rolls back unrelated changes and does not prove the cause. Suppressing all exceptions hides errors and makes the failure harder to diagnose.
-
11 Question 11 Single choice Reference Implementations
A B2B company is implementing a custom shipping rate integration that must be called during checkout using the shipping reference implementation. The integration must return rates per cart, support carriers whose APIs are rate-limited, and must not hold a callout open while the buyer waits for the page to render. The solution must also work if the shipping provider is temporarily unavailable, falling back to a default flat rate. Which design best satisfies these constraints?
Correct Answer: CExplanationServing cached rates during checkout avoids holding the buyer on a slow callout, while a queueable refresh respects rate limits and handles failures, with a flat-rate fallback meeting the availability requirement. A synchronous callout with no fallback fails the provider-outage constraint. Pre-computing every product combination is impractical and stale. Daily flat-rate writes to carts ignore per-cart rates and go stale between runs.
These are 11 of the 221 questions in the full B2B-Commerce-Developer pack.
Get All 221 QuestionsGet all 221 questions & answers
Full access options for Salesforce B2B-Commerce-Developer
Self-study
PDF Version
- 221 actual exam questions
- Compatible with all devices
- Printable PDF format
- No download limits
- 90 days free updates
- 24/7 customer support
Best value
Bundle Pack
- Discounted PDF + online access
- 221 actual exam questions
- Both PDF and online practice test
- Free 90 days updates
- No download or practice limits
- 24/7 customer support
Exam simulation
Online Practice Test
- 221 actual exam questions
- Actual exam environment
- 90 days free updates
- Browser-based software
- 24/7 customer support
100% Money Back Guarantee
Your success comes first
At DumpsProvider, we give you a 100% money back guarantee on all of our exam dumps. For us, your success is the #1 priority and we are more than confident that our exam material will help you pass the B2B-Commerce-Developer Exam (Salesforce Accredited B2B Commerce Developer Professional) on your very first attempt.
In a rare case, if you fail your exam, we will refund your amount without asking a single question.