Salesforce-B2C-Commerce-Cloud-Developer Practice Test
Salesforce Spring 25 Release 202 Questions
A Digital Developer is working on a multi-site realm. A new site requires a different layout
for the account landing page. The business logicand datamodel remain the same. The
existing code is in AccountControl.js and accountlanding.isml in the app_storefront
cartridge. The app_storefront cartridge contains code for all other business functions. The
cartridge path for the new site is currentlyint_cybersource:int_paypal:app_storefront.
The Developer creates a new cartridge named app_newsite that contains only the
accountlanding.isml template for the new site.
Which modification should be made to the new cartridge path?
A. Set the cartridge path sothat app_newsite is before app_storefront.
B. Set the cartridge path so that app_storefront is before int_cybersource.
C. Set the cartridge path to include only app_newsite.
D. Set the cartridge path so that app_newsite is after app_storefront.
A. Set the cartridge path sothat app_newsite is before app_storefront.
Explanation:
In Salesforce B2C Commerce, the cartridge path order determines the priority for file resolution β such as:
controllers
ISML templates
scripts
pipelines
When the same file exists in multiple cartridges, the first occurrence in the cartridge path is used.
This is especially important when overriding templates or logic for specific sites.
π§ Scenario Recap:
Youβre using a multi-site realm.
You want the new site to use a different accountlanding.isml template, but reuse the same business logic (AccountController.js).
You have a new cartridge app_newsite with only the overridden template.
β What You Need to Do:
You want only the new site to use the overridden template in app_newsite, and fall back to app_storefront for all shared logic.
To achieve this:
You must place app_newsite before app_storefront in the cartridge path.
This ensures the system will find and render accountlanding.isml from app_newsite before falling back to the one in app_storefront.