Courseiva
Deployment →easyMultiple Choice

DVA-C02 Deployment Practice Question

A developer wants to deploy a static website to AWS. The website consists of HTML, CSS, and JavaScript files. Which combination of services provides the most cost-effective and scalable solution?

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

✓

Amazon S3 and Amazon CloudFront

Amazon S3 can host static websites, and CloudFront provides CDN for low latency and scalability. Option A is correct. Option B (EC2) is more expensive and requires management. Option C (Elastic Beanstalk) is overkill. Option D (Lightsail) is a VPS but not as scalable for static 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.

  • ✓

    Amazon S3 and Amazon CloudFront

    Why this is correct

    This combination is the optimal solution for deploying static websites on AWS. Amazon S3 provides highly durable, scalable, and cost-effective object storage, configured for static website hosting to serve HTML, CSS, JavaScript, and image files directly. Amazon CloudFront, a global content delivery network (CDN), then caches this content at edge locations worldwide, significantly reducing latency for end-users, enhancing security with DDoS protection, and enabling custom domain names with SSL certificates.

  • ✗

    Amazon Lightsail

    Why it's wrong here

    Amazon Lightsail offers bundled virtual private servers (VPS) with fixed compute, storage, and networking resources, simplifying instance management. While it can host a static website, it necessitates provisioning and managing an operating system and web server software on a dedicated instance, which introduces unnecessary operational overhead and higher costs compared to the serverless, fully managed approach of S3. Lightsail's fixed resource allocation also provides less inherent scalability for fluctuating traffic than S3 and CloudFront.

  • ✗

    Amazon EC2 and Application Load Balancer

    Why it's wrong here

    Utilizing Amazon EC2 instances with an Application Load Balancer (ALB) for a static website is an overly complex and expensive solution. EC2 instances require continuous operation, patching, and management of the underlying operating system and web server, incurring always-on compute costs. This architecture introduces significant operational overhead and resource provisioning for content that could be served directly from highly available object storage without any server management.

  • ✗

    AWS Elastic Beanstalk

    Why it's wrong here

    AWS Elastic Beanstalk is designed to simplify the deployment and scaling of web applications and services, abstracting the underlying infrastructure like EC2 instances, load balancers, and databases. While it can technically serve static files as part of an application, using it solely for a static website is inefficient. It provisions and manages a full application environment, leading to unnecessary costs and operational complexity for content that lacks dynamic processing or application logic.

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

Courseiva writes every DVA-C02 question from scratch — 1,135 in total, each with an explanation and a wrong-answer breakdown. None are copied from real exams or 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.