Salesforce certification · Exam Salesforce-B2C-Commerce-Developer

Salesforce-B2C-Commerce-Developer Mock Exam

Salesforce B2C Commerce Developer

Free Salesforce-B2C-Commerce-Developer questions on B2C Commerce Setup, each with the answer and an explanation.

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

B2C Commerce Setup questions

1–2 of 2 free
Question 1 Choose 1
A developer is using the Script Debugger to troubleshoot an issue. They observe that the debugger is not able to resolve a specific breakpoint on one of the scripts. What is a possible reason for this issue?
Show answerHide answer

Correct answer: A The cartridge containing the script isnot in the site’s cartridge path

Explanation

Explanation:

In Salesforce B2C Commerce, the Script Debugger (accessed via Business Manager → Administration → Development Setup → Debug Center or directly in the IDE plugin) can only set and hit breakpoints on scripts that are resolvable in the current site's cartridge path.

If the cartridge containing the script is not on the site's cartridge path (Business Manager → Administration → Sites → Manage Sites → [Your Site] → Settings → Cartridges), then:

- The debugger cannot locate the source file at runtime.
- Breakpoints appear as "unverified" (grayed out or hollow circles in VS Code/Eclipse).
- The debugger shows "Breakpoint ignored" or simply never stops there.

This is the most common reason why a breakpoint on a specific script is not resolved or hit.

Why the other options are incorrect

B. The script debugging session is not active
→ If no debugging session is active, no breakpoints work at all (not even on core cartridges). The developer would notice this immediately on any script. The question specifies one specific script fails while others presumably work.

C. The script is from a third-party cartridge and hence does not allow setting breakpoints
→ This is false. Third-party cartridges (e.g., int_klaviyo, int_cybersource, etc.) fully support breakpoints as long as they are on the cartridge path. Salesforce does not restrict debugging on third-party code.

Confirmation
Salesforce Help: "The debugger can only stop at breakpoints in cartridges that are included in the site's cartridge path."
Known limitation in SFCC IDE plugins (WebStorm, VS Code, Eclipse): Breakpoints in cartridges outside the path are marked as unverified.

Solution
Add the missing cartridge to the site's cartridge path (and restart or reconnect the debugger session if needed).
Question 2 Choose 1
What step should a developer take to troubleshoot code changes not appearing on the Storefront?
Show answerHide answer

Correct answer: B Check that the correct code version is selected.

Explanation

Explanation

In Salesforce B2C Commerce (SFCC), code is deployed as code versions — each deployment uploads a version of the codebase to the instance. The active code version determines which code the storefront actually runs.

When a developer makes code changes and they do not appear on the storefront, the most common cause is that the incorrect (or an older) code version is currently selected/active. Even though the new code was uploaded, the storefront continues to serve the previously activated version until the developer activates the new code version.

The troubleshooting step is therefore to:

* Check which code version is currently active on the instance (in Business Manager under Administration > Site Development > Code Deployment, or via the code version selector).
* Activate the correct code version that contains the recent changes.

This ensures the storefront runs the code the developer just deployed. This is the primary, most direct troubleshooting step for "my code changes aren't showing up."

Why the Other Options Are Incorrect

A. Check the Business Manager site cartridge path.
– The cartridge path determines which cartridges are loaded for a site (and their order/priority), which matters for overrides and cartridge precedence. However, if the code changes were made within the already-configured cartridges and deployed in a new code version, the cartridge path is not the issue. The cartridge path would only be relevant if a new cartridge was added and not included in the path — but the more common and direct cause of code changes not appearing is an inactive/wrong code version. So this is not the first or best troubleshooting step for this scenario.

C. Check that the search index was recently rebuilt.
– The search index affects product search and category browsing results (which products appear in search/browse), not whether code changes appear on the storefront. A stale search index could cause product data to appear outdated, but it has nothing to do with code/template/logic changes not rendering. This option misattributes a search-data concern to a code-deployment problem.

Reference

Salesforce B2C Commerce documentation — Code Deployment and Code Versions in Business Manager (Administration > Site Development > Code Deployment), covering uploading, selecting, and activating code versions on an instance.

That's the last free question in B2C Commerce Setup

You've seen the free 30% (2 of 9 questions). Full access unlocks every question and full-length Salesforce-B2C-Commerce-Developer mock exams, a different mock on every attempt.

Unlock full mock exam
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