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.
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?
Given the following OCAPI definitions, which permission or permissions apply?
{
" resource_id " : " /sites/*/coupons/* " ,
" methods " :[
" put "
],
" read_attributes " : " (**) " ,
" write_attributes " : " (**) "
}
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 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 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 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?
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?
Which item is appropriate content for custom logs implemented at checkout?
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 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 a site called RefArch with the settings shown, what must be done for RefArch to use the same customer list as RefArchGlobal?
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 client has a requirement to allow users on the Storefront to filter by a newly created attribute. Which is necessary to achieve this?
What should a developer do to ensure that the gift vouchers are always available?
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?
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?
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 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 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 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 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?
How should a developer set up the files before making required edits to the address form?
What is the action needed for the content slot to work as intended?
A developer wants to add a link to the My Account page.
What is the correct code to accomplish this?
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?
What is the correct format to use for embedding a link to a content page?
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 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 developer is asked to improve a page ' s maintainability by reducing its code repetition.
Which technique should the developer implement to achieve this?
An instance has custom logging enabled. The log reaches the file size limit.
What happens in this situation?
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 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 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?
Given the requirement to add caching to an existing page while adhering to SFRA best practices, which code snippet should be used?
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 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 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?
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 developer needs to implement a new feature that requires the use of a custom attribute. What is the first step the developer should take?
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?
What step should a developer take to troubleshoot code changes not appearing on the Storefront?
3 Months Free Update
3 Months Free Update
3 Months Free Update