Limited-Time Offer: Enjoy 50% Savings! Coupon code: 50OFF Use it at checkout
Skip to content

Free Salesforce Certified B2C Commerce Developer Comm-Dev-101 Exam Questions

Last updated: · 13 practice questions with answers and explanations

Page: 1 / 11 Total 154 questions

Want more questions? Get Premium Access.

Question 1

New Single answer

Topic: B2C Commerce Setup

Skill tested: Configure cartridge paths and deploy cartridges to the intended code version.

A retailer maintains separate development and integration code versions. Developers deploy a shared logging cartridge and a storefront cartridge through their IDE, but the storefront cannot resolve a helper module that exists in the shared cartridge. The shared cartridge is present in the active code version, and the storefront cartridge is deployed successfully. The site is configured to use both cartridges, and no source changes are permitted during the incident. What should the developer check first?

Correct Answer: B. Whether the shared cartridge appears before the storefront cartridge in the site's cartridge path.
Explanation:

Cartridge path order affects resolution: cartridges earlier in the path take precedence, and modules from a dependent shared cartridge must be available through the configured path. The shared cartridge should be placed before the storefront cartridge so the storefront can resolve its helper. Placing it after the storefront does not meet the required sequencing. Importing it as catalog data does not deploy source code, and locale assignment does not resolve a missing cartridge module.

Question 2

New Single answer

Topic: B2C Commerce Setup

Skill tested: Use Business Manager imports to load data while selecting the correct archive workflow.

A merchandising team receives a compressed archive containing catalog XML and image files for a new seasonal category. The data must be loaded into a sandbox through Business Manager, without changing storefront code or deploying a cartridge. The team has confirmed that the archive uses a supported B2C Commerce import format and has access to the relevant site and catalog. Which approach best meets the requirement?

Correct Answer: D. Import the archive through the Business Manager data import workflow, selecting the appropriate catalog and site context.
Explanation:

Catalog XML and associated import data belong in the Business Manager import workflow, with the correct catalog and site context selected. A cartridge deployment or WebDAV upload to a code version is intended for application code and related code-version assets, not for importing catalog records. Activating a code version would not perform the required data import. A custom JavaScript compilation job is unnecessary and does not replace the supported import process.

Question 3

New Single answer

Topic: Work With a B2C Site

Skill tested: Configure Page Designer content assets and slots for storefront presentation.

A brand team wants to manage a promotional banner independently from code and reuse it on several landing pages. Each landing page is built in Page Designer, and the campaign content must be editable by authorized Business Manager users. The developer should not hard-code the banner markup or create a custom rendering mechanism unless necessary. Which design is most appropriate?

Correct Answer: B. Create a content asset for the promotion and place it in an appropriate Page Designer content slot.
Explanation:

A Business Manager content asset provides editable managed content, while a Page Designer content slot provides a controlled placement point for that content on pages. This separates campaign content from application code and supports the requested page-based presentation. A custom object and controller introduce unnecessary custom rendering. Hard-coding content requires deployments for changes, and product attributes are not an appropriate content-management mechanism for reusable promotional banners.

Question 4

New Multiple answers

Topic: Work With a B2C Site

Skill tested: Configure site shipping and payment methods consistently with storefront checkout requirements.

A retailer launches a new site that should offer two carrier-based shipping methods and one payment method already configured for the organization. Checkout must not expose methods disabled for this site, and the team wants configuration to remain manageable in Business Manager rather than being implemented as controller-specific hard-coded logic. Which TWO actions best satisfy these requirements? Select TWO.

Correct Answer: A. Enable the required payment method for the site and verify its applicable payment processor configuration.; B. Enable the required shipping methods for the site and associate them with the appropriate shipping configuration.
Explanation:

Shipping and payment availability should be configured in Business Manager for the relevant site, with the necessary shipping configuration and payment processor settings in place. This keeps checkout choices governed by platform configuration rather than presentation logic. Hard-coding identifiers in ISML can expose choices that are not actually configured or available. Catalogs and content assets do not provide the correct mechanism for controlling checkout shipping or payment eligibility.

