Salesforce Certified B2C Commerce Cloud Developer - Comm-Dev-101 Exam Practice Test

A Digital Developer needs to add logging to the following code:

Which statement logs the HTTP status code to a debug-level custom log file?
Correct Answer: A
Given the following snippet:
Server.append( 'Show' , function (req, res, next) )
According to SFRA, which two options shows a correct way to complete the code above in order to provide data to the response using a controller?
A)
res.viewData = {
data: myDataObject
};
res.render('/content/myPage');
next();
});
B)
res.setViewData ({
data: myDataObject
});
res.render('/content/myPage');
next();
});
C)
res.render('/content/myPage',{
data: myDataObject
});
next();
});
D)
res.render('/content/myPage');
next();
}).append{(
Data:myDataObject
});
Correct Answer: D
A merchant has complained to the developers that some products are not appearing in the storefront and has asked them to diagnose and solve the issue.
Which two factors might be causing a product to be hidden?
Choose 2 answers
Correct Answer: A,E
Consider the following information:
* A merchant has this three-tier category structure setup in the Storefront catalog:
New Arrivals > Women > Clothing
* The category named Clothing has all the clothing items for Women and is merchandised.
* A Search Refinement named Newness is correctly configured for the Clothing category.
When a merchandiser views the Clothing category, the Search Refinement appears and Works as expected. However, the merchandiser does not see the Search Refinement when searching for Clothing via the Storefront search.
What is the Reason?
Correct Answer: D
A developer uses the call() instance method of dw.svc.Service to invoke a web service and implemented the callback methods defined by the dw.avc.ServiceCaliback class.
Which callback method is required only when invoking a SOAP service?
Correct Answer: B
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?
Correct Answer: A,D
A merchant requires that an existing section of the Site become editable from the Business Manager, so that they can modify it independently of the developer.
Which of these is an important factor for a developer to consider when choosing the appropriate solution between a content slot and a Page Designer component?
Correct Answer: C
A developer is implementing new Page Designer content on a merchant's Storefront and adds the line below to

What does this achieve?
Correct Answer: A
Which of these situations is an appropriate use of the B2C Commerce OCAPIs?
Correct Answer: B
Universal Containers recently completed updates to their storefront shopping cart page. A problem has been discovered since the update. Users are no longer able to submit coupon codes on this page. Additionally, authenticated users who try to add a coupon are logged out.
The following processing code is found in the Cart.js controller file:

What should the Developer verify to identify the issue?
Correct Answer: A
A developer is implementing new Page Designer content on a merchant's Storefront and adds the line shown below to the setupCsntentSearch function in the searchHelpers.Js file.
What does this achieve?
Correct Answer: A
0
0
0
0