Which combination of steps will successfully copy the data?
(Choose three.)
Create a bucket policy to allow the source bucket to list its contents and to put objects and set object ACLs in the destination bucket. Attach the bucket policy to the destination bucket.
Create a bucket policy to allow a user in the destination account to list the source bucket’s contents and read the source bucket’s objects. Attach the bucket policy to the source bucket.
Create an IAM policy in the source account. Configure the policy to allow a user in the source account to list contents and get objects in the source bucket, and to list contents, put objects, and set object ACLs in the destination bucket. Attach the policy to the user.
Create an IAM policy in the destination account. Configure the policy to allow a user in the destination account to list contents and get objects in the source bucket, and to list contents, put objects, and set objectACLs in the destination bucket. Attach the policy to the user.
Run the aws s3 sync command as a user in the source account. Specify the source and destination buckets to copy the data.
Run the aws s3 sync command as a user in the destination account. Specify the source and destination buckets to copy the data.
Explanations:
While creating a bucket policy for the destination bucket is a good practice, it should allow access to the destination bucket but does not address the need to allow listing and reading of objects from the source bucket by the user in the destination account. This policy alone does not ensure that the necessary permissions for both accounts are set up correctly.
This option is correct because it allows a user in the destination account to list the contents and read the objects from the source bucket. This permission is necessary for the user to access and copy data from the source bucket to the destination bucket.
This option is incorrect because it assumes that a user in the source account is performing the operations. While the policy correctly allows the user to interact with the source bucket, it does not provide permissions needed for writing to the destination bucket, which is necessary for the copy operation.
This option is correct because it allows a user in the destination account to list the contents of the source bucket and get objects from it, as well as allowing them to list contents, put objects, and set object ACLs in the destination bucket. This combination of permissions is necessary for a successful data copy.
This option is incorrect because running theaws s3 synccommand as a user in the source account would not have the necessary permissions to write to the destination bucket in the other account without proper cross-account permissions being set.
This option is correct because it allows a user in the destination account to run theaws s3 synccommand to specify the source and destination buckets, leveraging the permissions that were set in the previous steps. The user needs access to both buckets to successfully copy the data.