What is the result when the code segment executes with the logger configuration?
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?
A developer is implementing a new feature that requires the use of a custom object. What is the first step the developer should take?
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 has asked their development team to add a new site.
Which task is essential for correct site configuration prior to launch?
The client provides the system integrator with translation messages for the newly added " French " ( " fr " ) locale.
What is the correct folder to store the associated.propertiesfiles?
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 cache is cleaned.
Given the above requirement, where should the developer create that partition in Business Manager?
What is accomplished by the code below?
< isinclude url= " ${URLUtils.url( ' Account-Header ' , ' mobile ' , true)} " / >
There is a business requirement to allow a third-party warehouse management system to update the MySample.com storefront product inventory in real time. The architect decided that this is most easily accomplished by using the Open Commerce API (OCAPI). The developer needs to test the OCAPI settings in their sandbox. Assume the client ID for testing is " aaaaaaaaaaaaaaaaaaaaaaaaaaaaaa " . What is the correct OCAPI setting for this?
What is the expected result when the code segment executes with the logger configuration?
A developer has a specification to integrate with a REST API for retrieving traffic conditions. The service expects parameters to be form encoded.
Which service type should the developer register?
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 cannot create a custom object in Business Manager because the attributes do not show. The developer can view the object but not the attributes.
Which action should the developer take to resolve the problem?
Which method is efficient and scalable because it uses the product search index rather than searching the database?
When looking at Custom Object instances for a site, a merchant notices that the creation date is not showing up on the instances in Business Manager.
Where should the developer add this attribute to the Custom Object so it is visible for the merchant to see in Business Manager?
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 is tasked with the development of a new Page Designer Page Type, as requested by the merchant. How should they define the rendering logic of the page?
Which method should a developer use to create a service instance that will call a remote web service?
A client has a requirement to allow users on the Storefront to filter by a newly created attribute.
After creating the search refinement, what else is necessary to achieve this?
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.
varlogger=Logger.getLogger( " loggerFile " , " category1.eu " );
logger.warn( " This is a log message " );
What is the result?
Which is an appropriate use of the < isif > ISML tag that follows B2C Commerce and SFRA best practices?
A new product has been added to the Storefront catalog that is assigned to a site.
Which configuration does a developer need to ensure to have a new product visible in the Storefront?
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 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 NewsletterSubscription custom object that has a key attribute named email of type String, what is the correct syntax to create the NewsletterSubscription custom object?
What step must a developer take in Business Manager to accept American Express credit cards?
A developer has these requirements for out-of-stock products:
• Save the SKUs of the out-of-stock products that the customer is interested in.
• Save the customer email regardless if the customer is a guest or registered.
• Email the customer when the product is back-in-stock.
Which step should the developer perform as part of the solution to achieve the requirements?
Given the following ISML example, how should a developer reference the product object in the current iteration of the basket?
< isloop items= " ${pdict.Basket.products} " var= " product " status= " loopstatus " >
...
< /isloop >
Given a sandbox with an active slot configuration with the following specifications:
Content type set to product
With some product configured
With the following rendering template:slots/product/product_1x2.isml
Correctly enabled and scheduled
And given the code contained in the selected rendering template:
< isif condition= " ${!empty(slotcontent)} " >
< isloop iterator= " ${slotcontent.content} " alias= " product " >
< div class= " product " >
< isprint value= " ${product.getID()} " > < br / >
< isprint value= " ${product.getName()} " > < br / >
< /div >
< /isloop >
< /isif >
Is an additional action needed for this to work as intended?
Multiple shoppers report slow performance on the Product Details Page.
Which tool can a developer use to view average response times for the Product-Detail controller route?
A developer is tasked with creating a new payment method in Business Manager. What is the first step the developer should take?
Given a site called RefArch with the settings shown, what must be done for RefArch to use the same customer list as RefArchGlobal?
A client sells its product in single-brand stores as well as in multi-brand stores. When shown in the store locator list, the client wants the single-brand stores to have a particular background color to highlight them.
Which Business Manager action should be completed to allow the developer to apply different styling to the single-brand stores?
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 should the developer do to implement such a requirement?
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 merchant has a new requirement to accept American Express credit cards on its Storefront. A credit card payment method already exists.
Which step must a developer take in Business Manager to achieve this?
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?
Which snippet works correctly when updating the package.json file to point to the hook file for a cartridge?
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?
What should a developer implement to enhance the functionality of an existing controller route?