In the SFRA Page controller, the following route exists:
server.get( ' Include ' ,server.middleware.include,cache.applyDefaultCache,
function(req,res,next) {
...assume original code here...
next();
}
);
The result of navigating to the address below is an error page.
https://yourinstance/on/demandware.store/Sites-RefArch-Site/en_US/Page-Include?cid=about-us
What is the correct way to use this controller route in an ISML template?
In SFRA, the `Page-Include` route is a special controller endpoint designed to be used with the `` ISML tag. It is not meant to be navigated to directly in a browser (which is why visiting the URL directly produces an error page), and it is not a content page route.
The `` tag is an SFRA ISML tag that renders the output of a controller route inline within another template. It fetches the response from the given URL and embeds it into the current page. The `Page-Include` route uses `server.middleware.include` and is built specifically to serve content for this inline rendering purpose.
Why the Other Options Are Incorrect
A. `${Resource.msg('aboutus', 'content', null)}` – This creates a hyperlink that points the shopper's browser directly to the `Page-Include` route. As the scenario states, navigating directly to this URL produces an error page. The `Page-Include` route is not designed to be a standalone navigable endpoint — it exists to be rendered inline via ``. Using an `` here reproduces the exact error described in the question.
Screen image with “Active” “Log Category” and “Log Level” along the top. Under the log category are three
lines. On the first line, there is an empty log category field. To the right of this empty field is the word “Info”
under the log level. On the second line, the word “root” is under the log category and to the right of that is the
word “Warn” under the log level. On the third line, a checked box is under “Active” with “myLogCategory”
under the “log category” and to the right of that is the word “Info” under the log level. Beneath this
information is the header “Custom Log Targets. Under this header is an empty space for an email with the
Text “Messages with log level FATAL can be sent to email recipients” Below this is a list of log file to select
log levels written to files. The following love levels are selected: “Fatal”, “Error”, and “Warn” and the
following log levels are not checked: “Info” and “Debug”
The developer wants to be able to view DEBUG level messages for myLogCategory in the Request Log tool.
Given the custom log configurations in the image above, what does the developer need to do to accomplish
this?
Correct answer:
A. Change the Log Level for myLogCategory to DEBUG.
Explanation
In Salesforce B2C Commerce (SFCC), log configuration in Business Manager (Administration > Site Development > Development Setup > Log Settings) has two distinct parts:
1. Log Category configuration (the top table with "Active", "Log Category", and "Log Level") — This defines, per custom log category, the threshold log level at which messages are captured. Each category (including `myLogCategory`) has its own log level. The root category also has a level. A message is only logged for a given category if its level is at or above that category's configured level.
2. Log Files / Custom Log Targets (the bottom section with checkboxes for Fatal, Error, Warn, Info, Debug) — This defines which log levels get written to the log files on disk (and thus which are available for tools that read the log files, such as the Request Log tool).
Why the Other Options Are Incorrect
B. Check the DEBUG box in the Log Files section. – Checking the DEBUG box in the Log Files section only affects whether DEBUG-level messages (that are already being generated) get written to the log files. It does not cause DEBUG messages for `myLogCategory` to be generated in the first place. Since `myLogCategory` is set to Info, its DEBUG messages are filtered out before they ever reach the file-writing stage. So checking the DEBUG box alone would not produce any DEBUG messages for `myLogCategory`. This option addresses the wrong layer of the configuration.
C. Change the Log Level for myLogCategory to DEBUG and check the DEBUG box in the Log Files section. – While this combination would be the most complete configuration in some scenarios (ensuring both generation and file output of DEBUG messages), the question asks what the developer needs to do given the configuration shown. The critical change is setting the category level to DEBUG. Option C overstates the requirement by bundling in the Log Files checkbox as a necessity, making it a less precise answer than A. The category-level change (A) is the correct, targeted fix.
Reference
Salesforce B2C Commerce documentation — Log Settings in Business Manager (Administration > Site Development > Development Setup > Log Settings), including Log Categories, Log Levels, Custom Log Targets, and the Request Log tool. Also see SFCC documentation on the `dw.system.Logger` API and log level filtering behavior.
Which method is efficient and scalable because it uses the product search index rather than searching the
database?
Correct answer:
C. ProductSearchModel().getProductSearchHits()
Explanation
In Salesforce B2C Commerce (SFCC), the `ProductSearchModel` class (from the `dw.catalog` package) is designed to execute product searches against the product search index rather than querying the database directly. The search index is a pre-built, optimized data structure that enables fast, scalable, and efficient retrieval of product results — especially for large catalogs.
Why the Other Options Are Incorrect
A. `ProductAvailabilityModel.isOrderable()` – `ProductAvailabilityModel` (from `dw.catalog`) is used to determine product availability and orderability (e.g., whether a product is in stock and can be ordered). It does not perform product searches, and it does not use the search index for searching. It is an availability/inventory model, not a search mechanism. While it may consult inventory data, it is not the efficient, scalable search-index-based method the question describes.
B. `ProductIndexModel.getOrderableProductsOnly()` – There is no `ProductIndexModel` class with a `getOrderableProductsOnly()` method in the SFCC Script API. This is a fabricated distractor. `ProductIndexModel` is not a real SFCC class, and the method name does not exist. It may sound plausible because it combines "Index" and "Orderable," but it is not valid.
Reference
Salesforce B2C Commerce Script API documentation — `dw.catalog.ProductSearchModel` class, specifically the `getProductSearchHits()` method and its use of the product search index. Also see `dw.catalog.ProductAvailabilityModel` for availability/orderability (unrelated to searching) and SFCC documentation on the distinction between search-index-based and database-based product retrieval.
That's the last free question in Application Development
You've seen the free 25% of this topic (13 of 53 questions). Get complete access for every question, explanation and the timed exam simulator.
Our timed 2026 Salesforce B2C Commerce Developer practice test mirrors the format, number of questions and time limit of the official exam.
The #1 challenge isn't just knowing the material, it's managing the clock. The simulation builds your speed and stamina, so you walk in knowing exactly what to expect.