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

Practice Free Comm-Dev-101 Salesforce Certified B2C Commerce Developer Exam Questions Answers With Explanation

We at Crack4sure are committed to giving students who are preparing for the Salesforce Comm-Dev-101 Exam the most current and reliable questions . To help people study, we've made some of our Salesforce Certified B2C Commerce Developer exam materials available for free to everyone. You can take the Free Comm-Dev-101 Practice Test as many times as you want. The answers to the practice questions are given, and each answer is explained.

Question # 6

A developer is asked to periodically create a CSV file in a WebDAV folder to hold the orders information of the last 30 days. What should the developer do to implement such a requirement?

A.

Develop and configure a scheduled job and corresponding Job step script.

B.

Implement and configure a recurring task using the cron command in Business Manager.

C.

Configure a new custom Open Commerce API (OCAPI) endpoint and use the Custom resource type.

Question # 7

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

{

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

" methods " :[

" put "

],

" read_attributes " : " (**) " ,

" write_attributes " : " (**) "

}

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

Question # 8

A developer is given the requirement to add a step to the existing business logic of the registration process.

How should the developer modify the route that handles the customer registration?

A.

Change the controller route with new functionality.

B.

Copy the code from the original route to a new controller route, and change it.

C.

Extend the route with new functionality.

Question # 9

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?

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.

Question # 10

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?

A.

Username

B.

CSRF Token

C.

Site ID

Question # 11

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?

A.

Logger.warn( ' Unexpected service response. ' )

B.

Logger.debug( ' Unexpected service response. ' )

C.

Logger.error( ' Unexpected service response. ' )

Question # 12

Given the requirements:

• To integrate with an external web service using HTTP requests.

• To create a service for this purpose with the Service framework using the LocalServiceRegistry class.

• To test the service before the external service provider makes the API available.

Which solution allows the developer to satisfy the requirements?

A.

Create a service and a Sitepreference that induce the service to respond with a mock response using a conditional.

B.

Create a service and implement the mockFull callback and a sitepreference to enable or disable the mock response.

C.

Create a service and implement the mockFull callback and set the service mode to mock.

Question # 13

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

A.

Payment gateway service response code

B.

Customer ' s password at post-checkout sign up

C.

Transaction ' s credit card information

Question # 14

Given a B2C Commerce client with these specifics:

Sells in two different countries: US and IN

Uses only the English language

A developer has a requirement to add a new field to the IN registration form that must not appear in the US one.

Which path should be created to accomplish this requirement?

A.

cartridge/forms/en_IN/profile.xml

B.

cartridge/forms/profile_en_IN.xml

C.

cartridge/forms/profile_in.xml

Question # 15

A custom cartridge that seemed to be performing well in a sandbox has been installed in production. The production instance is showing increased page load times that seem to be related to the new custom code. What can a developer do to quickly track down the potential problem?

A.

Use the Code Profiler in production instance. Set the mode to Development Mode and then wait a few minutes to collect data from onsite traffic. Click the refresh button to see the new data.

B.

Use the Code Profiler in production instance. Set the mode to Development Mode and click the refresh button to see the new mode displayed.

C.

Use the Code Profiler in a sandbox instance. Set the mode to Extended Development Mode and then load the suspected pages and run the suspected processes several times. Click the refresh button to see the new data.

Question # 16

Given a site called RefArch with the settings shown, what must be done for RefArch to use the same customer list as RefArchGlobal?

A.

Import the RefArchGlobal customer list into the RefArch site.

B.

Enable " Customer List Sharing " in Global Preferences.

C.

Select RefArchGlobal in the dropdown for Customer List.

Question # 17

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?

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.

Question # 18

A client has a requirement to allow users on the Storefront to filter by a newly created attribute. Which is necessary to achieve this?

A.

Add a new Search Refinement Definition.

B.

Set the attribute as Searchable.

C.

Change the productsearchrefinebar.isml template.

Question # 19

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

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.

Question # 20

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 # 21

Recent code changes to an existing cartridge do not appear correctly on a Storefront. The developer confirms that the code is uploaded in the IDE and ensures that the cartridge is associated with the sandbox.

After checking the Storefront site cartridge path, which step should the developer take to troubleshoot this problem?

A.

Check that the correct code version is selected.

B.

Check that the search index was recently rebuilt.

C.

Check the Business Manager site cartridge path.

Question # 22

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 # 23

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?

A.

Sharing content assets between sites

B.

Sharing content slots between sites

C.

Sharing content slots among locales

Question # 24

A developer has configured the following log levels for categories & sub-categories as:

WARN logging is enabled for " product " and DEBUG for " product.import "

What will be the log level used for various categories and sub-categories?

A.

WARN and ERROR are logged for " product " and all its subcategories. For the subcategory " product.import " DEBUG and INFO are also logged.

