exam questions

Exam MB-400 All Questions

View all questions & answers for the MB-400 exam

Exam MB-400 topic 3 question 2 discussion

Actual exam question from Microsoft's MB-400
Question #: 2
Topic #: 3
[All MB-400 Questions]

DRAG DROP -
A company uses Common Data Service (CDS) and manages their engineers using a model-driven app.
You create a new reusable custom component using the PowerApps component framework (PCF).
You need to package the custom component to be deployed into the model-driven app.
Which three commands should you run in sequence? To answer, move the appropriate actions from the list of actions to the answer area and arrange them in the correct order.
Select and Place:

Show Suggested Answer Hide Answer
Suggested Answer:
Step 1: npm install -

Install Npm -
Step 2: pac pcf init ..
Commands for working with Power Apps component framework. It has the following parameters:
✑ init: Initializes the code component project. It has the following parameters
✑ namespace: Namespace of the code component.
✑ name: Name of the code component.
✑ template: Field or dataset
Step 3: pac solution add-reference
Commands for working with Common Data Service solution projects. It has the following parameters: add-References:
Sets the reference path to the component project folder by passing the path parameter.
Syntax: pac solution add-reference --path <path to your Power Apps component framework project>
Incorrect Answers:
pac solution init ..
Commands for working with Common Data Service solution projects. We are working with a PowerApps component framework project though.
Reference:
https://docs.microsoft.com/en-us/powerapps/developer/common-data-service/powerapps-cli

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
ivan_m
Highly Voted 4 years, 10 months ago
1. pac solution init --publisher-name <publisher> --publisher-prefix <prefix> 2. pac solution add-reference --path <control path> 3. msbuild /t:build /restore
upvoted 54 times
sanharshu7
4 years, 10 months ago
Sorry, this is correct as need to deploy the control....
upvoted 1 times
...
Chrissi
4 years, 6 months ago
I agree with this answer. You need to pack the solution, add it and build the solution via msbuild.
upvoted 1 times
...
...
Ash1986
Highly Voted 4 years, 11 months ago
Wrong Answer: https://docs.microsoft.com/en-us/powerapps/developer/component-framework/import-custom-controls
upvoted 14 times
...
raj9947
Most Recent 4 years, 4 months ago
In exam
upvoted 1 times
...
wwaki
4 years, 4 months ago
https://docs.microsoft.com/en-us/powerapps/developer/component-framework/use-sample-components regarding to above: 1. pac solution init --publisher-name <publisher> --publisher-prefix <prefix> 2. pac solution add-reference --path <control path> 3. msbuild /t:build /restore
upvoted 1 times
...
jkaur
4 years, 4 months ago
step 6,5,2
upvoted 1 times
...
DeltaFront
4 years, 6 months ago
- pac solution init --publisher-name developer --publisher-prefix dev - pac solution add-reference --path c:\downloads\mysamplecomponent - msbuild /t:build /restore
upvoted 1 times
...
RominaT
4 years, 7 months ago
The question says “YOU NEED TO PACKAGE”: https://docs.microsoft.com/en-us/powerapps/developer/component-framework/implementing-controls-using-typescript#packaging-your-code-components pac solution init --publisher-name developer --publisher-prefix dev pac solution add-reference --path c:\users\LinearComponent msbuild /t:restore https://docs.microsoft.com/en-us/powerapps/developer/component-framework/import-custom-controls pac solution init --publisher-name developer --publisher-prefix dev pac solution add-reference --path c:\downloads\mysamplecomponent msbuild /t:build /restore
upvoted 6 times
...
Sherif_Sobhy
4 years, 10 months ago
1-pac solution init --publisher-name <publisher name> --publisher-prefix <prefix> 2-pac solution add-reference --path "Project Path" 3- msbuild /t:restore
upvoted 14 times
...
SvtPA
4 years, 10 months ago
you should order ALL the items: 1. pac pcf init -namespace<namespace> --name <control name> --template field 2. npm install 3. npm run build 4. npm start 5. pac solution init --publisher-name- <publisher name> --publisher-prefix <publisher prefix> 6. pac solution add-reference --path <control path> 7. msbuild /t.build /restore
upvoted 7 times
RoelG
4 years, 10 months ago
No, check this link: https://docs.microsoft.com/en-us/powerapps/developer/component-framework/import-custom-controls
upvoted 4 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