
SalesforceCertified B2C Commerce Developer
Domain 4Objective 1
ISML Templates and Controllers B2C-COMMERCE-DEVELOPER Practice Questions (Page 3)
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 11–15
- 11
Which attribute of the <isinclude> tag is used to specify the template file for a local include?
Select an answer first - 12
A B2C Commerce developer is building a site that uses a shared 'storefront' cartridge for common UI elements and a separate 'checkout' cartridge for checkout-specific pages. The checkout confirmation page needs to display the store's trust badges, which are defined in a template called trustBadges.isml in the storefront cartridge. The developer needs to embed this template into the checkout confirmation page. Which ISML tag should the developer use?
Select an answer first - 13
What is the primary purpose of an ISML component?
Select an answer first - 14
A B2C Commerce developer is building an endpoint that returns a list of products as JSON for a mobile app. The endpoint receives a category ID as a query parameter, fetches the products in that category, and returns them as a JSON array. The developer has written the following controller code: ```javascript var server = require('server'); var ProductMgr = require('dw/catalog/ProductMgr'); server.get('CategoryProducts', function (req, res, next) { var category = ProductMgr.getCategory(req.querystring.cid); var products = category.getProducts(); var productList = []; for (var i = 0; i < products.size(); i++) { var product = products[i]; productList.push({ id: product.ID, name: product.name }); } res.json(productList); next(); }); module.exports = server.exports(); ``` What is the correct way to ensure this endpoint returns the product list as JSON?
Select an answer first - 15
A developer wants to embed a template fragment that resides in the same cartridge as the calling template. Which ISML tag should be used?
Select an answer first
Finished these 5 questions?
Review the revealed explanations, or continue through the curriculum.
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.