An application stores PII in an S3 bucket encrypted with customer-managed KMS keys. All resources are deployed via CloudFormation. A dev environment in a different AWS account must be created from the template, and production S3 data must be copied weekly to the dev S3 bucket, but PII must be anonymized before leaving production. Each environment must use distinct KMS keys. Which combination of steps should the engineer take? (Choose two.)
Choose an answer
Tap an option to check your answer.
Correct answer: Enable Amazon Macie on the production S3 bucket. Build a Step Functions state machine to run a discovery job and redact PII before copying files to the development bucket. Grant the state machine decrypt permission on the production KMS key and encrypt permission on the development KMS key., Create the development environment from the CloudFormation template in the development account and schedule an EventBridge rule to start the Step Functions state machine weekly..
Why this is the answer
The first correct option leverages Amazon Macie for PII discovery and a Step Functions state machine for redaction and cross-account copying. Macie effectively identifies PII, and the state machine orchestrates the redaction process before data leaves the production environment, ensuring compliance. Granting appropriate KMS permissions allows the state machine to decrypt production data and encrypt it with the development key. The second correct option addresses the environment creation and scheduling. Using the existing CloudFormation template ensures consistency between environments. An EventBridge rule provides a reliable, serverless way to trigger the Step Functions state machine weekly for the data transfer. Incorrect options: Configuring S3 replication with Macie on the development bucket would transfer PII before redaction, violating the requirement to anonymize before leaving production. Using S3 Batch Operations with a Lambda in the development account to redact PII after transfer also violates the requirement to anonymize before leaving production. S3 Object Lambda is for GET requests, not for modifying objects during a copy operation. Running a weekly cron on an EC2 instance to start an S3 Batch Operations job is less serverless and scalable than EventBridge and Step Functions for this type of orchestration.
Pass your exam — without the endless answer hunt
Get every verified question and explanation for this exam in one place, and save hours of prep. 1,000+ certifications · 20+ languages · free to start.
Pass your exam faster → No card needed