ExamGecko
Home Home / Salesforce / Certified B2B Commerce Administrator

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

Question list
Search
Search

List of questions

Search

What two things happen with the Cart during tax implementation? 04m 29s

A.
New entries are written to the Cart
A.
New entries are written to the Cart
Answers
B.
Previous entries are copied to another object
B.
Previous entries are copied to another object
Answers
C.
Previous entries are deleted from the Cart
C.
Previous entries are deleted from the Cart
Answers
D.
New entries are written to the Order Summary
D.
New entries are written to the Order Summary
Answers
Suggested answer: B, D

Explanation:

When tax implementation is enabled in B2B Commerce, two things happen with the Cart during checkout:

Previous entries are copied to another object. The Cart object stores the products and quantities that the customer has added to their shopping cart. When tax implementation is enabled, these entries are copied to another object called CartItemTaxableItem.This object stores additional information about each cart item, such as its taxable amount, tax code, tax rate, and tax amount7.

New entries are written to the Order Summary. The Order Summary object stores the summary information of an order, such as its total amount, subtotal amount, shipping amount, and discount amount.When tax implementation is enabled, new entries are written to this object to store the tax information of an order, such as its total tax amount, tax jurisdiction, and tax breakdown8.Reference:7: CartItemTaxableItem Object Reference - Salesforce Help,8: OrderSummary Object Reference - Salesforce Help

Universal Containers (UC) is ready to build a tax provider class using the interfaces available in the Buyer. Experience SDK. When creating a tax provider, what are three things that a developer should consider first?

A.
Steps to complete in the Tax Service
A.
Steps to complete in the Tax Service
Answers
B.
How to handle results
B.
How to handle results
Answers
C.
Whether to use JSON or XML
C.
Whether to use JSON or XML
Answers
D.
What to implement
D.
What to implement
Answers
E.
What events to fire in the Lightning web component
E.
What events to fire in the Lightning web component
Answers
Suggested answer: A, B, D

Explanation:

When creating a tax provider class using the interfaces available in the Buyer Experience SDK, the developer should consider the following things first:

Steps to complete in the Tax Service. The developer should decide what steps are required to calculate and apply taxes to an order, such as validating the address, requesting a tax quote, committing the tax transaction, and so on. The developer should also consider how to handle errors or exceptions that may occur during these steps.

How to handle results. The developer should determine how to process and store the results returned by the tax provider, such as the tax amount, the tax rate, the tax code, and any other relevant information. The developer should also decide how to display these results to the buyer and the seller in the storefront and the order management system.

What to implement. The developer should implement the ITaxProvider interface and its methods, such as getTaxQuote, commitTaxTransaction, cancelTaxTransaction, and so on. The developer should also implement any custom logic or configuration required by the tax provider, such as authentication, headers, parameters, endpoints, and so on.Reference:

Create a Tax Provider

Buyer Experience SDK Developer Guide

A developer is trying to integrate a new shipping provider to use during checkout in a storefront.

Which two steps must the developer take to make an integration available for selection?

A.
Create a RegisteredExternalService record using Workbench.
A.
Create a RegisteredExternalService record using Workbench.
Answers
B.
Create an Apex class that uses the integration framework.
B.
Create an Apex class that uses the integration framework.
Answers
C.
Modify the StorelntegratedService to map to an Apex class ID using Workbench.
C.
Modify the StorelntegratedService to map to an Apex class ID using Workbench.
Answers
D.
Enter the integration class name and version in the store administration
D.
Enter the integration class name and version in the store administration
Answers
Suggested answer: B, D

Explanation:

To integrate a new shipping provider to use during checkout in a storefront, a developer must take the following two steps:

Create an Apex class that uses the integration framework. The integration framework is a set of interfaces and classes that enable developers to create custom integrations with external services, such as shipping providers, payment gateways, and tax calculators.The developer must implement the sfdc_checkout.ShippingCalculationService interface and its methods to calculate shipping costs and options based on the shipping address and cart items1.

