Salesforce certification · Exam Salesforce-B2C-Commerce-Developer

Salesforce-B2C-Commerce-Developer Mock Exam

Salesforce B2C Commerce Developer

Find out if you're ready for Salesforce-B2C-Commerce-Developer. Take the free timed mock exam and get your score in minutes, or study the free Salesforce-B2C-Commerce-Developer questions below with answers and explanations.

20 questions · 30 minutes · free, no sign-up

Free Salesforce-B2C-Commerce-Developer questions

1–10 of 44 free
Question 1 Choose 1
A merchant wants to obtain an export file that contains all the products .assigned to their Storefront catalog. They do not know how to achieve this easily without manual processing, so asked their developer to help Generate this. The merchant s Instance setup is as follows:
They have one Master catalog and one storefront catalog.
Some, but not all, of the products in the Master catalog are assigned to categories within the Storefront catalog.
Which method allows the developer to generate the export for the merchant?
Show answerHide answer

Correct answer: C Using the Site Import and Export module, export the Master catalog filtered by the site catalog categoriesto export specific products.

Explanation

Explanation:

Key Requirements:
The merchant wants only products assigned to the Storefront catalog (not all products in the Master catalog).
Some products in the Master catalog are not linked to the Storefront catalog.

Why Option C?
✅ Site Import & Export with Category Filtering
The Site Import and Export module allows exporting products filtered by their assignment to Storefront catalog categories.

Steps:
Navigate to Merchant Tools > Products & Catalogs > Site Import & Export.
Select the Master catalog but filter by Storefront catalog categories.
Export only products linked to those categories.
Result: The export file contains exclusively products visible on the Storefront.

Why Not Other Options?
❌ A. Catalog Import & Export (Master Catalog + Category Assignment Search)
This exports the entire Master catalog (including unassigned products) unless manually filtered, which is inefficient.

❌ B. Export Both Catalogs in a Single Archive
This would include all Master catalog products, defeating the purpose of filtering for Storefront-specific items.

Reference:
Salesforce Docs: Site Import & Export
Best Practice: Use Site Import & Export for storefront-specific product data.
Question 2 Choose 1
A developer working on a simple web service integration is asked to add appropriate logging to allow future troubleshooting. According to logging best practices, which code should the developer write to log when an operation succeeds, but has an unexpected outcome that may produce side effects?
Show answerHide answer

Correct answer: D Logger.warn(‘Unexpected service response’)

Explanation

Explanation:

The question describes a situation where a web service integration succeeds (the call completes without throwing an exception or returning an error status), but the response contains an unexpected outcome. This unexpected result has the potential to cause side effects such as inconsistent data, incorrect business logic execution, subtle bugs, or future problems, even though the current operation did not fail outright.
This is a classic example of a non-fatal but noteworthy anomaly that developers must flag for future investigation.

Salesforce B2C Commerce Logging Levels – Overview
SFCC uses a standard logging hierarchy (similar to Log4j and most enterprise Java systems). Each level has a precise semantic purpose:

DEBUG → Very detailed, low-level diagnostic information (usually disabled in production)
INFO → Normal, expected, successful events (business-as-usual logging)
WARN → Unexpected conditions that are not critical failures but deserve attention (potential risk or side effects)
ERROR → Actual failures, exceptions, or serious problems that prevent normal operation

Choosing the correct level is not just a best practice — it directly affects production monitoring, alert noise, and troubleshooting efficiency.

Why Logger.warn() Is the Correct Choice
Logger.warn() should be used when:

The operation completed successfully (no exception, HTTP 2xx response)
The result is unexpected or deviates from normal or anticipated behavior
There is a potential for side effects or future issues (for example, incomplete data, deprecated response format, unusual values that the code can still handle)
The system can continue safely, but someone should investigate later

Examples of real-world WARN scenarios in SFCC include:

Service returns 200 OK but is missing recommended fields
Response structure changed slightly (backward-compatible but unexpected)
Performance is slower than usual but still acceptable
Deprecated API version is being used

Logging at WARN ensures the message appears in production logs (where INFO, WARN, and ERROR are typically enabled) without generating critical alerts.

