Best Salesforce Comm-Dev-101 Exam Practice Material Updated on Oct 02, 2026
New Comm-Dev-101 Actual Exam Dumps, Salesforce Practice Test
NEW QUESTION # 84
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. Pipeline profiler
- B. Storefront Toolkit
- C. Reports and Dashboards Module
- D. Code Profiler
Answer: B
NEW QUESTION # 85
A developer has custom debug statements in a script, but the messages are not showing up in the Storefront Toolkit Request Log.
Which step needs to be completed to get the messages to appear in the Request Log?
- A. In Global preferences, check the box for Enable custom logging in Request Log.
- B. In custom Log Settings, activate the loggin category at DEBUG level.
- C. In Site Preferences, check the box for Enable custom Logging in Request Log
- D. In Custom Log Settings, check the DEBUG box for Select Log Levels Written to Files.
Answer: D
NEW QUESTION # 86
A Digital Developer selects "Show Orderable Products Only" in the Search > Search Preferences Business Manager module.
Which business goal does this accomplish?
- A. Exclude products from search results if Available to Sell (ATS) = 0.
- B. Exclude back-ordered products from showing on the website.
- C. Exclude pre-order products from search results.
- D. Block displaying the product detail page if Available to Sell (ATS) = 0.
Answer: A
NEW QUESTION # 87
A client has a requirement to allow users on the Storefornt to filter by a newly created attribute.
Which is necessary to achieve this?
- A. Set the attribute as Searchable.
- B. Change the productseachrefinerbar.iml template
- C. Add a new Search Refinment Definition.
Answer: A
NEW QUESTION # 88
A developer needs to render a Page Designer page in JSON format. What is the correct syntax?
- A. JSON.stringgify(PageMgrrenderpage(pageID), {paramter1:value1}}:
- B. PageMgr.serializePage(pageID), {parameter1:value1}};
- C. PageMgr,renderPage{pageID, {parameter1: value1}}
Answer: B
NEW QUESTION # 89
A NewsletterSubscription custom object exists that has a key attribute named email of type String and the following script code.
However, the NewsletterSubscription custom object is not persisted. What is a possible reason?
- A. The code shown is the wrong syntax. The correct syntax is:

- B. The code shown need to be wrapped in a transaction.
- C. The code shown needs to be wrapped in a try/catch block.
Answer: B
NEW QUESTION # 90
A developer is asked to improve the maintainability of a page by reducing its code repetition.
What are two techniques the developer should implement to achieve this?
Choose 2 answers.
- A. Require and render templates with <isscript> tags
- B. Embed partial files using ISML expressions
- C. Use local template includes
- D. Implement template decorators paired with replace tags
Answer: C,D
NEW QUESTION # 91
A Digital Developer is asked to optimize controller performance by lazy loading scripts as needed instead of loading all scripts at the start of the code execution.
Which statement should the Developer use to lazy load scripts?
- A. importPackage () method
- B. local include
- C. require () method
- D. $.ajax () jQuery method
Answer: C
NEW QUESTION # 92
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?
- A. In the model function that persists the form data
- B. In the middleware chain of the controller post route
- C. In the controller function that displays the form
- D. In the controller function that handles the submitted form
Answer: B
NEW QUESTION # 93
Which code sample is required to use a custom tag provided in SiteGenesis in an ISML template?
- A. Option D
- B. Option C
- C. Option B
- D. Option A
Answer: C
NEW QUESTION # 94
A merchant has a new requirement to accept American Express credit cards on its Storefront. A credit card payment method already exists.
Which step must a developer take in Business Manager to achieve this?
- A. In Payment Processor, create American Express as a payment type.
- B. In Payment Methods, enable American Express as a credit card type.
- C. Add American Express as a Payment Preference in Site Preferences.
- D. Add American Express into the Order settings in Site Preferences.
Answer: B
NEW QUESTION # 95
Universal Containers calls the following combination of products "The Basics" and sells the combination as a unique product ID:
One Model 103 container
Five Model 611 container
Tree Model 201 container
The Developer created these three products in the catalog.
What is the next step in Business Manager to create "The Basics" as a combination?
- A. In the Products module, create a product named "The Basics" and add the products to the Product Bundles tab.
- B. In the Product Bundles module, create a bundle named "The Basics".
- C. In the Products module, create a product named "The Basics" and add the products to the Product Sets tab.
- D. In the Product Sets module, create a product set named "The Basics".
Answer: A
NEW QUESTION # 96
Refer to the screen shot below:
Given a site called RefArch that has the settings shown, what must be done for RefArch to use the same customer list as RefArchGlobal?
- A. Enable "Customer List Sharing" in Global Preferences.
- B. Enable "Customer List Sharing" in Site Preferences.
- C. Import the RefArchGlobal customer list into the RefArch site.
- D. Select RefArchGlobal in the dropdown for Customer List.
Answer: D
NEW QUESTION # 97
Given a sandbox with an active slot configuration with the following specifications:
* Content type set to product
* With some product configured
* With the following rendering template: slots/product/product_1x2 isml
* Correctly enabled and scheduled
And given the code contained in the selected rendering template:
Is an additional action needed for this to work as intended?
- A. Yes - The content needs to be configured with a recommender to display products.
- B. No - The content slot is rendered correctly.
- C. Yes - The isloop should be removed because no loops are allowed in a content slot rendering template.
Answer: C
NEW QUESTION # 98
A developer cannot create a custom object in Business Manager because the attributes do not show. The developer can view the object but not the attributes.
Which action should the developer take to resolve the problem?
- A. Set the attributes to site-specific replicable.
- B. Create an attribute Group with the desired attributes in it.
- C. Change the data type of the attributes.
Answer: B
NEW QUESTION # 99
A developer needs to perform the same additional checks before completing multiple routes in a custom controller, in order to decide whether to render a template or redirect the user to a different page.
According to SFRA best practices, what is the correct approach to improve code reusability in this scenario?
- A. Define a new middleware function and use it in the existing routes.
- B. Replace the existing routes by creating a controller in separate new cartridge.
- C. Use the superModule property in the existing routes to extend their functionality.
- D. Append a new function to all the existing routes with the server module.
Answer: A
NEW QUESTION # 100
A developer plans to use the /search_suggestion (Shop API) in a Storefront application and the following property must be set to do so suggestion.product.image:view_type What consideration should the developer in keep in mind to ensure that image data is returned correctly as part of search suggestions?
- A. If the view_type is not set or if the view_type is unknown, the image size of 'small' is used by default
- B. If the view_type is not set or if the view_type is unknown, the image properties are not part of the response.
- C. If the view_type is not set or if the view_type is unknown, the image size of 'large' is used by default
Answer: B
NEW QUESTION # 101
In Log Center, a developer notes j number of Cross Site Request Forgery (CSRF) log entries.
After adding the token in the 15ML template, which action might solve this problem'
- A. Delete the existing CSRF allow list in Business Manager.
- B. Extend the CSRF token validity to avoid timeouts.
- C. Add csrfProtection middleware steps in the controller
Answer: C
NEW QUESTION # 102
A developer wants to use an external application to manage their stores information (such as opening hours, and so on), and see their changes in their B2C Commerce Staging instance aas son as they are saved.
What is the appropriate technique the developer should perform to allow the merchant to create a new store in this scenario?
- A. A POST request to the Stores Data OCAPI.
- B. A PUT request to the Stores Data OCAPI.
- C. A PATCH request to the Stores Data OCAPI.
- D. An UPDATE request to the Stores Data OCAPI.
Answer: B
NEW QUESTION # 103
The developer is asked to enhance the functionality of an existing controller route by adding information to the response's viewData.
How should the developer approach this task while following SFRA best practices?
- A. Use the "extend" method of the server module for the existing route.
- B. Copy the existing route in a new cartridge and modify where necessary.
- C. Use the "append" method of the server module for the existing route.
- D. Replace the callback function of the existing route using superModule.
Answer: A
NEW QUESTION # 104
A merchant has a content slot on a page that currently displays products based on the top Sellers for the current week.
They wish to change this functionality and, instead, have the slot render a specific content asset so that the content experience is more personalized to the visitors.
Which two actions are necessary to make this change?
Choose 2 answers
- A. Change the default setting in the slot configuration
- B. Change the content type for the slot configuration
- C. Delete the existing content slot and create a new one.
- D. Change the rendering template in the slot configuration
Answer: B,D
NEW QUESTION # 105
Universal Containers specifies a new category hierarchy for navigating the digital commerce storefront. A Digital Developer uses Business Manager to manually create a catalog with the specified category hierarchy, then uses the Products & Catalogs > Import & Export module to export the catalog as a file.
How can other Developers with sandboxes on the same realm create the same catalog in their own sandboxes?
- A. Use the Business Manager Data Replication module to replicate the catalog from the original Developer's sandbox.
- B. Use Business Manager to upload and import a copy of the export file obtained from the original Developer.
- C. Use the remote upload capability of the Site Import & Export module of Business Manager.
- D. Use the import capability of the Site Import & Export module of Business Manager.
Answer: D
NEW QUESTION # 106
A developer is asked to implement a simple call to an authentication - protected REST web service.
Which configuration is valid?
- A. Configure the authentication username using a site preference.
- B. Insert the service's endpoint in a .properties file.
- C. Add the authentication password to the service credentials.
Answer: A
NEW QUESTION # 107
A Digital Developer adds the following line of code to a script.
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 two.)
- A. Ensure that the "login" category is added to the Custom Log Filters in the Log Settings Business Manager module.
- B. Ensure that the debug log level has been added to the custom log level types in the Global Preferences business manager module.
- C. Ensure that the debug log level is enabled to write to file in the Custom Log Settings Business Manager module.
- D. Archive old log files to make room in the log directory.
Answer: B,D
NEW QUESTION # 108
......
Study HIGH Quality Comm-Dev-101 Free Study Guides and Exams Tutorials: https://examsforall.lead2passexam.com/Salesforce/valid-Comm-Dev-101-exam-dumps.html