B.

WARN and ERROR are logged for " product " and all its subcategories. For the subcategory " product.import " DEBUG and INFO are not logged.

C.

WARN and ERROR are logged for " product " and all its subcategories.

Question # 25

A developer cannot create a custom object in Business Manager because the attributes do not show. The developer can view the object but not the attributes.

Which action should the developer take to resolve the problem?

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.

Question # 26

A client that sells to multiple countries in Europe needs to disable Apple Pay for Denmark.

Which Business Manager module is used to achieve this requirement?

A.

Payment Methods

B.

Payment Processors

C.

Locale Payments

Question # 27

How should a developer set up the files before making required edits to the address form?

A.

Create a copy of existingaddress.xmlfile in the default folder. Rename that file toaddress_en_US.xml.

B.

Create a new sub-folder in the forms folder. Name iten_US. Copy existingaddress.xmlfile in the new folder.

C.

Create a new sub-folder in the xmls folder. Name iten_US. Copy existingaddress.xmlfile in the new folder.

Question # 28

What is the action needed for the content slot to work as intended?

A.

No; The content slot is rendered correctly.

B.

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

C.

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

Question # 29

A developer wants to add a link to the My Account page.

What is the correct code to accomplish this?

A.

< a href= " ${URLUtils.url( ' Account-Show ' )} " > ${Resource.msg( ' myaccount ' , ' account ' ,null)} < /a >

B.

< a href= " ${URLUtils( ' Account-Show ' )} " > ResourceMgr.getProperties( ' myaccount ' , ' account ' ,null) < /a >

C.

< a href= " ${URLUtils.get( ' Account-Show ' )} " > ${Resource.msg( ' myaccount ' , ' account ' , request.locale())} < /a >

Question # 30

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?

A.

server.forms.getForm( ' newsletter ' )

B.

server.form.getForm( ' newsletter ' )

C.

server.forms.getForm( ' dwfrm_newsletter ' )

Question # 31

What is the correct format to use for embedding a link to a content page?

A.

< a href= " ${URLUtils.url( ' Content-Show ' , ' about-us ' )} " > About Us < /a >

B.

< a href= " ${URLUtils.url( ' Page-Show ' , ' cid ' , ' about-us ' )} " > About Us < /a >

C.

< a href= " ${URLUtils.url( ' Content-Page ' , ' cid ' , ' about-us ' )} " > About Us < /a >

Question # 32

A controller route in the SFRA base looks as follows:

server.get( ' Show ' ,consentTracking.consent,cache.applyDefaultCache,

function(req,res,next) {

...base code omitted on purpose...

next();

},

pageMetaData.computedPageMetaData

);

In order to extend this route usingprepend(), what should the developer consider?

A.

Specify any middleware functions needed for the new functionality.

B.

Specify any middleware functions needed for the new functionality using only those called by the base route.

C.

Removenext();on the new route so only the route ' s middleware functions execute.

Question # 33

A developer needs to check for product inventory in all inventory lists using the Open Commerce API.

An example request URL is:

http://refarch.demandware.net/dw/data/v18_3/inventory_lists/ecom-inventory/product_inventory_records/00883408601

Which property should the developer check in the OCAPI settings to confirm the appropriate resource is enabled?

A.

client_id

B.

ecom-inventory

C.

inventory_lists

Question # 34

A developer is asked to improve a page ' s maintainability by reducing its code repetition.

Which technique should the developer implement to achieve this?

A.

Implement template decorators paired with replace tags.

B.

Require and render templates with < isscript > tags.

C.

Embed partial files using ISML expressions.

Question # 35

An instance has custom logging enabled. The log reaches the file size limit.

What happens in this situation?

A.

The current log file is archived and a new log file is created.

B.

The log file is deleted and a new log file is created.

C.

Logging is suspended for the day.

Question # 36

A developer is implementing new Page Designer content on a merchant ' s Storefront and adds the line below to the setupContentSearch function in the searchHelpers.js file.

apiContentSearchModel.setFilteredByFolder(false);

What does this achieve?

A.

Enables searching to find Page Designer content assets that are not in folders.

B.

Extends the ContentSearchModel to allow the folder filter.

C.

Prevents Page Designer pages and components from being searchable.

Question # 37

A merchant has a new requirement to accept American Express credit cards on its Storefront. A credit card payment method already exists.

Which step must a developer take in Business Manager to achieve this?

A.

In Payment Methods, enable American Express as a credit card type.

B.

In Payment Processor, create American Express as a payment type.

C.

Add American Express as a Payment Preference in Site Preferences.

Question # 38

A developer observed a specific issue in production, which they cannot reproduce in other environments. The developer wants to do a hot fix to one of the ISML pages, which uses the < iscache > tag, to see if that resolves the issue. Which consideration must the developer keep in mind while deploying the hot fix in production?