Why the Other Options Are Incorrect
A. Logger.info('Unexpected service response')
INFO is reserved for expected and normal successful operations. The word “unexpected” directly contradicts the meaning of INFO. Using INFO here would bury important anomalies in routine log noise.

B. Logger.debug('Unexpected service response')
Debug logs are almost always turned off in production environments to reduce log volume and storage costs. Important warnings would be invisible during real troubleshooting.

C. Logger.error('Unexpected service response')
ERROR signals a failure or critical problem that requires immediate attention. Using ERROR when the operation succeeded creates alert fatigue, misleads monitoring teams, and pollutes critical error dashboards.
Question 3 Choose 1
A developer is working on a new site for the U.S based on an existing Canadian site. One of the requirements is a change to the address form. The current Canadian form has an list with the correct two-letter abbreviation for the provinces.
The U.S. requirements are to:

• Have an list with the correct two-letter abbreviation for the states in place of the province field.
• Set the U.S site locale.
• Add the options list field definition to the XML file.

How should the developer set up the files before making the required edits?
Show answerHide answer

Correct answer: D Create a new sub-folder in the forms folder. Name it en_US. Copy existing address.xml file in the new folder.

Explanation

Explanation:

This question tests understanding of B2C Commerce locale-specific form customization using the site hierarchy.

Key Requirements
Modify the address form for the U.S. site.
Set the U.S. site locale (implied to be en_US).
Add or modify the field definition in the XML file.
The correct approach leverages the locale-based file resolution system in B2C Commerce.

How Form File Resolution Works
Forms are stored in forms/<locale>/. The system resolves the form file based on the current site's locale settings. The hierarchy typically is:
forms/<site_locale>/<form_name>.xml → forms/default/<form_name>.xml

Therefore, to customize the address.xml form specifically for the U.S. site (with locale en_US), you must:
Create the locale-specific folder: forms/en_US/.
Copy the base address.xml file from forms/default/ into this new folder.
Edit the copied file (forms/en_US/address.xml) to replace the province list with the U.S. states list.

This ensures that when the U.S. site (locale en_US) renders the address form, it automatically uses the customized version, while the Canadian site continues to use the default or an en_CA version.

Why the Other Options Are Incorrect
A. Create a copy of existing address.xml file in the default folder. Rename that file to adres_US.xml:
This is incorrect for multiple reasons. First, placing it in the default folder is not locale-specific. Second, renaming the file breaks the standard naming convention (address.xml). The system looks for a file named address.xml, not adres_US.xml.

B. Create a new sub-folder in the forms folder. Name it US. Copy existing address.xml file in the new folder:
The folder name must be a valid locale ID (like en_US, fr_CA, de_DE). US is not a valid locale ID. The system will not automatically resolve to this folder based on the site's locale setting.

C. Create a copy of existing address.xml file in the default folder. Rename that file to address_en_US.xml:
Similar to option A, this places the file in the wrong location (default folder) and uses an incorrect filename. The system expects the file to be named address.xml inside a locale-specific folder, not a locale-suffixed filename inside the default folder.

Key Concepts
Form Localization: B2C Commerce documentation describes how forms are resolved based on locale folders (forms/<locale>/) to support multi-region and multi-language sites.
Locale ID Standards: Locale IDs follow the pattern language_COUNTRY (for example, en_US, en_GB, fr_CA). This is what the site's locale is set to in Business Manager.
Site-Specific Customization: The correct method is non-destructive and upgrade-safe. You override only the specific form for the specific locale by placing a copy in the appropriate folder, leaving the base (default) form intact for other locales.

Summary
To customize a form for a specific locale (en_US), create a folder named after that locale inside forms/, copy the base XML file there, and modify the copy. This is the standard, documented best practice.
Question 4 Choose 1
A developer has the following files in template/resources:

account.proierties
weight.unit=kilos
account_en.propierties
weight.unit=stones
account_en_US.propierties
weight.unit= pounds

Using the default locale configuration, what is the current outcome of the page that renders the account.isml template snippet below when visiting the Sofrefront with the English for Canada(en_CA) locale=
Your parcel weighs 10 ${Resource.msg(‘weight.unit’,’account’)}
Show answerHide answer

