SAP-C02 学习助手

SAP-C02 第 59 题

S3 IAM Config

题目

A solutions architect needs to copy data from an Amazon S3 bucket m an AWS account to a new S3 bucket in a new AWS account. The solutions architect must implement a solution that uses the AWS CLI. Which combination of steps will successfully copy the data? (Choose three.)

中文翻译:
解决方案架构师需要将数据从 AWS 账户中的 Amazon S3 存储桶复制到新 AWS 账户中的新 S3 存储桶。解决方案架构师必须实施使用 AWS CLI 的解决方案。哪种步骤组合可以成功复制数据? (选择三项。)

选项

A. 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.

中文翻译:
创建桶策略,允许源桶列出其内容,并允许在目标桶中放置对象并设置对象 ACL。将存储桶策略附加到目标存储桶。

B. 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. bucket。

中文翻译:
创建存储桶策略以允许目标账户中的用户列出源存储桶的内容并读取源存储桶的对象。将存储桶策略附加到源存储桶。桶。

C. 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.

中文翻译:
在源账户中创建 IAM 策略。配置策略以允许源账户中的用户在源存储桶中列出内容和获取对象,以及在目标存储桶中列出内容、放置对象和设置对象 ACL。将策略附加到用户。

D. 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.

中文翻译:
在目标账户中创建 IAM 策略。配置策略以允许目标账户中的用户在源存储桶中列出内容和获取对象,以及在目标存储桶中列出内容、放置对象和设置对象ACL。将策略附加到用户。

E. Run the aws s3 sync command as a user in the source account. Specify the source and destination buckets to copy the data.

中文翻译:
以源账户中的用户身份运行 aws s3sync 命令。指定复制数据的源桶和目标桶。

F. Run the aws s3 sync command as a user in the destination account. Specify the source and destination buckets to copy the data.

中文翻译:
以目标账户中的用户身份运行 aws s3sync 命令。指定复制数据的源桶和目标桶。

答案

BDF

解析

正确答案:BDF 解析: 本题应选择 BDF。 正确选项: B. 创建存储桶策略以允许目标账户中的用户列出源存储桶的内容并读取源存储桶的对象。将存储桶策略附加到源存储桶。桶。 D. 在目标账户中创建 IAM 策略。配置策略以允许目标账户中的用户在源存储桶中列出内容和获取对象,以及在目标存储桶中列出内容、放置对象和设置对象ACL。将策略附加到用户。 F. 以目标账户中的用户身份运行 aws s3sync 命令。指定复制数据的源桶和目标桶。...

登录后查看完整解析