Weekend Special Sale 75% Discount Offer - Ends in 0d 00h 00m 00s - Coupon code: sale75best

Free Salesforce Comm-Dev-101 Practice Exam with Questions & Answers | Set: 2

Questions 11

A developer is asked to create a new service instance that will call a remote web service.

Which method should the developer use to create the service instance?

Options:
A.

dw.svc.LocalServiceRegistry.createService()

B.

dw.svc.LocalServiceInstance.createService()

C.

dw.svc.LocalServiceRegistry.getDefaultService()

Salesforce Comm-Dev-101 Premium Access
Questions 12

A developer is tasked with the development of a new Page Designer Page Type, as requested by the merchant. How should they define the rendering logic of the page?

Options:
A.

Implement a JavaScript file with a render() function.

B.

Implement a metadata JSON file with a " render " property.

C.

Implement a Controller file with a " render " route.

Questions 13

Which object type can a developer import using the Merchant Tools > Content > Import & Export module in Business Manager?

Options:
A.

Content assets

B.

Content slots

C.

Products

Questions 14

What should a developer implement to enhance the functionality of an existing controller route?

Options:
A.

Use the " append " method of the server module for the existing route.

B.

Replace the callback function of the existing route using superModule.

C.

Use the " extend " method of the server module for the existing route.

Questions 15

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

Questions 16

In Log Center, a developer notes a number of Cross Site Request Forgery (CSRF) log entries.

After adding the token in the ISML template, which action might solve this problem?

Options:
A.

Add csrfProtection middleware steps in the controller.

B.

Extend the CSRF token validity to avoid timeouts.

C.

Delete the existing CSRF allow list in Business Manager.

Questions 17

A developer is working on a new site for the U.S. based on an existing Canadian site. One of the requirements is a change to the address form. The current Canadian form has an < options > list with the correct two-letter abbreviation for the provinces.

The U.S. requirements are to:

Have an < options > list with the correct two-letter abbreviation for the states in place of the province field.

Set the U.S. site locale.

Add the options list field definition to the XML file.

How should the developer set up the files before making the required edits?

Options:
A.

Create a new sub-folder in the forms folder. Name it en_US. Copy existing address.xml file in the new folder.

B.

Create a copy of existing address.xml file in the default folder. Rename that file to address_en_US.xml.

C.

Create a new sub-folder in the forms folder. Name it US. Copy existing address.xml file in the new folder.

Questions 18

A developer is implementing a new feature that requires the use of a custom object. What is the first step the developer should take?

Options:
A.

Create the custom object in Business Manager.

B.

Define the custom object in the code.

C.

Write the logic to handle the custom object.

Questions 19

A new product has been added to the Storefront catalog that is assigned to a site.

Which configuration does a developer need to ensure to have a new product visible in the Storefront?

Options:
A.

The search index is built AND the product is online and searchable.

B.

The product has a master product AND the search index is built.

C.

The product has a price AND the product is online and searchable.

Questions 20

Which method is efficient and scalable because it uses the product search index rather than searching the database?

Options:
A.

ProductAvailabilityModel.isOrderable()

B.

ProductIndexModel.getOrderableProductsOnly()

C.

ProductSearchModel().getProductSearchHits()

Exam Code: Comm-Dev-101
Certification Provider: Salesforce
Exam Name: Salesforce Certified B2C Commerce Developer
Last Update: Sep 20, 2026
Questions: 154

Salesforce Free Exams

Salesforce Free Exams
Examstrack provides free Salesforce exam prep materials and practice tests to support your Salesforce certification goals.