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

Comm-Dev-101 Salesforce Certified B2C Commerce Developer Questions and Answers

Questions 4

A developer configures the dw.json file and needs to fill in the necessary parameters to complete the task.

Which parameter is required when using npm scripts?

Options:

A.

Username

B.

CSRF Token

C.

Site ID

Buy Now
Questions 5

A developer needs to update the package.json file so that it points to the hook file for a cartridge, using the hooks keyword.

Which snippet works correctly when added to the file?

Options:

A.

{ " hooks " : " ./cartridge/scripts/hooks.json " }

B.

{ hooks: ./cartridge/scripts/hooks.json }

C.

{ " hooks " : " ./scripts/hooks.json " }

Buy Now
Questions 6

Below is a form definition snippet from the newsletter.xml file:

< ?xmlversion= " 1.0 " ? >

< formxmlns= " http://www.demandware.com/xml/form/2008-04-19 " >

< fieldformid= " email " label= " Email: " type= " string "

mandatory= " true " max-length= " 50 " / >

< /form >

Which line of code creates a JSON object to contain the form data?

Options:

A.

server.forms.getForm( ' newsletter ' )

B.

server.form.getForm( ' newsletter ' )

C.

server.forms.getForm( ' dwfrm_newsletter ' )

Buy Now
Questions 7

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]

Buy Now
Questions 8

A developer is working on a new feature that requires the use of a custom script. What is the first step the developer should take?

Options:

A.

Create the custom script in Business Manager.

B.

Define the custom script in the code.

C.

Write the logic to handle the custom script.

Buy Now
Questions 9

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.

Buy Now
Questions 10

When looking at Custom Object instances for a site, a merchant notices that the creation date is not showing up on the instances in Business Manager.

Where should the developer add this attribute to the Custom Object so it is visible for the merchant to see in Business Manager?

Options:

A.

Add the creation date to an attribute group for the Custom Object.

B.

Add the creation date to the attributes of the Custom Object.

C.

Mark the existing creation date attribute as visible.

Buy Now
Questions 11

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.

Buy Now
Questions 12

Which operation should be done in a controller?

Options:

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.

Buy Now
Questions 13

Which action should a developer take to resolve the problem of not seeing attributes when creating a custom object?

Options:

A.

Change the data type of the attributes.

B.

Create an Attribute Group with the desired attributes in it.

C.

Set the attributes to site-specific replicable.

Buy Now
Questions 14

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.

Why does the merchandiser not see the Search Refinement?

Options:

A.

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

B.

The Search Refinement definition is not set up for the Root category.

C.

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

Buy Now
Questions 15

A developer has the following files in template/resources:

• account.properties - > weight.unit=kilos

• account_en.properties - > weight.unit=stones

• account_en_US.properties - > weight.unit=pounds

Using the default locale configuration, what is the current outcome of the page that renders the account.isml template snippet below when visiting the Storefront with the English for Canada (en_CA) locale?

Your parcel weighs 10 ${Resource.msg( ' weight.unit ' , ' account ' ,null)}.

Options:

A.

Your parcel weighs 10 pounds.

B.

Your parcel weighs 10 stones.

C.

Your parcel weighs 10 account.

Buy Now
Questions 16

The developer has been given the following business requirement:

The shipping method, " Free Standard Ground Shipping " has an exclusion for products with ' category equals or is child of electronics-televisions. '

The marketing department has scheduled a sale offering a " Free Standard Ground Shipping " method for brand XyzTv televisions for the next 3 months.

What method accomplishes this while following best practices?

Options:

A.

Extend the code in cartridge/models/shipping/shippingMethod.js using module.superModule and add an exception for the specified brand.

B.

Extend the CheckoutShippingServices controller using module.superModule and add an exception for the specified brand.

C.

Create an allow list for the existing shipping method by adding a product exclusion for ' brand equals XyzTv ' to the exclusion list for " Free Standard Ground Shipping. "

Buy Now
Questions 17

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?

Options:

A.

Ignore error responses and proceed with the default behavior.

B.

Log all responses for debugging purposes and handle errors gracefully.

C.

Always return a success response to the user, regardless of the API response.

Buy Now
Questions 18

A developer needs to show only car accessories when shoppers use the search term " car accessories " and exclude technology accessories and household accessories.

Given the above requirement, what is the recommended approach using the Search Dictionaries Dashboard?

Options:

A.

Create a Synonym Dictionary entry: car accessories, household, technology. Use search mode First Word.

B.

Create a Common Phrase Dictionary entry: car accessories. Use search mode Exact Match.

C.

Create a Common Phrase Dictionary entry: car accessories, NOT household, NOT technology. Use search mode Exact Match.

Buy Now
Questions 19

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()

Buy Now
Questions 20

A client sells its product in single-brand stores as well as in multi-brand stores. When shown in the store locator list, the client wants the single-brand stores to have a particular background color to highlight them.

Which Business Manager action should be completed to allow the developer to apply different styling to the single-brand stores?

Options:

A.

