Question 6

A client has custom object definition and requirement that occasional data changes in staging also need to exist in production, Which task should the developer perform to meet these requirements when setting up the custom object?
  • Question 7

    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?
  • Question 8

    Given a NewsletterSubscription custom object that has a key attribute named email of type String, what is the correct syntax to create the NewsletterSubscription custom object and persist it to the database?
  • Question 9

    Given the following snippet:
    * Server.append( 'Show' , function (req, res, next) )
    According to SFRA, which two options shows a correct way to complete the code above in order to provide data to the response using a controller?
    Choose 2 answers
  • Question 10

    The Home-Show route uses this middleware chain:

    The developer added Home.;s 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:

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