SFCC Onboarding Exam
SFCC Onboarding Exam
Welcome to the SFCC Onboarding Exam! This quiz is designed to test your knowledge of Salesforce Commerce Cloud (SFCC) and help you understand the key concepts required for successful development and implementation.
Participate in this quiz to:
- Assess your current understanding of SFCC.
- Prepare for real-world applications and challenges.
- Enhance your skills in a structured format.
Given the following ISML example, how should a developer reference the product object in the current iteration of the loop:
<isloop items=”${pdict.basket.products}” var=”product” status=”loopStatus”>
...
</isloop>
Below is a form definition snippet from the newsletter.xml file
<?xml version=”1.0”?>
<form xmlns=”http://www.demandware.com/xml/forms/2008-04-19”>
<field formid=”email” label=”Email” type=”string” mandatory=”true” max-length=”50” />
</form>
Give the following snippet:
server.append(‘Show’, fun
According to SFRA, which two options shows a correct way to complete the code above in order to provide data to the rendering controller? Choose 2 answers
To ensure SFRA best practices and protect against request forgery, the developer introduced CSRF token generation in to the address form.
<form … action=”submit”>
<input name=”${dw.web.csrfprotection.gettokenname()}”
value=”${dw.web.csrfprotection.generatetoken()}”
>
...The rest of the fields
</form>
To implement CSRF protection when the form is submitted, the developer needs to introduce the CSRF validation check with these methods as applicable:
◝ validateRequest
◝ validateAjaxRequest
Where in the code does the developer need to add this CSRF validation check?
A client that sells to multiple countries in Europe needs to disable Apple Pay for Denmark.
Which Business Manager module is used to achieve this requirement?
1.server.get(‘Show’, consentTracking.constent, cache.applyDefaultCache,fun
2. var Site = require(‘dw/system/Site’);
3. Var pageMetaHelper = require(‘*/cartridge/scripts/helpers/pageMetaHelper’);
4. pageMetaHelper.setPageMetaTags(req.pageMetaData, Site.current);
5. res.render(‘/home/homePage’);
6. //Missing code
7.}, 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?
Given a NewsletterSubscription custom object that has a key attribute named email of type String, what is the correct syntax for the NewsletterSubscription custom object.
A storefront is designed so that multiple pages share a common header and footer layout.
Which ISML tag should a developer use on the templates for these pages to avoid code repetition in the most effective way?
Which three object types can a developer import using the Merchant Tools > Content > Import / Export module in Business Manager? Choose 3 answers
Given a file in a plug-in cartridge with the following code:
‘use strict’;
var base = module.superModule;
fun
res.cachePeriod = 6;
res.cachePeriodUnit = ‘hours’;
next();
}
module.exports = base;
module.exports.applyCustomCache = applyCustomCache;
What does this code extend?