exam questions

Exam PL-400 All Questions

View all questions & answers for the PL-400 exam

Exam PL-400 topic 7 question 13 discussion

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

HOTSPOT -
A company must copy customer account data changes from a Microsoft Dataverse instance into an external system. Azure Storage Queues are used to pass the changes from Dataverse to the external system.
You have the following code. (Line numbers are included for reference only.)

For each of the following statements, select Yes if the statement is true. Otherwise, select No.
NOTE: Each correct selection is worth one point.
Hot Area:

Show Suggested Answer Hide Answer
Suggested Answer:
Box 3: No -
Either new/updated or removed/deleted.

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
Juan0414
3 months, 2 weeks ago
Should be YYNY
upvoted 1 times
...
loftuscheek
3 months, 3 weeks ago
answer YYNY
upvoted 1 times
loftuscheek
3 months, 3 weeks ago
Explanation: On line 2, ProcessAccountChanges is called with a null token (initially), causing it to retrieve all new/updated/deleted changes since no previous token exists. Inside the method, new or updated accounts go into changeQueue and deleted accounts go into deleteQueue.
upvoted 1 times
loftuscheek
3 months, 3 weeks ago
Explanation: The second call uses the token returned from the first call. It fetches subsequent changes (i.e., changes since the previous token). Those new or updated records again go into changeQueue, and deleted records go into deleteQueue.
upvoted 1 times
loftuscheek
3 months, 3 weeks ago
The queue message only contains the record ID, not whether it was newly created or updated. There is no additional data in the message that distinguishes “new” from “updated.”
upvoted 1 times
loftuscheek
3 months, 3 weeks ago
Explanation: If a record is removed or deleted, the code does: csharp Copy var deletedItem = (RemovedOrDeletedItem)change.ChangedItem; var queueMessage = new CloudQueueMessage(deletedItem.RemovedItemId); deleteQueue.AddMessage(queueMessage); Thus, on a subsequent call (e.g., at line 3 or line 4) where the record appears as removed, a message is indeed placed in deleteQueue
upvoted 1 times
...
...
...
...
...
zick007
6 months, 3 weeks ago
should first two be N because only entity id is added to the queue at line 20 ? not the actual changes.
upvoted 1 times
...
lawlrmk
6 months, 3 weeks ago
I say its NYNN and here is why: 1. No, because if the token is null it will return ALL records as documented in https://learn.microsoft.com/en-us/dotnet/api/microsoft.xrm.sdk.messages.retrieveentitychangesrequest?view=dataverse-sdk-latest Now it is a little bit up to a discussion, if this thing runs for the very first time or not (meaning the external system is empty). If it does, technically it's a changeset if you compare Dataverse to the external system. 2. Yes, because here we use the token returned from the initial call on line 2. This means technically any changes made by us or anyone else since line 2 is a change. 3. No, all there is in the changemessage in our queue is the Guid of newOrChangedEntity (line 20) 4. Yes, as the token was created before the operations done on line 3
upvoted 3 times
lawlrmk
6 months, 3 weeks ago
* typo: NYNY as seen in my why
upvoted 3 times
...
...
At09
1 year, 2 months ago
YYNY the ans
upvoted 3 times
...
ziggy1117
1 year, 4 months ago
answers are correct. Y, Y, N, Y For #3: No, the provided code snippet does not explicitly specify whether the messages in the changeQueue correspond to new or updated accounts. The code processes changes to CRM entities of the "account" type and adds messages to the changeQueue whenever a new or updated account is detected. However, the snippet itself doesn't include code to differentiate between new and updated accounts in the messages added to the queue.
upvoted 4 times
...
TOM1000
1 year, 6 months ago
It's YNYY
upvoted 1 times
TOM1000
1 year, 6 months ago
actually im wrong it should be NNYY
upvoted 2 times
...
...
CYC
2 years ago
The first is No because setting DataVersion to null will return all the records.
upvoted 1 times
Coder1
1 year, 10 months ago
this is not true. Look at the link below https://learn.microsoft.com/en-us/previous-versions/dynamicscrm-2015/developers-guide/dn932130(v=crm.7) "Only one entity will be tracked in retrieve changes. If retrieve changes is executed with no version / or token, the server will treat it as the system minimum version, returning all of the records as new. Deleted objects won’t be returned."
upvoted 2 times
...
...
northstar88
2 years, 3 months ago
shouldn't third one be Yes? In line 16, the change is validated whether the change is NewOrUpdated. Then in line 21, the changemessage is being added to the changeQueue.
upvoted 3 times
MarioM
2 years, 3 months ago
nope, because it doesn't classify new or updated. Falls into same bucket.
upvoted 4 times
...
Flatternschuchtern
2 years, 3 months ago
Ur right
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 ...