Enter the integration class name and version in the store administration. The store administration is a user interface that allows developers and administrators to configure various settings for a storefront, such as payment methods, shipping methods, tax methods, and store information.The developer must enter the name and version of the custom Apex class that implements the shipping calculation service in the Shipping Methods section of the store administration2.Reference:1: Integration Framework - Trailhead3,2: Add a Shipping Calculation Service for Commerce Stores - Salesforce Help4

While in the process of gathering requirements from a customer about how they would like to set up their net new storefront checkout experience, a consultant learns that the customer needs the ability to add new shipping and billing addresses during checkout.

Which approach should a developer take to meet this requirement?

A.
Create a new shipping address checkout subflow that utilizes the Buyer Managed Contact Point Addresses component.
A.
Create a new shipping address checkout subflow that utilizes the Buyer Managed Contact Point Addresses component.
Answers
B.
Enable Buyer Managed Contact Point Addresses within the Shipping Address standard component in the Checkout subflow.
B.
Enable Buyer Managed Contact Point Addresses within the Shipping Address standard component in the Checkout subflow.
Answers
C.
Enable Buyer Managed Contact Point Addresses within Commerce Administration.
C.
Enable Buyer Managed Contact Point Addresses within Commerce Administration.
Answers
D.
Create a Lightning web component that enables this functionality and replaces the current shipping address screen within the Checkout subflow.
D.
Create a Lightning web component that enables this functionality and replaces the current shipping address screen within the Checkout subflow.
Answers
Suggested answer: B

Explanation:

To enable buyers to add new shipping and billing addresses during checkout, a developer should take the following approach:

Enable Buyer Managed Contact Point Addresses within the Shipping Address standard component in the Checkout subflow. The Buyer Managed Contact Point Addresses feature allows buyers to manage their own contact point addresses, such as billing and shipping addresses, without requiring an administrator to create or edit them. The developer can enable this feature by setting the BuyerManagedContactPointAddressesEnabled configuration to true in the Shipping Address standard component in the Checkout subflow.This will allow buyers to add new addresses or select existing ones from their account address book during checkout1.Reference:1: Account Address Books and Contact Addresses for B2B Commerce for Visualforce Buyers - Salesforce Help5

Which two behaviors does a target value of lightning_FlowScreen in metadata allow for a Lightning web component?

A.
It allows the Lightning web component to replace standard functionality in flows and subflows
A.
It allows the Lightning web component to replace standard functionality in flows and subflows
Answers
B.
It allows the Lightning Web component to be dragged onto a page in Lightning AppBuilder
B.
It allows the Lightning Web component to be dragged onto a page in Lightning AppBuilder
Answers
C.
It allows the Lightning web component to be used in guided user experiences to gather input
C.
It allows the Lightning web component to be used in guided user experiences to gather input
Answers
D.
It automatically generates configuration properties for the Lightning web component
D.
It automatically generates configuration properties for the Lightning web component
Answers
Suggested answer: C, D

Explanation:

A target value of lightning_FlowScreen in metadata allows for a Lightning web component to have the following behaviors:

It allows the Lightning web component to be used in guided user experiences to gather input from the user. The component can be added to a flow screen and configured with input and output attributes, as well as validation rules and custom actions.

It automatically generates configuration properties for the Lightning web component based on the targetConfig properties defined in the metadata file. These properties allow the flow designer to customize the component's behavior and appearance in the flow screen.Reference:

Configure a Component for Flow Screens

Use Lightning Web Components in Flows

A developer needs to implement specific styling for a standard component on a single page of the B2B Commerce store using an Aura template. The component should use the default style on all other pages.

How should the developer implement the required changes over multiple instances?

