A Digital Developer adds the following line of code to a script. dw.system.Logger.getLogger{'login').debug {"Login API has succeeded"); 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 2 answers
A. Ensure that the debug log level has been added to the custom log level types in the Global Preferences business manager module.
B. Ensure that the "login" category is added to the Custom Log Filters in the Log Settings Business Manager module.
C. Archive old log files to make room in the log directory.
D. Ensure that the debug log level is enabled to write to file in the Custom Log Settings Business Manager module.
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. $include('Page-Include', 'cid', 'terms-and-conditions')$
B. $url(*Page-Show', 'cid', 'terms-and-conditions')s
C. $http('Content-Page', 'cid', 'terms-and-conditions^S
D. $httpUrl('Content-Show\ 'cid', ,terms-and-conditions')$
A Digital Developer needs to store information temporarily and decides to create a custom object. Which code creates a custom object?
A. CustomObjectMgr.createCustomObject(primaryKey);
B. CustomObject.createCustomObject(primaryKey,CustomObjectType);
C. CustomObject.createCustomObject(CustomObjectType,primaryKey);
D. CustomObiectMqr.createCustomOb1ect(CustomOb1ectType,primaryKey);
A Digital Developer has Identified that the code segment below is causing performance problems.
What should the Developer do to improve the code?
A. Avoid post-processing and use the isOnSaleFlag attribute as a search refinement.
B. Use a system attribute instead of the isOnSaleFlag custom attribute.
C. Avoid using an Iterator and use a Collection instead.
D. Break the process into separate loops.
Universal Containers is preparing their storefront to use Open Commerce APIs (OCAPI). To which hook should the Digital Developer move taxation logic to ensure consistent order totals within B2C Commerce?
A. dw.ocapi.shop.basket.afterPostShipment
B. dw.ocapi.shop.order.afterPOST
C. dw.ocapi.shop.order.validateOrder
D. dw.ocapi.shop.basket.calculate
A Digital Developer wants pass control to an ISML template from a JavaScript Controller and load product
on the pipeline dictionary with the name myProduct.
Which code sample will achieve this?
A. ISML.renderTemplate{ "helloworld.isml", { "product": myPrcduct });
B. ISML.renderTemplate( "helloworld.isml", { "myProduct": "product" });
C. ISML.renderTemplate{ "helloworld.isml", { myProduct: product });
D. ISML.renderTemplate( "helloworld.isml", { product: myProduct });
A Digital Developer needs to add logging to the following code.
Which statement logs the HTTP status code to a debug-level custom log file?
A. logger.debug("Error retrieving profile email. Status Code: {0} was returned.", http.statusCode);
B. logger.getLogger('profile').debug("Error retrieving profile email. Status Code: ", http.statusCode);
C. Logger.getLoggerO-debugfError retrieving profile email. Status Code: {0} was returned.", http.statusCode);
D. Logger.getLogger('profile,).debug("Error retrieving profile email. Status Code: {0} was returned.", http.statusCode);
A Digital Developer has been given a specification to integrate with a REST API for retrieving weather
conditions. The service expects parameters to be form encoded.
Which service type should the Developer register?
A. HTTP Form
B. WebDAV
C. SOAP
D. FTP
Universal Containers recently completed updates to their storefront shopping cart page. A problem has been discovered since the update. Users are no longer able to submit coupon codes on this page. Additionally, authenticated users who try to add a coupon are logged out. The following processing code Is found In the carets controller file: What should the Developer verify to Identify the Issue?
A. The CSRF settings In Business Manager are properly configured.
B. The form group has the secure attribute set to true.
C. The CSRF token Is present In the form and Is being submitted in the request.
D. The CSRF cartridge Is included in the site's cartridge path.
Assume the code below is executing:
Business Manager has the configuration:
Active Log category is";roo"; with log level of";info";
Given this information, what is the beginning of the filename in which the log will be written?
A. custom-xyz
B. xyz
C. custom-export
D. custominfo-blade