Question 404 of 724
DVA-C02 Deployment Practice Question
A developer wants to deploy a static website to AWS. The website content is stored in an S3 bucket. Which combination of actions is required to host the website? (Choose TWO.)
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
✓
Enable static website hosting on the S3 bucket.
To host a static website on S3, you must enable static website hosting on the bucket (option B) and make the objects publicly readable (option E). Option A (server access logging) is optional for tracking requests, not required. Option C (restricting access to a specific IP) would prevent public access, which is needed for a public website. Option D (CloudFront) is an optional CDN service, not a requirement for S3 static website hosting.
Answer analysis
Option-by-option breakdown
For each option: why learners choose it and why it is or isn't the right answer here.
- ✗
Enable server access logging.
Why it's wrong here
Enabling server access logging is an optional operational feature that records bucket-level request logs to a target bucket for auditing or analytics. It does not influence whether a bucket can serve a public static website, nor does it configure any web-facing behavior. Because the developer's goal is simply to deploy and serve a static site, this step is not required and would not make the site reachable.
- ✓
Enable static website hosting on the S3 bucket.
Why this is correct
Enabling static website hosting on the S3 bucket is the essential configuration that activates the bucket's website endpoint (e.g., bucket-name.s3-website-region.amazonaws.com), which serves the site over HTTP and automatically resolves requests to an index document (like index.html) and a custom error document. Without this setting, the bucket only exposes its REST API endpoints, which require Signature Version 4 authentication and cannot render a browser-facing website. Therefore, this is a mandatory step for hosting any static site on Amazon S3.
- ✗
Set a bucket policy that restricts access to a specific IP.
Why it's wrong here
Setting a bucket policy that restricts access to a specific IP address would deny requests from all other visitors, which directly contradicts the requirement for a publicly accessible website. While bucket policies can control access on S3, a public static site needs an allow-all or open policy (or no policy with a public ACL) to let anonymous browsers retrieve objects. This step would actively block most users and is therefore incorrect.
- ✗
Configure Amazon CloudFront as a CDN.
Why it's wrong here
Configuring Amazon CloudFront as a CDN is an optional enhancement that adds edge caching, HTTPS termination, and custom domain support, but it is not a prerequisite for serving a static website from S3. The bucket itself, once static hosting is enabled and objects are public, can be accessed directly via its website endpoint without CloudFront. Since the developer must simply deploy the site, this step is unnecessary for the core functionality.
- ✓
Set the bucket objects to publicly readable.
Why this is correct
Setting the bucket objects to publicly readable is necessary because a static website on S3 relies on anonymous GET requests from any browser, and every object (HTML, CSS, JavaScript, images) must be accessible without authentication. This can be accomplished by attaching a bucket policy that grants s3:GetObject to 'Principal: *' or by configuring a public ACL on the bucket (though the latter is deprecated for new buckets). Without public read access, the website's files would return HTTP 403 Forbidden errors, making the site unusable.
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 |
About these practice questions
Courseiva creates original exam-style practice questions with explanations and wrong-answer analysis. It does not publish real exam questions, exam dumps, or protected exam content. Learn why practice questions differ from exam dumps →
Last reviewed: Jun 20, 2026
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.
Question Discussion
Share a tip, memory trick, or ask about the reasoning behind this question. Do not post real exam questions, leaked content, braindumps, or copyrighted exam material. Comments are moderated and may be removed without notice.
Sign in to join the discussion.