SFCC Questions examples
SFCC Developer Knowledge Quiz
Test your knowledge of Salesforce Commerce Cloud with this comprehensive quiz designed for developers. Challenge yourself with technical questions that cover essential aspects of SFCC, from coding techniques to best practices in Business Manager.
Key Features:
- Multiple choice questions
- In-depth coverage of SFCC topics
- Immediate feedback on your answers
In the following Controller snippet, there is a line missing which one is it?
server.get('Show', consentTracking.consent, cache.applyDefaultCache, function (req, res, next) {
var Site = require('dw/system/Site');
res.render('/home/homePage');
// Missing Line
}, pageMetaData.computedPageMetaData);
Next();
Res.next();
Req.next();
Return next();
A Digital Developer has been given a specification to integrate with a REST API for retrieving weather conditions. The service expects parameters to be form encoded.
Which service type should the Developer register?
HTTP Form
WebDAV
SOAP
FTP
Assume the code below is executing:
var log = Logger.getLogger(“xyz”,”export”);
log.info(“Thi is some logging text”);
Business Manager has the configuration:
- Active Log category is "root" with log level of "info."
Given this information, what is the beginning of the filename in which the log will be written?
Custom-xyz
Xyz
Custom-export
Custominfo-blade
You need to send to the log information about the name and the id of a customer which code do you insert
Logger.getLogger('profile').debug('Name: pdict.name').debug('ID:', pdict.id');
Logger.getLogger('profile').debug('Name:{0} ID:{1}', pdict.name, pdict.id);
Logger.getLogger('profile').debug('Name:${pdict.name} ID:{pdict.id}');
Logger.getLogger('profile').debug('Name:' + ${pdict.name} + 'ID:' + {pdict.id});
How to call a hook from within the package.json of a cartridge
"hooks": "./cartridge/scripts/hooks.json"
Hooks: "./cartridge/scripts/hooks.json"
Hooks: "./cartridge/scripts/hooks.json"
"hooks": "./cartridge/hooks.json"
How to access the elements of a loop like this:
<isloop items="${pdict.order.shipping}" var="shippingModel" status="shipmentLoopState">
Pdict.order
ShippingModel
ShipmentLoopState
Order
Which three object types can a developer import using the
Merchant Tools > Content > Import & Export module
in BusinessManager? Choose 3 answersFolders
Images and other static assets
Products
Content slots
Content assets
What happens if the log file size limit is reached in custom logging?
Logging is suspended for two hours.
The log file rolls over and the last used log is overwritten.
The log file is deleted and recreated from scratch.
Logging is suspended for the day.
Business X needs to have Apple Pay disabled for the country of Spain. Which Business Manager module should the Developer use to meet this requirement?
Merchant Tools > Ordering > Payment Processors
Merchant Tools > Ordering > Payment Methods
Merchant Tools > Site Preferences > Payment Types
Merchant Tools > Site Preferences > Apple Pay
Business X wants to sell a combination of products "The Basics" as a unique product ID: What is the next step in Business Manager to create "The Basics" as a combination?
In the Product Bundles module, create a bundle named "The Basics."
In the Productsmodule, create a product named "The Basics" and add the products to the Product Bundles tab.
In the Product Sets module, create a productset named "The Basics."
In the Productsmodule, create a product named "The Basics" and add the products to the Product Sets tab.
A Digital Developer adds the following line of code to a script:
dw.system.Logger.getLogger{'login').debug{"Login API has succeeded");
The code executes without error; however, the log file on disk does NOT contain the log message. Which two actions should be completed to write the log message to disk? Choose 2 answers
Ensure that the debug log level has been added to the custom log level types in the Global Preferences business managermodule.
Ensurethatthe"login"categoryisaddedtotheCustomLogFiltersintheLogSettingsBusiness Manager module.
Archive old log files to make room in the log directory.
Ensure that the debug log level is enabled to write to file in the Custom Log Settings Business Manager module.
Universal Containers is preparing their storefront to use Open Commerce APIs (OCAPI). To which hook should the Digital Developer move taxation logic to ensure consistent order totals within B2C Commerce?
Dw.ocapi.shop.basket.afterPostShipment
Dw.ocapi.shop.order.afterPOST
Dw.ocapi.shop.order.validateOrder
Dw.ocapi.shop.basket.calculate
Digital Developer is implementing an Open Commerce API call to add products to a basket. Given the following resource configuration:
{
"resource_id": "/baskets/**",
"methods": ["get"],
"read_attributes": "(**)",
"write_attributes": "(**)"
}
Which modification allows the requests to successfully execute?
Change the "read_attributes" value to: " (items) ".
Change the "resource_id" value to: "/baskets/*/items".
Change the "methods" value to: ["get", "post"].
Change the "write_attributes" value to: " (+items) ".
Is the SFRA modules directory a cartridge?
True
False
The cartridge path controls the behaviour of your site?
True
False
Cartridges can only be uploaded using UX Studio?
True
False
Which of the following statements is not correct?
Controllers are the main entry point into the storefront application
Controllers gather the data from the model, and pass the data to the ISML template
A controller can invoke another controller
Controllers are commonJS modules
If you extend a controller route, can you prepend as well as append to the same route?
True
False
The Home-Show route uses this middleware chain:
server.get('Show', consentTracking.consent, cache.applyDefaultCache, function (req, res, next) {...});
and another cartridge extends this route without a middlware chain:
server.append('Show', function (req, res, next) {...});
assuming the code is correct on both functions, does this work?
True
False
To compile client-side JavaScript, what file/folder don’t you need?
Package.json
Webpack.config.js
Node_modules folder
Dw.json
Where do you specify a base path for the client-side code?
Dw.json
Use a require(‘app_storefront_base’) on the client-side code
Package.json
Webpack.config.js
Can you extend the client-side JavaScript functions from the base?
True
False
{"name":"SFCC Questions examples", "url":"https://www.quiz-maker.com/QPREVIEW","txt":"Test your knowledge of Salesforce Commerce Cloud with this comprehensive quiz designed for developers. Challenge yourself with technical questions that cover essential aspects of SFCC, from coding techniques to best practices in Business Manager.Key Features:Multiple choice questionsIn-depth coverage of SFCC topicsImmediate feedback on your answers","img":"https:/images/course1.png"}