New Year Special 60% Discount Offer - Ends in 0d 00h 00m 00s - Coupon code: bestdeal

How to Easily Pass the Salesforce B2C-Commerce-Developer Exam: Expert Advice

Questions 1

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 cartforms. 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.

B2C-Commerce-Developer Question 1

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

B2C-Commerce-Developer Question 1

Options:
A.

Option A

B.

Option B

C.

Option C

D.

Option D

Salesforce B2C-Commerce-Developer Premium Access
Questions 2

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?

Options:
A.

In Global preferences, check the box for Enable custom logging in Request Log.

B.

In Site Preferences, check the box for Enable custom Logging in Request Log

C.

In Custom Log Settings, check the DEBUG box for Select Log Levels Written to Files.

D.

In custom Log Settings, activate the loggin category at DEBUG level.

Questions 3

A Digital Developer is working on a multi-site realm. A new site requires a different layout for the account landing page. The business logic and datamodel remain the same. The existing code is in AccountControl.js and accountlanding.isml in the app_storefront cartridge. The app_storefront cartridge contains code for all other business functions. The cartridge path for the new site is currently int_cybersource:int_paypal:app_storefront.

The Developer creates a new cartridge named app_newsite that contains only the accountlanding.isml template for the new site.

Which modification should be made to the new cartridge path?

Options:
A.

Set the cartridge path sothat app_newsite is before app_storefront.

B.

Set the cartridge path so that app_storefront is before int_cybersource.

C.

Set the cartridge path to include only app_newsite.

D.

Set the cartridge path so that app_newsite is after app_storefront.

Questions 4

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'

Options:
A.

Add csrfProtection middleware steps in the controller

B.

Extend the CSRF token validity to avoid timeouts.

C.

Delete the existing CSRF allow list in Business Manager.

Questions 5

Universal Containers sells physical gift cards for the holidays.

What needs to occur to guarantee the cards will always be available?

Options:
A.

Create an inventory record with an unlimited Allocation value.

B.

Create an inventory record with an extremely high Allocation value (i.e., 1 billion certificates).

C.

Create a perpetual inventory record.

D.

Create an inventory record with Backorder Handling enabled.

Questions 6

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?

Options:
A.

• Add the new attribute to the "Order" system object.• Modify the "COPIaceOrder" controller to add this new attribute to the current session's "Order" object.

B.

• Modify the "COPIaceOrder" 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.

C.

• Add the new attribute to the "Customer" system object.• Modify the "COPIaceOrder" controller to add this new attribute to the current session's "Customer" object.

D.

• Create a new custom object type for order comments that contains the attributes: order ID and comments.• Modify the "COPIaceOrder" controller to create a new order comments custom object upon order completion.

Questions 7

A developer is is configuring Shipping Methods on a storefront. Which of the following considerations must be kept in mind while configuring shipping methods.

Options:
A.

You can exclude products that can't be shippedwith a particular shipping method

B.

You can't exclude addresses that aren't used by a particular shipping method

C.

You can't define surcharge shipping costs for specific product groups.

Questions 8

A developer customized the Cart-Show controller routewith a LINK cartridge that adds social media data. There is a new requirement to add a datalayer object to the Cart-Show controller route.

How should the developer achieve this to ensure that no code change will be needed if the client decides to remove the LINK cartridge?

Options:
A.

Replace the Cart-Show controller route in client cartridge and add datalayer object to the viewData variable.

B.

Replace the Cart-Show controller route in client cartridge and add datalayer object to the viewData variable. Ensure thatthe client cartridge is on the left of the U.HK cartridge m cartridge path.

C.

Append Cart-Show controller route in the client cartridge and add datalayer object to the viewData variable.

Questions 9

A retailer notices that the Account Addresses page is showing the wrong shopper's address.

Which toolshould the developer start with to identify the issue?

Options:
A.

Storefront Toolkit

B.

Reports and Dashboards module

C.

Pipeline Profiler

Questions 10

Given the SFRA Controller below:

B2C-Commerce-Developer Question 10

Why would a JavaScript debugger, that is stopped at line 06, fall to show the viewdata variable in the inspection tool?

Options:
A.

cache. applyDefauItCache is not a valid middleware.

B.

viewdata is declared but not assigned.

C.

viewdata is assigned but not declared.

D.

viewdata is a B2C Script reserved name.