A.
Use a Custom CSS file in a static resource and add the import using the Edit Head Markup Editor in the Experience Builder.
A.
Use a Custom CSS file in a static resource and add the import using the Edit Head Markup Editor in the Experience Builder.
Answers
B.
Create a Custom Content Layout Lightning web component that imports the custom CSS file. Set up the page to use this Content Layout.
B.
Create a Custom Content Layout Lightning web component that imports the custom CSS file. Set up the page to use this Content Layout.
Answers
C.
Create a Custom Theme Layout Aura component that imports the custom CSS file. Set up the page to use this Theme Layout.
C.
Create a Custom Theme Layout Aura component that imports the custom CSS file. Set up the page to use this Theme Layout.
Answers
D.
Use the Override ii a in the Experience Builder and add the desired CSS to change the styles.
D.
Use the Override ii a in the Experience Builder and add the desired CSS to change the styles.
Answers
Suggested answer: C

Explanation:

To implement specific styling for a standard component on a single page of the B2B Commerce store using an Aura template, the developer should create a custom theme layout Aura component that imports the custom CSS file. The developer should then set up the page to use this theme layout in the Experience Builder. This approach allows the developer to apply the custom CSS file only to the page that needs it, without affecting the default style of the component on other pages. The developer can also use the theme layout component to add other elements or functionality to the page, such as headers, footers, or navigation menus.Reference:

Customize Your Storefront with Aura Components

Create a Custom Theme Layout Component

A developer needs to import some new product data contained in a JSON file one time. What are two viable ways to do this?

A.
Convert the JSON to an xlsx file and use Workbench to import it
A.
Convert the JSON to an xlsx file and use Workbench to import it
Answers
B.
Run a command like: sfdx force:data:tree:import -f NewProducts.json -u <your username>
B.
Run a command like: sfdx force:data:tree:import -f NewProducts.json -u <your username>
Answers
C.
Convert the JSON to a CSV file and use Data Loader to import it
C.
Convert the JSON to a CSV file and use Data Loader to import it
Answers
D.
Run a command like: sfdx force:data:import:bulk -f NewProducts.json -u <your username>
D.
Run a command like: sfdx force:data:import:bulk -f NewProducts.json -u <your username>
Answers
Suggested answer: B, C

Explanation:

To import some new product data contained in a JSON file one time, a developer can use two viable ways:

Convert the JSON to a CSV file and use Data Loader to import it. Data Loader is a tool that allows developers to load data into Salesforce objects in bulk. Data Loader supports CSV files as the source format for the data. The developer can use a tool likeJSON to CSV Converterto convert the JSON file to a CSV file, and then use Data Loader to map the fields and import the data into the desired object1.

Run a command like: sfdx force:data:tree:import -f NewProducts.json -u <your username>. Salesforce CLI is a command-line interface that allows developers to perform various tasks on Salesforce orgs. The force:data:tree:import command can import data from a JSON file into an org. The -f flag specifies the path to the JSON file, and the -u flag specifies the username of the org.The JSON file must follow the sObject Tree format, which defines the records and their relationships in a nested structure2.Reference:3: JSON to CSV Converter4,1: Load Data with Data Loader - Trailhead5,2: Import and Export Data with the SObject Tree - Trailhead6

A developer has the task to bring some historical data into an org. The data must reside in the org, but cannot be populated in standard or custom objects. The customer is fine with developers building Ul components to surface this data on a case-by-case basis.

Which option allows a developer to meet all of these requirements?

A.
Big objects
A.
Big objects
Answers
B.
Lightning Canvas
B.
Lightning Canvas
Answers
C.
External objects
C.
External objects
Answers
D.
Lightning Out
D.
Lightning Out
Answers
Suggested answer: A

Explanation:

To bring some historical data into an org, store it in the org, and not populate it in standard or custom objects, a developer can use big objects. Big objects are a type of object that can store and manage massive amounts of data on the Salesforce platform. Big objects can handle billions of records without affecting performance or storage limits. Big objects are accessible with standard APIs, such as SOQL, Bulk API, and batch Apex.Big objects do not have a user interface by default, but developers can build custom UI components to surface the data on demand3.Reference:3: Get Started with Big Objects - Trailhead7

