Discount Offer
Available in 1, 3, 6 and 12 Months Free Updates Plans
PDF: $15 $60

Test Engine: $20 $80

PDF + Engine: $25 $99



Pass exam with Dumps4free or we will provide you with three additional months of access for FREE.

B2C-Commerce-Developer Practice Test


Page 9 out of 42 Pages

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>

</form>
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?


A.

In the controller function that displays the form


B.

In the middleware chain of the controller post route


C.

In the controller function that handles the submitted form


D.

In the model function that persists the form data





B.
  

In the middleware chain of the controller post route



Consider the following information:
• A merchant has this three-tier category structure setup in the Storefront catalog:
New Arrivals > Women > Clothing
• The category named Clothing has all the clothing items for Women and is merchandised.
• A Search Refinement named Newness is correctly configured for the Clothing category.
When a merchandiser views the Clothing category, the Search Refinement appears and Works as
expected. However, the merchandiser does not see the Search Refinement when searching for Clothing via the Storefront search.
What is the Reason?


A.

There are conflicting Search Refinement definitions for Clothing and one of its parent
categories


B.

The Search Refinement definition is not set up for the Women category


C.

The Search Refinement definition is not set up for the New Arrivals Category.


D.

The Search Refinement definitions is not set up for the Root Category





C.
  

The Search Refinement definition is not set up for the New Arrivals Category.



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?


A.

dw.ocapi.shop.order.validateOrder


B.

dw.ocapi.shop.basket.calculate


C.

dw.ocapi.shop.basket.afterPostShipment


D.

dw.ocapi.shop.order.afterPOST





B.
  

dw.ocapi.shop.basket.calculate



A client has two B2C Commerce sites in the same instance: one for the U.S market, the other for the
European market. The products they make are sold with different safety certificates based-on the world
location.
For example, they sell a smartphone with certificate A in the U.S and certificate B in Europe, a
hairdryer with certificate C in the U.S and certificate D in Europe, and more
How should a developer allow the merchant to display the appropriate certification logo in the produce to details page, depending on the customer’s location?


A.

Add a Localizable custom attribute to the Certificate system object type.


B.

Ad and Image custom preference to the Sitepreference system object type


C.

Add a Site-specific custom attribute to the Product system object type.


D.

Add a Localizable custom preference to the SitePreference system object type.





C.
  

Add a Site-specific custom attribute to the Product system object type.



A Digital Developer is working in a sandbox on a site named test-site using the domain test.demandware.net.
The Developer needs to compile a url to make an Open Commerce API (OCAPI) request that returns product information. By default, which URL format is a proper Open Commerce API for Sandbox?


A.

https://test.demandware.com/dw/shop/products/M1355?client_id=aaa...


B.

https://www.test.com/s/test-site/sfc/shop/products/M1355?client_id=aaa...


C.

https://test.demandware.net/s/test-site/dw/shop/v18_3/products/M1355?client_id=aaa...


D.

https://www.test.com/dw/shop/v18_3/products/M1355?client_id=aaa..





C.
  

https://test.demandware.net/s/test-site/dw/shop/v18_3/products/M1355?client_id=aaa...




Page 9 out of 42 Pages
Previous