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.
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?
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 >
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?
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?
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?
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?
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?
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 developer is configuring Payment Methods on a storefront. Which of the following considerations should be kept in mind while configuring payment methods?
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?
Which object type can a developer import using the Merchant Tools > Content > Import & Export module in Business Manager?
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?
Given a site called RefArch with the settings shown, what must be done for RefArch to use the same customer list as RefArchGlobal?
What is the expected result when extending a route without the middleware chain?
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?
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?
How might a developer resolve the issue of low-stock items appearing at the top of search results?
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?
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?
Which method is efficient and scalable because it uses the product search index rather than searching the database?
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?
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?
Which of these situations is an appropriate use of the B2C Commerce OCAPIs?
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 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?
What is the expected result when the code segment executes with the logger configuration?
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 that sells to multiple countries in Europe needs to disable Apple Pay for Denmark.
Which Business Manager module is used to achieve this requirement?
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?
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?
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?
Which line of code should a developer add for custom category debug logging?
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 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?
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?
An instance has custom logging enabled. The log reaches the file size limit.
What happens in this situation?
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?
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 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?
Which snippet works correctly when updating the package.json file to point to the hook file for a cartridge?
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?
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?
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?
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?