Correct answer: A Your parcel weighs 10 stones.

Explanation

Explanation:

This question tests understanding of B2C Commerce's locale fallback logic for resource property files.

File Structure & Locale Analysis
account.properties – The default/base file (no locale suffix). Contains weight.unit=kilos.
account_en.properties – The file for the language English (en). Contains weight.unit=stones.
account_en_US.properties – The file for the specific locale English - United States (en_US). Contains weight.unit=pounds.

Current Site Locale: The user is visiting with locale en_CA (English - Canada).

Locale Resolution Hierarchy
B2C Commerce resolves resource messages using a specific-to-general fallback:
Exact locale match: account_en_CA.properties → NOT FOUND.
Language match: account_en.properties → FOUND! (en matches the language part of en_CA).
Default file: account.properties → This is only used if no language-specific file is found.

Since account_en.properties exists, the system will use the value from that file (weight.unit=stones). It does not fall back to the base account.properties because a valid language match (en) was found.

Template Execution
The line ${Resource.msg('weight.unit','account')} looks up the key weight.unit from the account bundle.
Following the resolution logic for en_CA, it retrieves the value stones from account_en.properties.

Therefore, the rendered text is: "Your parcel weighs 10 stones."

Why the Other Options Are Incorrect
B. Your parcel weighs 10 pounds ❌
This would be correct only if the locale was en_US, as it uses account_en_US.properties.

C. Your parcel weighs 10 undefined ❌
This would only happen if the key weight.unit was missing from all resolved property files (including the base default). It is found in account_en.properties.

D. Your parcel weighs 10 kilos ❌
This would be correct only if there were no account_en.properties file, forcing a fallback to the base account.properties. Since account_en.properties exists, it takes precedence for any en_* locale.

References:
Resource Bundle Localization Fallback: The system searches in this order for a given locale {language}_{country}:
bundle_{language}_{country}.properties
bundle_{language}.properties
bundle.properties

Locale-Specific Customization: This mechanism allows developers to provide translations/regional variations for different markets while maintaining a common base.
Resource.msg() Method: The method parameters are (key, bundleName, locale?). If no locale is specified, it uses the current request's locale.

Summary
For locale en_CA, the system resolves to the language-level file account_en.properties, returning "stones".
Question 5 Choose 1
A developer needs to show only car accessories when shoppers use the search term car accessories and exclude technology accessories and household accessories. Given the above requirement, what is the recommended approach using the Search Dictionaries Dashboard?
Show answerHide answer

Correct answer: D Create a Common Phrase Dictionary entry: car accessories.
Use search mode Exact Match

Explanation

Explanation:

This question tests the understanding of Search Dictionaries and their correct application for search term precision.

The requirement is: Show only car accessories when shoppers use the search term "car accessories", and exclude technology accessories and household accessories.

Purpose of Each Dictionary Type
Common Phrase Dictionary: This is used to treat a specific multi-word phrase as a single, precise search term. When "Exact Match" mode is used, it ensures that results are returned only when the shopper enters that exact phrase. It does not add synonyms or variations.

Synonym Dictionary: This is used to expand a search term to include synonyms or related terms. For example, mapping "car" to "automobile, vehicle". This is the opposite of the requirement, as it would broaden, not narrow, the results.

Why Option D is Correct
Common Phrase Dictionary entry: "car accessories" tells the search engine to treat "car accessories" as one specific unit.
Search mode: Exact Match ensures that this dictionary entry only applies when the shopper types the phrase exactly as defined ("car accessories"). It will not trigger on "accessories for car" or "car and accessories".
Result: When a user searches for the exact phrase "car accessories", the search engine looks for products explicitly matching that phrase. Since "technology accessories" and "household accessories" are different phrases, they are naturally excluded. The dictionary does not need to contain "NOT" statements; its precise matching inherently provides the required filtering.

Why the Other Options Are Incorrect
A & C: Create a Synonym Dictionary entry... ❌
A synonym dictionary would add "household" and "technology" as alternative search terms when someone searches for "car accessories". This would cause the search to return household and technology accessories, which is the exact opposite of the requirement.

