Examers.io
ExamsOrganizationsHow it worksPricingHelp & FAQ
Salesforce logo

SalesforceCertified B2C Commerce Developer

Domain 4Objective 1

ISML Templates and Controllers B2C-COMMERCE-DEVELOPER Practice Questions (Page 2)

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 6–10

  1. 6foundation · easy

    What is the typical use case for rendering JSON from a controller?

    Select an answer first
  2. 7foundation · easy

    What is the role of a 'script' in a JavaScript controller?

    Select an answer first
  3. 8application · medium

    A B2C Commerce developer is creating a product detail page. The page has a section that displays a product's price, which includes logic to show a sale price if the product is on promotion, and a regular price otherwise. This price display logic is used on multiple pages across the site, including search results and category pages. The developer wants to encapsulate this logic into a reusable fragment that can be dropped into any template. Which approach should the developer use?

    Select an answer first
  4. 9foundation · easy

    A developer needs to include a template from a different cartridge within the same site. Which ISML tag should be used?

    Select an answer first
  5. 10expert · hard

    A B2C Commerce developer is modifying a controller that handles a product review submission. The current logic always redirects the user to the product page after a successful submission. The new requirement is to redirect the user to the product page only if they came from the product page; otherwise, redirect to the account page. The `req.querystring.productID` parameter is present when the user came from the product page. Which code change should the developer make?

    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.