ExamGecko
Home Home / Salesforce / Certified B2B Commerce Developer

Salesforce Certified B2B Commerce Developer Practice Test - Questions Answers, Page 15

Question list
Search
Search

List of questions

Search

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.
A.
Import static resources for the text values and add them into the LWC.
Answers
B.
Use a CustomLabel xml file in the LWC to add the text values there.
B.
Use a CustomLabel xml file in the LWC to add the text values there.
Answers
C.
Create custom labels for the text values and import them in the LWC.
C.
Create custom labels for the text values and import them in the LWC.
Answers
D.
Create a custom Metadata object for the text values and query it in the LWC. Answer: C
D.
Create a custom Metadata object for the text values and query it in the LWC. Answer: C
Answers
Suggested answer: C

Explanation:

Use Custom Labels in Lightning Web Components

Custom Labels

Internationalizing Your Lightning Web Component (LWC)

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
A.
Decorate the field with @property
Answers
B.
Decorate the field with @track
B.
Decorate the field with @track
Answers
C.
Decorate the field with @public
C.
Decorate the field with @public
Answers
D.
Decorate the field with @api
D.
Decorate the field with @api
Answers
Suggested answer: D

A developer has just deployed a new Lightning web component called myNewLwcComp to an authorized org. The developer tries to find the component in the Lighting Page Builder, but it does not come up in searches. Which two steps should the developer take next?

A.
Ensure that the metadata isExposed property is set properly in source code
A.
Ensure that the metadata isExposed property is set properly in source code
Answers
B.
Redeploy the component
B.
Redeploy the component
Answers
C.
Close the browser and reopen the page
C.
Close the browser and reopen the page
Answers
D.
Ensure it has a target of lightning__FlowScreen
D.
Ensure it has a target of lightning__FlowScreen
Answers
Suggested answer: A, D

Universal Containers (UC) needs to wrap a Lightning Web Component they have created called 'lwcContainerComponent'' inside an Aura component. Which set of tags is the correct approach?

A)

B)

C)

D)

A.
Option A
A.
Option A
Answers
B.
Option B
B.
Option B
Answers
C.
Option C
C.
Option C
Answers
D.
Option D
D.
Option D
Answers
Suggested answer: C

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}
A.
{!Cart.Details.grandTotal}
Answers
B.
{ICart.Totals.grand Total}
B.
{ICart.Totals.grand Total}
Answers
C.
{ICart.Details.Fields.grandTotal}
C.
{ICart.Details.Fields.grandTotal}
Answers
D.
{!Cart.Fields.grandTotal}
D.
{!Cart.Fields.grandTotal}
Answers
Suggested answer: C

Which two blocks of code are needed to implement a custom getter in a Lightning web component?

A)

B)

C)

D)

A.
Option A
A.
Option A
Answers
B.
Option B
B.
Option B
Answers
C.
Option C
C.
Option C
Answers
D.
Option D
D.
Option D
Answers
Suggested answer: A, D

A Northern Trail Qutfitters (NTO) developer made a tile component. To expose a click event and react to user input using the markup below, what should replace <CLICK_EVENT>?

A.
tileClick()
A.
tileClick()
Answers
B.
{event:tileClick}
B.
{event:tileClick}
Answers
C.
javascript:avoid(0);tileClick();
C.
javascript:avoid(0);tileClick();
Answers
D.
{tileClick}
D.
{tileClick}
Answers
Suggested answer: A

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
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
Answers
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
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
Answers
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
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
Answers
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
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
Answers
Suggested answer: B

A developer is setting up a storefront from scratch. They need to create a storefront, push store sources, create buyer users, import products, and create and search index.

Which command allows the developer to accomplish this task?

A.
sfdx commerce:store:quickstart:create -templatename 'b2c-lite-storefront'
A.
sfdx commerce:store:quickstart:create -templatename 'b2c-lite-storefront'
Answers
B.
sfdx commerce:store:quickstart:setup ---definitionfile store-scratch-def json
B.
sfdx commerce:store:quickstart:setup ---definitionfile store-scratch-def json
Answers
C.
sfdx commerce:store:create ---store-name test-store
C.
sfdx commerce:store:create ---store-name test-store
Answers
D.
sfdx commerce:store:open ---store-name test-store Answer: B
D.
sfdx commerce:store:open ---store-name test-store Answer: B
Answers
Suggested answer: B

Explanation:

store Commands

Build a B2B and B2B2C Commerce Store

Northern Trail Outfitters (NTO) wants to be able to reference historical data in another system from the Salesforce user experience as read-only, but does not want to import the data into the org or incur storage costs. What is one product feature that could accomplish this?

A.
Big Objects
A.
Big Objects
Answers
B.
Lightning Out
B.
Lightning Out
Answers
C.
External Objects
C.
External Objects
Answers
D.
External SOQL queries in Apex code
D.
External SOQL queries in Apex code
Answers
Suggested answer: C
Total 221 questions
Go to page: of 23