B2C-Commerce-Developer Pre-Exam Practice Tests | (Updated 115 Questions)
Valid B2C-Commerce-Developer Exam Q&A PDF - One Year Free Update
NEW QUESTION 56
Universal Containers wants to give customers the ability to refine product search results by a product custom attribute, weightCapacity.
Which series of steps should a Digital Developer take to show this refinement on the storefront?
- A. Define a search refinement for weightCapacity, then clear the page cache segment for Search-Show.
- B. Define a sorting rule for weightCapacity, then rebuild the product search index.
- C. Define search-suggestion buckets for weightCapacity, then rebuild the product search index.
- D. Define a search refinement for weightCapacity, then rebuild the product search index.
Answer: D
Explanation:
Explanation/Reference: https://documentation.b2c.commercecloud.salesforce.com/DOC1/index.jsp?topic=%
2Fcom.demandware.dochelp%2FSearchandNavigation%
2FConfiguringCataloglevelSearchRefinementDefinitions.html
NEW QUESTION 57
Why Should a Digital Developer use ProductSearchModel.getProducts() instead Of Category.getOnlineProduccs () to access products?
- A. It uses the search index.
- B. It is more readable code.
- C. It has fewer lines of code.
- D. It reduces accesses to the application server.
Answer: A
NEW QUESTION 58
A developer is given a task to implement a new Page Designer layout component that doesn't accept certain asset components.
How should the developer achieve the above task?
- A. Add layout_type_exclusion in the other asset components json configuration
- B. Add component_type_inclusion in the layout json configuration
- C. Add component_type_exclusions in the layout json configuration
- D. Add layout_type_inclusion in the target components json configurations
Answer: B
Explanation:
Explanation/Reference:
NEW QUESTION 59
A Digital Developer has created a new PaymentForm controller that requires communication with the server and must be made using the HTTPS protocol.
Which code sample should the Developer use to make sure that HTTPS is used?
- A. exports.PaymentForm = guard.ensure(['http\ 'post', 'loggedln'], handlePaymentForm);
- B. exports.PaymentForm = guard.expose(['post', 'loggedln'], handlePaymentForm);
- C. exports.PaymentForm = guard.ensure(['https', 'post', 'loggedln'], handlePaymentForm);
- D. exports.PaymentForm = guard.httpsPost(handlePaymentForm);
Answer: C
NEW QUESTION 60
Given the file structure below, which ISML method call renders the customLandingPage template?
- A. ISML('content/custom/customLandingPage');
- B. ISML.render('content/custom/customLandingPage');
- C. ISML.renderTemplate('content/custom/customLandingPage');
- D. ISML.renderTamplate('cartridge/templates/default/content/custom/customLandingPage');
Answer: C
NEW QUESTION 61
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. Reports and Dashboards module
- B. Code Profiler
- C. Pipeline Profiler
- D. Storefront Toolkit
Answer: B
NEW QUESTION 62
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
- 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 is enabled to write to file in the Custom Log Settings Business Manager module.
- C. Ensure that the debug log level has been added to the custom log level types in the Global Preferences business manager module.
- D. Archive old log files to make room in the log directory.
Answer: A,B
NEW QUESTION 63
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. Extend the CSRF token validity to avoid timeouts
- B. Add the token in the ISML template
- C. Delete the existing CSRF whitelists in Business Manager
- D. Add csrfProtection.generateToken as a middleware step in the controller
Answer: A,C
NEW QUESTION 64
A merchant wants customers to be able to order gift vouchers via their site. Since they can issue an unlimited number of these digital vouchers, this item should be available to sell at all items.
How can a developer use Business Manager to ensure that the gift vouchers are always available?
- A. Set StockLevel = maxAllocation for the producto.
- B. Manually set the inventory to a high number.
- C. Check the perpetual flag in the product inventory record
- D. Check the Available to Sell (ATS) flag dor the producto set
Answer: C
NEW QUESTION 65
A developer has custom debug statements in a script, but the messages are not showing up in the Storefront Toolkit Request Lo.
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 logging category at DEBUG level
- C. In Custom Log Settings, check the DEBUG box for Select Log Levels Written to Files
- D. In Site Preferences, check the box for Enable custom logging in Request Log
Answer: C
Explanation:
Explanation/Reference: https://documentation.b2c.commercecloud.salesforce.com/DOC3/index.jsp?topic=%
2Fcom.demandware.dochelp%2Fcontent%2Fb2c_commerce%2Ftopics%2Fstorefront_toolkit%
2Fb2c_using_the_request_log.html
NEW QUESTION 66
A Digital Developer is requesting product information for an external integration. The following Open Commerce API (OCAPI) request is NOT functioning correctly:
How should the Developer change the request?
- A. Change the HTTP method to GET.
- B. Change the URI to /dw/shop/v18_3/products/creative-zen-v.
- C. Change the HTTP method to PUT.
- D. Include an authentication token in the request.
Answer: A
Explanation:
Explanation
NEW QUESTION 67
Given a customer environment configured with only the en_CA locale and the following new requirements:
* To add a new locale for fr_CA
* To localize the address form with the new locale
* To make the localization usable even for new possible French locales, such as fr_FR And given the portion of form XML definition contained in the form file cartridge/forms/default/ address.xml:
What is the right place to add the fr_CA translation for the country field label?
- A. /cartridge/templates/resources/address_fr_CA.properties
- B. /cartridge/forms/resources/address_fr.properties
- C. /cartridge/templates/resources/forms_fr.properties
- D. /cartridge/templates/resources/fr/forms.properties
Answer: A
Explanation:
Explanation/Reference:
NEW QUESTION 68
A client wants to differentiate their monobrand stores with a special icon when shown in the store locator. The information is saved in a true/false custom attribute for each Store object in Merchant tools.
How should the developer follow SFRA best practices to expose this data for rendering?
- A. Use the module.superModule functionality and the call method to add a new property to the Store Model.
- B. Pass the Store system object to the template, so that custom propierties are available
- C. Ad dan <isscript> to the template, and call StoreMgr.searchStoresByCoordinates();
- D. Extend the existing Stores_Find controller with a new middleware function that performs the query
Answer: A
NEW QUESTION 69
Given the file structure below, which ISML method call renders the customLandingPage template?
- A. ISML('content/custom/customLandingPage');
- B. ISML.render('content/custom/customLandingPage');
- C. ISML.renderTemplate('content/custom/customLandingPage');
- D. ISML.renderTamplate('cartridge/templates/default/content/custom/customLandingPage');
Answer: C
NEW QUESTION 70
A Digital Developer wants to selectively retrieve products and process them from an (Phone. Which action should the Developer take, given that JavaScript controllers CANNOT be used?
- A. Create a webservice to retrieve products.
- B. Use import/export in Business Manager.
- C. Use WebDAV Client to retrieve products.
- D. Use OCAPI and invoke it in native language.
Answer: A
NEW QUESTION 71
Given the file structure below, which ISML method call renders the customLandingPage template?
- A. ISML('content/custom/customLandingPage');
- B. ISML.render('content/custom/customLandingPage');
- C. ISML.renderTemplate('content/custom/customLandingPage');
- D. ISML.renderTamplate('cartridge/templates/default/content/custom/customLandingPage');
Answer: C
Explanation:
Explanation/Reference: https://documentation.b2c.commercecloud.salesforce.com/DOC4/index.jsp?topic=%
2Fcom.demandware.dochelp%2FDWAPI%2Fscriptapi%2Fhtml%2Fapi%2Fclass_dw_template_ISML.html
NEW QUESTION 72
A Digital Developer has a new requirement to disable the "Discover" credit card type for all checkouts. What does the Developer need to change in Business Manager to fulfill this requirement?
- A. Checkout exclusion rules in the Merchant Tools > Site Preferences > Checkout Preferences module.
- B. Credit card exclusion rules in the CreditCardType.json configuration file.
- C. Credit card exclusion rules in the Merchant Tools > Site Preferences > Payment Preferences module.
- D. Credit cards in the Merchant Tools > Ordering > Payment Methods module.
Answer: D
NEW QUESTION 73
A Digital Developer needs to add logging to the following code:
Which statement logs the HTTP status code to a debug-level custom log file?
- A. Logger.getLogger('profile').debug("Error retrieving profile email, Status Code: {0} was returned.",
http.statusCode); - B. logger.getLogger('profile').debug("Error retrieving profile email, Status Code: ", http.statusCode);
- C. logger.debug("Error retrieving profile email, Status Code: {0} was returned.", http.statusCode);
- D. Logger.getLogger().debug("Error retrieving profile email, Status Code: {0} was returned.",
http.statusCode);
Answer: C
NEW QUESTION 74
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. Sort the attributes in the custom object type
- B. Change the data type of the attributes
- C. Set the attributes to site-specific replicable
- D. Create an Attribute Group with the desired attributes in it
Answer: B
Explanation:
Explanation/Reference:
NEW QUESTION 75
A Digital Developer is adding support for an additional language other than the default. The locale code for the new language is de.
In which folder should the developer place resource bundles?
- A. templates/resources
- B. templates/de
- C. templates/default/resources
- D. templates/default
Answer: A
NEW QUESTION 76
......
Salesforce Certified B2C Commerce Developer Free Update Certification Sample Questions: https://www.lead1pass.com/Salesforce/B2C-Commerce-Developer-practice-exam-dumps.html
Trend for Salesforce B2C-Commerce-Developer pdf dumps before actual exam: https://drive.google.com/open?id=1EvA919r6tfUJd6uEMlq-55fT-CuzF5Jr