B2B-Commerce-Developer Exam Questions

Total 213 Questions


Last Updated On : 16-Jan-2025

Which component can be used in other Salesforce Experience templates outside of B2B Commerce?


A. Quick Order


B. CMS Collection


C. Product Detail Data


D. Results Layout





B.
  CMS Collection

Explanation:

In Salesforce Experience Cloud, components like CMS Collection and Results Layout are designed to be reusable across different Experience templates, not just limited to B2B Commerce. CMS Collection allows for the display of CMS content in a flexible and dynamic layout, while Results Layout can be used to present search or query results in a customizable format. Salesforce documentation on Experience Cloud components emphasizes the reusability and adaptability of these components across various templates and contexts.

What class must a developer implement to override Pricing during the checkout?


A. sfdc_commerce.CartPriceCalculations


B. sfdc_commerce.PriceCalculations


C. sfdc_checkout.PriceCalculations


D. sfdc_checkout.CartPriceCalculations





D.
  sfdc_checkout.CartPriceCalculations

Explanation:

To override pricing during the checkout process in Salesforce B2B Commerce, a developer must implement a class specifically designed for this purpose, such assfdc_checkout.CartPriceCalculations. This class would provide the necessary framework for custom pricing logic to be applied during checkout, ensuring that any custom pricing requirements are met.

When a developer configures a tax integration for a store, what happens to the previously calculated tax entries during the checkout flow?


A. Ignored during recalculation


B. Saved prior to recalculation


C. Deleted from the Cart


D. Modified with the new tax calculation





C.
  Deleted from the Cart

Explanation:

When a developer configures a tax integration for a store, the previously calculated tax entries during the checkout flow are deleted from the Cart. A tax integration is an integration that calculates and applies tax rates and amounts to a Cart or an Order based on various factors, such as product type, price, quantity, location, and tax rules. A tax integration can use either an external tax service provider or custom Apex code to perform the tax calculation. When a developer configures a tax integration for a store, any existing tax entries in the Cart are deleted before calling the tax integration service or method. This ensures that the tax calculation is accurate and up-to-date based on the current state of the Cart and avoids any conflicts or inconsistencies with previous tax entries. The previously calculated tax entries are not ignored during recalculation, saved prior to recalculation, or modified with the new tax calculation, as these are not valid actions for handling existing tax entries. Salesforce References: B2B Commerce Developer Guide: Tax Integration, B2B Commerce Developer Guide: Tax Calculation Flow

What is the purpose of connected Call back in a Lightning web component?


A. It performs actions when a network request is made.


B. It perform actions when a component makes a call to a Connect APL.


C. It performs actions when a component is removed from the DOM.


D. It performs actions when a component is added to the DOM.





D.
   It performs actions when a component is added to the DOM.

Explanation:

The connectedCallback is a lifecycle hook that is invoked when a Lightning web component is inserted into the DOM. It is used to perform any initialization tasks that depend on the component being rendered, such as fetching data, setting up event listeners, or creating timers. The connectedCallback can fire more than once, for example, when a component is moved or rerendered. The connectedCallback should not be used to change the state of a component, such as loading values or setting properties. Use getters and setters instead. The other options are incorrect because they do not describe the purpose of the connectedCallback.

References: Lifecycle Hooks | Lightning Web Components Developer Guide, connectedCallback() in Lightning Web Component - Salesforce Diaries, Chapter 23: connnectedCallback() in Lightning Web Component

Which of these is a key pattern leveraged when building Lightning Web Components? 39m 36s


A. Composition


B. Inventory


C. Juggling


D. Normalization





A.
  Composition

Explanation:

Composition is a key pattern in building Lightning Web Components (LWCs). This approach involves creating small, reusable components that can be assembled to form more complex interfaces. This pattern promotes modularity, reusability, and maintainability in the development of web components, aligning with web standards and best practices.

How can the display of CC Menu Items be customized for different users?


A. cc_hk_Category extension to pre-process which category items are cached as menu items


B. cc_hk_Menu extension to post-process any cached menu items


C. cc_hk_Menu extension to pre-process which menu items are cached


D. cc_hk_Category extension to post-process any cached menu items





B.
  cc_hk_Menu extension to post-process any cached menu items

Explanation:

The display of CC Menu Items can be customized for different users by using the cc_hk_Menu extension to post-process any cached menu items. This extension allows modifying the menu items based on the user context, such as the user role, account, or cart. For example, the extension can hide or show certain menu items based on the user’s permissions or preferences.

