Shredded Except Here
Every user's event payloads are encrypted under a per-user KMS key, so erasure is implemented as crypto-shredding. More than one option below is correct.
def erase_user(user_id: str) -> None:
kms.schedule_key_deletion(
KeyId=f"alias/user-{user_id}", PendingWindowInDays=7
)
db.execute(
"UPDATE users SET email = NULL, full_name = NULL WHERE id = %s",
user_id,
)
db.execute("DELETE FROM sessions WHERE user_id = %s", user_id)
Assume the scheduled deletion has since completed. Which of these still hold recoverable personal data?
Sign in to answer questions and track your progress
Sign In