SFCC Onboarding Exam

Create an engaging and modern digital workspace image featuring diverse developers collaboratively working on Salesforce Commerce Cloud (SFCC) projects, with coding and design elements in the background.

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.
15 Questions4 MinutesCreated by CodingEagle47
Name:

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> 

Product
LoopStatus.product
Pdict.product
Pdict.Basket.products[loopstatus]

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> 

Server.form.getForm(‘dwfrm_newsletter’)
Server.forms.getForm(‘dwfrm_newsletter’)
Server.form.getForm(‘newsletter’)
Server.forms.getForm(‘newsletter’)
You are tasked to update to account landing page on our commerce site, you create the update account.isml page inside the cartridge app_account, what should you do next so the changes in account.isml appear on the storefront?
Set the cartridge path to include only app_account
Set the cartridge path so that app_storefront is before app_account
Set the cartridge path so that app_account is before app_storefront
Set the cartridge path so that app_account is after app_storefront
Which of the following are native system objects types of SFCC? (Select all that apply)
ProductLineItem
Price
Inventory
Profile
You are tasked to upload content asset data via business manager, which menu should you use?
Merchant Tools -> Custom Objects
Merchant Tools -> Content
Merchant Tools -> Assets
Merchant Tools -> Library
When you want extend an sfra GET controller and run it before the base what server method should you use?
Server.replace
Server.get
Server.prepend
Server.append

Give 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 rendering controller? Choose 2 answers 

Res.render(‘/content/myPage’); next(); }).append({ data: myDataObject })
Res.render(‘/content/myPage’, { data: myDataObject }); next(); })
Res.viewData = { data: myDataObject } res.render(‘/content/myPage’); next(); });
Res.setViewData({ data: myDataObject }); res.render(‘/content/myPage’); next(); });

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? 

In the middleware chain of the controller post route
In the controller function that displays the form
In the model function that persists the form data
IN the controller function that handles the submitted form

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? 

Payment Processors
Payment Methods
Locale Payments
Apple Pay

1.server.get(‘Show’, consentTracking.constent, cache.applyDefaultCache,function(req,res,next){ 

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? 

Req.next();
Next();
Res.next();
Return res;

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. 

Var CustomObject = dw.object.CustomObjectMgr.createCustomObject(‘NewsletterSubscription’, ‘email’, newsletterForm.email.value);
Var CustomObject = dw.object.CustomObjectMgr.createNewsletterSubscription(‘email’, newsletterForm, newsletterForm.email.value);
Var CustomObject = dw.object.CustomObjectMgr.createCustomObject(‘NewsletterSubscription’, newsletterForm.email.value);
Ver CustomObject = dw.object.CustomObjectMgr.createCustomObject(newsletterForm.email.value, ‘NewsletterSubscription’);

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 

Images and other static assets
Folders
Products
Content assets
Content slots

Given a file in a plug-in cartridge with the following code: 

‘use strict’; 

var base = module.superModule; 

function applyCustomCache(req, res, next) { 

res.cachePeriod = 6; 

res.cachePeriodUnit = ‘hours’; 

next(); 

} 

module.exports = base; 

module.exports.applyCustomCache = applyCustomCache; 

What does this code extend? 

A controller
A model
A middleware script
A decorator
{"name":"SFCC Onboarding Exam", "url":"https://www.quiz-maker.com/QPREVIEW","txt":"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.","img":"https:/images/course5.png"}
Powered by: Quiz Maker