DOP-C02 Incident and Event Response Practice Question
A company uses Amazon S3 to store critical data. An incident occurs where an S3 bucket is accidentally deleted. The DevOps engineer needs to recover the bucket and its objects. What should the engineer do?
Answer choices
Why each option matters
Answer the question above first, then reveal the full breakdown to understand why each option is right or wrong.
Correct answer & explanation
✓
Recreate the bucket with the same name and restore objects from a previous backup
If the bucket was deleted, the only way to recover the data is to recreate the bucket (note: the bucket name may not be immediately available, but you can create a new bucket with a different name) and restore objects from a previous backup, assuming backups exist. Option B is incorrect because AWS Support cannot restore a deleted S3 bucket; versioning helps recover individual object versions but does not prevent bucket deletion. Option A is incorrect because CloudTrail logs API calls but cannot restore buckets. Option D is incorrect because the S3 console does not have an undo feature for bucket deletion.
Answer analysis
Option-by-option breakdown
For each option: why learners choose it and why it is or isn't the right answer here.
- ✗
Restore the bucket from AWS CloudTrail event history
Why it's wrong here
CloudTrail logs are used for auditing and cannot restore a deleted bucket.
- ✗
Contact AWS Support to restore the bucket from a backup if versioning was enabled
Why it's wrong here
AWS Support cannot restore a deleted S3 bucket. Versioning protects object versions but does not prevent deletion of the bucket itself.
- ✓
Recreate the bucket with the same name and restore objects from a previous backup
Why this is correct
The only way to recover from a deleted bucket is to recreate it and restore objects from a backup. (Note: bucket name uniqueness may require waiting or using a different name.)
- ✗
Use the AWS S3 console to undo the deletion
Why it's wrong here
The S3 console does not provide an undo delete option for buckets.
Quick reference
AWS S3 Storage Class Comparison
| Storage Class | Min Duration | Retrieval | Use Case |
|---|---|---|---|
| S3 Standard | None | Immediate | Frequently accessed data |
| S3 Standard-IA | 30 days | Immediate | Infrequent access, rapid retrieval |
| S3 One Zone-IA | 30 days | Immediate | Non-critical infrequent data |
| S3 Intelligent-Tiering | None | Immediate–hours | Unknown or changing access patterns |
| S3 Glacier Instant | 90 days | Milliseconds | Archive with instant retrieval |
| S3 Glacier Flexible | 90 days | Minutes–hours | Archive, flexible retrieval |
| S3 Glacier Deep Archive | 180 days | Hours | Long-term compliance archive |
Go deeper
Related to this question
About these practice questions
One of 1,487 original DOP-C02 practice questions on Courseiva, each with a full explanation and wrong-answer analysis — not exam dumps or protected exam content. Learn why practice questions differ from exam dumps →
JA
Written by Johnson Ajibi, MSc IT Security
Senior Network & Security Engineer · founder of Courseiva
This DOP-C02 practice question is part of Courseiva's free Amazon Web Services certification practice question bank. Courseiva provides original exam-style practice questions with explanations, topic-based practice, mock exams, readiness tracking, and study analytics to help learners prepare for the DOP-C02 exam.