A developer is creating a component to implement a custom Terms and Conditions checkbox at checkout in the Aura Commerce template. Which method should the developer implement on the Lightning web component to ensure the user accepts the terms and conditions?
AValidate
BCheckValidity
CSaveCheckout
DComponentValidity
0
Question 2
Checkout Flow Development
0
Question 3
Basic Lightning Web Component Development
0
Question 4
Basic Lightning Web Component Development
0
Question 5
Storefront Customization
0
That's the end of the Preview
This exam has 60 community-verified practice questions. Create a free account to access all questions, comments, and explanations.
Topics covered:
Checkout Flow DevelopmentReference ImplementationsBasic Lightning Web Component DevelopmentStorefront CustomizationCommerce Data Model and APIsGeneral Commerce Developer Concepts
What are two ways a developer should modify the out-of-the-box checkout flow template? (Choose two.)
ADownload the Commerce Flow Example package from AppExchange and use it to modify the checkout flow template.
BClone the checkout flow template in Setup and ensure the context of how the flow is running is correct.
CNavigate to the store administration to modify the checkout flow template.
DAccess the checkout page within Experience Builder to modify the checkout flow template using Flow Builder.
Which two methods from the platformResourceLoader module are relevant for including third party JavaScript and CSS in a Lightning web component? (Choose two.)
AloadCss
BloadStyle
CloadClientScript
DloadScript
Which technique can be used with Lightning web components to expose them outside of an org in another web container?
AHeroku
BLightning Out
CSlot elements
DLightning Canvas
A developer has made some changes to the products of an existing storefront, but they are unable to see the changes in the products from the store. Which action did the developer forget to take?
ARebuild the search index
BActivate the product list
CPublish the storefront
DPublish the catalog
Question 6
Commerce Data Model and APIs
0
Question 7
Basic Lightning Web Component Development
Question 8
Storefront Customization
Question 9
Basic Lightning Web Component Development
Question 10
Basic Lightning Web Component Development
Question 11
Basic Lightning Web Component Development
Question 12
Commerce Data Model and APIs
Question 13
Storefront Customization
Question 14
Storefront Customization
Question 15
Basic Lightning Web Component Development
Question 16
Checkout Flow Development
Question 17
Basic Lightning Web Component Development
Question 18
Basic Lightning Web Component Development
Question 19
Storefront Customization
Question 20
Basic Lightning Web Component Development
Question 21
General Commerce Developer Concepts
Question 22
Checkout Flow Development
Question 23
Checkout Flow Development
Question 24
Basic Lightning Web Component Development
Ask AstroTutor
0
Ask AstroTutor
0
Ask AstroTutor
0
Ask AstroTutor
0
Ask AstroTutor
0
Ask AstroTutor
0
Ask AstroTutor
0
Ad
Want a break from the ads?
Become a Supporter and enjoy a completely ad-free experience, plus unlock Learn Mode, Exam Mode, AstroTutor AI, and more.
Ask AstroTutor
0
Ask AstroTutor
0
Ask AstroTutor
0
Ask AstroTutor
0
Ask AstroTutor
0
Ask AstroTutor
0
Ask AstroTutor
0
Ask AstroTutor
0
Ask AstroTutor
0
Ask AstroTutor
0
Ask AstroTutor
0
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?
ACreate 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
BInstall 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
CSet 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
DSet 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
Which wire adapter should a developer use to retrieve metadata about a specific picklist?
AgetPicklistValues
BgetPicklistMetadataValues
CgetPicklistMetadata
DgetPicklist
A developer has deployed a new Lightning web component for a B2B storefront. What must the developer do to display the custom component?
AName the component on the page
BGo to Setup and activate the component
CAssign a custom theme layout to the page in Experience Builder
DEdit the page and drag the new component onto the page
Which wire adapter should a developer use to retrieve metadata about a specific object?
AgetObject
BgetObjectDescribe
CgetObjectMetadata
DgetObjectInfo
Which two items are required for a developer to bring picklist values into a Lightning web component? (Choose two.)
Aimport { getPicklistValues } from ‘lightning/uiObjectInfoApi’;
Bimport { LightningElement, wire } from ‘lwc’;
Cimport { picklistValues } from ‘lightning/uiObjectInfoApi’;
Dimport { wire } from ‘lwc’;
Which two guidelines should a developer consider when migrating aura components to LWC? (Choose two.)
AMigrate one component and then determine whether additional effort would make sense
BStart with simple components that only render UI
CStart with migrating trees of components (components within components)
DForce all developers to write any new components using Lightning web components
A company manages product availability in its enterprise resource planning (ERP) system. To manage product visibility, an integration between the ERP and Salesforce has been created to manage entitlement policies. One of the products is no longer available for a particular customer. What should happen with the product entitlement to make sure this customer no longer sees the product on the portal?
AThe developer deletes the product entitlement through integration
BThe developer updates the product entitlement status to Inactive through integration
CThe developer disables the product entitlement manually in Salesforce
DThe developer disables the product entitlement through integration
A developer is working in Visual Studio Code on a previously deployed project which is rather large and deployments are time consuming. The developer wants to deploy some small CSS changes without waiting for the entire project deployment. What are two ways this can be accomplished? (Choose two.)
ARight-click the CSS file and choose Deploy Source to Org
BRight-click the folder for the component and choose Deploy Source to Org
CDeploy the entire project. Only the change will be copied
DClick the Tools menu and select Deploy styles
ERight-click the CSS file that was edited and select Deploy Single File
Northern Trail Outfitters (NTO) has a B2B Commerce store for its resellers.
It has received many customer service calls involving questions about the delivery date of customer orders. How should a developer expose delivery time estimates to NTO’s customers in the storefront to reduce call volume?
AAdd a Desired Delivery Date input field during the checkout flow
BAdd the Expected Delivery Date field to the order confirmation email
CDisplay the Expected Delivery Date on the order page with a Lightning web component
DConfigure an email alert to the customer when the Expected Delivery Date changes
Which two event settings are required for a custom event called CustomEvent to fire from the Lightning web component and propagate up to the DOM? (Choose two.)
Acomposed: true
Bcomposed: false
Ccancelable: true
Dbubbles: true
What two things happen with the Cart during tax implementation? (Choose two.)
ANew entries are written to the Cart
BPrevious entries are deleted from the Cart
CPrevious entries are copied to another object
DNew entries are written to the Order Summary
Which two scoped modules should a developer import in Lightning web components to check user permissions? (Choose two.)
A@salesforce/permission
B@salesforce/customPermission
C@salesforce/hasPermission
D@salesforce/userPermission
Which practice is allowed when it comes to naming a Lightning web component’s folder and associated files?
AUsing consecutive underscores
BUsing a single hyphen (dash)
CUsing a single underscore
DIncluding whitespace
A company has a complex product set. To ensure customers can easily find the product they need, a developer needs to create product filters in the catalog. The company has customers from around the world and needs to serve them in their local language. Which two steps must a developer take to manage translation for these filters? (Choose two.)
ATranslate filters and filter values using product data translations
BPerform translations using the translation Workbench
CIntegrate filters through the Product Specs object
DCreate filters as predefined picklist or checkbox fields on the product
What should a developer do to expose a public property in a Lightning web component?
ADecorate the field with @api
BDecorate the field with @public
CDecorate the field with @property
DDecorate the field with @track
A developer needs to import some new product data contained in a JSON file one time. What are two viable ways to do this? (Choose two.)
ARun a command like: sfdx force:data:tree:import -fNewProducts.json -u <your username>
CConvert the JSON to an xlsx file and use Workbench to import it
DConvert the JSON to a CSV file and use Data Loader to import it
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 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? (Choose two.)
ARun the latest version of each flow called by subflow elements
BSet up a debug log to show the details of what is executed
CShow the details of what is executed and render flow in Lightning Runtime
DShow the details of what is executed and render flow in Lightning Experience
Which of these is a key pattern leveraged when building Lightning web components?