ExamGecko
Question list
Search
Search

Question 2 - Certified B2B Commerce Developer discussion

Report
Export

A developer has the task to create custom Lightning web components (LWCs). Which two steps must a developer take when creating custom LWCs?

A.
Create an Apex class.
Answers
A.
Create an Apex class.
B.
Authorize an org for an SFDX project.
Answers
B.
Authorize an org for an SFDX project.
C.
CloneaLWC.
Answers
C.
CloneaLWC.
D.
Deploy a custom component.
Answers
D.
Deploy a custom component.
Suggested answer: B, D

Explanation:

To create custom Lightning web components (LWCs), a developer must take two steps: authorize an org for an SFDX project and deploy a custom component. Authorizing an org for an SFDX project allows the developer to connect to a Salesforce org, such as a scratch org, a sandbox, or a production org, and use it as a development environment. Deploying a custom component allows the developer to push the LWC code from the local project to the org and make it available for use. Creating an Apex class is not a required step for creating custom LWCs, as not all LWCs need to use Apex. Cloning an LWC is not a required step either, as it is an optional way to create a new LWC based on an existing one. Salesforce

Reference:Lightning Web Components Developer Guide: Authorize an Org for Development,Lightning Web Components Developer Guide: Deploy Your Component

asked 23/09/2024
Bas Vogel
41 questions
User
Your answer:
0 comments
Sorted by

Leave a comment first