exam questions

Exam AWS-SysOps All Questions

View all questions & answers for the AWS-SysOps exam

Exam AWS-SysOps topic 1 question 643 discussion

Exam question from Amazon's AWS-SysOps
Question #: 643
Topic #: 1
[All AWS-SysOps Questions]

A SysOps Administrator attempting to delete an Amazon S3 bucket ran the following command: aws s3 rb s3://my bucket
The command failed and bucket still exists. The administrator validated that no files existed in the bucket by running aws s3 1s s3://mybucket and getting an empty response.
Why is the Administrator unable to delete the bucket, and what must be done to accomplish this task?

  • A. The bucket has MFA Delete enabled, and the Administrator must turn it off.
  • B. The bucket has versioning enabled, and the Administrator must permanently delete the objects' delete markers.
  • C. The bucket is storing files in Amazon Glacier, and the Administrator must wait 3-5 hours for the files to delete.
  • D. The bucket has server-side encryption enabled, and the Administrator must run the aws s3 rb s3://my bucket -- sse command.
Show Suggested Answer Hide Answer
Suggested Answer: D 🗳️

Comments

Chosen Answer:
This is a voting comment (?). It is better to Upvote an existing comment if you don't have anything to add.
Switch to a voting comment New
saumenP
Highly Voted 2 years, 7 months ago
B should be correct. https://docs.aws.amazon.com/AmazonS3/latest/dev/delete-or-empty-bucket.html You can delete a bucket that contains objects using the AWS CLI only if the bucket does not have versioning enabled. If your bucket does not have versioning enabled, you can use the rb (remove bucket) AWS CLI command with --force parameter to remove a non-empty bucket.
upvoted 15 times
...
Augustine
Highly Voted 2 years, 7 months ago
I THINK THE CORRECT ANSWER IS B.
upvoted 7 times
...
albert_kuo
Most Recent 10 months ago
Selected Answer: B
When versioning is enabled on an Amazon S3 bucket, deleting the bucket does not actually remove the objects stored in it. Instead, the objects are archived as versions, and a delete marker is created for each deletion operation. The aws s3 rb command only removes the bucket if it is empty and does not consider the presence of delete markers.
upvoted 1 times
...
asfsdfsdf
2 years, 2 months ago
Selected Answer: B
I suggest B. Need to delete all object versions + markers before the bucket can be removed. https://docs.aws.amazon.com/AmazonS3/latest/userguide/DeletingObjectVersions.html https://docs.aws.amazon.com/AmazonS3/latest/dev/delete-or-empty-bucket.html "You can delete a bucket that contains objects with the AWS CLI if it doesn't have versioning enabled"
upvoted 1 times
...
Sam0_2000
2 years, 5 months ago
Correct answer B. I am a student so I am not confident but this is what I did D: aws s3 rb s3://my-bucket -- see command failed : Unknown Option sse I manually deleted all the versions and made the bucket empty and aws s3 rb s3://my-buck and it worked - so I guess D is not correct and C is.
upvoted 1 times
...
RicardoD
2 years, 6 months ago
B is the answer versioned objects are not show when using default bucket options. The sysops admin should delete the objects markers so the bucket can be later deleted
upvoted 1 times
...
abhishek_m_86
2 years, 6 months ago
B. The bucket has versioning enabled, and the Administrator must permanently delete the objects' delete markers. Seem correct
upvoted 1 times
...
jackdryan
2 years, 6 months ago
I'll go with B
upvoted 2 times
...
MFDOOM
2 years, 6 months ago
B. The bucket has versioning enabled, and the Administrator must permanently delete the objects' delete markers.
upvoted 2 times
...
waterzhong
2 years, 6 months ago
B : You can delete a bucket that contains objects using the AWS CLI only if the bucket does not have versioning enabled. If your bucket does not have versioning enabled, you can use the rb (remove bucket) AWS CLI command with --force parameter to remove a non-empty bucket. This command deletes all objects first and then deletes the bucket.
upvoted 1 times
...
Cakemanator
2 years, 7 months ago
Tested Ans is B
upvoted 1 times
...
AWS_Noob
2 years, 7 months ago
B - whether trying to delete a bucket from the CLI or Console. If versioning is enabled, and all objects are deleted, objects will have a delete marker. The delete marker will first have to be removed before the bucket can be removed
upvoted 3 times
...
kanzagh
2 years, 7 months ago
B : You can delete a bucket that contains objects using the AWS CLI only if the bucket does not have versioning enabled. If your bucket does not have versioning enabled, you can use the rb (remove bucket) AWS CLI command with --force parameter to remove a non-empty bucket. This command deletes all objects first and then deletes the bucket. https://docs.aws.amazon.com/AmazonS3/latest/dev/delete-or-empty-bucket.html
upvoted 2 times
...
mukeshs
2 years, 7 months ago
it should be B
upvoted 6 times
...
coolboylqy
2 years, 7 months ago
any one knows the answer? couldn't find a correct one...
upvoted 1 times
...
Community vote distribution
A (35%)
C (25%)
B (20%)
Other
Most Voted
A voting comment increases the vote count for the chosen answer by one.

Upvoting a comment with a selected answer will also increase the vote count towards that answer by one. So if you see a comment that you already agree with, you can upvote it instead of posting a new comment.

SaveCancel
Loading ...
exam
Someone Bought Contributor Access for:
SY0-701
London, 1 minute ago