B: Create a Common Phrase Dictionary entry: car accessories, NOT household, NOT technology ❌
This syntax is invalid. Common Phrase entries do not support Boolean operators (NOT, AND, OR) within the phrase definition. Boolean logic is handled at the query level, not in the search dictionary. The dictionary's job is to define the phrase, not to apply query logic.

Key References & Concepts
Search Dictionaries Documentation:
- Common Phrase: Used for precise phrase matching (e.g., brand names, specific product lines). "Exact Match" mode is for precision.
- Synonym: Used for broadening searches by linking related terms.

Exact Match vs. First Word Mode: "Exact Match" requires the entire phrase. "First Word" mode would apply the rule if the phrase starts with the defined words, which could cause unintended matches.

Achieving Precision: To restrict results to a very specific category, you use a Common Phrase Dictionary with Exact Match. This ensures the search is interpreted literally, not expanded.

Summary
To guarantee that the search term "car accessories" returns results for only that category and excludes others, define it as a Common Phrase with Exact Match. This uses the search dictionary for its intended purpose: precise phrase recognition, not Boolean filtering.
Question 6 Choose 1
A client sells its product in single-brand stores as well as in multi-brand stores. When shown in the store locator list, the client wants the single-brand stores to have a particular background color to highlight them.
Which Business Manager action should be completed to allow the developer to apply different styling to the single-brand stores?
Show answerHide answer

Correct answer: A Add a Boolean custom attribute to the Store system object

Explanation

Explanation:

The requirement calls for distinguishing between single-brand and multi-brand stores in the store locator for styling purposes. The most efficient and architecturally sound approach is to extend the existing Store system object with a custom attribute. B2C Commerce allows developers to add custom attributes to system objects like Store through Business Manager. By creating a Boolean custom attribute (e.g., isSingleBrand), merchants can flag each store accordingly. This attribute then becomes available in the store data model, enabling the front-end developer to access it via the Store API and apply conditional CSS classes or inline styles in the store locator ISML template. For instance, in the template, one could write:

This method leverages the platform's built-in extensibility without creating redundant data structures. The custom attribute is manageable through Business Manager's "Merchant Tools > Custom Objects" section under Store system object type, allowing business users to toggle the flag per store without developer intervention after initial setup.

Why Other Options Are Incorrect
B. Configure the existing Store custom object type definition – This is misleading because "Store" is a system object, not a custom object type. Custom object type definitions apply to entirely custom data structures, not to extending core platform entities. Modifying system object definitions through custom objects isn't supported for this purpose.

C. Create a new SingleBrandStore custom object configuration – Creating a separate custom object for stores would fragment store data management, requiring duplicate data entry and complex synchronization with the actual Store system objects. It violates data normalization principles and would necessitate complex middleware to link custom object records with actual store entities, increasing maintenance overhead.

D. Adjust the relevant Site Preference in the Stores group – Site Preferences are for global configuration settings, not per-store characteristics. While a preference could control overall behavior, it cannot store individual store distinctions. Using preferences would require hardcoding store IDs or maintaining external lists, which is inefficient and not scalable.

References
Salesforce B2C Commerce Developer Documentation: "Extending System Objects with Custom Attributes"
Business Manager User Guide: "Managing Store Data"
B2C Commerce API Reference: dw.catalog.Store and StoreMgr classes
Best Practices: "Data Modeling in B2C Commerce" – using custom attributes vs. custom objects
Question 7 Choose 1
A developer is given a task to implement a new Page Designer layout component that doesn’t accept certain asset components.How should the developer achieve the above task?
Show answerHide answer

Correct answer: B Add component_type_Exclusions in the layout json configuration

Explanation

Explanation:

Why B is correct
Page Designer layout components in SFCC allow fine-grained control over which component types (assets) can be dropped inside them. This is configured directly in the layout component's JSON configuration file (e.g., my-layout.json). The key component_type_exclusions is an array of component type IDs that are explicitly forbidden from being added to this layout. This is the official, recommended way to restrict content types inside specific layouts (introduced and documented since SFRA 3+ / Page Designer 2.x).

Why the other options are incorrect
A. Add component_type_inclusion in the layout json configuration
There is no key called component_type_inclusion in layout configuration. Inclusion is the default behavior — you exclude what you don’t want.

