[Q44-Q67] Excellent B2C-Commerce-Developer PDF Dumps With 100% PracticeDump Exam Passing Guaranted [Sep-2021]

Share

Excellent B2C-Commerce-Developer PDF Dumps With 100% PracticeDump Exam Passing Guaranted [Sep-2021]

100% Pass Your B2C-Commerce-Developer Salesforce Certified B2C Commerce Developer at First Attempt with PracticeDump

NEW QUESTION 44
To ensure SFRA best practices and protect against request forgery, the developer introduced CSRF token generation in the customer address 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 controller function that displays the form
  • B. In the middleware chain of the controller post route
  • C. In the view function that handles the submitted form
  • D. In the model function that persists the form data

Answer: B

 

NEW QUESTION 45
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 containers
* Three Model 201 containers
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 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 Sets tab.
  • D. In the Product Bundles module, create a bundle named "The Basics."

Answer: A

 

NEW QUESTION 46
A Digital Developer has identified that the code segment below is causing performance problems.

What should the Developer do to improve the code?

  • A. Breaks the process into separate loops.
  • B. Avoid post-processing and use the isOnSaleFlag attribute as a search refinement.
  • C. Use a system attribute instead of the isOnSaleFlag custom attribute.
  • D. Avoid using an Iterator and use a Collection instead.

Answer: A

 

NEW QUESTION 47
A Digital Developer is inspecting the weekly service status report for a critical internally-hosted web service used in the application and notices that there are too many instances of unavailability.
Which two solutions are possible options to reduce the unavailability of the service? Choose 2 answers

  • A. Change the code that makes the request to set the throwOnError attribute, of the service, to be true.
  • B. Update the external service to have a faster response time.
  • C. Modify the code that makes the request to the external service to be wrapped in a try / catch block.
  • D. Increase the web service time out.

Answer: C,D

 

NEW QUESTION 48
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 49
A Digital Developer needs to check for product inventory in a specific inventory list using the Open Commerce API.
An example request URL is:

Which rescurce_id value enables the appropriate resource?

  • A. /inventory-lists/*
  • B. /inventory_list_search
  • C. /inventory_lists/**
  • D. /products/*

Answer: C

 

NEW QUESTION 50
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. Update the service to have a faster response time.
  • B. Change the code that sets the throwOnError attribute of the service to be true.
  • C. Modify the code that makes the request to the external service to be wrapped in a try/catch block.
  • D. Increase the web service time out

Answer: C,D

Explanation:

 

NEW QUESTION 51
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.
  • B. An UPDATE request to the Stores Data OCAPI.
    Siempre que sea un objeto standard sera put en vez de post
  • C. A PATCH request to the Stores Data OCAPI.

Answer: C

 

NEW QUESTION 52
The following code ensures that an address ID CANNOT be used if it is already in use by another address in the customer's address book. There is a problem with the code. The error message for an invalid address ID is never shown to the user on the form field.

How should the Digital Developer resolve this issue so that the error message is displayed on the address ID form field?

  • A. addressForm.addresssid.invalidateFormElement = true;
  • B. addressForm.invalidateFormElement("addressid");
  • C. addressForm.invalidateFormElement(addressForm.addressid);
  • D. addressForm.addresssid.invalidateFormElement();

Answer: C

 

NEW QUESTION 53
Which technical reports datapoint measures the performance of a controller's script execution if network factors and Web Adaptor processing is ignored?

  • A. Response time
  • B. Call count
  • C. Processing time
  • D. Cache hit ratio

Answer: C

 

NEW QUESTION 54
A job executes a pipeline that makes calls to an external system.
Which two actions prevent performance issues in this situation? (Choose two.)

  • A. Use synchronous import or export jobs
  • B. Configure a timeout for the script pipelet.
  • C. Disable multi-threading.
  • D. Use asynchronous import or export jobs.

Answer: B,C

 

NEW QUESTION 55
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

 

NEW QUESTION 56
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. Logger.warn('The current producto is {0} with name {1}', myProduct.getID(), myProduct.getName());
  • B. Logger.warn('The current producto is %s with name %s'), context(myProduct.getID(), myProduct.getName());
  • C. Logger.warn('The current producto is ${myProduct.getID()} with name ${myProduct.getName()}');
  • D. Logger.warn('The current producto is {0} with name {1}'), context(myProduct.getID(), myProduct.getName());

Answer: A

 

NEW QUESTION 57
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 Business Manager to upload and import a copy of the export file obtained from the original Developer.
  • B. Use the remote upload capability of the Site Import & Export module of Business Manager.
  • C. Use the import capability of the Site Import & Export module of Business Manager.
  • D. Use the Business Manager Data Replication module to replicate the catalog from the original Developer's sandbox.

Answer: C

 

NEW QUESTION 58
A Digital Developer added a file named MyBusinessController.js in the cartridge named app_project. The project design calls for this new file to override MyBusinessController.js in client_project. The client_project cartridge contains other necessary functionality. Additional functionality is also included in the storefront_core and storefront_controllers cartridges.
Which cartridge path meets the project requirements?

  • A. app_project:storefront_controllers:storefront_core
  • B. client_project:app_project:storefront_controllers:storefront_core
  • C. app_project:client_project:storefront_controllers:storefront_core
  • D. storefront_core:storefront_controllers:client_project:app_project

Answer: C

 

NEW QUESTION 59
A Digital Developer is implementing an Open Commerce API call to add products to a basket. Given the following resource configuration:

Which modification allows the requests to successfully execute?

  • A. Change the "read_attributes" value to: "(items)".
  • B. Change the "write_attributes" value to: "(+items)".
  • C. Change the "methods" value to: ["get", "post"].
  • D. Change the "resource_id" value to: "/baskets/*/items".

