Discount Offer
Available in 1, 3, 6 and 12 Months Free Updates Plans
PDF: $15 $60

Test Engine: $20 $80

PDF + Engine: $25 $99



Pass exam with Dumps4free or we will provide you with three additional months of access for FREE.

B2C-Commerce-Developer Practice Test


Page 2 out of 41 Pages

Server.get(‘Show’, consentTracking.consent, cache.applyDefaultCache, function (req,res,next){
Var Site = require(‘dw/system/Syte”);
Var pageMetaHelpter = require(‘*/cartridge/scripts/helpers/pageMetaHelper’);
pageMetaHelpter.setPageMetaTags(req.pageMetaData, Site.current);
res.render(‘/home/homePage’);
Missing code here
}, pageMetadata.computedPageMetadata);The controller endpoint code snippet above does not work.
Which line of code should the developer use to replace line 6 and correct the problem?


A.

next();


B.

return res;C. res.next();


C.

req.next();





A.
  

next();



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?


A.

Logger.info(‘Unexpected service response’)


B.

Logger.debug(‘Unexpected service response’)


C.

Logger.error(‘Unexpected service response’)


D.

Logger.warn(‘Unexpected service response’)





D.
  

Logger.warn(‘Unexpected service response’)



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.





A.
  

Use one style sheet for each ISML decorator template.



C.
  

Compress CSS.



D.
  

Use inline Javascript.



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





D.
  

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.





A.
  

Exclude products from search results if Available to Sell (ATS) = 0.




Page 2 out of 41 Pages
Previous