Salesforce Certified B2C Commerce Developer Practice Test - Questions Answers, Page 7
List of questions
Question 61
![Export Export](https://examgecko.com/assets/images/icon-download-24.png)
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.)
Question 62
![Export Export](https://examgecko.com/assets/images/icon-download-24.png)
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?
Explanation:
Reference: https://documentation.b2c.commercecloud.salesforce.com/DOC1/index.jsp?topic=%2Fcom.demandware.dochelp%2Fcontent%2Fb2c_commerce%2Ftopics%2Fsfra%2Fb2c_sfra_hooks.html
Question 63
![Export Export](https://examgecko.com/assets/images/icon-download-24.png)
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?
Question 64
![Export Export](https://examgecko.com/assets/images/icon-download-24.png)
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?
Question 65
![Export Export](https://examgecko.com/assets/images/icon-download-24.png)
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?
Question 66
![Export Export](https://examgecko.com/assets/images/icon-download-24.png)
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?
Question 67
![Export Export](https://examgecko.com/assets/images/icon-download-24.png)
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?
Question 68
![Export Export](https://examgecko.com/assets/images/icon-download-24.png)
Given the requirement to add caching to an existing page while adhering to SFRA best practices, which code snippet should be used?
Explanation:
Reference: https://documentation.b2c.commercecloud.salesforce.com/DOC1/index.jsp?topic=%2Fcom.demandware.dochelp%2Fsfrajsdoc%2Fjs%2Fserver%2Fapp_storefront_base_cartridge_controllers_Page.js.html
Question 69
![Export Export](https://examgecko.com/assets/images/icon-download-24.png)
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?
Question 70
![Export Export](https://examgecko.com/assets/images/icon-download-24.png)
Which three configurations does a developer need to ensure to have a new product visible in the Storefront? (Choose three.)
Explanation:
Reference: https://documentation.b2c.commercecloud.salesforce.com/DOC3/index.jsp?topic=%2Fcom.demandware.dochelp%2Fcontent%2Fb2c_commerce%2Ftopics%2Fproducts%2Fb2c_products.html
Question