SCS-C02 · Question #20
A company has recently recovered from a security incident that required the restoration of Amazon EC2 instances from snapshots. The company uses an AWS Key Management Service (AWS KMS) customer…
The correct answer is C. Create a new AWS account that has limited privileges. Allow the new account to access the KMS. Sharing EBS snapshots and KMS key access with a separate, limited-privilege AWS account protects backups from deletion if the primary account is compromised.
Question
A company has recently recovered from a security incident that required the restoration of Amazon EC2 instances from snapshots. The company uses an AWS Key Management Service (AWS KMS) customer managed key to encrypt all Amazon Elastic Block Store (Amazon EBS) snapshots. The company performs a gap analysis of its disaster recovery procedures and backup strategies. A security engineer needs to implement a solution so that the company can recover the EC2 instances if the AWS account is compromised and the EBS snapshots are deleted. Which solution will meet this requirement?
Options
- ACreate a new Amazon S3 bucket. Use EBS lifecycle policies to move EBS snapshots to the new
- BUse AWS Systems Manager to distribute a configuration that backs up all attached disks to
- CCreate a new AWS account that has limited privileges. Allow the new account to access the KMS
- DUse AWS Backup to copy EBS snapshots to Amazon S3. Use S3 Object Lock to prevent deletion
How the community answered
(23 responses)- A17% (4)
- B4% (1)
- C70% (16)
- D9% (2)
Why each option
Sharing EBS snapshots and KMS key access with a separate, limited-privilege AWS account protects backups from deletion if the primary account is compromised.
Moving EBS snapshots to S3 via lifecycle policies still stores the data within the same AWS account. If the account is compromised, an attacker with sufficient permissions can delete both the S3 objects and the KMS key, making recovery impossible.
AWS Systems Manager can back up disks, but backing up to instance store (ephemeral storage) provides no durability. Instance store data is lost when the instance stops or terminates, making this unsuitable for disaster recovery.
Creating a separate AWS account with limited privileges and granting it cross-account access to the KMS customer managed key (via key policy) allows that account to copy EBS snapshots into its own environment. Because the backup account has independent credentials and limited blast radius, a compromise of the primary account cannot delete snapshots stored in the secondary account, satisfying the recovery requirement.
AWS Backup with S3 Object Lock prevents deletion within the same account, but if the AWS account root user or a highly privileged IAM principal is compromised, Object Lock can be circumvented or the account itself can be used to remove protections.
Concept tested: Cross-account EBS snapshot protection with KMS key policy
Source: https://docs.aws.amazon.com/AWSEC2/latest/UserGuide/ebs-modifying-snapshot-permissions.html
Topics
Community Discussion
No community discussion yet for this question.