Question 5

New Single answer

Topic: Data Management Using Business Manager Usage

Skill tested: Configure search refinements using indexed attributes and storefront search settings.

A retailer wants shoppers to refine apparel searches by material. The material value is stored on products, and the search index is refreshed, but the refinement does not appear in storefront results. The team wants the attribute available only as a refinement, not as a sort option, and does not want to redesign the product catalog. What is the most appropriate next step?

Correct Answer: C. Configure the material attribute as a searchable refinement in the relevant search preferences and ensure it is indexed.
Explanation:

A product attribute used as a storefront refinement must be configured appropriately in search preferences and available in the search index. The scenario says the index was refreshed, but the refinement still needs to be enabled in the relevant search configuration. Product options address selectable product variants, not search refinements. Cartridge paths control code resolution, and custom objects do not replace product search configuration.

Question 6

New Multiple answers

Topic: Data Management Using Business Manager Usage

Skill tested: Configure custom objects and import/export processes for operational data management.

An operations team needs a small set of store-level processing checkpoints keyed by an external system identifier. The records are not products or orders, and users need to maintain them through an established data-import process. The implementation should use B2C Commerce data-management capabilities and avoid creating a new database integration. Which TWO actions are appropriate? Select TWO.

Correct Answer: A. Use the Business Manager import/export mechanism for the custom object data where supported by the configured process.; C. Define a custom object type with the required attributes and a suitable key strategy.
Explanation:

Custom object types are intended for application-specific records that do not fit standard business entities such as products or orders. Their attributes and keys should reflect the operational data model. Business Manager import/export or an appropriately configured job can manage supported custom object data without introducing an external database. Products, sessions, and content assets have different semantics and persistence or management purposes, so they are unsuitable for these checkpoints.

Question 7

New Multiple answers

Topic: Data Management Using Business Manager Usage

Skill tested: Restrict OCAPI access through client permissions and narrowly scoped resource grants.

An integration vendor uses the OCAPI Shop API to read product information for one site. The vendor does not need customer, basket, or order access, and security review requires minimizing both permitted resources and access scope. The integration authenticates with an API client configured for the environment. Which TWO configuration choices best support this requirement? Select TWO.

Correct Answer: D. Grant the client only the Shop API resources and HTTP methods needed for product reads.; E. Configure the applicable OCAPI client permissions and scope them to the intended site and access.
Explanation:

OCAPI access should follow least privilege: configure the relevant client permissions, grant only the required Shop API resources and methods, and limit access to the intended site or scope as applicable. Authentication alone does not justify wildcard authorization. Data API permissions do not substitute for Shop API permissions, and client secrets must not be exposed in browser-rendered storefront content. Narrow grants reduce the impact of credential misuse.

Question 8

New Single answer

Topic: Data Management Using Business Manager Usage

Skill tested: Diagnose logging configuration and select the correct source for application diagnostics.

A production support engineer is investigating an intermittent controller failure. The controller catches the exception and writes diagnostic details using the platform logging API, but the expected messages are absent from the available log files. The team has verified that the code path executes and wants to avoid adding more logging calls until it understands the configuration. What should the engineer check first?

Correct Answer: B. Whether the relevant custom log category and log level are configured to capture the emitted messages.
Explanation:

B2C Commerce logging configuration determines whether messages for a category and severity are recorded and where they are available. Confirming the relevant log category and level is the appropriate first diagnostic step when code execution is verified but messages are missing. Search indexing and cartridge path order do not control log capture. Persisting exception details in content assets would be an inappropriate workaround and could expose operational information.

Question 9

New Multiple answers

Topic: Data Management Using Business Manager Usage

Skill tested: Select supported import and export paths for catalog, inventory, and order data.

A retailer is planning a controlled data refresh. A merchant will update catalog records using a supported catalog import, while a separate integration supplies inventory updates. Operations also need to export order information for downstream reconciliation, without modifying order records through an unsupported bulk file workflow. Which TWO practices are appropriate? Select TWO.

