Given the requirements:
• To show the washing instructions for a clothing product on a dedicated section the detail page
• Washing instructions come from the product information manager(PIM)
• To have this attribute available to localize in the Storefront.
Which action meets these requirements?
Given the following snippet:
Server.append( ‘Show’ , function (req, res, next) )
According to SFRA, which two options shows a correct way to complete the code above in order to provide
data to the response using a controller?
Choose 2 answers
A Digital Developer extends a system object, Product, and adds a Boolean attribute, “sellable,” to it.
Assuming “prod” is the variable name handling the product, what code can the Developer use to access it?
A developer wants to use an external application to manage their stores information (such as opening
hours, and so on), and see their changes in their B2C Commerce Staging instance aas son as they are
saved.
What is the appropriate technique the developer should perform to allow the merchant to create a new
store in this scenario?
Given the file structure below, which ISML method call renders the customLandingPage template?
A developer needs to check for product inventory in all inventory lists using the Open Commerce API.
An example request URL is:
Which properly should the developer check in the OCAPI settings to confirm the appropriate resource is enabled?
A developer has a requirement to add a new field to the IN registration from that must not appear in the US one.
Which path should be created to accomplish this requirement?
The Home-Show route uses this middleware chain:
The developer added Home.;s in another cartridge, which is before the original cartridge in the cartridge path, to extend that route but it does not have the middleware chain:
Assuming the code is correct on both functions, what is the expected result?
There are three logging categories: category1, category1.eu, and category1.us.
In Business Manager, category1 is enabled for WARN level and no other categories are configured. All custom log targets are enabled.
The code segment below executes.
What is the result'
A Digital Developer must resolve a performance issue with product tiles. The Developer determines that the product tiles are NOT being cached for a long enough period.
Which two methods can the Developer use to verify the cache settings for the product tiles? (Choose two.)
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?
Universal Containers wants to associate a region code value with an order to indicate the general area of its destination. This region code must be accessible whenever the order history is displayed.
What is required to accomplish this?
A developer is using logging in scripts to troubleshoot an issue. They are using the dw.system.Log class to write to specific log levels and categories. Which log level is always enabled by default?
Given the sandbox with:
Service configured and assigned to its profile and credential
A code version that uses that service
And given the requirement to limit the number of success or error calls the code can perform to a restricted number of calls per second.
Which configuration should the developer perform?
There is a business requirement that a custom controller in app_custom_my_cartridge invokes the calculateTax(basket) function of the dw, order calculateTex hook that is defined in app_storefront_base. How can the developer implement this call?
A)
B)
C)
A merchant asks a developer to create a Cache Partition 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?
A developer is importing edits for two different sites into the same sandbox, and is provided with four different files.
Which two XML files should the developer import using the site-specific Merchant Tools import modules,
instead of the Administration section import modules?
Choose 2 answers.
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?
The developer created a new Storefront category in storefront-catalog-m-en, but when viewing the
Storefront site, the category is not visible.
What are two possible reasons?
A developer is given a task to implement a new Page Designer layout component that doesn’t accept
certain asset components.
How should the developer achieve the above task?
In the SFRA Page controller, the following route exists:
The result of navigating to the address below is an error page.
What is the correct way to use this controller route in an ISML template?
A)
B)
C)
A developer is asked to write a log containing the ID and name of the product with a variable named myProduct.
Which snippet of code should be used?
A Logger.warn(‘The current producto is {0} with name {1}’, myProduct.getID(), myProduct.getName());
B Logger.warn(‘The current producto is {0} with name {1}’), context(myProduct.getID(), myProduct.getName());
C Logger.warn(‘The current producto is ${myProduct.getID()} with name ${myProduct.getName()}’);
D Logger.warn(‘The current producto is %s with name %s’), context(myProduct.getID(), myProduct.getName());
A client sells its products in North America, Europe, and Asia, and has a B2C Commerce Site for each of these markets. The client receives three area-specific snippets of analytics code by a third-party provider to insert in the sites.
How should the developer configure an instance to allow the merchant to independently insert and update these snippets?
A Digital Developer adds the following line of code to a script.
The code executes without error; however, the log file on disk does NOT contain the log message.
Which two actions should be completed to write the log message to disk? (Choose two.)
Which two items are appropriate content of custom logs implemented at checkout?
Choose 2 answers:
A Digital Developer has a new requirement to disable the "Discover" credit card type for all checkouts.
What does the Developer need to change in Business Manager to fulfill this requirement?
Given the requirements:
To show the washing Instructions for a clothing product on a dedicated section the detail page
Washing instructions come from the product Information manager (PIM)
To have this attribute available to localize in the Storefront
Which action must these requirements?
A Digital Developer added a file named MyBusinessController.js in the cartridge named app_project. The project design calls for this new file to override MyBusinessController.js in client_project. The client_project cartridge contains other necessary functionality. Additional functionality is also included in the storefront_core and storefront_controllers cartridges.
Which cartridge path meets the project requirements?