Add a Boolean custom attribute to the Store system object.

B.

Create a new SingleBrandStore custom object configuration.

C.

Adjust the relevant Site Preference in the Stores group.

Buy Now
Questions 21

The developer created a new Storefront category in storefront-catalog-m-en, but when viewing the Storefront site, the category is not visible.

Why might the categories not be visible?

Options:

A.

The category does not contain available products.

B.

The Storefront catalog is offline.

C.

The categories are not sorted.

Buy Now
Questions 22

What is the expected 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.

Buy Now
Questions 23

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.

Buy Now
Questions 24

A developer wants to configure the following products so that same search results are returned regardless of the search term used. The search term can be bag, purse, pocketbook, and tote. How should the developer configure this?

Options:

A.

Synonyms

B.

Hypernyms

C.

Hyponyms

Buy Now
Questions 25

A merchant wants to obtain an export file that contains all the products assigned to their Storefront catalog. They do not know how to achieve this easily without manual processing, so asked their developer to help generate this. The merchant ' s instance setup is as follows:

• They have one Master catalog and one Storefront catalog.

• Some, but not all, of the products in the Master catalog are assigned to categories within the Storefront catalog.

Which method allows the developer to generate the export for the merchant?

Options:

A.

Using the Catalog Import and Export module, export the Master catalog with a category-assignment search to export specific products.

B.

Using the Site Import and Export module, export both the Site catalog and the Master catalog in a single archive.

C.

Using the Site Import and Export module, export the Master catalog filtered by the Site catalog categories to export specific products.

Buy Now
Questions 26

Reference the following code snippets that allow a form to function correctly.

Form definition (newsletter.xml):

< ?xmlversion= " 1.0 " ? >

< formxmlns= " http://www.demandware.com/xml/form/2008-04-19 " >

< fieldformid= " email " label= " Email: " type= " string "

mandatory= " true " max-length= " 50 " / >

< /form >

Controller snippet:

varnewsletterForm=server.forms.getForm( ' newsletter ' );

res.render( ' NewsletterTemplate ' ,{newsletterForm:newsletterForm});

Template snippet:

< form action= " ${URLUtils.url( ' Newsletter-Submit ' )} " method= " POST "

< isprint value= " ${EXPRESSION.attributes} " encoding= " off " / > >

< input type= " input " id= " email "

< isprint value= " ${EXPRESSION.email.attributes} " encoding= " off " / > >

< button type= " submit " > Submit < /button >

< /form >

Which code should a developer insert at the EXPRESSION placeholder in the ISML template snippet above to have the form work as expected?

Options:

A.

pdict.newsletterForm

B.

pdict.newsletter

C.

newsletterForm

Buy Now
Questions 27

A developer wants to configure multiple products that should only be sold as a group. It should not be possible for buyers to buy these products individually. How should the developer configure the products?

Options:

A.

Bundle

B.

Set

C.

Variation Group

Buy Now
Questions 28

A developer working on a simple web service integration is asked to add appropriate logging to allow future troubleshooting.

According to logging best practices, which code should the developer write to log when an operation succeeds, but has an unexpected outcome that may produce side effects?

Options:

A.

Logger.warn( ' Unexpected service response. ' )

B.

Logger.debug( ' Unexpected service response. ' )

C.

Logger.error( ' Unexpected service response. ' )

Buy Now
Questions 29

A client sells its products in North America, Europe, and Asia, and has a B2C Commerce Site for each of these markets. The client receives three area-specific snippets of analytics code by a third-party provider to insert in the sites.

How should the developer configure an instance to allow the merchant to independently insert and update these snippets?

Options:

A.

Create a new " HTML " attribute in the SitePreference object type.

B.

Use ISML conditional tags to add the snippet into the codebase.

C.

Configure a new Service Profile with the provided snippet of code.

Buy Now
Questions 30

To implement site custom functionality, a developer creates a new cartridge.

Which step should the developer take to ensure their cartridge changes take effect?

Options:

A.

Add the new cartridge to the cartridge path for the Business Manager site.

B.

Rebuild the site indexes to capture incremental changes.

C.

Add the new cartridge to the cartridge path for the relevant Storefront site.

Buy Now
Questions 31

A developer working on a multi-country site is asked to store country-specific data that drives the creation of a country selector. Examples of the data stored are:

• Pricebook to be used

• Image URL for country flag

The data used in staging also applies in production, but only for this site.

Which approach should the developer take to implement these requirements?

Options:

A.

Extend the Locale System Object to contain the custom data for each country.

B.

Create a replicable, site-specific Custom Object with the custom data for each country.

C.

Create site-specific content assets to store the data for each country.

Buy Now
Questions 32

A client has three different sites with three locales. Two of the sites share a library and one site has a private library.

What does the shared library allow in this context?

Options:

A.

Sharing content assets between sites

B.

Sharing content slots between sites

C.

Sharing content slots among locales

Buy Now
Questions 33

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?

Options:

A.

FATAL

B.

INFO

C.

