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
A.
res.viewData = {
data: myDataObject
};
res.render(‘/content/myPage’);
next();
});
B.
res.setViewData ({
data: myDataObject
});
res.render(‘/content/myPage’);
next();
});
C.
res.render(‘/content/myPage’,{
data: myDataObject
});
next();
});
D.
res.render(‘/content/myPage’);
next();
}).append{(
Data:myDataObject
});
res.render(‘/content/myPage’,{
data: myDataObject
});
next();
});
In order to build the SFRA code to a developer sandbox for the first time, which build steps should the
developer perform for the site to appear and function as designed?
A.
npm run compile:js, npm run compile:html, npm run clean
B.
npm run compile:scss, npm run compile:html, npm run clean
C.
npm run compile:js, npm run compile: scss, npm run compile:html
D.
npm run compile:js, npm run compile:scss, npm run compile:fonts
npm run compile:js, npm run compile:scss, npm run compile:fonts
A developer has a specification to integrate with a REST API for retrieving traffic conditions. The service
expects parameters to be form encoded.
Which service type should the developer register?
A.
HTML Form
B.
SOAP Form
C.
POST Form
D.
HTTP Form
HTML Form
A merchant requires that an existing section of the Site become editable from the Business Manager, so
that they can modify it independently of the developer.
Which of these is an important factor for a developer to consider when choosing the appropriate solution
between a content slot and a Page Designer component?
A.
Only Page Designer Components can be localized for different languages.
B.
Only content slot configurations can be tied to campaigns.
C.
Only page Designer components can ve tied to campaigns.
D.
Only content slot configurations can ve localized for different languages
Only Page Designer Components can be localized for different languages.
A developer is asked to write a log containing the ID and name of the product with a variable named
myProduct. Which snippet of code should be used?
A.
Logger.warn(‘The current producto is {0} with name {1}’, myProduct.getID(), myProduct.getName());
B.
Logger.warn(‘The current producto is {0} with name {1}’), context(myProduct.getID(),
myProduct.getName());
C.
Logger.warn(‘The current producto is ${myProduct.getID()} with name ${myProduct.getName()}’);
D.
Logger.warn(‘The current producto is %s with name %s’), context(myProduct.getID(),
myProduct.getName());
Logger.warn(‘The current producto is {0} with name {1}’, myProduct.getID(), myProduct.getName());
Page 13 out of 41 Pages |
Previous |