ExamGecko
Question list
Search
Search

List of questions

Search

Question 186 - Certified B2B Commerce Administrator discussion

Report
Export

An administrator has just provided a developer with a new org and username. Which two 07m 32s sets of steps can the developer use to authorize the org and begin deploying Lightning web components?

A.
Run the command 'sfdx force:auth:web:login -a 'https://login.salesforce.com'' and then supply the credentials in the browser when it opens.
Answers
A.
Run the command 'sfdx force:auth:web:login -a 'https://login.salesforce.com'' and then supply the credentials in the browser when it opens.
B.
Open Visual Studio Code, Create a project and Authorize the org using the command 'SFDX: Create Project and Authorize'' in the Command Palette
Answers
B.
Open Visual Studio Code, Create a project and Authorize the org using the command 'SFDX: Create Project and Authorize'' in the Command Palette
C.
Run the command: 'sfdx force:auth:web:login -r 'https:/login.salesforce.com and then supply the credentials in the browser when it opens
Answers
C.
Run the command: 'sfdx force:auth:web:login -r 'https:/login.salesforce.com and then supply the credentials in the browser when it opens
D.
Open Visual Studio Code, Create a project using 'SFDX: Create a Project'' and then 'SFDX: Authorize an Org'' from the Command Palette
Answers
D.
Open Visual Studio Code, Create a project using 'SFDX: Create a Project'' and then 'SFDX: Authorize an Org'' from the Command Palette
Suggested answer: C, D

Explanation:

To authorize an org and begin deploying Lightning web components, the developer can use either of these two sets of steps:

Run the command: 'sfdx force:auth:web:login -r ''https://login.salesforce.com'' and then supply the credentials in the browser when it opens. This command opens a browser window and prompts the developer to log in to the org. The -r flag specifies the login URL for the org, which can be changed to https://test.salesforce.com for a sandbox or scratch org.The developer can also use the -a flag to set an alias for the org, which makes it easier to identify and reference later1.

Open Visual Studio Code, Create a project using ''SFDX: Create a Project'' and then ''SFDX: Authorize an Org'' from the Command Palette. This option allows the developer to use the Visual Studio Code interface to create a new project and authorize an org. The developer can access the Command Palette by pressing Ctrl+Shift+P (Windows) or Cmd+Shift+P (Mac), and then typing or selecting the commands. The developer can choose the project template, name, and folder location, and then select the login URL for the org.A browser window will open and prompt the developer to log in to the org2.

The other options are not valid ways to authorize an org and begin deploying Lightning web components. Running the command 'sfdx force:auth:web:login -a ''https://login.salesforce.com'' will result in an error, as the -a flag is used for setting an alias, not a login URL. Creating a project and authorizing an org using the command ''SFDX: Create Project and Authorize'' in the Command Palette is not possible, as there is no such command available in Visual Studio Code.Reference:Authorize an Org Using a Browser,Create a Project

asked 23/09/2024
Marcel Bertz
31 questions
User
Your answer:
0 comments
Sorted by

Leave a comment first