AWS Certified CloudOps Engineer - Associate (SOA-C03) free question 8 / 10 · Domain 4: Security and Compliance
A request to delete a Secrets Manager secret is rejected because the secret is replicated to a second Region. How should the engineer delete it?
- Delete the primary secret, with a request that skips the recovery window and is irreversible
- Delete the replica and expect to recover it during a recovery window, as for the primary secret
- Delete the replica, which has no recovery window, and then delete the primary secret
- Schedule the deletion of the primary secret, and let Secrets Manager remove the replica when the recovery window ends
Show the answer and explanation
Answer: C
Why this is correct
Secrets Manager makes deletion deliberately difficult. A deleted secret is immediately inaccessible and is scheduled for deletion after a recovery window of at least seven days, and until the window ends you can recover it. A primary secret that is replicated to other Regions cannot be deleted, so the replicas must be deleted first, and a deleted replica is removed immediately.
Why the other options are wrong
"Schedule the deletion of the primary secret, and let Secrets Manager remove the replica when the recovery window ends" … A primary secret that is replicated to other Regions cannot be deleted. The replicas have to be deleted first.
"Delete the replica and expect to recover it during a recovery window, as for the primary secret" … When you delete a replica, it is deleted immediately, so the recovery window does not apply to it.
"Delete the primary secret, with a request that skips the recovery window and is irreversible" … A primary secret that is replicated to other Regions cannot be deleted. The replicas have to be deleted first.
Key points
If you do not know whether an application still uses a secret, a CloudWatch alarm can alert you to access attempts during the recovery window. There is no charge for secrets that are marked for deletion.