ExamGecko
Question list
Search
Search

List of questions

Search

Related questions











Question 188 - PL-400 discussion

Report
Export

HOTSPOT

An online store has a custom web page that allows customers to place their orders against a Microsoft Dataverse database that uses custom products. The custom web page uses Web API patterns to create and update records.

Customers report that orders can be placed for out-of-stock items.

You need to update the page code to ensure that inventory is available before confirming an order.

Which pattern should you use for each step? To answer, select the appropriate options in the answer area.

NOTE: Each correct selection is worth one point.


Question 188
Correct answer: Question 188

Explanation:

Box 1: IsOptimisticConcurrencyEnabled

On a multi-threaded and multi-user system like Power Apps, operations and data changes often happen in parallel. A problem arises when two or more update or delete operations on the same piece of data happen at the same time. This situation could potentially result in data loss. The optimistic concurrency feature provides the ability for your applications to detect whether a table record has changed on the server in the time between when your application retrieved the record and when it tries to update or delete that record.

Box 2: If-Match: Etag

Use If-Match and If-None-Match headers with ETag values to check whether the current version of a resource matches the one last retrieved, matches any previous version or matches no version. These comparisons form the basis of conditional operation support. Dataverse provides ETags to support conditional retrievals, optimistic concurrency, and limited upsert operations.

Reference: https://docs.microsoft.com/en-us/powerapps/developer/data-platform/optimistic-concurrency

https://docs.microsoft.com/en-us/powerapps/developer/data-platform/webapi/perform-conditional-operations-using-web-api

asked 05/10/2024
Anu V
42 questions
User
0 comments
Sorted by

Leave a comment first