Given the following ISML example, how should a developer reference the product object in the current
iteration of thebasket?
…
A client has two B2C Commerce sites in the same instance: one forthe U.S. market, the other for the European market. They offer free gift wrapping on a selection of products. For each order, five products can be wrapped in the U.S., but only three products can be wrapped in the European region.
How should a developer allow the merchant to independently adjust this number?
Given a file in a plug-in cartridge with the following code:
‘use strict’:
Var base = module.superModule;
Function applyCustomCache (req,res,next){
res.CachePeriod = 6; //eslint-disable-line no-param-reassign
res.cachePeriodUnit = ‘hours’) //eslint-disable-line no-param-reassign
next();
}
Module.exports = base;
Module.exports.applyCustomCache = applyCustomCache;
What does this code extend?
Business Manager has the configuration:
Active Log category is "root"
Log level of WARN
The code below is executing:
var log = Logger.getLogger("products");
Using this information, which two logs will be written?
Choose 2 answers
The developer is asked to enhance the functionality of an existing controller route by adding information to the response's viewData.
How should thedeveloper approach this task while following SFRA best practices?
A developer has configured the following log levels for categories & sub categories as
WARN logging is enabled for 'product’ and DEBUG for "product.import"
What will be the log level used for various categories and sub-categories?
A developer has custom debug statements in a script, but the messages are not showing up in the
Storefront Toolkit Request Log.
Which step needs to be completed to get the messages to appear in the Request Log?
To ensure SFRA best practices and protect against request forgery, the developer introduced CSRF token
generation in the customer address form:
To implement CSRF protection when the form is submitted, the developer needs to introduce the CSRF
validation using one or both of these methods as applicable:
validateRequest
validateAjaxRequest
Where in the code does the developer need to add this CSRF validation check?
A developer has a requirement to display a banner in two different category pages.
Which snippet of code should the developeradd to a template to allow the merchant to configure each independently?
A)
B)
C)
A business user wants to add a link to a content page from within the body of another content asset. The target content asset ID is: terms-and-conditions.
Which link function generates the correct link?
A Digital Developer is implementing an Open Commerce API call to add products to a basket. Given the following resource configuration:
Which modification allows the requests to successfully execute?
Universal Containers calls thefollowing combination of products “The Basics” and sells the combination as a unique product ID:
The Developer created these three products in the catalog.
What is the next stepin Business Manager to create “The Basics” as a combination?
A developer has the following files in template/resources:
account.proierties
weight.unit=kilos
account_en.propierties
weight.unit=stones
account_en_US.propierties
weight.unit= pounds
Using the default locale configuration, what is the current outcome of the page that renders the
account.isml template snippet below when visiting the Sofrefront with the English for Canada(en_CA) locale=
Your parcel weighs 10 ${Resource.msg(‘weight.unit’,’account’)}
Given the requirements:
To integrate with an external web service using HTTP requests
To create a service for this purpose with the Service framework using the LocalServiceRegistry
class.
To test the service before the external service provider makes the API available
Which solution allows the developer to satisfy the requirements?
A Digital Developer is requesting product information for an external integration. The following Open Commerce API (OCAPI) request is NOT functioning correctly:
How should the Developer change the request?
A Digital Developer selects “Show Orderable Products Only” in the Search > Search Preferences Business Manager module.
Which business goal does this accomplish?
A Digital Developer must give users the ability to choose an occasion (holiday, birthday, anniversary, etc.) for which gifts are currently being selected. Thedata needs to be persistent throughout the current shopping experience.
Which data store variable is appropriate, assuming there is no need to store the selection in any system or custom objects?
A client has three different sites with three locales. Two of the sites share a library and one site has a private library.
What does the shared library allowin this context?
A Digital Developer is tasked with setting up a new Digital Server Connection using UX Studio in their sandbox.
Which three items are required to accomplish this task? (Choose three.)
A Digital Developer is inspecting the weekly service status report for a critical internally-hosted web service used inthe application and notices that there are too many instances of unavailability.
Which two solutions are possible options to reduce the unavailability of the service? (Choose two.)
A Digital Developer wants pass control to an ISML template from a JavaScript Controller and load product on thepipeline dictionary with the name myProduct.
Which code sample will achieve this?
A developer working on a simple web service integration is asked toadd appropriate logging to allow future
troubleshooting.
According to logging best practices, which code should the developer write to log when an operation succeeds, but has an unexpected outcome that may produce side effects?
A client has a requirement to render different content on the homepage based on if the customer is logged in or guest user.
What should a developer implement to achieve this requirement?
A developer cannot create a custom object in Business Manager because the attributes do not show. The developer can view the object but not the attributes.
Whichaction should the developer take to resolve the problem?
A merchant asks a developer to create a CachePartition for the home page, so that when the home page
is edited, only the home page is cleaned.
Given the above requirement, where should the developer create that partition in Business Manager?