Courseiva
Development with AWS ServicesmediumDrag & DropObjective-mapped

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.

Drag steps to the numbered slots on the right, or tap a step then tap a slot.

Steps
Order
1Step 1
2Step 2
3Step 3
4Step 4
5Step 5
6Step 6

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 ClassMin DurationRetrievalUse Case
S3 StandardNoneImmediateFrequently accessed data
S3 Standard-IA30 daysImmediateInfrequent access, rapid retrieval
S3 One Zone-IA30 daysImmediateNon-critical infrequent data
S3 Intelligent-TieringNoneImmediate–hoursUnknown or changing access patterns
S3 Glacier Instant90 daysMillisecondsArchive with instant retrieval
S3 Glacier Flexible90 daysMinutes–hoursArchive, flexible retrieval
S3 Glacier Deep Archive180 daysHoursLong-term compliance archive

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 →

How Courseiva writes practice questions · Editorial policy

JA

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.