exam questions

Exam PL-400 All Questions

View all questions & answers for the PL-400 exam

Exam PL-400 topic 3 question 34 discussion

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

You are developing a model-driven app for a company that sells sporting goods. You add a button to a page that displays information for a product.

The button must copy information for the selected product and create a record in the data source. You add the following code to the button. (Line numbers are included for reference only.)



You need to complete the code.

Which function should you insert at line 01?

  • A. UpdateContext(
  • B. IsMatch(
  • C. LoadData(
  • D. Patch(
  • E. SaveData(
Show Suggested Answer Hide Answer
Suggested Answer: D 🗳️

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
hikmatune
Highly Voted 2 years, 3 months ago
Selected Answer: D
patch is correct
upvoted 10 times
ryanzombie
8 months, 1 week ago
Agreed - UpdateContext applies only to Canvas Apps.
upvoted 1 times
...
...
Juan0414
Most Recent 1 month, 3 weeks ago
Selected Answer: D
https://learn.microsoft.com/en-us/power-platform/power-fx/reference/function-patch#overview
upvoted 1 times
...
ryanzombie
8 months, 1 week ago
Selected Answer: D
UpdateContext ONLY applies to Canvas Apps [1] The question says "model-driven", so Patch is correct here, since it's the only one of the two that works with model-driven apps. [2] [1] https://learn.microsoft.com/en-us/power-platform/power-fx/reference/function-updatecontext [2] https://learn.microsoft.com/en-us/power-platform/power-fx/reference/function-patch
upvoted 1 times
...
markjr
1 year, 4 months ago
Selected Answer: A
Correct - since the question says "model-driven" the only correct answer is UpdateContext. UpdateContext( { Person: { Name: "Milton", Address: "1 Main St" } } ) Creates or modifies the context variable Person, setting its value to a record. The record contains two columns, named Name and Address. The value of the Name column is Milton, and the value of the Address column is 1 Main St. Person has the value of record { Name: "Milton", Address: "1 Main St" } }. Reference this record as a whole with the name Person, or reference an individual column of this record with Person.Name or Person.Address. If the question said canvas app then Patch would be the answer.
upvoted 1 times
ryanzombie
8 months, 1 week ago
UpdateContext ONLY applies to Canvas Apps [1] The question says "model-driven", so Patch is correct here, since it's the only one of the two that works with model-driven apps. [2] [1] https://learn.microsoft.com/en-us/power-platform/power-fx/reference/function-updatecontext [2] https://learn.microsoft.com/en-us/power-platform/power-fx/reference/function-patch
upvoted 1 times
...
...
NNNT
1 year, 5 months ago
The correct answer is D. Patch(
upvoted 1 times
...
Net_IT
1 year, 6 months ago
Shouldn't it be a Canvas App in order to use the Patch()?
upvoted 2 times
...
RSITS
1 year, 7 months ago
Selected Answer: D
D The proposed sintax does not match with UpdateContext
upvoted 1 times
...
MikeAWS
1 year, 8 months ago
To copy information for the selected product and create a record in the data source in a model-driven app, you should use the Patch function. The Patch function is commonly used in Power Apps to modify or create records in a data source.
upvoted 1 times
...
jkaur
1 year, 8 months ago
D should be
upvoted 1 times
...
stalee
1 year, 9 months ago
The answer is correct, but the app should be Canvas App, not Model-driven.
upvoted 2 times
...
mattiabergo
2 years ago
except that we are talking about model driven apps here and I don't think these functions apply to this type of app, but still the correct function to create or update a record is Patch
upvoted 2 times
...
DimpleG
2 years, 3 months ago
Selected Answer: D
https://learn.microsoft.com/en-us/power-platform/power-fx/reference/function-patch
upvoted 3 times
...
kotaro05
2 years, 3 months ago
Selected Answer: D
Patch function should be the correct answer
upvoted 3 times
...
SRasheed
2 years, 3 months ago
It should be Patch function
upvoted 4 times
Hiema87
2 years, 3 months ago
https://learn.microsoft.com/en-us/power-platform/power-fx/reference/function-patch
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