exam questions

Exam MB-400 All Questions

View all questions & answers for the MB-400 exam

Exam MB-400 topic 6 question 2 discussion

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

DRAG DROP -
A developer must register a step using the Plug-in registration tool.
You need to associate the correct Event Pipeline Stage of Execution with its purpose.
Which stage should you associate with each description? To answer, drag the appropriate stages to the correct descriptions. Each stage may be used once, more than once, or not at all. You may need to drag the split bar between panes or scroll to view content.
NOTE: Each correct selection is worth one point.
Select and Place:

Show Suggested Answer Hide Answer
Suggested Answer:
The event pipeline allows you to configure when in the event the plug-in code will execute. The event pipeline is divided into the following events and stages:

Box 1: PreValidation -

Pre-event/Pre-Validation -
This stage executes before anything else, even before basic validation if the triggering action is even allowed based on security. Therefore, it would be possible to trigger the plug-in code even without actually having permission to do so and great consideration must be used when writing a pre-validation plug-in. Also, execution in this stage might not be part of the database transaction.
Examples:- security checks being performed to verify the calling or logged on user has the correct permissions to perform the intended operation.

Box 2: PreOperation -

Pre-event/Pre-Operation -
This stage executes after validation, but before the changes has been committed to database. This is one of the most commonly used stages.
Example uses:
If and "update" plug-in should update the same record, it is best practice to use the pre-operation stage and modify the properties. That way the plug-in update is done within same DB transaction without needing additional web service update call.

Box 3: PostOperation -
Plug-ins which are to execute after the main operation. Plug-ins registered in this stage are executed within the database transaction.
This stage executed after changes have been committed to database. This is one of the most used stages.
Example uses:
Most of the "Create" plugins are post-event. This allows access to the created GUID and creation of relationships to newly created record.
Incorrect Answers:
MainOperation:- main operation of the system, such as create, update, delete, and so on. No custom plug-ins can be registered in this stage.
Reference:
https://community.dynamics.com/crm/f/microsoft-dynamics-crm-forum/216569/ms-crm-plugin-execution-pipeline

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
Yuris
Highly Voted 4 years, 12 months ago
Correct answer
upvoted 11 times
...
wwwhhh
Most Recent 4 years, 9 months ago
PreOperation happens before the db transaction. 2nd one should be PostOp, as PostOp happens within the db transaction.
upvoted 1 times
bitsq
4 years, 9 months ago
No. PreOperation happens within database transaction so the answer is correct. See https://community.dynamics.com/crm/f/microsoft-dynamics-crm-forum/216569/ms-crm-plugin-execution-pipeline (grid)
upvoted 2 times
...
...
zoom_83
4 years, 9 months ago
Correct
upvoted 1 times
...
DaneP
4 years, 10 months ago
https://crmbook.powerobjects.com/extending-dynamics-365/plug-in-development-and-workflow-extensions/plug-ins/event-pipeline/
upvoted 2 times
...
sanharshu7
4 years, 11 months ago
Correct
upvoted 1 times
...
TaiH
4 years, 11 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 ...