Month End Sale Special - 75% Discount Offer - Ends in 0d 00h 00m 00s - Coupon code: 75epass

Exact2Pass Menu

Salesforce Certified B2C Commerce Developer

Last Update 1 hour ago Total Questions : 154

The Salesforce Certified B2C Commerce Developer content is now fully updated, with all current exam questions added 1 hour ago. Deciding to include Comm-Dev-101 practice exam questions in your study plan goes far beyond basic test preparation.

You'll find that our Comm-Dev-101 exam questions frequently feature detailed scenarios and practical problem-solving exercises that directly mirror industry challenges. Engaging with these Comm-Dev-101 sample sets allows you to effectively manage your time and pace yourself, giving you the ability to finish any Salesforce Certified B2C Commerce Developer practice test comfortably within the allotted time.

Question # 21

A developer is using logging in scripts to troubleshoot an issue. They are using the dw.system.Log class to write to specific log levels and categories. Which log level is always enabled by default?

A.

FATAL

B.

INFO

C.

ERROR

Question # 22

What action meets the requirement to show washing instructions for a clothing product?

A.

Add a resource file for every locale for which the attribute needs to be translated.

B.

Create a custom attribute on the product system object and set it as localizable.

C.

Set the product system object type as localizable.

Question # 23

A developer is writing a server side script that needs to maintain state across calls. The persistent information needed includes these items:

• The current customer

• Whether or not the customer is authenticated

• The privacy attributes (such as tracking consent or cookie policy)

Which technique should the developer use to maintain state in an efficient and scalable manner that follows best practice?

A.

Use a client-side cookie to store the information for the session duration.

B.

Use the Session class, and its additional class references and attributes, in the B2C Commerce API.

C.

Use an SFRA controller. Because it runs server-side, the state is automatically maintained.

Question # 24

Which operation should be done in a controller?

A.

Generate the response as JSON.

B.

Use the Script API to generate data for the view.

C.

Create a plain JavaScript object representing a system object.

Question # 25

There is a business requirement that a custom controller in app_custom_my_cartridges invokes the calculateTax function of the dw.order.calculateTax hook that is defined in app_storefront_base. How can the developer implement this call?

A.

Use:dw.system.HookMgr.callHook( ' dw.order.calculateTax ' , ' calculateTax ' ,currentBasket);

B.

Add the location of the dw.order.calculateTax hook to hooks.json, and then usedw.system.HookMgr.callHook(...).

C.

Add the location of the dw.order.calculateTax hook to package.json, and then usedw.system.HookMgr.callHook(...).

Question # 26

What is accomplished by the code below?

< isinclude url= " ${URLUtils.url( ' Account-Header ' , ' mobile ' , true)} " / >

A.

Performs a remote include from the Account-Header endpoint.

B.

Performs a local include from the Account-Header endpoint.

C.

Creates a link to the Account-Header endpoint that allows mobile navigation.

Question # 27

A developer needs to perform the same additional checks before completing multiple routes in a custom controller, in order to decide whether to render a template or redirect the user to a different page.

According to SFRA best practices, what is the correct approach to improve code reusability in this scenario?

A.

Define a new middleware function and use it in the existing routes.

B.

Append a new function to all the existing routes with the server module.

C.

Use the superModule property in the existing routes to extend their functionality.

Question # 28

A merchant checked the " Show Orderable Products Only " preference in Business Manager.

What impact does this have on the Storefront from a user perspective?

A.

Products with an Available to Sell (ATS) = 0 will be excluded from search results.

B.

Back-order products will be excluded from search results.

C.

The product detail page will be hidden if Available to Sell (ATS) = 0.

Question # 29

Given a sandbox with an active slot configuration with the following specifications:

Content type set to product

With some product configured

With the following rendering template:slots/product/product_1x2.isml

Correctly enabled and scheduled

And given the code contained in the selected rendering template:

< isif condition= " ${!empty(slotcontent)} " >

< isloop iterator= " ${slotcontent.content} " alias= " product " >

< div class= " product " >

< isprint value= " ${product.getID()} " > < br / >

< isprint value= " ${product.getName()} " > < br / >

< /div >

< /isloop >

< /isif >

Is an additional action needed for this to work as intended?

A.

No - The content slot is rendered correctly.

B.

Yes - The isloop should be removed because no loops are allowed in a content slot rendering template.

C.

Yes - The content needs to be configured with a recommender to display products.

Question # 30

What is the expected result when extending a route without the middleware chain?

A.

The base code executes and then the custom code executes.

B.

A RunTime error is thrown, " Error: Params do not match route " .

C.

The custom code executes and then the base code executes.

Go to page: