exam questions

Exam PL-400 All Questions

View all questions & answers for the PL-400 exam

Exam PL-400 topic 6 question 18 discussion

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

HOTSPOT -
A travel agency uses Dynamics 365 Sales.
Customers are allowed to add up to three regions to their travel preferences from the website. Customer preferences must be stored in the Contact entity. An error message must display if customers enter data incorrectly. You create a plug-in.
You need to register the plug-in to meet the requirements.
Which value should you apply for each parameter? 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: create -
An error message must display if customers enter data incorrectly.

The message must be created -

Box 2: contact -
Customers are allowed to add up to three countries/regions to their travel preferences from the website. Their preferences must be stored in the Contact entity.

Box 3: region -
Customers are allowed to add up to three regions to their travel preferences from the website. Customer preferences must be stored in the Contact entity

Box 4: synchronous -
A synchronous plug-in will cause the operation to wait until the code in the plug-in completes. This has an impact on perceived performance of the system. The operations in an asynchronous plug-in are placed in a queue and are executed after the operation is completed so that the operation can complete with minimal interruption.
Reference:
https://docs.microsoft.com/en-us/powerapps/developer/common-data-service/tutorial-write-plug-in

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
btmeera
Highly Voted 3 years, 8 months ago
Associate, none, none, sycn is the correct answer
upvoted 24 times
loftuscheek
3 months, 2 weeks ago
correct
upvoted 1 times
...
Flatternschuchtern
2 years, 8 months ago
Incorrect, "Customer preferences must be stored in the Contact entity." My guess there are just 3 fields. The correct answer is 1) Update 2) Contact 3) None 4) Synchronous
upvoted 29 times
...
AADAdmin1
2 years, 5 months ago
Explained here: https://community.dynamics.com/crm/b/mylifemicrosoftdynamiccrm/posts/ms-dynamics-crm-associate-disassociate-message-plugin
upvoted 3 times
...
...
DiemerBenoit
Highly Voted 3 years, 8 months ago
When you register a plugin on Associate message, you have to leave “Primary and Secondary” entities as ‘none’.
upvoted 13 times
...
Juan0414
Most Recent 3 months, 1 week ago
I just tried this and what is mentioned by btmeera is correct: Associate None None Sync (If you select associate in PRT and try to assign a primary entity you will get an error)
upvoted 1 times
...
LSgeek
11 months ago
Message: update Primary Entity: contact Secondary Entity: none Execution Mode: synchronous
upvoted 2 times
...
4e8b388
1 year, 1 month ago
Update Contact None Synch
upvoted 1 times
...
hai297
1 year, 2 months ago
Message: update ("Customer preferences" must be stored in the Contact entity) Primary: Contact Secondary: Region and None are sense, but Region is more sense for validation Sync
upvoted 1 times
...
At09
1 year, 8 months ago
Multi Select OptionSet .... Ringing a bell ? lol
upvoted 1 times
...
jkaur
1 year, 10 months ago
Associate, none, none, sycn
upvoted 2 times
...
oleav
2 years, 2 months ago
"You need to register the plug-in to meet the requirements." ... so I understand its about registraiton https://learn.microsoft.com/en-us/power-apps/developer/data-platform/tutorial-write-plug-in#register-a-new-step So it's correct: Create, Contact, Region, Synchronous Almost all post here is about method to perform data operation - Create, Retrieve, RetrieveMultiple, Update, Delete, Associate, and Disassociate
upvoted 3 times
...
No_Doubt
2 years, 7 months ago
There is difference between 1- How the question is requesting the design? 2- What's the best practice? In order to answer Q1, the answer is Update, Contact, None, Synchronous, where the contact entity has 3 lookup fields to the region entity called [Travel Preference 1 - Travel Preference 2 - Travel Preference 3], since the question is mentioning "Customer preferences must be stored in the Contact entity" To answer Q2, the answer is to register the plugin-in on the Associate message in the pre-validate pipeline, with primary and secondary entities = None, and execution mode same as Q1, Synchronous. For me, I will answer the question as it is and go with Q1: Update, Contact, None, Synchronous
upvoted 5 times
...
northstar88
2 years, 9 months ago
Update Contact none Sync Customers are allowed to add up to three regions << this is unclear, but to me this sounds like the number of available regions are already predetermined (three), which mean it's possible that "preferences" is an optionset. Customer preferences must be stored in the Contact entity. << already a clear indication that Contact entity is the one getting updated. Lastly it has to be sync because we want the error to appear if the validation failed. Async will not throw an error on screen.
upvoted 7 times
...
rogrod
2 years, 9 months ago
Associate will not store the preferences info in Contact Entity... It seems that preferences are simple lookups fields on contact entity, so correct message must be "Update". In my opinion: "Update" (preferences stored in contact entity), "Contact", "None", "Syncronous" (must be throw an error to user if data wrong)
upvoted 3 times
...
Violoncello
2 years, 10 months ago
So, it seems we agree on "sync"... About "Associate, none, none": This plugin will fire on *any/every* entity that gets associated with *any/every* entity. Do we really want a plugin firing *ALL* the time???
upvoted 1 times
...
BlueP
2 years, 11 months ago
The wording of the question makes this tricky: "Customer preferences must be stored in the Contact entity" - this makes me think that the region data is not an secondary entity (for example Multi-select option), hence the contact has to be updated not associated with another entity. if that is the case the message would be update, primary entity - contact secondary - none Execution would be synchronous because we would need to validate the data and display error message in real time - "An error message must display if customers enter data incorrectly" I can also see it the other way where the region is a separate entity and then you would have to associate these with a contact. If this is on the exam I will go with my gut feeling and go with update
upvoted 6 times
...
ShaiAtElad
3 years ago
According to this link - https://docs.microsoft.com/en-us/power-apps/developer/data-platform/register-plug-in , Secondary Inage "This field remains for backward compatibility for deprecated messages that accepted an array of EntityReference as the Target parameter. This field is typically not used anymore." so null sounds right
upvoted 1 times
...
pkatsa
3 years, 1 month ago
isn't Associate/Disassociate messages only for N-N relationship adding only? https://community.dynamics.com/crm/b/mylifemicrosoftdynamiccrm/posts/ms-dynamics-crm-associate-disassociate-message-plugin
upvoted 1 times
...
BetoJR
3 years, 3 months ago
What about "update, contact, none, synchronous"? Just curious...
upvoted 9 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 ...