Exclusive Black Friday Deal: 70% Off All Exam Bundles! Use coupon code below to unlock your savings! - Ends in 0d 00h 00m 00s - Coupon code: Friday70

Free Salesforce Certified B2C Commerce Developer Practice Questions

Question # 31

What is the result when the code segment executes with the logger configuration?

Options:

A.  

Logs will be written to the log file with a prefix custom-loggersFile.

B.  

Logs will be written to the log file with a prefix custom-loggers.

C.  

Logs will be written to the log file with a prefix loggerFile.

Discussion 0
Question # 32

A client that sells sport shoes wants to allow its customers to filter products based on the intended activity (such as tennis, jogging, basketball, etc.), but this particular information is not present in the current catalog.

Which two actions does a developer need to perform in a B2C Commerce instance to allow this to happen?

Options:

A.  

Create a new Product custom attribute AND add a new Search Refinement Definition for the desired categories.

B.  

Create a new ProductRefinement custom attribute AND add a new Search Refinement Definition for the desired categories.

C.  

Create a new Product custom attribute AND add a new viewtype in the storefront catalog settings.

Discussion 0
Question # 33

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?

Options:

A.  

In the middleware chain of the controller post route

B.  

In the controller function that displays the form

C.  

In the model function that persists the form data

Discussion 0
Question # 34

Given the sandbox with:

• Service configured and assigned to its profile and credential

• A code version that uses that service

And given the requirement to limit the number of success or error calls the code can perform to a restricted number of calls per second. Which configuration should the developer perform?

Options:

A.  

Set the service as limited and change the services profile site preferences with the required values.

B.  

Set the rate limiter in the service profile and configure its values with the ones required.

C.  

Set a new quota limit for the service profile and assign the service to it.

Discussion 0
Question # 35

A developer needs to implement a new feature that requires the use of a custom attribute. What is the first step the developer should take?

Options:

A.  

Create the custom attribute in Business Manager.

B.  

Define the custom attribute in the code.

C.  

Write the logic to handle the custom attribute.

Discussion 0
Question # 36

What should a developer do to ensure that the gift vouchers are always available?

Options:

A.  

Manually set the inventory to a high number.

B.  

Set StockLevel = maxAllocation for the product.

C.  

Check the perpetual flag in the product inventory record.

Discussion 0
Question # 37

In the SFRA Page controller, the following route exists:

server.get( ' Include ' ,server.middleware.include,cache.applyDefaultCache,

function(req,res,next) {

...assume original code here...

next();

}

);

The result of navigating to the address below is an error page.

https://yourinstance/on/demandware.store/Sites-RefArch-Site/en_US/Page-Include?cid=about-us

What is the correct way to use this controller route in an ISML template?

Options:

A.  

< a href= " ${URLUtils.url( ' Page-Include ' , ' cid ' , ' about-us ' )} " > ${Resource.msg( ' aboutus ' , ' content ' ,null)} < /a >

B.  

< isinclude url= " ${URLUtils.url( ' Page-Include ' , ' cid ' , ' about-us ' )} " >

C.  

< iscontent url= " ${URLUtils.url( ' Page-Include ' , ' cid ' , ' about-us ' )} " >

Discussion 0
Question # 38

Given the following ISML example, how should a developer reference the product object in the current iteration of the basket?

< isloop items= " ${pdict.Basket.products} " var= " product " status= " loopstatus " >

...

< /isloop >

Options:

A.  

product

B.  

pdict.product

C.  

pdict.Basket.products[loopstatus]

Discussion 0
Question # 39

Given the requirements:

• To show the washing instructions for a clothing product on a dedicated section of the detail page

• Washing instructions come from the product information manager (PIM)

• To have this attribute available to localize in the Storefront

Which action meets these requirements?

Options:

A.  

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

B.  

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

C.  

Set the product system object type as localizable.

Discussion 0
Question # 40

A Storefront is designed so that multiple pages share a common header and footer layout.

Which ISML tag should a developer use on the templates for these pages to avoid code repetition in the most effective way?

Options:

A.  

< isdecorate > ... < /isdecorate >

B.  

< isreplace > ... < /isreplace >

C.  

< isinclude > ... < /isinclude >

Discussion 0

Comm-Dev-101 PDF

Comm-Dev-101 PDF (Printable)
$46.5
$154.99

Comm-Dev-101 Testing Engine

Comm-Dev-101 PDF (Printable)
$51
$169.99

Comm-Dev-101 PDF + Testing Engine

Comm-Dev-101 PDF (Printable)
$63.9
$212.99

Free Exams Sample Questions