ExamGecko
Home Home / Salesforce / Certified B2B Commerce Administrator

Salesforce Certified B2B Commerce Administrator Practice Test - Questions Answers, Page 18

Question list
Search
Search

List of questions

Search

Which three considerations should a developer keep in mind when evaluating a tax provider for a Salesforce B2B Commerce Lightning site?

A.
Whether an AppExchange package already exists
A.
Whether an AppExchange package already exists
Answers
B.
Which events to fire in the Lightning web component
B.
Which events to fire in the Lightning web component
Answers
C.
What the Success criteria should be
C.
What the Success criteria should be
Answers
D.
Whether to use JSON or XML
D.
Whether to use JSON or XML
Answers
E.
How to handle the error
E.
How to handle the error
Answers
Suggested answer: A, C, E

Explanation:

A developer should consider the following factors when evaluating a tax provider for a Salesforce B2B Commerce Lightning site:

Whether an AppExchange package already exists: This can save time and effort for the developer, as they can leverage the existing integration and configuration options provided by the package.Some examples of tax providers with AppExchange packages are Avalara, Vertex, and Digital River1.

What the success criteria should be: The developer should define the expected outcomes and requirements for the tax integration, such as accuracy, performance, scalability, security, compliance, and user experience.The success criteria should be aligned with the business goals and customer needs2.

How to handle the error: The developer should plan for how to handle any errors or exceptions that may occur during the tax calculation or submission process.For example, how to display error messages to the user, how to log and troubleshoot errors, how to retry or cancel transactions, and how to handle refunds or adjustments3

Which two statements are accurate about the Cart Item with a Type of Charge?

A.
It is created with the Cart Delivery Group Method after the freight integration
A.
It is created with the Cart Delivery Group Method after the freight integration
Answers
B.
It is linked directly to a Catalog Id
B.
It is linked directly to a Catalog Id
Answers
C.
It is linked directly to a Cart Id
C.
It is linked directly to a Cart Id
Answers
D.
It is created with the Cart Delivery Group Method after the shipping integration
D.
It is created with the Cart Delivery Group Method after the shipping integration
Answers
Suggested answer: A, C

Explanation:

A cart item with a type of charge is a special type of cart item that represents a fee or a discount applied to the cart or a cart delivery group. A cart item with a type of charge has the following characteristics:

It is created with the Cart Delivery Group Method after the freight integration: The freight integration is responsible for calculating the shipping costs for each cart delivery group based on the shipping method, the destination, and the weight and dimensions of the items. The freight integration can create a cart item with a type of charge to represent the shipping cost for each cart delivery group.

It is linked directly to a Cart Id: A cart item with a type of charge can be associated with a cart id, which means that it applies to the entire cart. For example, a cart-level discount or a tax charge can be represented by a cart item with a type of charge linked to a cart id.

B and D are not accurate statements because:

A cart item with a type of charge is not linked directly to a catalog id. A catalog id is used to identify a product or a variant in the catalog. A cart item with a type of charge does not represent a product or a variant, but rather a fee or a discount.

A cart item with a type of charge is not created with the Cart Delivery Group Method after the shipping integration. The shipping integration is responsible for determining the available shipping methods for each cart delivery group based on the origin, the destination, and the inventory availability. The shipping integration does not create any cart items with a type of charge.

What does the developer need to implement to override Shipping in Checkout?

A.
sfdc.commerce.ShippingCharges
A.
sfdc.commerce.ShippingCharges
Answers
B.
sfdc_commerce.CartShipplngCharges
B.
sfdc_commerce.CartShipplngCharges
Answers
C.
sfdc_checkout.CartShippingCharges
C.
sfdc_checkout.CartShippingCharges
Answers
D.
sfdc.checkout.ShippingCharges
D.
sfdc.checkout.ShippingCharges
Answers
Suggested answer: C

Explanation:

To override the shipping charge calculation logic in B2B Commerce for Visualforce, a developer must implement the sfdc_checkout.CartShippingCharges interface. This interface defines two methods: calculateShipping and calculateShippingForCart. The calculateShipping method takes a CC Cart Delivery Group Method record as an input and returns a CC Cart Item record of type Shipping. The calculateShippingForCart method takes a CC Cart record as an input and returns a list of CC Cart Item records of type Shipping. These methods are invoked by the B2B Commerce for Visualforce framework during checkout to calculate the shipping charge for each cart delivery group and the entire cart respectively.Reference:Add a Shipping Service,Calculate Shipping at Checkout, B2B Commerce for Visualforce Developer Guide

