Pre-Winter Limited Time 70% Discount Offer - Ends in 0d 00h 00m 00s - Coupon code: agile70

ExamsBrite Dumps

Salesforce Certified B2C Commerce Developer Question and Answers

Salesforce Certified B2C Commerce Developer

Last Update Oct 12, 2026
Total Questions : 154

We are offering FREE Comm-Dev-101 Salesforce exam questions. All you do is to just go and sign up. Give your details, prepare Comm-Dev-101 free exam questions and then go for complete pool of Salesforce Certified B2C Commerce Developer test questions that will help you more.

Comm-Dev-101 pdf

Comm-Dev-101 PDF

$31.5  $104.99
Comm-Dev-101 Engine

Comm-Dev-101 Testing Engine

$37.5  $124.99
Comm-Dev-101 PDF + Engine

Comm-Dev-101 PDF + Testing Engine

$49.5  $164.99
Questions 1

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;

Discussion 0
Questions 2

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
Questions 3

A merchant has reported that customers are seeing low stock items at the top of their search results, giving them a subpar customer experience and impacting conversion.

How might this issue be resolved to ensure a better customer journey?

Options:

A.  

Create a job that sets all unavailable products to be hidden. Schedule the job to run hourly to clean up the catalog on a regular basis.

B.  

In Business Manager, set an availability low ranking threshold in Search Preferences.

C.  

In Business Manager, enter a higher boost factor for availability in Searchable Attributes.

Discussion 0
Questions 4

There is a business requirement that a custom controller in app_custom_my_cartridge invokes the calculateTax(basket) 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 ' , {basket:currentBasket});

B.  

Add the location of the dw.order.calculateTax hook to hooks.json, and then use dw.system.HookMgr.callHook( ' dw.order.calculateTax ' , ' calculateTax ' , {basket:currentBasket});

C.  

Add the location of the dw.order.calculateTax hook to package.json, and then use dw.system.HookMgr.callHook( ' dw.order.calculateTax ' , ' calculateTax ' , {basket:currentBasket});

Discussion 0
Questions 5

A developer has a requirement to display a banner in two different category pages.

Which snippet of code should the developer add to a template to allow the merchant to configure each independently?

Options:

A.  

< isbanner id= " category-banner " description= " Categories Banner " context= " category " context-object= " ${pdict.ProductSearchResult.category} " / >

B.  

< isslot id= " category-banner " description= " Categories Banner " context= " category " context-object= " ${pdict.ProductSearchResult.category} " / >

C.  

< iscontent context= " global " description= " Categories Banner " id= " category-banner " context-object= " ${pdict.ProductSearchResult.category} " / >

Discussion 0
Questions 6

Business Manager has the configuration:

• Active Log category is " root "

• Log level of WARN

The code below is executing:

varlog=Logger.getLogger( " products " );

Using this information, what will be written to the log?

Options:

A.  

log.warn( " This is a warn message " ); AND log.error( " This is an error message " );

B.  

log.error( " This is an error message " ); AND log.info( " This is an info message " );

C.  

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

Discussion 0
Questions 7

A developer wants to embed a link to a content page from within the body of another content asset. The target content asset ID is:about-us

Which option represents the correct format to use?

Options:

A.  

$url( ' Page-Show ' , ' cid ' , ' about-us ' )$

B.  

$url( ' Content-Show ' , ' about-us ' )$

C.  

$url( ' Content-Page ' , ' cid ' , ' about-us ' )$

Discussion 0
Questions 8

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?

Options:

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.

Discussion 0
Questions 9

A developer is configuring Payment Methods on a storefront. Which of the following considerations should be kept in mind while configuring payment methods?

Options:

A.  

You can ' t delete a default payment method. You can only disable it.

B.  

You can add only up to 5 payment methods.

C.  

You can ' t drag and drop the column headers to change the sort order.

Discussion 0
Questions 10

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

Discussion 0
Questions 11

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

Discussion 0
Questions 12

A developer customized the Cart-Show controller route with a LINK cartridge that adds social media data. There is a new requirement to add a dataLayer object to the Cart-Show controller route.

How should the developer achieve this to ensure that no code change will be needed if the client decides to remove the LINK cartridge?

Options:

A.  

Replace the Cart-Show controller route in client cartridge and add dataLayer object to the viewData variable.

B.  

Replace the Cart-Show controller route in client cartridge and add dataLayer object to the viewData variable. Ensure that the client cartridge is on the left of the LINK cartridge in cartridge path.

C.  

Append Cart-Show controller route in the client cartridge and add dataLayer object to the viewData variable.

Discussion 0
Questions 13

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

Options:

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.

Discussion 0
Questions 14

What is the expected outcome when the log reaches the file size limit?

Options:

A.  

Logging is suspended for the day.

B.  

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

C.  

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

Discussion 0
Questions 15

What is the expected result when extending a route without the middleware chain?

Options:

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.

Discussion 0
Questions 16

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
Questions 17

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.

Discussion 0
Questions 18

Given a job step configured in the job that calls a script module, a developer needs to add a custom status code " NO_FILES_FOUND " in the script. The status doesn ' t 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;

Discussion 0
Questions 19

How might a developer resolve the issue of low-stock items appearing at the top of search results?

Options:

A.  

In Business Manager, set an availability low ranking threshold in Search Preferences.