Correct Answer: B. Use the appropriate inventory import or integration mechanism for inventory data, distinct from catalog definition updates.; C. Use the catalog import workflow and validate the target catalog and import mode before applying the merchant file.
Explanation:

Catalog definitions and inventory availability are different data concerns and should use the corresponding supported import or integration mechanisms. Validating the catalog target and import mode helps prevent unintended data changes. Inventory should not be modeled as catalog definitions. Directly copying runtime database files is not a supported operational export practice. The question asks for two choices, so the order-export option is a sensible practice but is not selected here; the correct pair focuses on the stated controlled refresh of catalog and inventory.

Question 10

New Single answer

Topic: Application Development

Skill tested: Implement controller form validation and preserve CSRF protection on state-changing requests.

A storefront controller processes a profile-update form. Client-side validation is present, but a crafted request can submit invalid values directly. The update is a state-changing POST, and the storefront uses the platform's standard form and CSRF facilities. The team wants server-side validation and protection without bypassing the normal form lifecycle. What should the controller do before persisting the submitted data?

Correct Answer: A. Validate the submitted form on the server, handle validation errors through the form flow, and retain CSRF validation for the POST.
Explanation:

Client-side checks improve usability but cannot be trusted for security or data integrity. The controller must validate submitted values server-side and follow the form error flow before persisting changes. State-changing requests should retain the standard CSRF protection rather than disabling it. GET is inappropriate for an update because it can be cached, replayed, or triggered as a navigation request; content type alone does not prevent forged requests.

Question 11

New Multiple answers

Topic: Application Development

Skill tested: Build Page Designer page types and components with their required rendering metadata.

A development team is adding a reusable editorial tile to Page Designer. Business users should be able to add the tile to supported pages, configure its image and text, and preview it through the storefront. The implementation must follow the Page Designer model rather than render a standalone ISML fragment with no Page Designer registration. Which TWO implementation elements are required? Select TWO.

Correct Answer: A. Define the component's Page Designer metadata and configuration model so it can be selected and configured.; E. Provide the component rendering implementation and make it available through the application's cartridge structure.
Explanation:

A Page Designer component needs metadata that describes its identity and configurable attributes, along with a rendering implementation available to the application. Those elements allow Business Manager users to place and configure the component and allow the storefront to render it. Search refinements and shipping methods serve unrelated functions. Shopper sessions are request/user state, not a replacement for Page Designer-managed content configuration.

Question 12

New Single answer

Topic: Application Development

Skill tested: Use OCAPI Shop endpoints for storefront data access with appropriate authorization.

A mobile storefront needs to retrieve product search results and display product details for a site. It should use a storefront-facing API and must not receive administrative access to catalog maintenance operations. The integration team is configuring API permissions and choosing the API family for these reads. Which approach is most appropriate?

Correct Answer: B. Use OCAPI Shop endpoints for the storefront reads and grant only the necessary Shop resources and methods.
Explanation:

The OCAPI Shop API is intended for storefront-facing commerce operations such as product and search access. The integration should receive only the resources and methods it needs. OCAPI Data is oriented toward data-management access and broad write permissions would violate the stated constraint. Import/export workflows are for data operations, not interactive mobile storefront queries. Duplicating products as custom objects adds complexity and bypasses standard product capabilities.

Question 13

New Single answer

Topic: Application Development

Skill tested: Design scheduled jobs with safe chunking, restartability, and bounded processing.

A nightly job processes a large set of eligible product records and updates a custom attribute. The current implementation loads all matching products into memory and can exceed the job's execution limits as the catalog grows. The job must remain rerunnable after partial failure and should avoid changing unrelated products. What is the best design direction?

Correct Answer: A. Process records in bounded batches, select only eligible products, and make each update safe to repeat.
Explanation:

A scalable scheduled job should process a bounded set of records at a time, limit its selection to eligible products, and make updates idempotent or otherwise safe to rerun. This reduces memory pressure and supports recovery from partial failures without affecting unrelated catalog data. Raising a result limit preserves the unbounded-memory problem. Storefront requests are not an operational batch mechanism, and rebuilding the catalog is unnecessarily disruptive.