ExamGecko
Home Home / Salesforce / Certified B2B Commerce Developer

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

Question list
Search
Search

What are two purposes of the Shadow DOM in a Lightning web component?

A.
It encapsulates the internal document object model (DOM) structure of a web component
A.
It encapsulates the internal document object model (DOM) structure of a web component
Answers
B.
It allow components to be shared while protecting them from being manipulated by arbitrary code
B.
It allow components to be shared while protecting them from being manipulated by arbitrary code
Answers
C.
It allows direct access to the document object model of the component
C.
It allows direct access to the document object model of the component
Answers
D.
It allows older JavaScript libraries to manipulate the tagging structure According to theLightning
D.
It allows older JavaScript libraries to manipulate the tagging structure According to theLightning
Answers
Suggested answer: A, B

Which tool should a developer use to author automated tests for custom Lightning web components?

A.
Visual Studio Code
A.
Visual Studio Code
Answers
B.
Salesforce CLI
B.
Salesforce CLI
Answers
C.
Jest
C.
Jest
Answers
D.
Salesforce Developer Console
D.
Salesforce Developer Console
Answers
Suggested answer: C

Which option is the correct syntax to render a property in a Lightning web component template?

A.
Surround the property with curly braces: {property}
A.
Surround the property with curly braces: {property}
Answers
B.
Surround the property with brackets: [property]
B.
Surround the property with brackets: [property]
Answers
C.
Surround the property with an exclamation point and curly braces: {property}
C.
Surround the property with an exclamation point and curly braces: {property}
Answers
D.
Surround the property with curly braces and exclamation point: {{property}
D.
Surround the property with curly braces and exclamation point: {{property}
Answers
Suggested answer: A

What is the fastest route to establishing the data needed for checkout development when setting up a new Store?

A.
Import a previously exported store archive
A.
Import a previously exported store archive
Answers
B.
Use sfdx setup scripts
B.
Use sfdx setup scripts
Answers
C.
Select Add Sample Data when setting up the store
C.
Select Add Sample Data when setting up the store
Answers
D.
Import the data with data loader
D.
Import the data with data loader
Answers
Suggested answer: B

What tool can a developer use to investigate errors during development?

A.
Commerce Diagnostics Event Logging
A.
Commerce Diagnostics Event Logging
Answers
B.
Checkout Flow Log
B.
Checkout Flow Log
Answers
C.
Support cases
C.
Support cases
Answers
D.
Browser dev tools Answer: D
D.
Browser dev tools Answer: D
Answers
Suggested answer: D

Explanation:

Browser Dev Tools

Debug Your Lightning Web Components

Commerce Diagnostics Event Logging

[Checkout Flow Log]

A developer is working on a storefront that needs to use a sophisticated pricing engine hosted as a service outside the org. Assuming security and trusts have been established, which two actions must the developer take?

A.
Make a call to the service
A.
Make a call to the service
Answers
B.
Use External Ohjects
B.
Use External Ohjects
Answers
C.
Implement the sfdc_checkout.PriceCalculations
C.
Implement the sfdc_checkout.PriceCalculations
Answers
D.
Implement the sfdc_checkout.CartPriceCalculations
D.
Implement the sfdc_checkout.CartPriceCalculations
Answers
Suggested answer: A, C

What are two ways a developer should ensure that a store verifies changes by using an external service?

A.
Create a flow using an action to retrieve shipping charges from an external service and update the Cart Delivery Group Methods.
A.
Create a flow using an action to retrieve shipping charges from an external service and update the Cart Delivery Group Methods.
Answers
B.
Create an Apex class implementing the sfdc_checkout.CartShippingCharges interface to retrieve shipping charges from an external service and register it as the .. calculation integration in the store administration.
B.
Create an Apex class implementing the sfdc_checkout.CartShippingCharges interface to retrieve shipping charges from an external service and register it as the .. calculation integration in the store administration.
Answers
C.
Create an Apex class to retrieve shipping charges from an external service and update the Cart Delivery Group Method.
C.
Create an Apex class to retrieve shipping charges from an external service and update the Cart Delivery Group Method.
Answers
D.
Create a trigger to retrieve shipping charges from an external service and update the Cart Delivery, Group Methods
D.
Create a trigger to retrieve shipping charges from an external service and update the Cart Delivery, Group Methods
Answers
Suggested answer: B, C

A developer is debugging a flow and needs to watch all the variables changing as the checkout process is executed, but nothing is displaying. Which two features did the developer forget to enable?

A.
Set up a debug tog to show the details of what is executed
A.
Set up a debug tog to show the details of what is executed
Answers
B.
Show the details of what is executed and render flow in Lightning Runtime
B.
Show the details of what is executed and render flow in Lightning Runtime
Answers
C.
Run the latest version of each flow called by subtle w elements
C.
Run the latest version of each flow called by subtle w elements
Answers
D.
Show the details of what is executed and render flow in Lightning Experience.
D.
Show the details of what is executed and render flow in Lightning Experience.
Answers
Suggested answer: B, D

Which two log levels does a developer need to include to debug platform events?

A.
Apex Code
A.
Apex Code
Answers
B.
Database
B.
Database
Answers
C.
Callout
C.
Callout
Answers
D.
Workflow According to thePlatform
D.
Workflow According to thePlatform
Answers
Suggested answer: A, D

A developer has written the logic to import products from an enterprise resource pi products are in Salesforce, but they are not visible in the store.

What did the developer forget to assign to the imported products?

A.
Entitlement policy
A.
Entitlement policy
Answers
B.
Storefront
B.
Storefront
Answers
C.
Account
C.
Account
Answers
D.
Promotion
D.
Promotion
Answers
Suggested answer: B
Total 221 questions
Go to page: of 23