B2C-Commerce-Developer Salesforce Certified B2C Commerce Developer (WI23)

Loading demo links...

Showing 13–15 of 15 questions

Question 13

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?

Select an option, then click Submit answer.

  • next();

  • return res;C. res.next();

  • req.next();

Question 14

Universal Containers calls the following combination of products “The Basics” and sells the combination as a unique product ID:

The Developer created these three products in the catalog.

What is the next step in Business Manager to create “The Basics” as a combination?

Select an option, then click Submit answer.

  • In the Product Bundles module, create a bundle named “The Basics”.

  • In the Products module, create a product named “The Basics” and add the products to the Product Bundles tab.

  • In the Products module, create a product named “The Basics” and add the products to the Product Sets tab.

  • In the Product Sets module, create a product set named “The Basics”.

Question 15

A developer needs to update the package.json file so that it points to the hock file for a cartridge, using the hooks keyword. Which snippets work correctly when added to the file?:

Select an option, then click Submit answer.

  • { “hooks”: “./cartridge/scripts/hooks.json” }

  • { “hooks”: “./scripts/hooks.json” }

  • { hooks: “./cartridge/scripts/hooks.json” }

  • { hooks: ./scripts/hooks.json }