ERROR

Buy Now
Questions 34

Which item is appropriate content for custom logs implemented at checkout?

Options:

A.

Payment gateway service response code

B.

Customer ' s password at post-checkout sign up

C.

Transaction ' s credit card information

Buy Now
Questions 35

Which snippet works correctly when updating the package.json file to point to the hook file for a cartridge?

Options:

A.

{ " hooks " : " ./cartridge/scripts/hooks.json " }

B.

{ " hooks " : " ./scripts/hooks.json " }

C.

{ hooks: " ./cartridge/scripts/hooks.json " }

Buy Now
Questions 36

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?

Options:

A.

dw.ocapi.shop.basket.shipment.beforePOST AND dw.ocapi.shop.basket.shipment.beforePATCH

B.

dw.ocapi.shop.basket.shipment.beforePOST AND dw.ocapi.shop.basket.shipment.beforeDELETE

C.

dw.ocapi.shop.basket.shipment.beforePATCH AND dw.ocapi.shop.basket.shipment.afterDELETE

Buy Now
Questions 37

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?

Options:

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(...).

Buy Now
Questions 38

A developer set up a new site with Taxation: Net. However, the business requirements changed and the site now needs to be Taxation: Gross. The Business Manager interface does not give this option.

In Business Manager, which sequence of steps is necessary to change the site to gross taxation?

Options:

A.

Create a new site with Taxation set to Gross, then delete the old site.

B.

Unlock the site preferences and then change the Taxation setting to Gross.

C.

Change the global setting, " Enable Taxation Methods " to true, then change the Taxation setting to Gross.

Buy Now
Questions 39

A merchant wants customers to be able to order gift vouchers via their site. Since they can issue an unlimited number of these digital vouchers, this item should be available to sell at all times.

How can a developer use Business Manager to ensure that the gift vouchers are always available?

Options:

A.

Check the perpetual flag in the product inventory record.

B.

Manually set the inventory to a high number.

C.

Set StockLevel = maxAllocation for the product.

Buy Now
Questions 40

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 ' )} " >

Buy Now
Questions 41

Given the following OCAPI definitions, which permission or permissions apply?

{

" resource_id " : " /sites/*/coupons/* " ,

" methods " :[

" put "

],

" read_attributes " : " (**) " ,

" write_attributes " : " (**) "

}

Options:

A.

Allows external applications to create coupons

B.

Allows external applications to create, update, and delete coupons

C.

Allow external applications to create, update, and delete both coupons and coupon codes

Buy Now
Questions 42

Given a job step configured in the steptype.json that calls a script module, a developer needs to add a custom status code " NO_FILES_FOUND " in the script. The status does not represent an error condition.

Which code snippet completes this requirement?

Options:

A.

this.status= ' NO_FILES_FOUND ' ;returnthis;

B.

varStatus=require( ' dw/system/Status ' );returnnewStatus(Status.OK, ' NO_FILES_FOUND ' );

C.

varstatus={success: ' OK ' ,message: ' NO_FILES_FOUND ' };returnstatus;

Buy Now
Questions 43

There are three logging categories: category1, category1.eu, and category1.us. In Business Manager, category1 is enabled for WARN level and no other categories are configured. All custom log targets are enabled.

The code segment below executes.

varlogger=Logger.getLogger( " loggerFile " , " category1.eu " );

logger.warn( " This is a log message " );

What is the result?

Options:

A.

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

B.

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

C.

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

Buy Now
Questions 44

The client provides the system integrator with translation messages for the newly added " French " ( " fr " ) locale.

What is the correct folder to store the associated.propertiesfiles?

Options:

A.

cartridge/templates/resources

B.

cartridge/resources

C.

cartridge/templates/resources/fr

Buy Now
Questions 45

A developer is importing edits for two different sites into the same sandbox and is provided with four different files.

Which two XML files should the developer import using the site-specific Merchant Tools import modules?

Options:

A.

Search settings and Promotions

B.

Search settings and System type extensions

C.

Promotions and System type extensions

Buy Now
Questions 46

A developer implements the necessary code for a new Page Designer component.

What is the purpose of the JSON metadata definition file the developer creates?

Options:

A.

Defines regions within the component type.

B.

Defines the responsive layout of the rendered template.

C.

Defines the business and rendering logic of the component required by the merchant.

Buy Now
Exam Code: Comm-Dev-101
Exam Name: Salesforce Certified B2C Commerce Developer
Last Update: Sep 26, 2026
Questions: 154

PDF + Testing Engine

$41.25  $164.99

Testing Engine

$31.25  $124.99
buy now Comm-Dev-101 testing engine

PDF (Q&A)

$26.25  $104.99
buy now Comm-Dev-101 pdf
dumpsmate guaranteed to pass

24/7 Customer Support

DumpsMate's team of experts is always available to respond your queries on exam preparation. Get professional answers on any topic of the certification syllabus. Our experts will thoroughly satisfy you.

Site Secure

mcafee secure

TESTED 27 Sep 2026