B2B-Commerce-Developer Practice Test

Salesforce Spring 25 Release -
Updated On 18-Sep-2025

211 Questions

A developer is working in Visual Studio Code on a previously deployed project which is rather large and deployments are time consuming. The developer wants to deploy some small CSS changes without waiting for the entire project deployment. What are two ways this can be accomplished?

A. Right-click the folder for the component and choose Deploy Source to Org

B. Right-click the CSS file that was edited and select Deploy Single File

C. Right-click the CSS file and choose Deploy Source to Org

D. Click the Tools menu and select Deploy styles

E. Deploy the entire project. Only the change will be copied

A.    Right-click the folder for the component and choose Deploy Source to Org
B.   Right-click the CSS file that was edited and select Deploy Single File

Explanation:

Two ways that a developer can deploy some small CSS changes without waiting for the entire project deployment are right-clicking the folder for the component and choosing Deploy Source to Org and right-clicking the CSS file that was edited and selecting Deploy Single File. Deploying source to org is a way of deploying metadata from a local project to an org using Salesforce CLI commands. The developer can use Visual Studio Code to execute these commands by right-clicking on files or folders in the project and choosing from various deployment options. Right-clicking the folder for the component and choosing Deploy Source to Org allows the developer to deploy only the files that belong to that component, such as HTML, JavaScript, CSS, and XML files. Right-clicking the CSS file that was edited and selecting Deploy Single File allows the developer to deploy only that CSS file and not any other files in the project. These options can save time and bandwidth for deploying small changes without affecting other components or files in the project.

Modifying the StoreIntegratedService to map to an Apex class ID using Workbench is not a way of deploying CSS changes, as it is only used for registering internal services that are provided by Salesforce B2B Commerce out-of-the-box. Entering the integration class name and version in store administration is not a way of deploying CSS changes either, as it is only used for selecting an existing integration class that has already been registered as an external service.

Salesforce References:

Salesforce CLI Command Reference: force:source:deploy, Salesforce Developer Tools for Visual Studio Code, B2B Commerce Developer Guide: Integration Framework, B2B Commerce Developer Guide: RegisteredExternalService Object

A developer has written the logic to import products from an enterprise resource pi products are in Salesforce, but they are not visible in the store. What did the developer forget to assign to the imported products?

A. Entitlement policy

B. Storefront

C. Account

D. Promotion

B.   Storefront

Explanation:

A developer has written the logic to import products from an enterprise resource planning (ERP) platform into B2B storefront products. The imported products are in Salesforce, but they are not visible in the store. The developer forgot to assign the storefront to the imported products. A storefront is a logical grouping of products, categories, and price books that defines what products are available for purchase in a B2B Commerce site1. A product must be associated with at least one storefront to be visible in the store2. The developer can use the Data Loader to insert or update the storefront assignments for the imported products3.

Option A, Option C, and Option D are incorrect because they are not required for the products to be visible in the store. An entitlement policy is a set of rules that determines the availability of products based on the buyer’s account, contract, or order history4. An account is a record that represents a business or person involved in a business transaction. A promotion is a marketing tool that offers discounts or incentives to buyers. These are optional features that can be used to customize the B2B Commerce experience, but they are not necessary for the products to be visible in the store.

References:

Storefronts
Product Visibility
Insert new Products and custom Price Books via Data Loader
Entitlement Policies
[Accounts]
[Promotions]

A developer needs to deliver a solution for taxation that supports multiple countries and a complex set of jurisdictions. Which three steps should be considered as part of this process?

A. Contact the vendor who wrote the third party service for the most recent information

B. Implement the sfdc_checkout.CartTaxCalculations interface writing code from scratch

C. Implement the sfdc_checkout.CartTaxCalculations interface calling out to a third party tax service

D. Implement the sfdc_checkout.TaxCalculations interface calling out to a third party tax service

E. Look for packages or existing sample code on the AppExchange

C.    Implement the sfdc_checkout.CartTaxCalculations interface calling out to a third party tax service
D.   Implement the sfdc_checkout.TaxCalculations interface calling out to a third party tax service
E.   Look for packages or existing sample code on the AppExchange

Explanation:

For a solution that requires handling complex tax calculations across multiple countries and jurisdictions, it's efficient to leverage third-party tax services that specialize in this area. Implementing thesfdc_checkout.CartTaxCalculationsor sfdc_checkout.TaxCalculationsinterface to integrate with such a service ensures that tax calculations are accurate and up-to-date. Additionally, exploring the Salesforce AppExchange for packages or sample code can provide ready-made solutions or frameworks that can expedite the development process.

Which format is the custom Salesforce field with the API name "My_Fiels_Name__c" transformed onto by default in Salesforce B2B Commerce?

A. MyFieldName

B. myFieldName

C. myfieldname

D. My_Field_Name__c

B.   myFieldName

Explanation:

The format that the custom Salesforce field with the API name My_Field_Name__c is transformed onto by default in Salesforce B2B Commerce is myFieldName. This is done to follow the JavaScript naming convention and to avoid conflicts with the standard Salesforce fields and relationships. The transformation rules are as follows:

Remove any namespace prefix from the field name, such as ccrz__ or cloudcraze__.

Remove any underscores from the field name and capitalize the first letter of each word after an underscore, such as MyFieldName.

Lowercase the first letter of the field name, such as myFieldName. Salesforce

References: B2B Commerce and D2C Commerce Developer Guide, Query Transformation

For which two reasons is it preferable to extend the Salesforce B2B Commerce remote invocation object instead of using the standard Salesforce remote action invocation manager (2 answers)

A. A standard remote action will not have access to Salesforce B2B Commerce objects.

B. The APEX method called by the remote action will be passed as a Salesforce B2B Commerce context object.

C. Salesforce B2B Commerce includes do not support standard SalesForce remote actions.

D. The Salesforce B2B Commerce logger cannot be utilized in standard remote actions

B.   The APEX method called by the remote action will be passed as a Salesforce B2B Commerce context object.
D.   The Salesforce B2B Commerce logger cannot be utilized in standard remote actions

Explanation:

It is preferable to extend the Salesforce B2B Commerce remote invocation object instead of using the standard Salesforce remote action invocation manager for two reasons: The APEX method called by the remote action will be passed as a Salesforce B2B Commerce context object, which contains useful information such as the current user, cart, storefront, and configuration settings. This can simplify the development and testing of the remote action. The Salesforce B2B Commerce logger can be utilized in the remote action, which allows logging messages and errors to the debug log or to a custom object. This can facilitate debugging and troubleshooting of the remote action.

Page 1 out of 43 Pages