Question: 1
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: 2
Consider the following information:
* A merchant has this three-tier category structure setup in the Storefront catalog:
New Arrivals > Women > Clothing
* The category named Clothing has all the clothing items for Women and is merchandised.
* A Search Refinement named Newness is correctly configured for the Clothing category.
When a merchandiser views the Clothing category, the Search Refinement appears and Works as
expected. However, the merchandiser does not see the Search Refinement when searching for Clothing via
the Storefront search.
What is the Reason?
Question: 3
Below is a form definition snippet from the newsletter.xml file:
<?xml versin=''1.0''?>
<form xmlns=http://www.demandware.com/xml/form/2008-04-15>
<field formid=''email'' lavel=''Email'' type=''String'' mandatory=''True'' max-length=''50'' />
</form>
Which line of code creates a JSON object to contain the form data?
Question: 4
A developer has a sandbox configured with a service and its profile and credential.. Now there is a
requirement to allow changes to the service URL manually from the sandbox.
Which B2C feature should the developer use to achieve the request?
Question: 5
Given the following conditions:
* Site export file with a copy of the Storefront data for a custom site
* Sandbox with the custom site code, but no Storefront data
* Requirement for a working copy of SFRA for development reference
A developer is assigned the following Business manager tasks:
*