exam questions

Exam PL-400 All Questions

View all questions & answers for the PL-400 exam

Exam PL-400 topic 7 question 18 discussion

Actual exam question from Microsoft's PL-400
Question #: 18
Topic #: 7
[All PL-400 Questions]

HOTSPOT -
You need to package and deploy a Power Apps code component to an environment.
Which commands should you use? To answer, select the appropriate options in the answer area.
NOTE: Each correct selection is worth one point.
Hot Area:

Show Suggested Answer Hide Answer
Suggested Answer:
Box 1: pac solution init --publisher-name
Create a new solutions project using the following command. The solution project is used for bundling the code component into a solution zip file that is used for importing into Dataverse. pac solution init --publisher-name developer --publisher-prefix de

Box 2: pac auth create -
Connecting to your environment.
Auth commands are used to authenticate to Dataverse.
Creates the authentication profile for your organization by passing the url parameter. Shows AAD dialog if sign in credentials are not specified.
Example: pac auth create --url https://Myorg.crm.dynamics.com
Box 3: pac pcf push --publisher-prefix

Deploying code components -
After you have successfully created an authentication profile, you can start pushing the code components to the Dataverse instance with all the latest changes.
The push capability speeds up the inner-developer cycle development because it bypasses the code component versioning requirements and does not require that you build your solution (cdsproj) to import the code component.
To use the push capability, do the following:
1. Ensure that you have a valid authentication profile created.
2. Navigate to the directory where the sample component file is located.
3. Run the command.
pac pcf push --publisher-prefix <your publisher prefix>
Incorrect:
Commands for working with Dataverse solution projects include:

Parameter init -
Initializes the solution project. It has the following parameters: publisher-name: Publisher name of the organization. publisher-prefix: Publisher prefix of the organization.
Reference:
https://docs.microsoft.com/en-us/power-apps/developer/component-framework/import-custom-controls

Comments

Chosen Answer:
This is a voting comment (?). It is better to Upvote an existing comment if you don't have anything to add.
Switch to a voting comment New
justin_s
Highly Voted 1 year, 9 months ago
About package, IMO, it is pac solution add-reference. pac solution init -> create a empty project and it does not contain any pcf component yet. pac solution add-reference -> add the pac component to the project, means Package, I think...
upvoted 8 times
Net_IT
1 year, 2 months ago
The answer given by exam topics for the first question is correct. Read https://learn.microsoft.com/en-us/power-apps/developer/component-framework/import-custom-controls
upvoted 1 times
uberlord
1 year, 1 month ago
wrong, your link says that creates the solution, they still then have to add the reference, no where does the question say that you have to create a solution as well. add ref for the first answer
upvoted 2 times
...
...
...
hai297
Highly Voted 6 months, 2 weeks ago
IMO - Add Reference (The action is Package, not Create, so I don't think the Init empty solution is correct) - Auth - Push
upvoted 5 times
loftuscheek
1 month, 3 weeks ago
this is correct
upvoted 1 times
Juan0414
1 month, 2 weeks ago
It is not, first step of the "Package a code component" documentation is pac solution init https://learn.microsoft.com/en-us/power-apps/developer/component-framework/import-custom-controls
upvoted 1 times
Juan0414
1 month, 2 weeks ago
second* first would be to create the project folder
upvoted 1 times
...
...
...
...
itmaxuser
Most Recent 4 days, 8 hours ago
pac solution init: This command initializes a new solution. You provide the publisher name and publisher prefix. pac solution init --publisher-name Contoso --publisher-prefix cto pac auth create: This command is used to authenticate and create an environment connection. pac auth create --url https://contoso.crm.dynamics.com pac pcf push: This command is used to push the Power Apps component to the environment. pac pcf push --publisher-prefix pac solution add-reference: This command adds a reference to the component in the solution. pac solution add-reference --path c:\downloads\mysamplecomponent
upvoted 1 times
...
Juan0414
1 month, 2 weeks ago
Answers are correct: pac solution init pac auth create pac pcf push See docs: https://learn.microsoft.com/en-us/power-apps/developer/component-framework/import-custom-controls
upvoted 1 times
...
At09
1 year ago
Solution Init Auth Push Publisher
upvoted 1 times
...
RexinCP
1 year, 10 months ago
Correct
upvoted 3 times
...
Community vote distribution
A (35%)
C (25%)
B (20%)
Other
Most Voted
A voting comment increases the vote count for the chosen answer by one.

Upvoting a comment with a selected answer will also increase the vote count towards that answer by one. So if you see a comment that you already agree with, you can upvote it instead of posting a new comment.

SaveCancel
Loading ...
exam
Someone Bought Contributor Access for:
SY0-701
London, 1 minute ago