[Oct 28, 2021] B2C-Commerce-Developer Exam Brain Dumps - Study Notes and Theory [Q55-Q77]

Share

[Oct 28, 2021] B2C-Commerce-Developer Exam Brain Dumps - Study Notes and Theory

Pass Salesforce B2C-Commerce-Developer Test Practice Test Questions Exam Dumps


Salesforce B2C-Commerce-Developer Exam Syllabus Topics:

TopicDetails
Topic 1
  • Given A Business Manager Task, Work With The Product Data Model To Manage Products, Their Categorization, And Associated Inventory
Topic 2
  • Given A Sandbox Instance And Eclipse IDE, Install UX Studio And Upload Code To The Sandbox Environment
Topic 3
  • Use Business Manager To Work With Content Assets, Content Slots, And Content Folders
Topic 4
  • Given Business Requirements, Create A Custom Object Type To Store A Custom Data Type
Topic 5
  • Given A Performance Issue And Sample Code, Determine The Faulty Cache Configuration And Identify The Cause
Topic 6
  • Given Business Requirements, Pass Data To A Downstream System; Extend The Storefront To Expose A New Attribute On An Existing System Object Type
Topic 7
  • Implement And Enhance Templates, Form Definitions, Static Files, Properties Files
  • Extend Functionality With A Hook That Is Not Previously Defined In Hooks
Topic 8
  • Troubleshoot File Synchronization Issues Between UX Studio And The Sandbox Environment
  • Given A Sandbox Instance And UX Studio Connection
Topic 9
  • Given Existing Code And A Sandbox Instance, Enable And Access Logging Category In Business Manager
Topic 10
  • Persistent Object Attributes To Ensure That Localized Pages Are Displayed As Expected
  • Identify The Issues And Modify The Code To Conform To Best Practices Including Performance & Scalability
Topic 11
  • Given A Sandbox Instance And Data Import Files, Import Files Using Business Manager Import/Export Modules
Topic 12
  • Create ISML Templates That Use The Following ISML Functionality: Local Include, Remote Include, Modules, And Components
Topic 13
  • Given A Specification And A Sandbox Instance, Configure OCAPI Permissions For Data And Shop Apis
Topic 14
  • Create A Javascript Controller That Leverages A Script And Renders A Template/JSON
  • Write Code That Logs Non-Sensitive Data To Custom Log Files With Different Log Levels
Topic 15
  • Given The Code For A Storefront Site, Add The Correct Sequence Of Cartridge Names To The Provided Cartridge Path
Topic 16
  • Modify The Appearance Of A Form, Add Validation And CSRF Protection, And Use Bindings To Process Fields
Topic 17
  • Given A Configuration Task, Use Business Manager To Work With Storefront Data To Complete A Storefront Order
Topic 18
  • Given A Requirement And A Simple Service Specification, Integrate And Deploy Using Service Framework
  • Use OCAPI Shop And Data Apis To Enable Interoperability With An External System
Topic 19
  • Configure And Use The Debugger To Inspect Script And Pipeline Functions
  • Modify A Javascript Controller To Alter The Control Logic
Topic 20
  • Create A New Search Refinement Definition That Can Be Used On The Storefront
  • Modify Site Search Preferences And Settings To Enable Searching For A Specified Product Attribute

 

NEW QUESTION 55
Universal Containers requires that a new order comments attribute is added to the existing SiteGenesis checkout flow.
This new attribute needs to be included as part of the standard order export.
Aside from updating the HTML markup and form definition, which option contains all necessary steps to achieve this task?

  • A. * Create a new custom object type for order comments that contains the attributes: order ID and comments.
    * Modify the "COPlaceOrder" controller to create a new order comments custom object upon order completion.
  • B. * Add the new attribute to the "Order" system object.
    * Modify the "COPlaceOrder" controller to add this new attribute to the current session's "Order" object.
  • C. * Add the new attribute to the "Customer" system object.
    * Modify the "COPlaceOrder" controller to add this new attribute to the current session's "Customer" object.
  • D. * Modify the "COPlaceOrder" controller to update a CSV file in the IMPEX WebDAV directory with the order ID and comments.
    * Modify the order export process to read information in the CSV file and include it as part of the export.

Answer: B

 

NEW QUESTION 56
A digital instance has one site, with one master product catalog separate from the site catalog. Some, but NOT all, products in the master catalog are assigned to categories of the site catalog.
Using Business Manager, how can a Digital Developer create a catalog export file that contains only the products assigned to the site catalog?

  • A. Use the Site Import & Export module to export both the site catalog and the master catalog in a single archive.
  • B. Use the Catalog Export module to export the master catalog, with a category-assignment search to export specific products.
  • C. Use the Site Import & Export module to export the master catalog, filtered by site catalog categories to export specific products.
  • D. Use the Catalog Export module to export the site catalog.

