A developer needs to show only car accessories when shoppers use the search term " car accessories " and exclude technology accessories and household accessories.
Given the above requirement, what is the recommended approach using the Search Dictionaries Dashboard?
A developer is tasked with creating a new payment method in Business Manager. What is the first step the developer should take?
How might a developer resolve the issue of low-stock items appearing at the top of search results?
Recent code changes to an existing cartridge do not appear correctly on a Storefront. The developer confirms that the code is uploaded in the IDE and ensures that the cartridge is associated with the sandbox.
After checking the Storefront site cartridge path, which step should the developer take to troubleshoot this problem?
A developer uses the call() instance method of dw.svc.Service to invoke a web service and implemented the callback methods defined by the dw.svc.ServiceCallback class.
Which callback method is required only when invoking a SOAP service?
A merchant checked the " Show Orderable Products Only " preference in Business Manager.
What impact does this have on the Storefront from a user perspective?
An instance has custom logging enabled. The log reaches the file size limit.
What happens in this situation?
A developer needs to implement a new feature that requires the use of a custom attribute. What is the first step the developer should take?
Reference the following code snippets that allow a form to function correctly.
Form definition (newsletter.xml):
< ?xmlversion= " 1.0 " ? >
< formxmlns= " http://www.demandware.com/xml/form/2008-04-19 " >
< fieldformid= " email " label= " Email: " type= " string "
mandatory= " true " max-length= " 50 " / >
< /form >
Controller snippet:
varnewsletterForm=server.forms.getForm( ' newsletter ' );
res.render( ' NewsletterTemplate ' ,{newsletterForm:newsletterForm});
Template snippet:
< form action= " ${URLUtils.url( ' Newsletter-Submit ' )} " method= " POST "
< isprint value= " ${EXPRESSION.attributes} " encoding= " off " / > >
< input type= " input " id= " email "
< isprint value= " ${EXPRESSION.email.attributes} " encoding= " off " / > >
< button type= " submit " > Submit < /button >
< /form >
Which code should a developer insert at the EXPRESSION placeholder in the ISML template snippet above to have the form work as expected?
A developer has a sandbox with code to log a message during execution, and the following code:
varLogger=require( ' dw/system/Logger ' );
Logger.info(message);
After the code executes, the developer does not see any log file with the message in the WebDAV folder.
What could the developer do to correct this issue?
Given a job step configured in the steptype.json that calls a script module, a developer needs to add a custom status code " NO_FILES_FOUND " in the script. The status does not represent an error condition.
Which code snippet completes this requirement?
A developer is inspecting the weekly service status report for a critical internally-hosted web service and notices there are too many instances of unavailability.
Which solution can reduce service unavailability?
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?
Given the requirements:
• To show the washing instructions for a clothing product on a dedicated section of 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?
A merchant has reported that customers are seeing low stock items at the top of their search results, giving them a subpar customer experience and impacting conversion.
How might this issue be resolved to ensure a better customer journey?
The Home-Show route uses this middleware chain:
server.get( ' Show ' ,consentTracking.consent,cache.applyDefaultCache,
function(req,res,next) {
// base code here
}
);
The developer added Home.js 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:
server.append( ' Show ' ,function(req,res,next) {
// custom code here
});
Assuming the code is correct on both functions, what is the expected result?
A developer needs to check for product inventory in all inventory lists using the Open Commerce API.
An example request URL is:
http://refarch.demandware.net/dw/data/v18_3/inventory_lists/ecom-inventory/product_inventory_records/00883408601
Which property should the developer check in the OCAPI settings to confirm the appropriate resource is enabled?
A controller route in the SFRA base looks as follows:
server.get( ' Show ' ,consentTracking.consent,cache.applyDefaultCache,
function(req,res,next) {
...base code omitted on purpose...
next();
},
pageMetaData.computedPageMetaData
);
In order to extend this route usingprepend(), what should the developer consider?
Given this customer basket information:
• A customer has an existing basket that consists of multiple items.
• One of the items is identified as a gift item by an attribute at the product line item.
• The developer needs to write custom code to fetch the customer basket and then modify the basket based upon the items in the cart. If the basket contains any gift items, modify the basket and create a separate shipment for the gift item.
Four hooks are required to make the modification, beginning with modifyGETResponse and ending with validateBasket.
dw.ocapi.shop.basket.modifyGETResponse
-- missing hook --
-- missing hook --
dw.ocapi.shop.basket.validateBasket
What are the two missing hooks in the middle?
A merchant wants customers to be able to order gift vouchers via their site. Since they can issue an unlimited number of these digital vouchers, this item should be available to sell at all times.
How can a developer use Business Manager to ensure that the gift vouchers are always available?
A developer uses hooks for an extension point. Which is true for running multiple hooks for an extension point?
What is the expected result when extending a route without the middleware chain?
A developer wants to configure multiple products that should only be sold as a group. It should not be possible for buyers to buy these products individually. How should the developer configure the products?
Business Manager has the configuration:
• Active Log category is " root "
• Log level of INFO
The code below executes.
varlog=Logger.getLogger( " products " , " export " );
log.info( " This is important information " );
Using this information, what is the beginning of the filename in which the log will be written?
A client has a requirement to allow users on the Storefront to filter by a newly created attribute. Which is necessary to achieve this?
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 allow in this context?
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 needs to display a products list of their " Women Dresses " category in a new web application, independent of their main B2C Commerce site. This custom listing page needs to be styled differently from the existing one, as per marketing requirements. Which B2C Commerce tool should the developer use to collect the necessary information?
A developer has the following files in template/resources:
• account.properties - > weight.unit=kilos
• account_en.properties - > weight.unit=stones
• account_en_US.properties - > 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 Storefront with the English for Canada (en_CA) locale?
Your parcel weighs 10 ${Resource.msg( ' weight.unit ' , ' account ' ,null)}.
To build the SFRA code to a developer sandbox for the first time, which build steps should the developer perform for the site to appear and function as designed?
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?
Given the requirement to add caching to an existing page while adhering to SFRA best practices, which code snippet should be used?
To implement site custom functionality, a developer creates a new cartridge.
Which step should the developer take to ensure their cartridge changes take effect?
A client has two B2C Commerce sites in the same instance: one for the U.S. market, the other for the European market. The products they make are sold with different safety certificates based on the world location.
For example, they sell a smartphone with certificate A in the U.S. and certificate B in Europe, a hairdryer with certificate C in the U.S. and certificate D in Europe, and more.
How should a developer allow the merchant to display the appropriate certification logo in the product details page, depending on the customer ' s location?
A developer observed a specific issue in production, which they cannot reproduce in other environments. The developer wants to do a hot fix to one of the ISML pages, which uses the < iscache > tag, to see if that resolves the issue. Which consideration must the developer keep in mind while deploying the hot fix in production?
A developer is asked to periodically create a CSV file in a WebDAV folder to hold the orders information of the last 30 days.
What are the appropriate actions to implement such a requirement?
Given a job step configured in the job that calls a script module, a developer needs to add a custom status code " NO_FILES_FOUND " in the script. The status doesn ' t represent an error condition. Which code snippet completes this requirement?
What should a developer do to ensure that the gift vouchers are always available?
A developer is using the Script Debugger to troubleshoot an issue. They observe that the debugger is not able to resolve a specific breakpoint on one of the scripts. What is a possible reason for this issue?
A developer working on a simple web service integration is asked to add 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?
Which is an appropriate use of the < isif > ISML tag that follows B2C Commerce and SFRA best practices?