Salesforce Certified B2C Commerce Developer Practice Test - Questions Answers, Page 7
List of questions
Related questions
In Log Center, a developer notes a number of Cross Site Request Forgery (CSRF) log entries. The developer knows that this happens when a CSRF token is either not found or is invalid, and is working to remedy the situation as soon as possible.
Which two courses of action might solve the problem? (Choose two.)
A developer needs to update the package.json file so that it points to the hook file for a cartridge, using the hooks keyword.
Which snippets works correctly when added to the file?
A developer is asked to write a log containing the ID and name of the product with a variable named myProduct.
Which snippet of code should be used?
A NewsletterSubscription custom object exists that has a key attribute named email of type String and the following script code.
var CustomObject = dw.object.CustomObjectMgr.createCustomObject('NewsletterSubscription' newsletterForm.email.value);
However, the NewsletterSubscription custom object is not persisted. What is a possible reason?
A retailer notices that the Account Addresses page is showing the wrong shopper's address.
Which tool should the developer start with to identify the issue?
A developer is implementing new Page Designer content on a merchant's Storefront and adds the line below to the setupContentSearch function in the searchHelpers.js file.
apiContentSearchModel.setFilteredByFolder(false);
What does this achieve?
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?
Given the requirement to add caching to an existing page while adhering to SFRA best practices, which code snippet should be used?
Given the SFRA Controller below:
Why would a JavaScript debugger, that is stopped at line 06, fail to show the viewData variable in the inspection tool?
Which three configurations does a developer need to ensure to have a new product visible in the Storefront? (Choose three.)
Question