SOA-C02 practice question 3 of 10

[Security and Compliance] A company migrates a write-once, read-many (WORM) drive to an Amazon S3 bucket that has S3 Object Lock configured in…

Full set: 557 questions
[Security and Compliance] A company migrates a write-once, read-many (WORM) drive to an Amazon S3 bucket that has S3 Object Lock configured in governance mode. During the migration, the company copies unneeded data to the S3 bucket. A SysOps administrator attempts to delete the unneeded data from the S3 bucket by using the AWS CLI. However, the SysOps administrator receives an error. Which combination of steps should the SysOps administrator take to successfully delete the unneeded data? (Select TWO.)
Answer options
A: Increase the Retain Until Date.
B: Assume a role that has the s3:BypassLegalRetention permission.
C: Assume a role that has the s3:BypassGovernanceRetention permission. Correct answer
D: Include the x-amz-bypass-governance-retention:true header in the request when issuing the delete command. Correct answer
E: Include the x-amz-bypass-legal-retention:true header in the request when issuing the delete command.
Correct Answer:
C. Assume a role that has the s3:BypassGovernanceRetention permission.; D. Include the x-amz-bypass-governance-retention:true header in the request when issuing the delete command.
Explanation

To delete an object protected by Amazon S3 Object Lock in governance mode, users must explicitly bypass the retention controls. Governance mode is designed to prevent accidental deletion while allowing authorized users to remove objects if necessary. The SysOps administrator must take two specific actions: First, the user or assumed IAM role must have the s3:BypassGovernanceRetention permission attached to their IAM policy. Without this permission, any attempt to bypass the lock will be denied. Second, the deletion request requires explicit acknowledgment of the bypass by including the x-amz-bypass-governance-retention:true header in the API request or using the corresponding --bypass-governance-retention parameter in the AWS CLI. This dual requirement prevents accidental overrides and ensures that governance rules are strictly enforced even for privileged accounts.

Why Incorrect

A: Increasing the retain until date extends the lock; it does not allow deletion. B: Bypassing legal retention is used for Legal Hold configurations, which is distinct from governance mode retention. E: The legal retention header applies to Legal Holds, not governance mode retention locks.

References

AWS Documentation: Amazon S3 -> User Guide -> S3 Object Lock -> Bypassing governance mode. (https://docs.aws.amazon.com/AmazonS3/latest/userguide/object-lock-overview.html#object-lock-retention-modes)

Scroll to Top