Northern Trail Outfitters (NTQ) has acquired a company and is looking to manage product data across the 43s org seamlessly. The company has a governance policy to not install any tool or use third-party API applications to export or import the data into Salesforce. However, users have access to Salesforce CLI.

Which set of tasks must a developer perform whento export data from Salesforce or import data into Salesforce?

A.
sfdx force:data:bulk:export -Product2 -all and sfdx force:data:bulk:Import -f Product? json -all
A.
sfdx force:data:bulk:export -Product2 -all and sfdx force:data:bulk:Import -f Product? json -all
Answers
B.
sfdx force:data:tree:export -Product?2 -all and sfdx force:data:tree:lmport -f Product2.json -all
B.
sfdx force:data:tree:export -Product?2 -all and sfdx force:data:tree:lmport -f Product2.json -all
Answers
C.
sfdx force:tree:data:export -q 'SELECT Id, Name FROM Product2' -u <your username> @ and sfdx force:tree:data:import -f Product2.json -all sfdx force:data:tree:export -q 'SELECT Id, Name FROM Product2' -u '<your username>' and sfdx force:data:tree:import -f Product2.json -u ''<your username>'
C.
sfdx force:tree:data:export -q 'SELECT Id, Name FROM Product2' -u <your username> @ and sfdx force:tree:data:import -f Product2.json -all sfdx force:data:tree:export -q 'SELECT Id, Name FROM Product2' -u '<your username>' and sfdx force:data:tree:import -f Product2.json -u ''<your username>'
Answers
Suggested answer: C

Explanation:

To export data from Salesforce or import data into Salesforce, a developer can use the following set of tasks:

sfdx force:data:tree:export -q ''SELECT Id, Name FROM Product2'' -u ''<your username>''. This task will export data from the Product2 object in JSON format using a SOQL query. The -q flag specifies the query to run, and the -u flag specifies the username of the org.The task will generate a JSON file named Product2.json that contains the exported data1.

sfdx force:data:tree:import -f Product2.json -u ''<your username>''. This task will import data into the Product2 object from the JSON file. The -f flag specifies the path to the JSON file, and the -u flag specifies the username of the org.The task will insert or update records in the Product2 object based on the data in the JSON file2.Reference:1: Export Data from an Org - Trailhead3,2: Import Data into an Org - Trailhead4

Which two technologies can subscribe to the CommerceDiagnosticEvents event?

A.
Aura Components
A.
Aura Components
Answers
B.
Processes
B.
Processes
Answers
C.
Streaming API
C.
Streaming API
Answers
D.
Lightning web components
D.
Lightning web components
Answers
Suggested answer: B, C

Explanation:

The CommerceDiagnosticEvents event is a platform event that tracks checkout, pricing, search, and other activity within a Commerce implementation to monitor events and diagnose issues.This event is available in API version 49.0 and later5. Two technologies that can subscribe to this event are Processes and Streaming API.

Processes are a declarative way to automate business processes in Salesforce. Processes can subscribe to platform events and execute actions based on the event message data.For example, a process can subscribe to the CommerceDiagnosticEvents event and send an email alert when an error occurs in a Commerce request6.

Streaming API is a programmatic way to receive notifications of changes to Salesforce data in near real-time. Streaming API can subscribe to platform events and push event messages to clients that are listening on a channel.For example, a Streaming API client can subscribe to the CommerceDiagnosticEvents event and display a dashboard of Commerce activity and performance7.Reference:5: CommerceDiagnosticEvent Object Reference - Salesforce Developers,6: Subscribe to Platform Events with Processes - Trailhead,7: Subscribe to Platform Events with Streaming API - Trailhead

Total 256 questions
Go to page: of 26