A.

It will be required to invalidate the cache for the hot fix.

B.

If the page has multiple tags, the highest cache duration will be used in production to determine the resulting page ' s caching behavior.

C.

The TTL cache setting only affects static content and not the page cache, which could potentially cause the production issue.

Question # 39

Given the requirement to add caching to an existing page while adhering to SFRA best practices, which code snippet should be used?

A.

server.get( ' Show ' ,cache.applyDefaultCache,function(req,res,next) {// code});

B.

< iscache type= " relative " hour= " 24 " / >

C.

server.get( ' Show ' ,function(req,res,next) {// code}).applyDefaultCache();

Question # 40

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?

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.

Question # 41

A developer needs to display a products list of their " Women Dresses " category in a new web application, independent of their main B2C Commerce site. This custom listing page needs to be styled differently from the existing one, as per marketing requirements. Which B2C Commerce tool should the developer use to collect the necessary information?

A.

The ProductSearch resource of the Shop OCAPI.

B.

The Search-Show Controller URL to perform a web crawl.

C.

The existing category ' s endpoint to perform a REST call.

Question # 42

A retailer notices that the Account Addresses page is showing the wrong shopper ' s address.

Which tool should the developer start with to identify the issue?

A.

Storefront Toolkit

B.

Reports and Dashboards module

C.

Pipeline Profiler

Question # 43

The Home-Show route uses this middleware chain:

server.get( ' Show ' ,consentTracking.consent,cache.applyDefaultCache,

function(req,res,next) {

// base code here

}

);

The developer added Home.js in another cartridge, which is before the original cartridge in the cartridge path, to extend that route but it does not have the middleware chain:

server.append( ' Show ' ,function(req,res,next) {

// custom code here

});

Assuming the code is correct on both functions, what is the expected result?

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.

Question # 44

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?

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.

Question # 45

There is a business requirement to allow a third-party warehouse management system to update the MySample.com storefront product inventory in real time. The architect decided that this is most easily accomplished by using the Open Commerce API (OCAPI). The developer needs to test the OCAPI settings in their sandbox. Assume the client ID for testing is " aaaaaaaaaaaaaaaaaaaaaaaaaaaaaa " . What is the correct OCAPI setting for this?

A.

Type:Data,Context:Global{ " _v " : " 20.4 " , " clients " :[{ " client_id " : " aaaaaaaaaaaaaaaaaaaaaaaaaaaaaa " , " allowed_origins " :[ " http://www.example.com " ], " resources " :[{ " resource_id " : " /inventory_lists/* " , " methods " :[ " get " , " put " , " patch " ], " read_attributes " : " (**) " , " write_attributes " : " (**) " }]}] }

B.

Type:Shop,Context:MySample{ " _v " : " 20.4 " , " clients " :[{ " client_id " : " aaaaaaaaaaaaaaaaaaaaaaaaaaaaaa " , " allowed_origins " :[ " http://www.example.com " ], " resources " :[{ " resource_id " : " /product/*/inventory " , " methods " :[ " get " , " put " , " patch " ], " read_attributes " : " (**) " , " write_attributes " : " (**) " }]}] }

C.

Type:Data,Context:Global{ " _v " : " 20.4 " , " clients " :[{ " client_id " : " aaaaaaaaaaaaaaaaaaaaaaaaaaaaaa " , " allowed_origins " :[ " http://www.mysample.com " ], " resources " :[{ " resource_id " : " /product/*/inventory " , " methods " :[ " get " , " put " , " patch " ], " read_attributes " : " (**) " , " write_attributes " : " (**) " }]}] }

Question # 46

What step should a developer take to troubleshoot code changes not appearing on the Storefront?

A.

Check the Business Manager site cartridge path.

B.

Check that the correct code version is selected.

C.

Check that the search index was recently rebuilt.

Comm-Dev-101 PDF

$27.5

$109.99

3 Months Free Update

  • Printable Format
  • Value of Money
  • 100% Pass Assurance
  • Verified Answers
  • Researched by Industry Experts
  • Based on Real Exams Scenarios
  • 100% Real Questions

Comm-Dev-101 PDF + Testing Engine

$44

$175.99

3 Months Free Update

  • Exam Name: Salesforce Certified B2C Commerce Developer
  • Last Update: Sep 27, 2026
  • Questions and Answers: 154
  • Free Real Questions Demo
  • Recommended by Industry Experts
  • Best Economical Package
  • Immediate Access

Comm-Dev-101 Engine

$33

$131.99

3 Months Free Update

  • Best Testing Engine
  • One Click installation
  • Recommended by Teachers
  • Easy to use
  • 3 Modes of Learning
  • State of Art Technology
  • 100% Real Questions included