Drag steps to the numbered slots on the right, or tap a step then tap a slot.
DVA-C02 Development with AWS Services Practice Question
Drag and drop the steps to configure an S3 bucket for static website hosting in the correct order.
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
Create an S3 bucket, enable static website hosting, configure index and error documents, set appropriate bucket policy for public read access, upload website content
First create the bucket, then enable static website hosting, configure index and error documents, set appropriate permissions, and finally upload content.
Answer analysis
Option-by-option breakdown
For each option: why learners choose it and why it is or isn't the right answer here.
- ✓
Create an S3 bucket, enable static website hosting, configure index and error documents, set appropriate bucket policy for public read access, upload website content
Why this is correct
This order follows AWS best practices: you must first create a bucket, then enable static website hosting to specify the endpoint, configure the index and error documents, set a bucket policy to allow public read access, and finally upload your content so it's accessible.
- ✗
Create an S3 bucket, configure index and error documents, enable static website hosting, set bucket policy, upload content
Why it's wrong here
This order is incorrect because configuring index and error documents is an integral part of enabling S3 static website hosting. You must first enable the static website hosting feature on the S3 bucket, which then exposes the specific settings to define the index document (e.g., `index.html`) and an optional error document (e.g., `error.html`). Attempting to configure these before enabling the hosting service itself is not possible within the S3 console or API, as these settings are dependent on the hosting feature being active.
- ✗
Create an S3 bucket, enable static website hosting, set bucket policy, upload content, configure index and error documents
Why it's wrong here
This order is wrong because the index and error documents must be configured before or during upload. Uploading content before configuring these documents means the bucket doesn't know which files to serve as the default page or error page.
- ✗
Create an S3 bucket, set bucket policy, enable static website hosting, configure index and error documents, upload content
Why it's wrong here
This is incorrect because setting the bucket policy before enabling static website hosting may cause the policy to be invalid or unnecessary. Enable hosting first, then set the policy to allow public access to the website.
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
This DVA-C02 question is part of Courseiva's 724-question bank — original exam-style content with full explanations and wrong-answer analysis, never real exam questions or exam dumps. Learn why practice questions differ from exam dumps →
Written by Johnson Ajibi, MSc IT Security
Senior Network & Security Engineer · founder of Courseiva
This DVA-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 DVA-C02 exam.