C. Add layout_type_inclusion in the target components json configurations
Components do not control which layouts they can go into. The control direction is layout → allowed/excluded components, not the other way around.

D. Add layout_type_exclusion in the other asset components json configuration
Same conceptual error as C. Asset components should not define layout restrictions — that responsibility belongs to the layout.

References
Salesforce Commerce Cloud Documentation → Page Designer → Component Configuration Schema
Developer Guide: "Restricting Component Usage in Layouts" section
Question 8 Choose 1
Given a NewsletterSubscription custom object that has a key attribute named email of type String, what is the correct syntax to create the NewsletterSubscription custom object and persist it to the database?
Show answerHide answer

Correct answer: C Var customobject = dw.object.CustomObjectMgr. createCustomObject (‘NewsletterSubscription’, newsLetterForm.email.value);

Explanation

Explanation:

Creating and persisting a custom object in Salesforce B2C Commerce requires using the dw.object.CustomObjectMgr API. The method createCustomObject(type, key) is the standard way to instantiate a new custom object. Let’s break this down carefully:

Custom Object Type: This is the identifier of the custom object definition created in Business Manager. In this case, the type is "NewsletterSubscription".

Key Value: Every custom object requires a unique key. For the NewsletterSubscription object, the key attribute is email (of type String). When creating the object, you pass the actual value of the email field from the form, e.g., newsLetterForm.email.value.

Thus, the correct syntax is:
var customobject = dw.object.CustomObjectMgr.createCustomObject('NewsletterSubscription', newsLetterForm.email.value);

This ensures the object is created and persisted in the database with the email as its unique key.

Why Option C is Correct
- It uses the correct method: createCustomObject(type, key).
- It passes the type first ('NewsletterSubscription') and then the key value (newsLetterForm.email.value).
- This matches the documented API signature and ensures proper persistence.

