PL-400 · Question #340
PL-400 Question #340: Real Exam Question with Answer & Explanation
The correct answer is A: Prefer: odata.track-changes. To synchronize only new or changed data from a third-party accounting system via a Web API, the Prefer: odata.track-changes header should be included in the API request.
Question
You are developing a Power Platform solution. The solution connects to a third-party accounting system by using a Web API through a Power Apps app that automatically exchanges contacts with the sales data. You have the following code: (Line numbers are included for reference only.) You need to ensure that the code only synchronizes data that was not previously synchronized. Which code segment should you insert at line 02?
Options
- APrefer: odata.track-changes
- BPrefer: odata.allow-entityreferences
- CPrefer: odata.include-annotations
Explanation
To synchronize only new or changed data from a third-party accounting system via a Web API, the Prefer: odata.track-changes header should be included in the API request.
Common mistakes.
- B. The
odata.allow-entityreferencesheader is used to allow entity references in a request body, typically for creating relationships between entities, not for tracking data changes. - C. The
odata.include-annotationsheader is used to request that specific annotations, such as formatted values or lookup property names, be included in the response, not for managing data synchronization of changes.
Concept tested. OData Delta Query for data synchronization
Community Discussion
No community discussion yet for this question.