A developer needs to create a scheduled job in another system to move data into the B2B Commerce org. How can the developer do this without additional third party tools?


A. Install a minimal set of dev tools on a machine such as the Command Line Interface (CLI) and create appropriate scripts to import files containing the data


B. Set up an SFTP server as a waystation, drop the files there using the off-platform job and schedule a job in-platform to process the file


C. Set up WebDAV with SFTP as a waystation, drop the files there using the off-platform job and schedule a job in-platform to process the file


D. Create a job in the org (on-platform) to drop a file of existing data, Use the off-platform machine to generate a file and identify the details between the two, Push the changes to the org's "Import" directory





B.
  Set up an SFTP server as a waystation, drop the files there using the off-platform job and schedule a job in-platform to process the file

Explanation:

Option B is the correct answer because it describes a way to create a scheduled job in another system to move data into the B2B Commerce org without additional third party tools. The developer can set up an SFTP server as a waystation, drop the files there using the off-platform job and schedule a job in-platform to process the file. This way, the developer can use the built-in integration capabilities of the B2B Commerce platform, such as the Windows Integration Service (WIS) or the Integration Job Definitions, to import the data from the SFTP server into the org. The other options are incorrect because they either require additional third party tools, such as WebDAV or CLI, or they do not create a scheduled job in another system, but rather in the same org. References: Creating and editing integration jobs, Create a B2B Commerce Org and Checkout Flow, B2B Commerce on Lightning Experience Developer Guide, B2B Commerce and D2C Commerce Developer Guide

A Developer created a custom field that a project wants to expose on a given page. How does the Developer ensure that the field is available to display on a given page?


A. Override the Service Class that the page uses and update the ServiceManagementin CCAdmin for the given storefront to use this new Service Class.


B. Override the Logic Class that the page uses and update the Service Management inCCAdmin for the given storefront to use this new Service Class


C. Create a new Service Classthat the page uses and update the Service Managementin CCAdmin for the given storefront to use this new Service Class


D. Create a new Logic Class that the page uses and update the Service Managementin CCAdmin for the given storefront to use this new Service Class





A.
  Override the Service Class that the page uses and update the ServiceManagementin CCAdmin for the given storefront to use this new Service Class.

Explanation:

To ensure that a custom field is available to display on a given page, the Developer needs to override the Service Class that the page uses and update the Service Management in CCAdmin for the given storefront to use this new Service Class. The Service Class is responsible for retrieving and setting data for a given page. The Logic Class is responsible for implementing business logic and validation rules for a given page. Creating a new Service Class or Logic Class is not necessary, as overriding an existing one can achieve the same result. Salesforce References: B2B Commerce and D2C Commerce Developer Guide, Service Classes, Logic Classes

Which three are considered code units, or discrete units of work within a transaction in the debug logs?


A. Validation rule


B. .Apex class


C. Web service invocation


D. Lightning component load


E. Workflow invocations





B.
  .Apex class

C.
  Web service invocation

E.
  Workflow invocations

Explanation:

In the context of Salesforce debug logs, code units represent discrete units of work within a transaction. Apex classes (B), Web service invocations (C), and Workflow invocations (E) are considered code units as they encapsulate specific operations or sets of logic that can be executed as part of a transaction. Validation rules (A) and the loading of Lightning components (D) are not considered discrete units of work in the same way, as they are part of the declarative interface and front-end framework, respectively. For more details on how Salesforce handles transactions and debug logs, refer to the Salesforce Developer Documentation:Salesforce Developer Documentation on Transactions and Debug Logs.

Which event should be triggered when user facing info, warning or error messages need to be displayed on a Visualforce page?


A. showMessage


B. displayPageMessage


C. displayMessage


D. pageMessage





D.
  pageMessage

Explanation:

The event that should be triggered when user facing info, warning or error messages need to be displayed on a Visualforce page is pageMessage. This event is triggered by the displayPageMessage method of the CCRZ.util class, which is a utility class that provides various helper methods for common tasks. The event can be used to display a message on the page with a specified type, title, and text.

For example, CCRZ.util.displayPageMessage('error', 'Oops!', 'Something went wrong.') will trigger the pageMessage event and display an error message on the page.

Salesforce References: B2B Commerce and D2C Commerce Developer Guide, Events, Util Class


Page 4 out of 22 Pages
Previous