AWS Certified SysOps Administrator – Associate — Question 66
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?
Answer options
- A. Use S3 Batch Operations. Specify the operation to replace all object tags.
- B. 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.
- C. 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.
- D. Use the AWS CLI to copy the objects to another S3 bucket. Add the new tag to the copied objects. Delete the original objects.
Correct answer: A
Explanation
The correct answer is A because S3 Batch Operations is specifically designed to perform bulk operations on S3 objects efficiently, including replacing tags. Options B and C involve unnecessary steps of retrieving and managing tags manually, which complicates the process. Option D is also inefficient as it involves copying objects and deleting the originals, rather than directly updating tags.