Discount Offer
Available in 1, 3, 6 and 12 Months Free Updates Plans
PDF: $15 $60

Test Engine: $20 $80

PDF + Engine: $25 $99



Pass exam with Dumps4free or we will provide you with three additional months of access for FREE.

B2B-Commerce-Developer Practice Test


Page 6 out of 43 Pages

An administrator has just provided a developer with a new org and username. Which two sets of steps can the developer use to authorize the org and begin deploying Lightning web components? What should a developer do to expose a public property in a Lightning web component?


A. Decorate the field with @property


B. Decorate the field with @track


C. Decorate the field with @public


D. Decorate the field with @api





D.
   Decorate the field with @api

Explanation:

To expose a public property in a Lightning web component, the developer should decorate the field with the @api decorator. This decorator marks the property as public, which means that it can be set by another component, such as a parent component. The @api decorator also makes the property reactive, which means that any changes to the property value are reflected in the component’s template. The other decorators (@property, @track, and @public) are not valid for exposing public properties in Lightning web components. References: B2B Commerce and D2C Commerce Developer Guide, [Lightning Web Components Developer Guide]

How should a developer get the grand total amount, including shipping and tax, for items in the cart and in the currency of the cart, when developing a new Lightning web component for an Aura storefront cart page?


A. {!Cart.Details.grandTotal}


B. {ICart.Totals.grand Total}


C. {ICart.Details.Fields.grandTotal}


D. {!Cart.Fields.grandTotal}





C.
  {ICart.Details.Fields.grandTotal}

Explanation:

According to the B2B Commerce Developer Guide, the ICart interface provides access to the cart object and its related data. The Details property of the ICart interface returns an ICartDetails object, which contains information about the cart such as the currency, the subtotal, the shipping cost, the tax, and the grand total. The Fields property of the ICartDetails interface returns a map of field names and values for the cart object. Therefore, to get the grand total amount for items in the cart and in the currency of the cart, a developer should use the expression {ICart.Details.Fields.grandTotal}, which returns the value of the grandTotal field from the cart object. References: B2B Commerce Developer Guide, ICart Interface, ICartDetails Interface

Which code statement should a developer use to import the ID of the current Lightning Experience


A. import id from '@salesforce/network/ld'


B. import id from '@salesforce/experience/ld'


C. import id from '@salesforce/site/ld'


D. import id from '@salesforce/community/ld'





D.
  import id from '@salesforce/community/ld'

Explanation:

To import the ID of the current Lightning Experience community, a developer should use the following code statement:

import id from ‘@salesforce/community/Id’; The @salesforce/community module allows the developer to access information about the current community, such as its ID, name, URL, and base path. The other modules do not exist or are not related to the community ID. The @salesforce/network module is used to access information about the current network, such as its ID and name. The @salesforce/experience module is used to access information about the current user experience, such as whether it is standard or custom. The @salesforce/site module is used to access information about the current site, such as its name and prefix.

Salesforce References: [Lightning Web Components Developer Guide: Import Community Information], [Lightning Web Components Developer Guide: Import Salesforce Modules]

Which three actions are applicable when modifying the number of steps required in the Salesforce Commerce Checkout flow? (3 answers)


A. Perform a template override on the Checkout page.


B. Add a page include to the checkout page.


C. Build and activate a new configuration cache setting via CC admin.


D. Set the value of the configuration setting defined as CO.useDef to TRUE


E. Set the value of the configuration setting defined as CO.overrideFlow to TRUE.





A.
  Perform a template override on the Checkout page.

C.
  Build and activate a new configuration cache setting via CC admin.

E.
  Set the value of the configuration setting defined as CO.overrideFlow to TRUE.

Explanation:

Three actions that are applicable when modifying the number of steps required in the Salesforce Commerce Checkout flow are:

Perform a template override on the Checkout page. This action will allow you to change the structure and content of the Checkout page, such as adding or removing sections, widgets, or fields. For example, you can override the checkout.handlebars template and modify it according to your requirements. Set the value of the configuration setting defined as CO.overrideFlow to TRUE. This setting will enable you to use your own custom checkout flow instead of the default one. You need to set this value to true before you can modify the checkout flow.

Set the value of the configuration setting defined as CO.useDef to TRUE. This setting will enable you to use a single-page checkout flow instead of a multi-step checkout flow. You need to set this value to true if you want to reduce the number of steps in the checkout flow to one. Salesforce References: B2B Commerce and D2C Commerce Developer Guide, Checkout Flow

Which two methods from the platformResourceLoader module are relevant for including third party JavaScript and CSS in a Lightning web component?


A. loadClientScript


B. loadScript


C. loadCss


D. loadStyle





B.
  loadScript

D.
  loadStyle

Explanation:

Two methods from the platformResourceLoader module that are relevant for including third party JavaScript and CSS in a Lightning web component are loadScript and loadStyle. The platformResourceLoader module is a module that provides methods for loading JavaScript or CSS files from static resources or external URLs into a Lightning web component. The loadScript method is used to load a JavaScript file and execute it in the component. The loadStyle method is used to load a CSS file and apply it to the component. The loadClientScript method does not exist or is not relevant for including third party JavaScript in a Lightning web component. The loadCss method does not exist or is not relevant for including third party CSS in a Lightning web component. Salesforce References: Lightning Web Components Developer Guide: Load Scripts and Style Sheets, [Lightning Web Components Developer Guide: platformResourceLoader Module]


Page 6 out of 43 Pages
Previous