QuestionQ11

VerifiedEnsuring Data Security and Compliance

All records from an Apache Kafka producer are ingested into one Delta Lake table with this schema:

key BINARY, value BINARY, topic STRING, partition LONG, offset LONG, timestamp LONG

Five unique topics are being ingested. Only the registration topic contains Personally Identifiable Information (PII). The company wants to restrict access to PII. It also wants to retain records containing PII in this table for only 14 days after initial ingestion. However, it wants to retain non-PII records indefinitely.

Which of the following solutions meets these requirements?

Explanation

Partitioning by topic isolates all registration records at a partition boundary because they share the same topic value. This enables access controls to be applied to the PII partition and permits a scheduled DELETE targeted to topic = 'registration' and records older than 14 days, while retaining the other topic partitions indefinitely. Delta Lake supports predicate-based DELETE operations, and partitions are subsets of rows sharing a partition-column value.

Learn more

Community Discussion

No comments yet. Be the first to start the discussion!