A solutions architect must copy objects from an S3 bucket in one AWS account to a new S3 bucket in another account using the AWS CLI. Which combination of steps will allow the copy to succeed? (Choose three.)
Choose an answer
Tap an option to check your answer.
Correct answer: Create a bucket policy on the source bucket that allows a user in the destination account to list the source bucket and read its objects, and attach that policy to the source bucket., Create an IAM policy in the destination account that allows a user in the destination account to list and get objects in the source bucket and to list, put objects, and set object ACLs in the destination bucket; attach that policy to the user., Run the aws s3 sync command as a user in the destination account, specifying the source and destination buckets..
Why this is the answer
To copy objects between S3 buckets in different accounts using aws s3 sync, the user performing the sync (in this case, a user in the destination account) needs permissions to read from the source and write to the destination. The bucket policy on the source bucket grants the destination account explicit permission to s3:ListBucket and s3:GetObject on the source bucket. This is crucial for cross-account access. The IAM policy attached to the user in the destination account provides the necessary permissions for that user to s3:ListBucket and s3:GetObject on the source bucket, and s3:ListBucket, s3:PutObject, and s3:PutObjectAcl on the destination bucket. This combined with the source bucket policy allows the destination user to read from the source and write to their own bucket. Finally, running aws s3 sync as a user in the destination account leverages these permissions to perform the copy. Running it from the source account would require the source account to have write permissions to the destination bucket, which is less secure and not the standard approach for pulling data.
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