Why the Other Options Are Incorrect
A. createNewsletterSubscription('email', newsLetterForm.email.value')
There is no such method as createNewsletterSubscription. The API only provides createCustomObject.

B. createCustomObject(newsletterForm.email.value, 'NewsletterSubscription')
The arguments are reversed. The first argument must be the type (NewsletterSubscription), not the key.

D. createCustomObject('NewsletterSubscription','email', newsLetterForm.email.value')
The method only accepts two arguments (type and key). Adding a third argument is invalid and will throw an error.

Reference
Salesforce B2C Commerce Developer Documentation – Custom Objects:
“Use dw.object.CustomObjectMgr.createCustomObject(type, key) to create and persist a custom object. The first parameter is the custom object type ID, and the second is the unique key value.”
Salesforce Developer Guide on Custom Objects
Question 9 Choose 1
To ensure SFRA best practices and protect against request forgery, the developer introduced CSRF token generation in the customer address form:

< form …="" action="“submit”" >
< input name="” $ {dw.web.CSRFProtection.getTokenName()}”
value =“ $ {dw.web.CSRFProtection.generateToken()”>
…
< the rest= "" of= "" the = "" form= "" fields="" >
…


To implement CSRF protection when the form is submitted, the developer needs to introduce the CSRF validation using one or both of these methods as applicable:

validateRequest
validateAjaxRequest

Where in the code does the developer need to add this CSRF validation check?
Show answerHide answer

Correct answer: B In the middleware chain of the controller post route

Explanation

Explanation:

In SFRA, CSRF protection is enforced at the point where state changes can occur, which is almost always the POST (or other write) endpoint that processes the submitted form.
Your snippet shows that the developer already implemented token generation in the form markup using:

dw.web.CSRFProtection.getTokenName() (to output the expected parameter name), and
dw.web.CSRFProtection.generateToken() (to generate a session-bound token value)

That covers the “token creation + inclusion in request” part. However, protection is incomplete until the server validates that token when the request comes back in.
SFRA best practice is to apply CSRF validation as middleware in the route definition, not manually inside business logic. This is precisely why SFRA provides middleware functions like:

csrfProtection.validateRequest (for standard form submits), and
csrfProtection.validateAjaxRequest (for AJAX requests)

When you attach CSRF validation middleware to the POST route, you ensure:

Every request to that endpoint is checked before any processing happens
The validation is centralized, consistent, and repeatable (no developer forgetfulness)
If validation fails, SFRA can route to the standard CSRF failure handling flow (e.g., CSRF-AjaxFail patterns for AJAX)
The controller action logic stays clean—focused on business rules rather than security plumbing

Salesforce’s SFRA documentation explicitly describes that CSRF checks are performed as a middleware step (for example, csrfProtection.validateAjaxRequest) and points to controllers (like Account.js) as examples of this pattern.

So the correct place to add validation is the middleware chain of the POST route—exactly option B.

Why the other options are incorrect

A. In the controller function that displays the form
Rendering the form is where you generate the token and output it, but CSRF attacks happen when a malicious site tries to trick a user into submitting a forged request. The protection must be enforced at submission time, not at display time. Displaying the form doesn’t verify anything—there is no incoming state-changing request yet.

C. In the controller function that handles the submitted form
While it’s technically possible to call CSRFProtection.validateRequest() inside the handler, it’s not SFRA best practice because it scatters security checks into business logic and makes it easy to miss validation in future routes. SFRA intentionally provides CSRF middleware so validation is applied consistently before route logic executes.

D. In the model function that persists the form data
Models should focus on data shaping and business logic, not request security. Putting CSRF validation in the model is architecturally wrong because CSRF is an HTTP/request concern (controller/middleware layer). It also becomes hard to ensure the model is only called from properly validated contexts.

References
Salesforce B2C Commerce Docs — Forms / Securing Forms in SFRA: CSRF provided as middleware (validateAjaxRequest)
SFRA source: CSRF middleware implementation (app_storefront_base/.../scripts/middleware/csrf.js)
dw.web.CSRFProtection API: token generation and validation methods (validateRequest, validateAjaxRequest)
Question 10 Choose 1
Universal Containers is preparing their storefront to use Open Commerce APIs (OCAPI).
To which hook should the Digital Developer move taxation logic to ensure consistent order totals within B2C Commerce?
Show answerHide answer

Correct answer: B dw.ocapi.shop.basket.calculate

Explanation

Explanation:

Why B is correct
When integrating Open Commerce API (OCAPI) — especially the Shop API — for cart and checkout operations (e.g., mobile apps, headless storefronts, or external systems adding products, applying coupons, etc.), the tax calculation must happen consistently every time the basket changes.
The dw.ocapi.shop.basket.calculate hook is specifically designed for this purpose. It is triggered automatically by the Shop API after any modification to the basket (add/remove item, update quantity, apply coupon, set shipping method, etc.). This hook allows you to:
- Recalculate taxes using the built-in tax calculation logic or custom logic
- Update line item prices, basket totals, and shipping costs
- Ensure the basket always reflects accurate, up-to-date totals before returning the response

This is the official recommendation from Salesforce for maintaining consistent order totals in OCAPI-integrated scenarios. Moving taxation logic here guarantees that every API response shows the correct tax-inclusive totals, preventing discrepancies between storefront views and backend orders.

Example usage (in hooks.js):
exports.basket_calculate = function (basket) {
  // Custom tax logic or call default tax calculation
  require('*/cartridge/scripts/cart/tax').calculateTaxes(basket);
  // Optional: adjust shipping, discounts, etc.
};

Why the other options are incorrect
- A. dw.ocapi.shop.order.validateOrder
→ This hook runs only when the order is created (after the basket is converted to an order via POST /orders). It is too late for consistent basket totals — the shopper sees incorrect taxes during cart interaction. It is meant for final validation, not ongoing calculation.
- C. dw.ocapi.shop.basket.afterPostShipment
→ This hook (if it exists — note: the actual name is usually dw.ocapi.shop.basket.afterPost) runs after a shipment is added/updated. It is far too narrow and late — it misses most basket modifications (e.g., adding products or coupons).
- D. dw.ocapi.shop.order.afterPOST
→ This hook runs after an order has already been created via OCAPI POST /orders. At this point, the basket is already converted to an order, and taxes should have been finalized earlier. Using this would miss all pre-order basket interactions.

Key takeaway
For consistent basket-level calculations (taxes, promotions, shipping, totals) in OCAPI Shop API integrations, always use the basket.calculate hook. This is explicitly called out in the documentation as the place to centralize pricing and taxation logic when using OCAPI.

References
Salesforce B2C Commerce OCAPI Documentation → Hooks → Shop API Hooks
Trailhead: Extending OCAPI with Hooks → Taxation in Headless Scenarios
Full mock exam

Sit the Salesforce-B2C-Commerce-Developer exam before exam day

Full-length mocks with the same number of questions and the same time limit as the real Salesforce-B2C-Commerce-Developer exam. Every attempt draws a new set of questions from the full bank, so you can keep going until you pass comfortably.

Get full Salesforce-B2C-Commerce-Developer mock exam
  • —questions per mock
  • —time limit
  • 154questions in the bank
  • Newmock on every attempt

Exam Domains Covered in This Practice Test

Here is the uncomfortable truth about the B2C Commerce Developer exam: Application Development is 53% of your score. That single domain carries more weight than the other three combined. If you spread your study time evenly across all four domains, you will likely fail. This practice test is tagged to the official blueprint so you can see exactly where your time should go.

Comm-Dev-101 Exam Blueprint, Where the Points Actually Live
Exam Domain Official Weight What It Actually Tests
Application Development 53% ISML templates (includes, decorators, localization), JavaScript controllers (server.get, server.post, server.append/prepend/replace), the hooks framework, Service Framework integrations, Forms Framework with CSRF protection, logging and debugging, OCAPI Shop and Data APIs, Page Designer component types, and performance anti-patterns. This is the domain that decides whether you pass.
Data Management Using Business Manager 24% Search refinements and sorting, logging configuration, system object attribute extension, custom objects, OCAPI permissions for Data and Shop APIs, and using Business Manager tools to diagnose performance issues. The second- largest domain, but still less than half the weight of Application Development.
Work With a B2C Site 12% The product data model (catalogs, variants, inventory, price books), order fulfillment configuration, Content Assets, Page Designer, Content Slots, and Content Folders. Tests whether you can navigate and configure the merchant- facing side of the platform.
B2C Commerce Setup 11% IDE configuration and WebDAV deployment, Business Manager Import/Export, cartridge path sequencing, and creating a new site with currency and taxation settings. The smallest domain, but foundational, many Application Development questions assume you understand cartridge path resolution.

What this means for your study time: If you have 10 hours to prepare, spend 5–6 hours on Application Development, 2–3 hours on Data Management, and roughly 1 hour each on B2C Site and Setup. The exam does not reward balanced effort, it rewards depth where the points are.

How to Use This Practice Test


  1. Take the Application Development questions first. Not because they are easy, but because they are 53% of your score. If you score below 60% on this domain, stop studying anything else until you fix it. The other domains will not save you.
  2. When you miss an Application Development question, classify the miss. Was it an ISML syntax error? A controller pattern confusion? An API selection mistake? Tag your misses by sub-topic. If three of your five misses are cartridge path questions, you know exactly what to review.
  3. Trace the cartridge path on paper. For any question involving overrides, write out the path as a list: app_custom_checkout:app_storefront_base:modules. Then ask: which cartridge wins? If you cannot answer without guessing, you do not understand the concept well enough for the exam.
  4. Treat Data Management as the "gap filler." At 24%, it is the second-largest domain but still less than half of Application Development. Focus on search refinements, logging, and OCAPI permissions, the topics most likely to appear in scenario questions.
  5. Do not ignore B2C Setup entirely. At 11%, it is small, but cartridge path sequencing appears in both Setup and Application Development. Missing the Setup questions often signals a deeper misunderstanding of how cartridges resolve.
  6. Run the timed simulator only after Application Development stabilizes. The official passing score is 70%. Fix the big domain first, then build exam stamina for 60 questions in 105 minutes.

Domain weights reflect the official B2C Commerce Developer exam guide. The exam contains 60 scored multiple-choice and multiple-select questions plus up to 5 unscored questions, with a 105-minute time limit and a passing score of 70%. No prerequisite is required, but Salesforce recommends 3–6 months of hands-on B2C Commerce development experience.