Salesforce Certified B2C Commerce Cloud Developer (Comm-Dev-101)
Last Update Oct 19, 2025
Total Questions : 203
We are offering FREE B2C-Commerce-Developer Salesforce exam questions. All you do is to just go and sign up. Give your details, prepare B2C-Commerce-Developer free exam questions and then go for complete pool of Salesforce Certified B2C Commerce Cloud Developer (Comm-Dev-101) test questions that will help you more.
A developer plans to use the /search_suggestion (Shop API) in a Storefront application and the following property must be set to do so
suggestion.product.image:view_type
What consideration should the developer in keep in mind to ensure that image data is returned correctly as part of search suggestions?
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 whenthe product is back-in-stock
Which step should the developer perform as part of the solution to achieve the requirements?
A Digital Developer needs to add a new form to the shopping cart page to allow customers to enter their rewards pass ID. There is already an existing Cart.js controller that handles processing of the other cartforms. In addition, a form field node is in the form XML and the necessary form input is present in the ISML template.
The code below is the submit button for the ISML markup.
What additional steps must occur before the Digital Developer can begin writing the processing code for this request?
A developer has a sandbox with code to log a message during execution, and the following code:
After the codeexecutes, the developer does not see any log file with the message in the WebDAV folder. Which two tasks does the developer need to perform to correct this issue?
Choose 2 answers
Aclient has custom object definition and requirement that occasional data changes in staging also need to
exist in production,
Which task should the developer perform to meet these requirements when setting up the custom object?
Universal Containers wants to give customers the ability to refine product search results by a product custom attribute,weightCapacity.
Which series of steps should a Digital Developer take to show this refinement on the storefront?
Business Manager has the configuration:
Active Log category is "root"
Log level of WARN
The code below is executing:
var log = Logger.getLogger("products");
Using this information, which two logs will be written?
Choose 2 answers
Refer to the screen shot below:
Given a site called RefArch that has the settings shown, whatmust be done for RefArch to use the same customer list as RefArchGlobal?
The developer is asked to enhance the functionality of an existing controller route by adding information to the response's viewData.
How should thedeveloper approach this task while following SFRA best practices?
A Digital Developer is working in a sandbox on a site named test-site using thedomain test.demandware.net. The Developer needs to compile a url to make an Open Commerce API (OCAPI) request that returns product information.
By default, which URL format is a proper Open Commerce API for Sandbox?
A developer has aspecification to integrate with a REST API for retrieving traffic conditions. The service expects parameters to be form encoded.
Which service type should the developer register?
A developer uses the call() instance method of dw.svc.Service to invoke a web service and implemented the callback methods defined by
thedw.avc.ServiceCaliback class.
Which callback method is required only when invoking a SOAP service?
A Digital Developer wants to selectivelyretrieve products and process them from an iPhone.
Which action should the Developer take, given that JavaScript controllers CANNOT be used?
The Home-Show route uses this middleware chain:
The developer added Home.;s 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:
Assuming the code is correct on both functions, what is the expected result?
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.
Whichaction should the developer take to resolve the problem?
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 items.
How can a developer use Business Manager to ensure that the gift vouchers are always available?
Given a job step configured in the steptype.json, a developer needs to add a custom status code
“No_FILES_FOUND”.
Which code snippet will complete the requirement?
A developer has a sandbox with code to log a message during execution, and the following code:
After the code executes the developer does not see any log file with the message in the WebDEV folder.
Which two XML filesshould the developer import using the using-specific Merchant Tools import modules?
A job executes a pipeline that makes calls to an external system.
Which two actions prevent performance issues in this situation? (Choose two.)
Which two items are appropriate content of custom logs implemented atcheckout?
Choose 2 answers:
Adeveloper 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?
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 segmentbelow executes.
What is the result'
A developer needs to render a Page Designer page in JSON format. What is the correct syntax?
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?
The following code ensures that an address ID CANNOT be used if it is already in use by another address in the customer’s address book. There is a problem with the code. The error message for an invalid address ID is never shown to the user on the formfield.
How should the Digital Developer resolve this issue so that the error message is displayed on the address ID form field?
The developer wants to be able to view DEBUG
The developer wants to be able to view DEBUG level messages for myLogCategory in the Request Log tool. Given the custom log configurations in the image above, what does the developer need to do to accomplish this?
A Digital Developer has detected storefront pages being rendered with an error message. After inspecting the log files, the Developer discovered that an enforced quota is being exceeded.
What action should the Developer take to stop the quota violation?
A Digital Developer has a site export file on their computer that needs to be imported into their sandbox.
How should the developer update their sandbox with the data in this file?
A developer needs to check for product inventory in all inventory lists using the Open Commerce API.
An example requestURL is:
Which properly should the developer check in the OCAPI settings to confirm the appropriate resource is enabled?
A Digital Developer suspects a logical error in a script.
Which action will help locate the error?
Given a NewsletterSubscription custom object that has a key attribute named email of type String, what is the correct syntax to create the NewsletterSubscription custom object and persist it to the database?
Given the SFRA Controller below:
Why would a JavaScript debugger, that is stopped at line 06, fall to show the viewdata variable in the inspection tool?
A Digital Developer has created a new PaymentForm controller thatrequires communication with the server and must be made using the HTTPS protocol.
Which code sample should the Developer use to make sure that HTTPS is used?
A retailer notices that the Account Addresses page is showing the wrong shopper’s address.
Which tool should the developerstart with to identify the issue?
A developer configures the dw.json file and needs to fill in the necessary parameters to complete the task.
Which threeparameters are required when using npm scripts?
Choose 3 answers
A developer is asked to implementa simple call to an authentication - protected REST web service.
Which configuration is valid?
A merchant uploads an image using the ContentImage Upload module of Business Manager.
Which three modules can the merchant or developer use to display the image on the Storefront?
Choose 3 answers
A client uses tax tables in Business Manager to calculate tax. They recently started shipping to a new
country, Italy, and the taxi s not being calculated correctly on the Storefront
What is the likely problem?
Given a file in a plug-in cartridge with the following code:
‘use strict’:
Var base = module.superModule;
Function applyCustomCache (req,res,next){
res.CachePeriod = 6; //eslint-disable-line no-param-reassign
res.cachePeriodUnit = ‘hours’) //eslint-disable-line no-param-reassign
next();
}
Module.exports = base;
Module.exports.applyCustomCache = applyCustomCache;
What does this code extend?
Once the Cache Information tool of the storefront toolkit isenabled, how can a Digital Developer view caching information for a particular component of the page?
Universal Containers needs to have Apple Pay disabled for the country of Spain.
Which Business Manager module should the Developer use to meet this requirement?
Server.get(‘Show’, consentTracking.consent, cache.applyDefaultCache, function (req,res,next){
Var Site = require(‘dw/system/Syte”);
Var pageMetaHelpter = require(‘*/cartridge/scripts/helpers/pageMetaHelper’);
pageMetaHelpter.setPageMetaTags(req.pageMetaData, Site.current);
res.render(‘/home/homePage’);
Missing code here
}, pageMetadata.computedPageMetadata);
The controller endpoint code snippet above does not work.
Which line of code should the developer use to replace line 6 and correct the problem?
A merchant has a requirement to render personalized content ton a category page via a Content Slot that
targets VIP high-spending customers during a specific promotional period.
Which two items should the developer create to achieve the specified requirements?
Choose 2 answers:
Given the following snippet:
Server.append( ‘Show’ , function (req, res, next) )
According to SFRA, which two optionsshows a correct way to complete the code above in order to provide
data to the response using a controller?
Choose 2 answers
A Digital Developer selects “Show Orderable Products Only” in the Search > Search Preferences Business Manager module.
Which business goal does this accomplish?
A developer is using logging in scripts to troubleshoot an issue. They are using thedw.system.Log class to write to specific log levels and categories. Which log level is always enabled by default?
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?
Adigital instance has one site, with one master product catalog separate from the site catalog. Some, but NOT all, products in the master catalog are assigned to categories of the site catalog.
Using Business Manager, how can a Digital Developer create a catalog export file that contains only the products assigned to the site catalog?
In Log Center, a developer notes j number of Cross Site Request Forgery (CSRF) log entries.
After adding the token in the 15ML template, which action might solve this problem'
A Digital Developer has been given a specification to integrate with aREST API for retrieving weather conditions. The service expects parameters to be form encoded.
Which service type should the Developer register?
The developer has been given the following business requirement:
The shipping method, Free Standard Ground Shipping' hasan exclusion for products *lth 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?
A developer is tasked with implementing the necessary code for a new Page Designer component.
What are the two purposes of the JSON metadata definition file that the developer creates7
Choose 2 answers
A Digital Developer added afile named MyBusinessController.js in the cartridge named app_project. The project design calls for this new file to override MyBusinessController.js in client_project. The client_project cartridge contains other necessary functionality. Additional functionality is also included in the storefront_core and storefront_controllers cartridges.
Which cartridge path meets the project requirements?
A Digital Developer must resolve a performance issue with product tiles. The Developer determines that the product tiles are NOT being cached for a long enough period.
Which two methods can the Developer use to verify the cache settings for the product tiles? (Choose two.)
Given the following conditions:
Site export file with a copy of the Storefront data for a custom site
Sandbox with the custom site code, but no Storefront data
Requirement for a working copy of SFRA for development reference
A developer is assigned the following Business manager tasks:
A) Import the custom Site using Site Import/Export
B) Import the SFRA Demo Sites using Site Import/Export
C) Rebuild the custom Site search indexes
In what sequence should the developer perform the tasks, so that the custom Site displays the products as intended?
A Storefront is designed so that multiple pages share a common header and footer layout.
Which ISML tag should a developer use on the templates for these pages to avoid code repetition in the most effective way?
A new product has been added to the Storefront catalog that 15 assigned to a site
Which configuration does a developer need to ensure to have a new product visible in the Storefror
A Digital Developer extends a system object, Product, andadds a Boolean attribute, “sellable,” to it.
Assuming “prod” is the variable name handling the product, what code can the Developer use to access it?
A controller route in the SFRA base looks as follows:
In order to extend this route using prepared ( ), what should the developer consider?