Salesforce-B2C-Commerce-Cloud-Developer Practice Test
Updated On 18-Sep-2025
202 Questions
A developer has a sandbox configured with a service and its profile and credential. Now there is a requirement to allow changes to the service URL manually from the sandbox. Which B2C feature should the developer use to achieve the request?
A. Use the service credential URL field
B. Use the service status area, set the override URL checkbox, and then populate the URL field with the required one.
C. Use a Site preference dedicated for the service URL
D. Use a Global preference dedicated for the service URL
Explanation:
In Salesforce B2C Commerce, services are configured using three components:
Service Definition (ID, type, etc.)
Service Profile (timeout, logging, retry rules)
Service Credential (username, password, URL)
While the service credential defines the default URL for the service, sometimes during development or sandbox testing, you need to override that URL without changing the credential itself — e.g., for testing with different environments.
To do this, B2C Commerce provides an Override URL feature in the Service Status area of Business Manager.
📌 How to do it:
Go to Business Manager
→ Administration > Operations > Services
Select the service you want to modify.
In the Service Status section, you'll see:
Override URL checkbox
A URL field
✅ Check the “Override URL” box
📝 Enter the custom URL you want the service to call.
Save the changes.
At runtime, the service will use this override URL instead of the one defined in the credential.
❌ Why the other options are incorrect:
A. Use the service credential URL field
🔴 This is the default place to set the URL, but it is not editable dynamically during runtime or testing without affecting the entire credential.
You cannot switch URLs manually on the fly this way.
C. Use a Site preference dedicated for the service URL
🔴 While this is a flexible custom-built solution, it is not required when the goal is to manually override a URL for a service.
Better suited for dynamically switching URLs via code.
D. Use a Global preference dedicated for the service URL
🔴 Same as C — this is custom and unnecessary here.
The built-in override functionality is the correct tool.
📚 Reference:
Salesforce B2C Commerce Developer Documentation – Services Configuration
SFCC Business Manager path:
Administration > Operations > Services > [Select Service] > Service Status
🧠 Summary:
To manually change a service URL in a sandbox, use the built-in Service Status override feature in Business Manager. This allows you to test different endpoints without editing credentials or custom preferences.
A Digital Developer is working on a project to convert a pipeline to a JavaScript controller. UX Studio has a functioning pipeline debugger configured for the site. Assume the Developer will add a breakpoint to the controller when it is written. What must be done in order to use the debugger with the new controller when it is written?
A. Create and use a new script debug configuration.
B. Use the existing pipeline debugger.
C. Modify the debugger configuration and use the existing pipeline debugger.
D. Create and use a new controller debug configuration.
Explanation:
A Digital Developer is converting a pipeline to a JavaScript controller and wants to use the existing pipeline debugger (configured in UX Studio) with the new controller, including adding a breakpoint. In Salesforce B2C Commerce, the debugger in UX Studio (now part of Salesforce Commerce Cloud development tools) is used to step through and debug both pipelines and JavaScript controllers. Since the pipeline debugger is already functioning, it can be adapted for the new controller with some configuration changes. Let’s evaluate the options:
A. Create and use a new script debug configuration.
Why incorrect: While script debugging is possible, the existing pipeline debugger can be modified to handle JavaScript controllers. Creating a new script debug configuration is unnecessary when the current setup can be adjusted.
B. Use the existing pipeline debugger.
Why incorrect: The existing pipeline debugger is configured for pipelines, not JavaScript controllers. Using it without modification won’t work for the new controller, as the debugging context (e.g., entry points, script files) differs.
C. Modify the debugger configuration and use the existing pipeline debugger.
Why correct: The Developer can modify the existing debugger configuration in UX Studio to point to the new JavaScript controller file (e.g., updating the script path or entry point to the controller). This allows the use of breakpoints and debugging features for the controller, leveraging the functioning pipeline debugger setup. The process involves adjusting the debug configuration to reflect the controller’s location and ensuring the site’s cartridge path includes the controller’s cartridge.
Reference: The UX Studio Debugging Documentation indicates that the debugger can be reconfigured for different script types, including controllers.
D. Create and use a new controller debug configuration.
Why incorrect: While a new configuration could be created, it’s inefficient when the existing pipeline debugger can be modified. Reusing and adjusting the current setup is the standard approach.
Why Option C:
The existing pipeline debugger can be adapted by modifying its configuration (e.g., script file path, breakpoints) to debug the JavaScript controller, saving time and leveraging the current setup.
Steps:
Open UX Studio and access the existing debugger configuration.
Update the configuration to point to the new JavaScript controller file (e.g., controllers/MyController.js).
Add a breakpoint in the controller code.
Ensure the cartridge containing the controller is in the site’s cartridge path.
Start the debugger and test the controller.
Conclusion:
C is the correct step, allowing the Developer to use the existing pipeline debugger with the new controller after modification, as supported by the UX Studio Debugging Documentation.
A merchant has a requirement to sell a combination of four existing products with a unique product ID. This collection will be known as ‘Our Top Combo’, and is base don the merchant’s trading information that shows this combination to be in high demand. What does the developer need to do next to fulfill this requirement?
A. Create a unique produce to called ‘Our Top Combo’ and add the four products into the Product Bundles tab.
B. Create a Content Slot with Content Type = Product and add the four component products into that slot.
C. Create a Product Set called ‘Our Top Combo’ and add the products into the set.
D. Create a recommendation rule associating the four products as a recommendation group
Explanation:
The requirement specifies that the merchant wants to sell a combination of four existing products as a single unit with a unique product ID, named “Our Top Combo.” In Salesforce B2C Commerce, this type of product combination is best implemented using a product bundle, which allows multiple products to be grouped into a single sellable item with its own ID. The Developer has already created the four individual products, and the next step involves creating the combination. Let’s evaluate each option:
A. Create a unique product called ‘Our Top Combo’ and add the four products into the Product Bundles tab.
Explanation: In the Products module of Business Manager (under Merchandising > Products and Catalogs > Products), the Developer can create a new product named “Our Top Combo” with a unique product ID (e.g., TOPCOMBO-001). The “Product Bundles” tab within the product record allows the Developer to associate the four existing products as components of this bundle, specifying quantities if needed (e.g., 1 of each). This creates a bundle that can be sold as a single item on the storefront, meeting the requirement for a unique product ID. The process involves:
Creating the product “Our Top Combo” in the Products module.
Navigating to the “Product Bundles” tab and adding the four component products.
Configuring pricing, availability, and other attributes for the bundle.
Why it’s correct: This approach creates a unique product ID for “Our Top Combo” and uses the “Product Bundles” tab to define it as a bundle of the four products, aligning with the requirement to sell the combination as a single unit. The “Product Bundles” tab is a valid method to link products to a bundle, especially when creating the bundle within the Products module.
Reference: The Product Bundles Documentation explains that bundles can be created and managed via the Products module, with the “Product Bundles” tab used to define constituent products.
B. Create a Content Slot with Content Type = Product and add the four component products into that slot.
Explanation: Content Slots in Salesforce B2C Commerce (managed under Merchandising > Online Marketing > Content Slots) are used to display content or products on the storefront, such as banners, images, or product recommendations. A Content Slot with a Content Type of “Product” can display a list of products, but it is not a sellable unit. Adding the four component products to a slot named “Our Top Combo” would allow them to be displayed together (e.g., on a page), but it does not create a unique product ID or enable the combination to be purchased as a single item.
Why it’s incorrect: Content Slots are for merchandising and display purposes, not for creating a sellable product combination with a unique ID. The requirement to sell “Our Top Combo” as a single unit cannot be met with a Content Slot.
Reference: The Content Slots Documentation clarifies that slots are for content delivery, not product bundling.
C. Create a Product Set called ‘Our Top Combo’ and add the products into the set.
Explanation: The Product Sets module in Business Manager (under Merchandising > Products and Catalogs > Product Sets) allows creating product sets, which are groups of related products displayed together on the storefront (e.g., for promotions or recommendations). Creating a Product Set named “Our Top Combo” and adding the four products would group them for display purposes, but product sets are not sellable units with a unique product ID. They are used for merchandising, not for combining products into a single purchasable item.
Why it’s incorrect: Product sets do not create a unique product ID or allow the combination to be sold as a single unit, which is a key requirement for “Our Top Combo.”
Reference: The Product Sets Documentation indicates that product sets are for grouping and display, not for selling as a bundle.
D. Create a recommendation rule associating the four products as a recommendation group.
Explanation: Recommendation rules in Salesforce B2C Commerce (managed under Merchandising > Einstein > Recommendations > Rules) are used to suggest products to customers based on behavior or rules (e.g., “Frequently Bought Together”). Creating a recommendation rule to associate the four products as a group would suggest them together on the storefront, but it does not create a unique product ID or allow the combination to be sold as a single unit. This is a marketing tool, not a product creation tool.
Why it’s incorrect: Recommendation rules are for suggesting products, not for bundling them into a sellable combination with a unique ID.
Reference: The Einstein Product Recommendations Documentation describes rules as a way to enhance customer experience, not to create sellable products.
Why Option A is the Best Choice:
Unique Product ID: Creating a product named “Our Top Combo” in the Products module assigns it a unique product ID, satisfying the requirement to sell the combination as a single unit.
Bundling Functionality: The “Product Bundles” tab allows the Developer to define the four existing products as components of the bundle, enabling the combination to be managed and sold together.
Next Step: Since the four individual products are already created (as implied by the question), the next logical step is to create the bundle using the Products module, which is a standard approach in B2C Commerce for this scenario.
Alignment with Requirement: The merchant’s intent to sell “Our Top Combo” based on high demand trading information suggests a sellable product, which a bundle provides, unlike Content Slots, Product Sets, or recommendation rules.
Steps to Implement the Solution:
Access Business Manager:
Log into the instance’s Business Manager.
Navigate to Merchandising > Products and Catalogs > Products.
Create the Product:
Click New to create a new product.
Enter the name “Our Top Combo” and assign a unique product ID (e.g., TOPCOMBO-001).
Select the appropriate catalog and category.
Configure the Bundle:
Go to the “Product Bundles” tab in the product record.
Add the four component products and specify quantities (e.g., 1 of each, or adjust based on requirements).
Set Pricing and Attributes:
Configure a bundled price or use the sum of component prices.
Add images, descriptions, or other details as needed.
Assign to Catalog:
Ensure “Our Top Combo” is added to the active catalog for sale.
Test the Bundle:
Verify that “Our Top Combo” appears as a single product on the storefront with the correct components.
Additional Notes:
Inventory Management: The bundle’s inventory may need to be tied to the component products’ inventory or managed separately, depending on the configuration.
Permissions: The Developer needs Business Manager permissions for Products to create and manage bundles.
Pricing Strategy: The merchant may want to offer a discount for the bundle, which can be set in the product record.
Demand Consideration: The high demand mentioned could inform inventory planning or promotion strategies for the bundle.
Conclusion:
The next step is A. Create a unique product called ‘Our Top Combo’ and add the four products into the Product Bundles tab, as this creates a sellable bundle with a unique product ID, fulfilling the merchant’s requirement. This approach is supported by the Product Bundles Documentation and aligns with B2C Commerce best practices for product combinations.
Universal Containers calls the following combination of products “The Basics” and sells the
combination as a unique product ID:
- One Model 103 container
- Five Model 611 container
- Tree Model 201 container
What is the next step in Business Manager to create “The Basics” as a combination?
A. In the Product Bundles module, create a bundle named “The Basics”.
B. In the Products module, create a product named “The Basics” and add the products to the Product Bundles tab.
C. In the Products module, create a product named “The Basics” and add the products to the Product Sets tab.
D. In the Product Sets module, create a product set named “The Basics”.
Explanation:
Universal Containers wants to sell a specific combination of products (with set quantities) as a single sellable product — this is the definition of a Product Bundle in Salesforce B2C Commerce.
🔹 Breakdown of the scenario:
"The Basics" is a composite product made of:
1 x Model 103 container
5 x Model 611 container
3 x Model 201 container
All the component products already exist in the catalog.
The goal is to create a new product ID that represents this combination for sale.
➡️ This use case exactly matches the Product Bundle functionality.
📌 Steps in Business Manager:
Go to Merchant Tools > Products > Products
Click "New" to create a new product (ID: e.g., the-basics)
Set the new product’s basic info (name, type = Bundle, availability, etc.)
Go to the Product Bundles tab
Add the three existing products and their quantities:
1 x Model 103
5 x Model 611
3 x Model 201
❌ Why the other options are incorrect:
A. In the Product Bundles module, create a bundle named “The Basics”
🔴 There is no standalone "Product Bundles" module in Business Manager.
Bundling is handled through the Product module, under a product's "Product Bundles" tab.
C. In the Products module, create a product named “The Basics” and add the products to the Product Sets tab
🔴 Product Sets are for grouping products for search, sorting, or merchandising, not for selling a combination as a single SKU.
You cannot define quantity or sell as one unit using Product Sets.
D. In the Product Sets module, create a product set named “The Basics”
🔴 Same issue as C — Product Sets are not sellable composite products.
They are typically used for visual grouping or filters, not as a single product offering.
🧠 Summary:
When creating a sellable combination of products with specific quantities under a unique product ID, you need to use a Product Bundle — which is done within the Product module, under the Product Bundles tab.
A Digital Developer needs to check forproduct inventory in a specific inventory list using the
Open Commerce API.
An example request URL is:
Which resource_id value enables the appropriate resource?
A. /inventory_lists/*
B. /inventory_lists/**
C. /inventory_list_search
D. /products/*
Explanation:
To check product inventory in a specific inventory list using Open Commerce API (OCAPI), the correct resource_id must be configured to allow access to the inventory lists endpoint. Here’s why /inventory_lists/* is the right choice:
OCAPI Inventory List Endpoint Structure
The endpoint to fetch inventory for a specific list is:
GET /inventory_lists/{inventory_list_id}/product_inventory_records/{product_id}
The example URL in the question follows this pattern:
/dw/data/v18_3/inventory_lists/econ-inventory/product_inventory_records/00883408601
Why /inventory_lists/*?
The wildcard * allows access to all subpaths under /inventory_lists/, including:
Specific lists (e.g., econ-inventory)
Product records within those lists (e.g., product_inventory_records/00883408601)
This matches the required URL structure for inventory checks.
Why Not the Other Options?
B. /inventory_lists/**
While ** is sometimes used for recursive wildcards, OCAPI specifically uses * for resource paths.
C. /inventory_list_search
This is a search endpoint, not for accessing specific inventory lists.
D. /products/*
This refers to product catalog data, not inventory lists.
Exam Relevance:
Tests knowledge of OCAPI endpoint permissions and wildcard usage (* vs. **).
Critical for configuring API access to inventory data.
Reference:
Salesforce OCAPI: Inventory Lists
Page 1 out of 41 Pages |