Salesforce - Big Savings Alert – Don’t Miss This Deal - Ends In 1d 00h 00m 00s Coupon code: 26Y30OFF
  1. Home
  2. Salesforce
  3. Comm-Dev-101 Exam
  4. Free Comm-Dev-101 Questions

Free Practice Questions for Salesforce Comm-Dev-101 Exam

Pass4Future also provide interactive practice exam software for preparing Salesforce Certified B2C Commerce Developer (Comm-Dev-101) Exam effectively. You are welcome to explore sample free Salesforce Comm-Dev-101 Exam questions below and also try Salesforce Comm-Dev-101 Exam practice test software.

Page:    1 / 14   
Total 154 questions

Question 1

A client has a requirement to allow users on the Storefront to filter by a newly created attribute. Which is necessary to achieve this?



Answer : A

A storefront filter is represented in B2C Commerce product search as asearch refinement. Therefore, after creating or selecting an appropriate product attribute, the administrator must create a Search Refinement Definition that associates the refinement with that attribute and the appropriate category/search context.

Merely marking an attribute searchable is not equivalent to defining it as a refinement. 'Searchable' primarily determines participation in keyword-search behavior, while a refinement definition instructs the search system to expose attribute values as shopper-selectable filters. The attribute must also contain values on relevant products and be represented in the search index for the refinement to produce useful values.

Changingproductsearchrefinebar.ismlis not normally required. SFRA retrieves available refinements dynamically from the Product Search Model, so configured refinements can appear through the standard refinement components without hard-coding each attribute into the template.

Salesforce confirms that custom Product attributes can be created forsite search, search refinements, or sorting rules, demonstrating that refinement configuration is a distinct use of the attribute.

Study Guide reference:Data Management Using Business Manager Usage --- Search Refinement Definitions, custom Product attributes, search indexing, and storefront product filtering.

===============


Question 2

Given this customer basket information:

* A customer has an existing basket that consists of multiple items.

* One of the items is identified as a gift item by an attribute at the product line item.

* The developer needs to write custom code to fetch the customer basket and then modify the basket based upon the items in the cart. If the basket contains any gift items, modify the basket and create a separate shipment for the gift item.

Four hooks are required to make the modification, beginning with modifyGETResponse and ending with validateBasket.

dw.ocapi.shop.basket.modifyGETResponse

-- missing hook --

-- missing hook --

dw.ocapi.shop.basket.validateBasket

What are the two missing hooks in the middle?



Answer : A

The required workflow creates a new shipment for a gift item and then modifies shipment information associated with the basket. The OCAPI basket shipment hooks corresponding to those two operations aredw.ocapi.shop.basket.shipment.beforePOSTanddw.ocapi.shop.basket.shipment.beforePATCH.

Salesforce's OCAPI hook documentation definesshipment.beforePOSTas the extension point executed before creation of a shipment andshipment.beforePATCHas the extension point executed before modification of an existing shipment. Those operations align directly with the described solution: establish the separate shipment and then apply the necessary changes before final basket validation.

The alternatives involvingbeforeDELETEorafterDELETEare inconsistent with the scenario because no shipment needs to be deleted. The requirement is to separate a gift product into its own shipment, not remove a shipment from the basket.

The concludingvalidateBaskethook provides the final validation stage after the basket/shipment changes have been processed, allowing custom logic to ensure that the resulting basket remains valid.

Study Guide reference:Application Development --- OCAPI Shop API hooks, basket extension points, shipment creation and modification, and basket validation.

===============


Question 3

A retailer notices that the Account Addresses page is showing the wrong shopper's address.

Which tool should the developer start with to identify the issue?



Answer : A

TheStorefront Toolkitis the appropriate starting point because this is a storefront rendering and data-presentation defect rather than a reporting or performance-analysis problem. The toolkit provides developer-facing information about the storefront page and helps identify the templates and application components involved in generating what the shopper sees. Salesforce specifically documents the Storefront Toolkit as a mechanism for identifying which portions of a storefront page are associated with particular templates.

With the wrong customer's address appearing on the Account Addresses page, the developer should first determine which template, controller route, remote include, or cached fragment is producing the displayed information. That narrows the investigation to the responsible application layer before examining the underlying customer/session logic.

The Reports and Dashboards module is intended for business and operational reporting and would not normally expose a template-level rendering defect. Pipeline Profiler is primarily concerned with execution and performance profiling, so it is more suitable when diagnosing slow pipelines or execution bottlenecks rather than incorrect shopper-specific content.

Study Guide reference:Work With a B2C Site --- Storefront Toolkit, storefront troubleshooting, template identification, and diagnosing rendered customer-specific content.

===============


Question 4

A developer is working on a feature that requires the use of a third-party API. What is the best practice for handling API responses in Salesforce B2C Commerce?



Answer : B

Among the supplied choices, B is the only approach consistent with robust B2C Commerce integration design: the application must inspect service results, preserve useful diagnostic information, and implement controlled error behavior rather than blindly proceeding.

However, 'log all responses' must be interpreted according to Salesforce's secure logging practices. Raw responses mustnotbe persisted indiscriminately when they contain passwords, access tokens, personal information, payment data, or other sensitive content. B2C Commerce's Service Framework provides logging controls such as response/request filtering specifically so that sensitive information can be removed before it reaches diagnostic logs.

Ignoring a failed API response, as in A, can produce corrupt application state or misleading storefront behavior. Option C is equally problematic because silently converting failures into successful responses prevents calling code and shoppers from receiving appropriate failure handling.

A correct production implementation examines the Service Framework result, logs sanitized diagnostic context where appropriate, implements fallback behavior when the business process allows it, and returns a controlled application response.

Study Guide reference:Application Development --- Service Framework, external API integrations, service result handling, secure logging, exception management, and graceful failure behavior.

===============


Question 5

A merchant has reported that customers are seeing low stock items at the top of their search results, giving them a subpar customer experience and impacting conversion.

How might this issue be resolved to ensure a better customer journey?



Answer : B

B2C Commerce provides a dedicatedAvailability Low Ranking Thresholdsetting for exactly this search-merchandising requirement. It is configured in Business Manager under Search Preferences and specifies the availability percentage at or below which products should be pushed toward the end of search results.

Salesforce gives the example that a threshold of0.3causes products with availability of 0.3 or lower to be ranked lower in storefront search. This preserves product discoverability while prioritizing merchandise that has healthier inventory.

Option A is unnecessarily destructive and operationally inefficient. Hiding products through an hourly job changes catalog state and can create delays or merchandising side effects. It also does not distinguish between temporarily low inventory and true unavailability. Option C confuses availability ranking with Searchable Attribute boost configuration. The platform already exposes a specific preference for low-availability ranking, so custom boosting is unnecessary.

This feature is particularly useful when merchants want low-stock merchandise still discoverable but not prominently ranked, balancing inventory awareness with conversion-oriented search results.

Study Guide reference:Data Management Using Business Manager Usage --- Search Preferences, Availability Low Ranking Threshold, product availability, and search-result ranking.

===============


Page:    1 / 14   
Total 154 questions