DP-700 · Question #30
You have a Fabric workspace that contains an eventhouse and a KQL database named Database1. Database1 has the following: - A table named Table1 - A table named Table2 - An update policy named…
The correct answer is A. Table with Timestamp (datetime: 2024-05-18 12:45:17.16524), DeviceId (guid: 81416f30-60a2-4e75-9b19-2a84ea059735), StreamData ({ "index": 0, "eventid": "719afca0-be30-4559-bb5e-59feade642f6", "temperature": 32}) D. Table with Timestamp (datetime: 2024-05-24 12:45:17.16524), DeviceId (guid: 81416f30-60a2-4e75-9b19-2a84ea059735), StreamData ({ "index": 0, "eventid": "719afca0-be30-4559-bb5e-59feade642f6", "temperature": null}). Records will load from Table1 to Table2 if their Timestamp and DeviceId data types are compatible with Table2's schema (datetime and guid, respectively) and the StreamData (dynamic) column structure allows for added or null fields.
Question
Options
- ATable with Timestamp (datetime: 2024-05-18 12:45:17.16524), DeviceId (guid: 81416f30-60a2-4e75-9b19-2a84ea059735), StreamData ({ "index": 0, "eventid": "719afca0-be30-4559-bb5e-59feade642f6", "temperature": 32})
- BTable with Timestamp (datetime: 2024-05-21 12:45:17.16524), DeviceId (guid: 81416f30), StreamData ({ "index": 0, "eventid": "719afca0-be30-4559-bb5e-5werade642f6", "temperature": 27})
- CTable with Timestamp (datetime: 2024-05-23 12:45:17.16524), DeviceId (guid: 81416f3002a4e759b192a84ea0597352d3dyle3), StreamData ({ "index": 0, "eventid": "719afca0-be30-4559-bb5e-59feade642f6"}) (Note: Missing 'temperature' field)
- DTable with Timestamp (datetime: 2024-05-24 12:45:17.16524), DeviceId (guid: 81416f30-60a2-4e75-9b19-2a84ea059735), StreamData ({ "index": 0, "eventid": "719afca0-be30-4559-bb5e-59feade642f6", "temperature": null})
How the community answered
(34 responses)- A76% (26)
- B9% (3)
- C15% (5)
Why each option
Records will load from Table1 to Table2 if their Timestamp and DeviceId data types are compatible with Table2's schema (datetime and guid, respectively) and the StreamData (dynamic) column structure allows for added or null fields.
The Timestamp is in a valid datetime format and DeviceId is a valid guid string, which both match or are implicitly convertible to Table2's schema. The StreamData column is dynamic and can accommodate new elements like 'temperature'.
The DeviceId value 81416f30 is not a valid GUID format and will cause a type conversion error during ingestion into Table2's guid column.
The DeviceId value 81416f3002a4e759b192a84ea0597352d3dyle3 is not a valid GUID format and will prevent the record from loading into Table2's guid column.
Similar to A, the Timestamp is a valid datetime and DeviceId is a valid guid string, ensuring successful type conversion or matching for Table2's schema. The dynamic StreamData column also correctly handles the null value for 'temperature'.
Concept tested: KQL update policies, data type compatibility, and schema evolution for dynamic types
Source: https://learn.microsoft.com/en-us/azure/data-explorer/kusto/management/updatepolicy
Topics
Community Discussion
No community discussion yet for this question.