Pre-Winter Sale Special Limited Time 70% Discount Offer - Ends in 0d 00h 00m 00s - Coupon code: force70

Salesforce Certified B2C Commerce Developer Comm-Dev-101 Question # 9 Topic 1 Discussion

Salesforce Certified B2C Commerce Developer Comm-Dev-101 Question # 9 Topic 1 Discussion

Comm-Dev-101 Exam Topic 1 Question 9 Discussion:
Question #: 9
Topic #: 1

The Home-Show route uses this middleware chain:

server.get( ' Show ' ,consentTracking.consent,cache.applyDefaultCache,

function(req,res,next) {

// base code here

}

);

The developer added Home.js in another cartridge, which is before the original cartridge in the cartridge path, to extend that route but it does not have the middleware chain:

server.append( ' Show ' ,function(req,res,next) {

// custom code here

});

Assuming the code is correct on both functions, what is the expected result?


A.

The base code executes and then the custom code executes.


B.

A RunTime error is thrown, " Error: Params do not match route " .


C.

The custom code executes and then the base code executes.


Get Premium Comm-Dev-101 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.