ExamGecko
Home Home / Salesforce / Certified B2B Commerce Developer

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

Question list
Search
Search

List of questions

Search

Northern Trail Outfitters (NTO) has a requirement to schedule a reusable data import across multiple orgs for customer demo purposes. NTO also has a requirement to seed data of related objects---ProductCatalog, ProductCategory, Product2, and ProductCategoryProduct--- while preserving its relationships and without purchasing additional licenses or using thirdparty tools.

What is the recommended tool a developer should select to address the requirement?

A.
Dataloader.io
A.
Dataloader.io
Answers
B.
Bulk Import Using Command Line Interface
B.
Bulk Import Using Command Line Interface
Answers
C.
Commerce Product Data Import
C.
Commerce Product Data Import
Answers
D.
Data Import Wizard
D.
Data Import Wizard
Answers
Suggested answer: C

What is the purpose of connectedCallback in a Lightning web component?

A.
It performs actions when a network request is made.
A.
It performs actions when a network request is made.
Answers
B.
It perform actions when a component makes a call to a Connect APL.
B.
It perform actions when a component makes a call to a Connect APL.
Answers
C.
It performs actions when a component is removed from the DOM.
C.
It performs actions when a component is removed from the DOM.
Answers
D.
It performs actions when a component is added to the DOM.
D.
It performs actions when a component is added to the DOM.
Answers
Suggested answer: D

Which technique can be used with Lightning web components to expose them outside of an org in another web container?

A.
Slot elements
A.
Slot elements
Answers
B.
Heroku
B.
Heroku
Answers
C.
Lightning Out
C.
Lightning Out
Answers
D.
Lightning Canvas According to theLightning
D.
Lightning Canvas According to theLightning
Answers
Suggested answer: C

A developer needs to make a call to a long running web service which is critical to finalizing their checkout process. Which three items should the developer consider in their implementation?

A.
A new CORS entry may need to be created in Setup
A.
A new CORS entry may need to be created in Setup
Answers
B.
A new Named Credential may need to be created in Setup
B.
A new Named Credential may need to be created in Setup
Answers
C.
An Apex method returning a Continuation will need to be created
C.
An Apex method returning a Continuation will need to be created
Answers
D.
Requests to the service should be brokered to prevent limit exceptions
D.
Requests to the service should be brokered to prevent limit exceptions
Answers
E.
A new Remote Site may need to be created in Setup
E.
A new Remote Site may need to be created in Setup
Answers
Suggested answer: A, B, C

Which Lightning web component path allows a developer to view or edit a record while maintaining control over specifying its layout and set of fields?

A.
lightning-record-edit-form
A.
lightning-record-edit-form
Answers
B.
lightning-record-imperative
B.
lightning-record-imperative
Answers
C.
lightning-record-view-form
C.
lightning-record-view-form
Answers
D.
lightning-record-form
D.
lightning-record-form
Answers
Suggested answer: A

A developer has created a custom Lightning web component for the Cart page that needs to react to changes to cart items from the standard cart component.

How should the developer implement the custom component so changes to cart items and quantities are reflected?

A.
Subscribe to events on the lightning_commerce_cartChanged channel using the Lightning Message Service.
A.
Subscribe to events on the lightning_commerce_cartChanged channel using the Lightning Message Service.
Answers
B.
Add a listener for the cartltemUpdate Lightning event.
B.
Add a listener for the cartltemUpdate Lightning event.
Answers
C.
Listen for events on the lightning_commerce_cartChanged channel with the Lightning Event ''Listener component.
C.
Listen for events on the lightning_commerce_cartChanged channel with the Lightning Event ''Listener component.
Answers
D.
Add an event listener for the cartchanged DOM (Document Object Model) event.
D.
Add an event listener for the cartchanged DOM (Document Object Model) event.
Answers
Suggested answer: A

Which two methods should a developer implement in a Lightning web component to successfully handle the subscription lifecycle of a Message Channel?

A.
Subscribe()
A.
Subscribe()
Answers
B.
stopListener()
B.
stopListener()
Answers
C.
startListener()
C.
startListener()
Answers
D.
unsubscribe() Answer: A, D
D.
unsubscribe() Answer: A, D
Answers
Suggested answer: A, D

Explanation:

Subscribe and Unsubscribe from a Message Channel

Lifecycle Hooks

Use message channel in both direction

Which practice is allowed when it comes to naming a Lightning web component's folder and associated files?

A.
Including whitespace
A.
Including whitespace
Answers
B.
Using a single underscore
B.
Using a single underscore
Answers
C.
Using consecutive underscores
C.
Using consecutive underscores
Answers
D.
Using a single hyphen (dash)
D.
Using a single hyphen (dash)
Answers
Suggested answer: D

Which element can be used to pass HTML from a parent component to a child component? 03m 19s

A.
<html></html>
A.
<html></html>
Answers
B.
<template></template>
B.
<template></template>
Answers
C.
C.
Answers
D.
<slot></slot>
D.
<slot></slot>
Answers
Suggested answer: D

A developer is building a custom component in Lightning web components (LWC) that has a grandchild component that needs to pass information to the grandparent component. What is the correct way to demonstrate the passing of a message from the grandchild component to the grandparent 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: B
Total 221 questions
Go to page: of 23