Interview Prep/AWS/Observability, Secrets, KMS and CloudFormation

An engineer scheduled a KMS key for deletion by mistake. What do you do?

IntermediateScenarioObservability, Secrets, KMS and CloudFormation
Answer

Situation read → There's a waiting period; cancel it.

What I'd do →

  1. aws kms cancel-key-deletion --key-id <key>
  2. Then aws kms enable-key --key-id <key>
  3. Alarm on ScheduleKeyDeletion events through EventBridge
  4. Restrict kms:ScheduleKeyDeletion with SCP
  5. Audit what the key encrypts

Why → Deleting a key makes all its data unrecoverable.

Interview tip → Disable first, delete later.

aws All AWS questions

More on Observability, Secrets, KMS and CloudFormation