Topic 1 Question 193
A company uses an Amazon S3 bucket to store data files. The S3 bucket contains hundreds of objects. The company needs to replace a tag on all the objects in the S3 bucket with another tag.
What is the MOST operationally efficient way to meet this requirement?
Use S3 Batch Operations. Specify the operation to replace all object tags.
Use the AWS CLI to get the tags for each object. Save the tags in a list. Use S3 Batch Operations. Specify the operation to delete all object tags. Use the AWS CLI and the list to retag the objects.
Use the AWS CLI to get the tags for each object. Save the tags in a list. Use the AWS CLI and the list to remove the object tags. Use the AWS CLI and the list to retag the objects.
Use the AWS CLI to copy the objects to another S3 bucket. Add the new tag to the copied objects. Delete the original objects.
ユーザの投票
コメント(5)
- 👍 12Liongeek2022/11/16
- 正解だと思う選択肢: A
A is the correct answer. The question is asking to replace existing tag with another, not adding new tags. Therefore, batch operations is correct (A). Source: https://docs.aws.amazon.com/AmazonS3/latest/userguide/batch-ops-put-object-tagging.html
👍 2Gil802023/02/25 - 正解だと思う選択肢: C
If you replace all object tags, existing tags that you do not want to replace will be lost. You'll need to read those tags to retain them and update the tags you're trying to update.
👍 1joanneli772023/02/01
シャッフルモード