Answer: B

Explanation:
Explanation/Reference: https://documentation.b2c.commercecloud.salesforce.com/DOC2/index.jsp?topic=%
2Fcom.demandware.dochelp%2FImportExport%2FCatalogObjectImportExport.html

 

NEW QUESTION 57
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 resource_id value enables the appropriate resource?

  • A. /inventory_lists/*
  • B. /products/*
  • C. /inventory_lists/**
  • D. /inventory_list_search

Answer: B

 

NEW QUESTION 58
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 the appropiate roles and permission to the user to view the business manager extension.
  • B. Add plugin_bm_extension to the cartridge path under business manager cartridge site
  • C. Activate a new code version for the Business Manager Site.
  • D. Add plugin_bm_extension to the cartridge path under Storefront cartridge site path.

Answer: B,C

Explanation:

 

NEW QUESTION 59
A Digital Developer has a site export file on their computer that needs to be imported into their sandbox.
How should the developer update their sandbox with the data in this file?

  • A. Upload and import the file using the local option within the Site Import & Export Business Manager module.
  • B. Upload the file to the Impex WebDAV directory and import using the Site Import tool within UX Studio.
  • C. Upload the file to the Static WebDAV directory and import using the Import & Export Business Manager module.
  • D. Connect and import the file using the remote option within the Site Import & Export Business Manager module.

Answer: A

 

NEW QUESTION 60
Universal Containers wants to change a content slot that is currently configured to display a content asset. Now they want the slot to display the top five selling boxes for the week.
Which two changes need to be made for this to occur? (Choose two.)

  • A. Change the slot's configuration content type to "products."
  • B. Delete the existing content asset.
  • C. Change the slot's configuration content type to "recommendations."
  • D. Change the slot's configuration template to the appropriate rendering template.

Answer: C,D

 

NEW QUESTION 61
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 controller function that handles the submitted form
  • C. In the middleware chain of the controller post route
  • D. In the controller function that displays the form

Answer: C

 

NEW QUESTION 62
A Digital Developer added a file named MyBusinessController.jsin the cartridge named app_project.
The project design calls for this new file to override MyBusinessController.js in client_project. The client_projectcartridge contains other necessary functionality. Additional functionality is also included in the storefront_coreand storefront_controllerscartridges.
Which cartridge path meets the project requirements?

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

Answer: A

Explanation:
Explanation/Reference:

 

NEW QUESTION 63
A Digital Developer has a site export file on their computer that needs to be imported into their sandbox. How should the developer update their sandbox with the data in this file?

  • A. Upload and import the file using the local option within the Site Import & Export Business Manager module.
  • B. Upload the file to the Impex WebDAV directory and import using the Site Import tool within UX Studio.
  • C. Upload the file to the Static WebDAV directory and import using the Import & Export Business Manager module.
  • D. Connect and import the file using the remote option within the Site Import & Export Business Manager module.

Answer: A

 

NEW QUESTION 64
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/default
  • B. templates/resources
  • C. templates/default/resources
  • D. templates/de

Answer: B

Explanation:
Explanation/Reference: https://documentation.b2c.commercecloud.salesforce.com/DOC1/index.jsp?topic=%
2Fcom.demandware.dochelp%2FLocalization%2FLocalizingTemplateResourceBundles.html

 

NEW QUESTION 65
A Digital Developer wants pass control to an ISML template from a JavaScript Controller and load product on the pipeline dictionary with the name myProduct.
Which code sample will achieve this?

  • A. ISML.renderTemlpate ( "helloworld.isml", { "myProduct": "product" });
  • B. ISML.renderTemlpate ( "helloworld.isml", { product: myProduct });
  • C. ISML.renderTemlpate ( "helloworld.isml", { "product": myProduct });
  • D. ISML.renderTemlpate ( "helloworld.isml", { myProduct: product });

Answer: A

 

NEW QUESTION 66
A Digital Developer needs to add a new form to the shopping cart page to allow customers to enter their rewards pass ID. There is already an existing Cart.js controller that handles processing of the other cart forms.
In addition, a form field node is in the form XML and the necessary form input is present in the ISML template.
The code below is the submit button for the ISML markup.

What additional steps must occur before the Digital Developer can begin writing the processing code for this request?

  • A. Option A
  • B. Option B
  • C. Option C
  • D. Option D

Answer: C

 

NEW QUESTION 67
The following sample code is NOT providing the desired results. The Digital Developer needs to add an entry to the logs to debug the problem.

Which statement correctly adds a log entry?

  • A. Logger.getErrorLog().log('Unable to find Apple Pay payment instrument for order.'+paymentInstruments);
  • B. Logger.fault('Unable to find Apple Pay payment instrument for order.'+paymentInstruments);
  • C. Logger.error('Unable to find Apple Pay payment instrument for order.'+paymentInstruments);
  • D. Logger.exception('Unable to find Apple Pay payment instrument for order.'+paymentInstruments);

Answer: D

 

NEW QUESTION 68
Universal Containers is preparing their storefront to use Open Commerce APIs (OCAPI).
To which hook should the Digital Developer move taxation logic to ensure consistent order totals within B2C Commerce?

  • A. dw.ocapi.shop.order.afterPOST
  • B. dw.ocapi.shop.basket.afterPostShipment
  • C. dw.ocapi.shop.basket.calculate
  • D. dw.ocapi.shop.order.validateOrder

Answer: C

 

NEW QUESTION 69
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.renderTamplate('cartridge/templates/default/content/custom/customLandingPage');
  • D. ISML('content/custom/customLandingPage');

Answer: B

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 70
Universal Containers recently completed updates to their storefront shopping cart page. A problem has been discovered since the update. Users are no longer able to submit coupon codes on this page. Additionally, authenticated users who try to add a coupon are logged out.
The following processing code is found in the Cart.js controller file:

What should the Developer verify to identify the issue?

  • A. The CSRF cartridge is included in the site's cartridge path.
  • B. The CSRF token is present in the form and is being submitted in the request.
  • C. The form group has the secure attribute set to true.
  • D. The CSRF settings in Business Manager are properly configured.

Answer: B

 

NEW QUESTION 71
The following sample code is NOT providing the desired results. The Digital Developer needs to add an entry to the logs to debug the problem.

Which statement correctly adds a log entry?

  • A. Logger.error('Unable to find Apple Pay payment instrument for order.'+paymentlnstruments);
  • B. Logger.getErrorI_og().log('Unable to find Apple Pay payment instrument for order.'+paymentlnstruments);
  • C. Logger.fault('Unable to find Apple Pay payment instrument for order.'+paymentlnstruments);
  • D. Logger.exception('Unable to find Apple Pay payment instrument for order.'+paymentlnstruments);

Answer: A

 

NEW QUESTION 72
A client uses tax tables in Business Manager to calculate tax. They recently started shipping to a new country, Italy, and the tax is not being calculated correctly on the Storefront.
What is the likely problem?

  • A. Tax Jurisdiction is missing
  • B. Tax Country is missing
  • C. Tax Locale is configured wrong
  • D. Tax Region is configured wrong

Answer: C

 

NEW QUESTION 73
The following sample code is NOT providing the desired results. The Digital Developer needs to add an entry to the logs to debug the problem.

Which statement correctly adds a log entry?

  • A. Logger.getErrorLog().log('Unable to find Apple Pay payment instrument for order.'+paymentInstruments);
  • B. Logger.fault('Unable to find Apple Pay payment instrument for order.'+paymentInstruments);
  • C. Logger.error('Unable to find Apple Pay payment instrument for order.'+paymentInstruments);
  • D. Logger.exception('Unable to find Apple Pay payment instrument for order.'+paymentInstruments);

Answer: D

 

NEW QUESTION 74
A Digital Developer creates a B2C Commerce server connection in their UX Studio workspace. The Developer adds new cartridges to the workspace, but the cartridges do NOT execute as the Developer expects.
Which three things should the Digital Developer verify to ensure the cartridges are uploaded? Choose 3 answers

  • A. The server is configured to accept incoming connections.
  • B. The Active Server setting is enabled for the server connection.
  • C. The cartridge is for the current version of B2C Commerce.
  • D. The credentials for the server connection are correctly entered.
  • E. The Auto-Upload setting is enabled for the server connection.

Answer: B,D,E

 

NEW QUESTION 75
A developer is writing a server side script that needs to maintain state across calls. The persistent information needed includes these items.
* The current customer
* Whether or not the customer is authenticated
* The privacy attributes (such as tracking consent or cookie policy)
Which technique should the developer use to maintain state in an efficient and scalable manner that follows best practice?

  • A. Use an SFRA controller, because it runs server-side, the state is automatically maintained
  • B. Use the Session class in the B2C Commerce api.
  • C. Use a non-replicable Custom Object to store the information temporarily.
  • D. Use a client-side cookie to store the information for the session duration.

Answer: B

 

NEW QUESTION 76
Which three object types can a developer import using the Merchant Tools > Content > Import & Export module in Business Manager?
Choose 3 answers

  • A. Folders
  • B. Content assets
  • C. Products
  • D. Images and other static assets
  • E. Content slots

Answer: A,B,D

 

NEW QUESTION 77
......

Verified B2C-Commerce-Developer dumps Q&As - B2C-Commerce-Developer dumps with Correct Answers: https://www.vceengine.com/B2C-Commerce-Developer-vce-test-engine.html

The Best Salesforce Developers Study Guide for the B2C-Commerce-Developer Exam: https://drive.google.com/open?id=1IIRAubM0oVNPtnJpIuaYlkhmjwO253UY