B.  

In Business Manager, enter a higher boost factor for availability in Searchable Attributes.

C.  

Create a job that sets all unavailable products to be hidden. Schedule the job to run hourly to clean up the catalog on a regular basis.

Discussion 0
Questions 20

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

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

Discussion 0
Questions 22

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

Discussion 0
Questions 23

Business Manager has the configuration:

• Active Log category is " root "

• Log level of INFO

The code below executes.

varlog=Logger.getLogger( " products " , " export " );

log.info( " This is important information " );

Using this information, what is the beginning of the filename in which the log will be written?

Options:

A.  

products

B.  

custom-products

C.  

custom-export

Discussion 0
Questions 24

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.

Discussion 0
Questions 25

Which of these situations is an appropriate use of the B2C Commerce OCAPIs?

Options:

A.  

Updating inventory information from a warehouse management software.

B.  

Extending System Object Type definitions with new attributes.

C.  

Showing the customer ' s information in their B2C Commerce " My Account " page.

Discussion 0
Questions 26

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
Questions 27

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?

Options:

A.  

Storefront Toolkit

B.  

Reports and Dashboards module

C.  

Pipeline Profiler

Discussion 0
Questions 28

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.

Discussion 0
Questions 29

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?

Options:

A.  

client_id

B.  

ecom-inventory

C.  

inventory_lists

Discussion 0
Questions 30

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?

Options:

A.  

Payment Methods

B.  

Payment Processors

C.  

Locale Payments

Discussion 0
Questions 31

Given the following snippet:

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

According to SFRA, which option can a Developer use to complete the code above and provide data to the response using a controller?

Options:

A.  

res.setViewData({data:myDataObject});res.render( ' /content/myPage ' );next();});

B.  

res.viewData={data:myDataObject};res.render( ' /content/myPage ' );next();});

C.  

res.render( ' /content/myPage ' );next();}).append({data:myDataObject});

Discussion 0
Questions 32

A NewsletterSubscription custom object exists that has a key attribute named email of type String and the following script code.

varCustomObject=

dw.object.CustomObjectMgr.createCustomObject(

' NewsletterSubscription ' ,

newsletterForm.email.value

);

However, the NewsletterSubscription custom object is not persisted. What is a possible reason?

Options:

A.  

The code shown needs to be wrapped in a transaction.

B.  

The code shown needs to be wrapped in a try/catch block.

C.  

The code shown is the wrong syntax. The correct syntax is:varCustomObject=dw.object.CustomObjectMgr.createCustomObject( ' NewsletterSubscription ' , ' email ' ,newsletterForm.email.value);

Discussion 0
Questions 33

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?

Options:

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.

Discussion 0
Questions 34

Which line of code should a developer add for custom category debug logging?

Options:

A.  

Logger.customLogger( ' contact ' ).debug( " Contact service responded with OK. " );

B.  

Logger.debug( ' Contact service responded with OK. ' );

C.  

Logger.getLogger( " contact " ).debug( " Contact service responded with OK. " );

Discussion 0
Questions 35

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.

Discussion 0
Questions 36

A developer has a sandbox with code to log a message during execution, and the following code:

varLogger=require( ' dw/system/Logger ' );

Logger.info(message);

After the code executes, the developer does not see any log file with the message in the WebDAV folder.

What could the developer do to correct this issue?

Options:

A.  

Set the root log level to debug AND check the box for Info under Log Files.

B.  

Set the logging global preference to true AND set the root log level to debug.

C.  

Set the logging global preference to true AND check the box for Info under Log Files.

Discussion 0
Questions 37

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.

Discussion 0
Questions 38

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

What happens in this situation?

Options:

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.

Discussion 0
Questions 39

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?

Options:

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.

Discussion 0
Questions 40

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?

Options:

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.

Discussion 0
Questions 41

A merchant asks a developer to create a Cache Partition for the home page, so that when the home page is edited, only the home page cache is cleaned.

Given the above requirement, where should the developer create that partition in Business Manager?

Options:

A.  

Administration > Sites > Manage Sites > Site > Cache

B.  

Operations > Site > Manage Sites > Cache

C.  

Site > Site Preferences > Cache

Discussion 0
Questions 42

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

Discussion 0
Questions 43

A developer has these requirements for out-of-stock products:

• Save the SKUs of the out-of-stock products that the customer is interested in.

• Save the customer email regardless if the customer is a guest or registered.

• Email the customer when the product is back-in-stock.

Which step should the developer perform as part of the solution to achieve the requirements?

Options:

A.  

Create a new set-of-string type custom attribute to the system object type Profile to save all the SKUs and use the existing email field for the email.

B.  

Create a new set-of-string type custom attribute to the system object type Product to save all the customer email addresses for back-in-stock notification.

C.  

Create a new custom object type that has a set-of-string type custom attribute for the SKUs and a string for the email field.

Discussion 0
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

Discussion 0
Questions 45

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

Discussion 0
Questions 46

To build the SFRA code to a developer sandbox for the first time, which build steps should the developer perform for the site to appear and function as designed?

Options:

A.  

npm run compile:js, npm run compile:html, npm run clean

B.  

npm run compile:js, npm run compile:scss, npm run compile:html

C.  

npm run compile:js, npm run compile:scss, npm run compile:fonts

Discussion 0