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 1 out of 43 Pages

What is essential for a Salesforce B2B Commerce theme to show up in the theme section in CC Admin?


A. The theme needs to be set as a Custom Setting in Salesforce.


B. The theme needs to be set in the Configuration Settings.


C. The theme needs to have "theme" in the name of the Static Resource.


D. The theme needs to be referred to in the head element on the page





C.
  The theme needs to have "theme" in the name of the Static Resource.

Explanation:

An essential requirement for a Salesforce B2B Commerce theme to show up in the theme section in CC Admin is that the theme needs to have “theme” in the name of the Static Resource. For example, a theme named “MyTheme” will not appear in CC Admin, but a theme named “MyTheme_theme” will. This is how the framework identifies which static resources are themes and which are not. Salesforce References: B2B Commerce and D2C Commerce Developer Guide, Themes

Which three files comprise the essential pieces of a Lightning Web Component that is named my Component?


A. myComponent.html


B. myNewComponent.css


C. myComponent.js-meta.xml


D. myComponent.aura


E. myComponent.js





A.
  myComponent.html

C.
  myComponent.js-meta.xml

E.
  myComponent.js

Explanation:

A Lightning Web Component (LWC) consists of a minimum of three core files: the template file (.html), the JavaScript file (.js), and the metadata configuration file (.js-meta.xml). These files are essential for defining the structure, functionality, and configuration of the component. For more information, review the Salesforce LWC documentation:Salesforce LWC Documentation.

A developer has made some changes to the products of an existing storefront, but they are unable to see the changes in the products from the store. Which action did the developer forget to take?


A. Activate the product list.


B. Publish the storefront.


C. Rebuild the search index.


D. Publish the catalog





B.
  Publish the storefront.

Explanation:

The developer forgot to publish the storefront after making changes to the products. Publishing the storefront is a necessary step to make the changes visible to the store visitors. Publishing the storefront updates the site’s metadata and content, and also triggers the site index and search index rebuilds. If the developer does not publish the storefront, the changes will not be reflected on the live site.

The following actions are not required or relevant for the scenario:

Activate the product list. This action is only needed when creating a new product list or modifying an existing one. It does not affect the visibility of the products on the storefront.

Rebuild the search index. This action is automatically performed when the developer publishes the storefront. It is not a separate step that the developer needs to take manually.

Publish the catalog. This action is not applicable for Salesforce B2B Commerce for Visualforce, which does not use catalogs. Catalogs are only used by Salesforce B2B Commerce for Lightning

Experience.

References:

Finalize and Publish Your Storefront

Customize the D2C Store Template

Configure Public Pages for a Storefront

A developer needs to implement a custom Lightning web component (LWC) for the storefront. The LWC contains language-specific text values. How should the developer translate the text values?


A. Import static resources for the text values and add them into the LWC.


B. Use a CustomLabel xml file in the LWC to add the text values there.


C. Create custom labels for the text values and import them in the LWC.


D. Create a custom Metadata object for the text values and query it in the LWC.





C.
  Create custom labels for the text values and import them in the LWC.

Explanation:

Custom labels are text values that can be translated into any language that Salesforce supports. They are useful for displaying language-specific text in Lightning web components. To use custom labels in a LWC, the developer needs to create them in the Setup menu and assign them to a language and a value. Then, the developer can import them in the LWC using the @salesforce/label scoped module. For example, if the developer has a custom label named welcomeHeader, they can import it as follows:

import welcomeHeader from '@salesforce/label/c.welcomeHeader';

Then, they can use it in the HTML template or the JavaScript file of the LWC. For example, in the HTML template, they can use it as follows:

HTMLAI-generated code. Review and use carefully. More info on FAQ.

The custom label will automatically display the translated value based on the user’s language preference. The developer can also use the lightning-formatted-text component to format the custom label value with HTML tags.

The other options are not correct because:

A. Importing static resources for the text values is not a recommended way to translate text values in a LWC. Static resources are files that are stored in Salesforce and can be referenced by applications. They are not designed for storing language-specific text values and they do not support automatic translation based on the user’s language preference.

B. Using a CustomLabel xml file in the LWC to add the text values there is not a valid option. Custom labels are not stored in xml files, but in the Setup menu. They cannot be added directly to the LWC, but they need to be imported using the @salesforce/label scoped module.

D. Creating a custom Metadata object for the text values and querying it in the LWC is not a feasible option. Custom Metadata objects are records that store configuration data that can be deployed and packaged. They are not intended for storing language-specific text values and they do not support automatic translation based on the user’s language preference. Querying them in the LWC would also require an Apex class and a wire service, which would add unnecessary complexity to the solution.

References:

Use Custom Labels in Lightning Web Components

Custom Labels

Internationalizing Your Lightning Web Component (LWC)

Which wire adapter should a developer use to retrieve metadata about a specific object?


A. getObjectMetadata


B. getObjectlnfo


C. getObject


D. getObjectDescribe





B.
  getObjectlnfo

Explanation:

To retrieve metadata about a specific object, a developer should use the getObjectInfo wire adapter. The getObjectInfo wire adapter imports data from the @salesforce/schema module and returns an object that contains information such as the object’s label, key prefix, fields, child relationships, record type infos, and theme. The getObjectMetadata wire adapter does not exist. The getObject wire adapter does not retrieve metadata, but rather returns a record object based on the record ID. The getObjectDescribe wire adapter does not exist either. Salesforce References: [Lightning Web Components Developer Guide: getObjectInfo], [Lightning Web Components Developer Guide: Import Salesforce Schema]


Page 1 out of 43 Pages