Question: 1
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: 2
To ensure SFRA best practices and protect against request forgery, the developer introduced CSRF token
generation in the customer address form:
<form ... action = ''submit''>
<input name =''${dw.web.CSRFProtection.getTokenName()}''
value = ''${dw.web.CSRFProtection.generateToken()''>
...
<the rest of the Form fields>
...
</form>
To implement CSRF protection when the form is submitted, the developer needs to introduce the CSRF
validation using one or both of these methods as applicable:
* validateRequest
* validateAjaxRequest
Where in the code does the developer need to add this CSRF validation check?
Question: 3
When looking at Custom Object instances for a site, a merchant notices that the creation date is not showing up on the instances in Business Manager.
Where should the developer add this attribute to the Custom Object so it is visible for the merchant to see in Business Manager'
Question: 4
Business Manager has the configuration:
* Active Log category is 'root'
* Log level of WARN
The code below is executing:
var log = Logger.getLogger('products');
Using this information, which two logs will be written?
Choose 2 answers
Question: 5
A merchant uploads an image using the Content Image Upload module of Business Manager.
Which three modules can the merchant or developer use to display the image on the Storefront7
Choose 3 answers