A developer has been working on the flow of an Inventory Class for checkout. The developer has handled all the error states and now needs to indicate that inventory is available for all items and amounts in the cart.

Which step should happen next?

A.
Return sfdc.checkout.lntegrationStatus.Status.SUCCESS
A.
Return sfdc.checkout.lntegrationStatus.Status.SUCCESS
Answers
B.
Return TRUE
B.
Return TRUE
Answers
C.
Return sfdc.checkoutJnventoryStatus.Status.SUCCESS
C.
Return sfdc.checkoutJnventoryStatus.Status.SUCCESS
Answers
D.
Return sfdc.checkout.lnventoryStatus.SUCCESS
D.
Return sfdc.checkout.lnventoryStatus.SUCCESS
Answers
Suggested answer: A

Explanation:

To indicate that inventory is available for all items and amounts in the cart, the developer must return sfdc.checkout.IntegrationStatus.Status.SUCCESS from the inventory class. This is a predefined constant that represents a successful inventory check result. If the inventory class returns any other value, such as sfdc.checkout.IntegrationStatus.Status.FAILURE or sfdc.checkout.IntegrationStatus.Status.PARTIAL, the checkout process will be blocked or modified accordingly.Reference:Create an Inventory Class,Check Inventory at Checkout, B2B Commerce for Visualforce Developer Guide

Ursa Major is planning to implement Salesforce B2B Commerce, and a developer needs to configure taxes for their storefront. The company operates in multiple states, each with different tax rates and tax rules.

What are two ways the developer should configure taxes in B2B Commerce?

A.
Use a different pricebook for each state.
A.
Use a different pricebook for each state.
Answers
B.
Configure tax rates and rules for each state in Salesforce B2B Commerce.
B.
Configure tax rates and rules for each state in Salesforce B2B Commerce.
Answers
C.
Configure a tax engine using third-party software.
C.
Configure a tax engine using third-party software.
Answers
D.
Use the Salesforce out-of-the-box tax calculator.
D.
Use the Salesforce out-of-the-box tax calculator.
Answers
Suggested answer: B, C

Explanation:

There are two ways to configure taxes in B2B Commerce: using the Salesforce out-of-the-box tax solution or using a third-party tax engine. The Salesforce out-of-the-box tax solution allows the developer to configure tax rates and rules for each state in the B2B Commerce administration. The developer can specify the percentage at which a product is taxed and the country, state, or province where that rate applies.The developer can also map the tax rate to products using tax treatments and create a tax policy that includes all the tax treatments for the store's products1. Alternatively, the developer can configure a tax engine using third-party software, such as Avalara or Vertex. The developer can create an Apex class that implements the sfdc.commerce.CheckoutTaxCalculations interface and register it as the integration in the store administration.The Apex class can call the external service to calculate the tax amount for each cart delivery group and the entire cart2.Reference:Configure Tax Settings for a Store,Add a Tax Calculation Service.

Ina B2B Commerce store, which three tasks must a developer complete to implement the use of a third-party service for either tax, shipping, or pricing calculation?

A.
Create an Apex class implementing the appropriate interface.
A.
Create an Apex class implementing the appropriate interface.
Answers
B.
Create a named credential for authentication with an external service.
B.
Create a named credential for authentication with an external service.
Answers
C.
Create a flow to call the external service directly.
C.
Create a flow to call the external service directly.
Answers
D.
Create an Apex class with an invocable method.
D.
Create an Apex class with an invocable method.
Answers
E.
Register an Apex class as the integration in the store administration.
E.
Register an Apex class as the integration in the store administration.
Answers
Suggested answer: A, B, E

Explanation:

To implement the use of a third-party service for either tax, shipping, or pricing calculation in a B2B Commerce store, the developer must complete three tasks: create an Apex class implementing the appropriate interface, create a named credential for authentication with an external service, and register an Apex class as the integration in the store administration.The Apex class must implement one of the following interfaces depending on the type of calculation: sfdc.commerce.CheckoutTaxCalculations for tax, sfdc_checkout.CartShippingCharges for shipping, or sfdc.commerce.CheckoutPriceCalculations for pricing3.The named credential must provide the URL, authentication protocol, and credentials for accessing the external service4.The Apex class must be registered as the integration in the store administration by selecting it from the drop-down list in the corresponding section5. Creating a flow or an invocable method is not necessary for this task.

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
A.
Ignored during recalculation
Answers
B.
Deleted from the Cart
B.
Deleted from the Cart
Answers
C.
Modified with the new tax calculation
C.
Modified with the new tax calculation
Answers
D.
Saved prior to recalculation
D.
Saved prior to recalculation
Answers
Suggested answer: B

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. This is because the tax calculation logic is executed every time the cart is updated or recalculated, and the old tax entries are no longer valid.The new tax integration calculates the tax amount for each cart delivery group and the entire cart, and creates new cart item records of type Tax with the updated values1.Reference:Add a Tax Calculation Service

During checkout flow customizations, a developer receives an error on shipping cost calculation integrations with the error code: INSUFFICIENT_ACCESS_OR_READONLY.

What is causing this error?

A.
The storefront user does not have access to the Cart Delivery Method object.
A.
The storefront user does not have access to the Cart Delivery Method object.
Answers
B.
The cart is no longer in a valid Checkout State.
B.
The cart is no longer in a valid Checkout State.
Answers
C.
An error has occurred during the cart shipping charge integration.
C.
An error has occurred during the cart shipping charge integration.
Answers
D.
The storefront user does not have access to custom fields on the Order Delivery Method object.
D.
The storefront user does not have access to custom fields on the Order Delivery Method object.
Answers
Suggested answer: A

Explanation:

The error code INSUFFICIENT_ACCESS_OR_READONLY indicates that the storefront user does not have access to the Cart Delivery Method object, which is used to store the selected shipping method for each cart delivery group. This error can occur when the developer configures a shipping cost calculation integration that requires access to this object, but does not grant the appropriate permissions to the storefront user profile or permission set.To resolve this error, the developer must ensure that the storefront user has at least read and edit access to the Cart Delivery Method object and its fields2.Reference:Specify Shipping Group Options for LLI Checkout,Specify Shipping Options for Standard Checkout,CartDeliveryGroupMethod

Based on error emails flowing in, a developer suspects that recent edits made to a checkout flow have created a defect. The developer has data points available to use as inputs in reproducing the scenario.

What should the developer do next?

A.
Open the flow, select Attach to Live Session, provide the session ID, and select Attach.
A.
Open the flow, select Attach to Live Session, provide the session ID, and select Attach.
Answers
B.
Open the flow, select Debug, provide the Input values, and select Run.
B.
Open the flow, select Debug, provide the Input values, and select Run.
Answers
C.
Open the flow, select Debug, provide the session ID for replay, and select Run.
C.
Open the flow, select Debug, provide the session ID for replay, and select Run.
Answers
D.
Open the flow, select Debug with Inputs, provide the Input values, and select Run.
D.
Open the flow, select Debug with Inputs, provide the Input values, and select Run.
Answers
Suggested answer: B

Explanation:

To debug a flow that has created a defect, the developer should open the flow, select Debug, provide the Input values, and select Run. This option allows the developer to test the flow with real or simulated data points and see how the flow behaves in each step. The developer can also use breakpoints to pause the flow execution and inspect the variable values at any point.The developer can compare the expected and actual outcomes of the flow and identify the source of the defect1.Reference:Debug a Flow in Flow Builder

In checkout, what event should the developer's code listen for in order to help troubleshoot and respond to actions?

A.
CommerceActionEvents
A.
CommerceActionEvents
Answers
B.
CommerceDiagnosticEvents
B.
CommerceDiagnosticEvents
Answers
C.
CommerceErrorEvents
C.
CommerceErrorEvents
Answers
D.
CommerceBubbleEvents
D.
CommerceBubbleEvents
Answers
Suggested answer: C

Explanation:

In checkout, the developer's code should listen for CommerceErrorEvents to help troubleshoot and respond to actions. CommerceErrorEvents are events that are fired when an error occurs during checkout, such as an invalid input, a failed integration call, or a system exception. The developer can use these events to handle the errors gracefully and display appropriate messages to the user.The developer can also use these events to log the errors for further analysis or debugging2.Reference:B2B Commerce Checkout Flow Core Actions

Total 256 questions
Go to page: of 26