Exam style questions across every Comm-Dev-101 domain
Last Update 2 days ago
Total Questions : 154
Start with our free Comm-Dev-101 practice questions, carefully crafted to mirror the domains, phrasing, and difficulty of the real Developers exam. Each Comm-Dev-101 exam question comes with a detailed rationale that explains not just which answer is correct but why the others fall short. That's how concepts stick. Use the free set to benchmark yourself: identify your Salesforce weak domains, see where you're losing marks, and build a focused study plan in minutes.
What is the result when the code segment executes with the logger configuration?
A client that sells sport shoes wants to allow its customers to filter products based on the intended activity (such as tennis, jogging, basketball, etc.), but this particular information is not present in the current catalog.
Which two actions does a developer need to perform in a B2C Commerce instance to allow this to happen?
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?
Given the sandbox with:
• Service configured and assigned to its profile and credential
• A code version that uses that service
And given the requirement to limit the number of success or error calls the code can perform to a restricted number of calls per second. Which configuration should the developer perform?
A developer needs to implement a new feature that requires the use of a custom attribute. What is the first step the developer should take?
What should a developer do to ensure that the gift vouchers are always available?
In the SFRA Page controller, the following route exists:
server.get( ' Include ' ,server.middleware.include,cache.applyDefaultCache,
function(req,res,next) {
...assume original code here...
next();
}
);
The result of navigating to the address below is an error page.
https://yourinstance/on/demandware.store/Sites-RefArch-Site/en_US/Page-Include?cid=about-us
What is the correct way to use this controller route in an ISML template?
Given the following ISML example, how should a developer reference the product object in the current iteration of the basket?
< isloop items= " ${pdict.Basket.products} " var= " product " status= " loopstatus " >
...
< /isloop >
Given the requirements:
• To show the washing instructions for a clothing product on a dedicated section of the detail page
• Washing instructions come from the product information manager (PIM)
• To have this attribute available to localize in the Storefront
Which action meets these requirements?
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?