Answer: D

 

NEW QUESTION 60
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-xyz
  • B. custominfo-blade
  • C. xyz
  • D. custom-export

Answer: A

 

NEW QUESTION 61
What happens if the log file size limit is reached in custom logging?

  • A. The log file rolls over and the last used log is overwritten.
  • B. Logging is suspended for the day.
  • C. The log file is deleted and recreated from scratch.
  • D. Logging is suspended for two hours.

Answer: B

 

NEW QUESTION 62
A developer must configure permissions for an Open Commerce API resource on a sandbox instance that currently does not have any permissions configured.
Which two configuration properties are required to enable Access to the resource?
Choose 2 answers

  • A. Read_attributes
  • B. Version_range
  • C. Resource_id
  • D. Client_id

Answer: C,D

 

NEW QUESTION 63
A Digital Developer has identified that the code segment below is causing performance problems.

What should the Developer do to improve the code?

  • A. Breaks the process into separate loops.
  • B. Avoid post-processing and use the isOnSaleFlag attribute as a search refinement.
  • C. Use a system attribute instead of the isOnSaleFlag custom attribute.
  • D. Avoid using an Iterator and use a Collection instead.

Answer: A

 

NEW QUESTION 64
A developer wants to create in Business Manager extension with the cartridge named plugin_vm_extension.
Which two steps should the developer take for the extension option to show up in Business Manager?Choose 2 answers:

  • A. Add plugin_bm_extension to the cartridge path under Storefront cartridge site path.
  • B. Activate a new code version for the Business Manager Site.
  • C. Add plugin_bm_extension to the cartridge path under business manager cartridge site
  • D. Add the appropiate roles and permission to the user to view the business manager extension.

Answer: B,C

Explanation:

 

NEW QUESTION 65
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

Explanation:
Explanation/Reference: https://documentation.b2c.commercecloud.salesforce.com/DOC1/index.jsp

 

NEW QUESTION 66
A Digital Developer has been given a requirement to add fault tolerance to an existing web service integration that uses Service Framework. Administrators at Universal Containers need to be able to configure the timeout and rate limiting.
Which approach should the Developer use to implement the requirement?

  • A. Use the setTimeout method to execute fallback code if the request has NOT completed.
  • B. Implement a ServiceUnavailableException exception handler to execute fallback code.
  • C. Create a site preference to store timeout settings and implement an IOException handler to execute fallback code.
  • D. Implement a condition that checks to see if the response was empty and execute fallback code if true.

Answer: B

 

NEW QUESTION 67
......

Trend for B2C-Commerce-Developer pdf dumps before actual exam: https://www.practicedump.com/B2C-Commerce-Developer_actualtests.html

Real Exam Questions & Answers - Salesforce B2C-Commerce-Developer Dump is Ready: https://drive.google.com/open?id=1CG0nZ9u8HA4E3-yNmnVodieXoUT_5lmn