exam questions

Exam PL-400 All Questions

View all questions & answers for the PL-400 exam

Exam PL-400 topic 4 question 20 discussion

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

A company uses Microsoft Dataverse rollup fields to calculate insurance exposure and risk profiles for customers.
Users report that the system does not update values for the rollup fields when new insurance policies are written.
You need to recalculate the value of the rollup fields immediately after a policy is created.
What should you do?

  • A. Create new fields on the customer entity for insurance exposure and risk. Write a workflow process that is triggered when a new policy record is created to calculate the sum of values from policy records.
  • B. Update the Mass Calculate Rollup Field job to trigger when a new policy record is created.
  • C. Create a plug-in that uses the update method for the rollup fields. Configure a step on the Create event for the policy entity for this plug-in.
  • D. Create a plug-in that uses the CalculateRollupFieldRequest method for the rollup field. Configure a step on the Create event for the policy entity for this plug-in.
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
DimpleG
Highly Voted 1 year, 4 months ago
Selected Answer: D
D. Create a plug-in that uses the CalculateRollupFieldRequest method for the rollup field. Configure a step on the Create event for the policy entity for this plug-in. Option A is not correct because it would require additional fields and workflows which would make the solution complex. Option B is not correct because Mass Calculate Rollup Field job runs periodically and it wouldn't update immediately after the policy is created. Option C is not correct because the update method is used to update the values of an existing record and it wouldn't recalculate the value of the rollup field.
upvoted 9 times
...
Juan0414
Most Recent 3 months, 1 week ago
Selected Answer: D
Correct!
upvoted 1 times
...
At09
8 months, 2 weeks ago
Answer is D
upvoted 2 times
...
HasanAamir11
9 months, 1 week ago
Selected Answer: D
D is correct
upvoted 2 times
...
MikeAWS
9 months, 2 weeks ago
D is correct answer! By following this approach, you're directly controlling the recalculation process of the rollup fields using a custom plugin that's triggered immediately upon the creation of a policy record. This ensures that the rollup fields for insurance exposure and risk profiles are accurately calculated and updated for customers as soon as new policies are written. B is NOT correct. In Microsoft Dataverse, the "Mass Calculate Rollup Field" job is meant to PERIODICALLY recalculate the values of rollup fields for existing records, and it's not designed to be triggered by the creation of new records.
upvoted 1 times
...
jkaur
10 months ago
D should be
upvoted 1 times
...
AndreiAndreiG
11 months, 3 weeks ago
Selected Answer: D
D imo. B is not correct -> Mass Calculate Rollup Field job runs periodically once every 12 h, and NOT immediately.
upvoted 1 times
...
PGG
1 year, 7 months ago
Selected Answer: D
D should be it. B is wrong because you are calling to mass calculate that is a scheudeled process to update every roll up field. C could be but D is more precise as tell you the method to be used.
upvoted 2 times
...
BeginLearningforPP
1 year, 8 months ago
Selected Answer: D
Correct Answer D
upvoted 1 times
...
MarioM
1 year, 8 months ago
Selected Answer: D
definitelly D
upvoted 3 times
...
Kunterbunt
1 year, 9 months ago
Selected Answer: D
I agree with Northstar and have built a plugin once to achieve synchronous recalculation of the parents rollup whenever a child was created.
upvoted 1 times
...
northstar88
1 year, 9 months ago
Should be D Rollup fields are read-only, you cannot update them using update request in plugin. https://docs.microsoft.com/en-us/dynamics365/customerengagement/on-premises/developer/calculated-rollup-attributes?view=op-9-1#common-elements-and-characteristics:~:text=characteristics%2C%20for%20example%3A-,They%E2%80%99re%20read%2Donly.,-They%E2%80%99re%20not%20specific However you can trigger the rollup calculation by using the CalculateRollUpFieldRequest https://docs.microsoft.com/en-us/dotnet/api/microsoft.crm.sdk.messages.calculaterollupfieldrequest?view=dataverse-sdk-latest
upvoted 3 times
...
greg3271
1 year, 9 months ago
Selected Answer: C
Guess is C
upvoted 1 times
PGG
1 year, 7 months ago
C can't be, no updaterollup mentioned
upvoted 1 times
...
...
hertino
1 year, 9 months ago
https://www.examtopics.com/discussions/microsoft/view/54488-exam-pl-400-topic-2-question-9-discussion/
upvoted 3 times
TheExamMaster2020
1 year, 4 months ago
In that version of the question answer D is not even an option, so the correct answer should be C?
upvoted 1 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 ...