Steps Necessary To Pass The B2C-Commerce-Developer Exam from Training Expert TestKingFree
Valid Way To Pass Salesforce Developers's B2C-Commerce-Developer Exam
NEW QUESTION 16
Which code sample is required to use a custom tag provided in SiteGenesis in an ISML template?
- A. <isinclude template="util/modules">
- B. <isinclude template="util/customtags">
- C. <isinclude url="${URLUtils.url("CustomTag-Start")}>
- D. <isscript>
dw.util.CustomTagMgr.createCustomTag("mytag"); <isscript>
Answer: A
NEW QUESTION 17
Which code sample is required to use a custom tag provided in SiteGenesis in an ISML template?
- A. Option C
- B. Option A
- C. Option B
- D. Option D
Answer: C
NEW QUESTION 18
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.debug("Error retrieving profile email, Status Code: {0} was returned.", http.statusCode);
- B. Logger.getLogger('profile').debug("Error retrieving profile email, Status Code: {0} was returned.",
http.statusCode); - C. Logger.getLogger().debug("Error retrieving profile email, Status Code: {0} was returned.",
http.statusCode); - D. logger.getLogger('profile').debug("Error retrieving profile email, Status Code: ", http.statusCode);
Answer: A
NEW QUESTION 19
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 PATCH request to the Stores Data OCAPI.
- B. An UPDATE request to the Stores Data OCAPI.
- C. A POST request to the Stores Data OCAPI.
- D. A PUT request to the Stores Data OCAPI.
- E. Siempre que sea un objeto standard sera put en vez de post
Answer: D
NEW QUESTION 20
Assume the code below is executing:
BusinessManager has the configuration:
* Active Log category is "root" with log level of "info."
Given this information, what is the beginning of the filename in which the log will be written?
- A. custom-export
- B. custominfo-blade
- C. custom-xyz
- D. xyz
Answer: C
NEW QUESTION 21
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 Custom Log Settings, check the DEBUG box for Select Log Levels Written to Files
- B. In Global Preferences, check the box for Enable custom logging in Request Log
- C. In Site Preferences, check the box for Enable custom logging in Request Log
- D. In Custom Log Settings, activate the logging category at DEBUG level
Answer: A
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 22
Given the requirements:
* To integrate with an external web service using HTTP requests.
* To create a service for this purpose with the Service framework using the LocalServiceRegistry class.
* To test the service before the external service provider makes the API available.
Which solution allows the developer to satisfy the requirements?
- A. Create two services, one mock and the real one, and a Sitepreference that enable the mock or the real one.
- B. Create a service and implement the mockFull callback and a sitepreference to enable or disable the mock response.
- C. Create a service and implement the mockFull callback and set the service mode to mock.
- D. Create a service and a Sitepreference that induce the service to respond with a mock response using a conditional.
Answer: B
NEW QUESTION 23
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(['https', 'post', 'loggedIn'], handlePaymentForm);
- B. exports.PaymentForm = guard.expose(['post', 'loggedIn'], handlePaymentForm);
- C. exports.PaymentForm = guard.ensure(['http', 'post', 'loggedIn'], handlePaymentForm);
- D. exports.PaymentForm = guard.httpsPost(handlePaymentForm);
Answer: A
NEW QUESTION 24
When inspecting the weekly service status report for a critical internally hosted web service used in the application, a developer notices that there are too many instances of unavailability.
Which two solutions can reduce the unavailability of the service?
Choose 2 answers.
- A. Change the code that sets the throwOnError attribute of the service to be true.
- B. Update the service to have a faster response time.
- C. Modify the code that makes the request to the external serviceto be wrapped in a try/catch block.
- D. Increase the web service time out
Answer: B,D
Explanation:
NEW QUESTION 25
A Digital Developer is tasked with setting up a new Digital Server Connection using UX Studio in their sandbox.
Which three items are required to accomplish this task? (Choose three.)
- A. Instance Version
- B. Business Manager Username
- C. Business Manager Password
- D. Instance Hostname
- E. Keystore Password
Answer: C,D,E
Explanation:
Explanation/Reference: https://medium.com/@fsjohnny/lets-develop-with-salesforce-commerce-cloud-part-1-setting-up- your-development-environment-b16044708d09
NEW QUESTION 26
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. Include an authentication token in the request.
- B. Change the URI to /dw/shop/vl8_3/products/creative-zen-v.
- C. Change the HTTP method to PUT.
- D. Change the HTTP method to GET.
Answer: D
NEW QUESTION 27
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 scenario7
- A. Append a new function to all the existing routes with the server module.
- B. Replace the existing routes by creating a controller in separate new cartridge.
- C. Define a new middleware function and use it in the existing routes.
- D. Use the superModule property in the existing routes to extend their functionality.
Answer: C
NEW QUESTION 28
When looking at Custom Object instances for a site, a merchant notices that the creation date is not showing up on the instances in Business Manager.
Where should the developer add this attribute to the Custom Object so it is visible for the merchant to see in Business Manager'
- A. Add the creation date to the attributes of the Custom Object.
- B. Assign the current date/time to a new custom attribute, creationDate, via code.
- C. Mark the existing creation date attribute as visible.
- D. Add the creation date to the attribute group for the Custom Object.
Answer: A
NEW QUESTION 29
Assume the code below is executing:
Business Manager has the configuration:
* Active Log category is "root" with log level of "info."
Given this information, what is the beginning of the filename in which the log will be written?
- A. custom-export
- B. custominfo-blade
- C. custom-xyz
- D. xyz
Answer: C
NEW QUESTION 30
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/de
- B. templates/default/resources
- C. templates/default
- D. templates/resources
Answer: D
NEW QUESTION 31
Given the file structure below, which ISML method call renders the customLandingPage template?
- A. ISML.render('content/custom/customLandingPage');
- B. ISML.renderTemplate('content/custom/customLandingPage');
- C. ISML.renderTernplate('cartridge/ternplates/default/content/custom/customLandingPage');
- D. ISML('content/custom/customLandingPage');
Answer: B
NEW QUESTION 32
There are three logging categories: category1, category1.eu, and category1.us.
In Business Manager, category1 is enabled for WARN level and no other categories are configured. All custom log targets are enabled.
The code segment below executes.
What is the result'
- A. Logs will be written to the log file with a prefix customwarn.
- B. Logs will not be written.
- C. Logs will be written to the log file with a prefix custom-loggerFile.
- D. Logs will be written to the log file with a prefix loggerFile.
Answer: C
NEW QUESTION 33
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 Product Bundles module, create a bundle named "The Basics".
- B. In the Product Sets module, create a product set named "The Basics".
- C. In the Products module, create a product named "The Basics" and add the products to the Product Bundles tab.
- D. In the Products module, create a product named "The Basics" and add the products to the Product Sets tab.
Answer: C
NEW QUESTION 34
......
All B2C-Commerce-Developer Dumps and Salesforce Certified B2C Commerce Developer Training Courses: https://learningtree.testkingfree.com/Salesforce/B2C-Commerce-Developer-practice-exam-dumps.html