
SalesforceCertified B2C Commerce Developer
Domain 4Objective 1
ISML Templates and Controllers B2C-COMMERCE-DEVELOPER Practice Questions (Page 4)
Part of the APPLICATION DEVELOPMENT domain, which accounts for 56% of the B2C-COMMERCE-DEVELOPER exam.
19questions here
4free pages
7concepts
56%of the exam
Questions 16–19
- 16
What is the primary purpose of an ISML module?
Select an answer first - 17
A B2C Commerce developer is building an AJAX endpoint that returns product availability information as JSON. The endpoint receives a product ID as a query parameter, looks up the product, and returns its availability status. The developer has written the following controller code: ```javascript var server = require('server'); var ProductMgr = require('dw/catalog/ProductMgr'); server.get('Availability', function (req, res, next) { var productID = req.querystring.pid; var product = ProductMgr.getProduct(productID); var availability = product.availabilityModel; res.json({ productID: productID, inStock: availability.inStock }); next(); }); module.exports = server.exports(); ``` What is the correct way to ensure this endpoint returns JSON instead of attempting to render a template?
Select an answer first - 18
A B2C Commerce developer is building a product detail page that must display a list of related products. The related products are determined by a recommendation engine that requires server-side logic to fetch the data. The developer wants to render this list as a reusable component on the page. Which approach should the developer use?
Select an answer first - 19
Which method is used to render JSON output from a JavaScript controller?
Select an answer first
Finished these 4 questions?
Review the revealed explanations, or continue through the curriculum.
No more pagesBack to B2C-COMMERCE-DEVELOPER
Free Basic Practice is a study aid with revealable answers — not a scored exam. Examers.io is independent and not affiliated with or endorsed by Salesforce. “B2C-COMMERCE-DEVELOPER” is a trademark of its owner, used for identification only.