Which three techniques improve client-side performance in production while following documented best practices? (Choose three.)
A.
Use one style sheet for each ISML decorator template.
B.
Place CSS outside of templates.
C.
Compress CSS.
D.
Use inline Javascript.
E.
Combine several images into a single image.
Use one style sheet for each ISML decorator template.
Compress CSS.
Use inline Javascript.
Which three object types can a developer import using the Merchant Tools > Content > Import & Export
module in Business Manager? (Choose three.)
A.
Content slots
B.
Images and other static assets
C.
Products
D.
Folders
E.
Content assets
Content slots
Products
Folders
A Newsletter controller contains the following route:
Server.post(‘Subscribe’, function (req,res,next){
var newsletterForm = server.forms.getForm(‘newsletter’);var CustomObjectMgr =
require(‘dw/object/CustomObjectMgr’);
if(newsletterForm.valid){
try{
var CustomObject =
CustomObjectMgr.createCustomObejct(‘NewsletterSubscription’, newsletterform.email.value);
CustomObject.custom.firstName = newsletterForm.fname.value;
CustomObject.custom.lastName = newsletterForm.lname.value;-
} catch(e){
//Catch error here
}
}
next();
});
Assuming the Custom Object metadata exists, why does this route fail to render the newsletter template
when the subscription form is correctly submitted?
A.
Custom Objects can only be created by Job scripts
B.
The Subscribe route is missing the server.middleware.httpt middleware.
C.
The CustomObjectMgr variable should be declare outside of the route
D.
The Custom Object creation is not wrapped in a Transaction
The Custom Object creation is not wrapped in a Transaction
A Digital Developer selects “Show Orderable Products Only” in the Search > Search Preferences Business Manager module. Which business goal does this accomplish?
A.
Exclude products from search results if Available to Sell (ATS) = 0.
B.
Exclude back-ordered products from showing on the website.
C.
Block displaying the product detail page if Available to Sell (ATS) = 0.
D.
Exclude pre-order products from search results.
Exclude products from search results if Available to Sell (ATS) = 0.
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.
A.
System type extensions (solo en Sites)
B.
Site Jobs (sites)
C.
Search Settings En (search y en Sites)
D.
Promotions ( en sites y en online marketing)
Search Settings En (search y en Sites)
Promotions ( en sites y en online marketing)
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.renderTemlpate ( "helloworld.isml", { "myProduct": "product" });
B.
ISML.renderTemlpate ( "helloworld.isml", { "product": myProduct });
C.
ISML.renderTemlpate ( "helloworld.isml", { product: myProduct });
D.
ISML.renderTemlpate ( "helloworld.isml", { myProduct: product });
ISML.renderTemlpate ( "helloworld.isml", { "myProduct": "product" });
A Digital Developer is inspecting the weekly service status report for a critical internally-hosted web service
used in the 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.
Modify the code that makes the request to the external service to be wrapped in a try / catch block.
B.
Change the code that makes the request to set the throwOnError attribute, of the service, to be true
C.
Increase the web service time out.
D.
Update the external service to have a faster response time.
Modify the code that makes the request to the external service to be wrapped in a try / catch block.
Update the external service to have a faster response time.
A developer is working on a new site for the U.S based on an existing Canadian site. One of the
requirements is a change to the address form. The current Canadian form has an <options> list with the
correct two-letter abbreviation for the provinces.
The U.S. requirements are to:
• Have an <options> list with the correct two-letter abbreviation for the states in place of the
province field.
• Set the U.S site locale.
• Add the options list field definition to the XML file.
How should the developer set up the files before making the required edits?
A.
Create a copy of existing address.xml file in the default folder. Rename that file to
adres_US.xml
B.
Create a new sub-folder in the forms folder. Name it US. Copy existing address.xml file in
the new folder
C.
Create a copy of existing address.xml file in the default folder. Rename that file to
address_en_US.xml
D.
Create a new sub-folder in the forms folder. Name it en_US. Copy existing address.xml file
in the new folder.
Create a new sub-folder in the forms folder. Name it en_US. Copy existing address.xml file
in the new folder.
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?
A.
Change the "resource_id" value to: "/baskets/*/items".
B.
Change the "write_attributes" value to: "(+items)".
C.
Change the "read_attributes" value to: "(items)".
D.
Change the "methods" value to: ["get", "post"].
Change the "resource_id" value to: "/baskets/*/items".
A Digital Developer has identified that the code segment below is causing performance problems.
What should the Developer do to improve the code?
A.
Use a system attribute instead of the isOnSaleFlag custom attribute.
B.
Avoid post-processing and use the isOnSaleFlag attribute as a search refinement.
C.
Breaks the process into separate loops.
D.
Avoid using an Iterator and use a Collection instead.
Breaks the process into separate loops.
Page 2 out of 15 Pages |
Previous |