Salesforce Certified B2C Commerce Cloud Developer (Comm-Dev-101) B2C-Commerce-Developer Question # 27 Topic 3 Discussion

Salesforce Certified B2C Commerce Cloud Developer (Comm-Dev-101) B2C-Commerce-Developer Question # 27 Topic 3 Discussion

B2C-Commerce-Developer Exam Topic 3 Question 27 Discussion:
Question #: 27
Topic #: 3

Given a file in a plug-in cartridge with the following code:

‘use strict’:

Var base = module.superModule;

Function applyCustomCache (req,res,next){

res.CachePeriod = 6; //eslint-disable-line no-param-reassign

res.cachePeriodUnit = ‘hours’) //eslint-disable-line no-param-reassign

next();

}

Module.exports = base;

Module.exports.applyCustomCache = applyCustomCache;

What does this code extend?


A.

A controller


B.

A middleware script


C.

A decorator


D.

A model


Get Premium B2C-Commerce-Developer Questions

Contribute your Thoughts:


Chosen Answer:
This is a voting comment (?). It is better to Upvote an existing comment if you don't have anything to add.