Courseiva
Resilient Cloud Solutions →mediumMultiple Choice

DOP-C02 Resilient Cloud Solutions Practice Question

A company runs a stateless web application on Amazon ECS with Fargate. The application must be highly available across multiple Availability Zones. What is the BEST way to achieve this?

⚠ Common exam trap

Test-takers frequently think CloudFront (Option C) provides high availability for dynamic web applications, but it is a CDN for static content caching and does not replace the need for an ALB with multi-AZ task placement for active traffic routing.

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 ECS service with tasks in multiple AZs and place an ALB in front.

Running an ECS service with tasks in multiple Availability Zones (AZs) and placing an Application Load Balancer (ALB) in front ensures that if one AZ becomes unavailable, the ALB can route traffic to healthy tasks in the remaining AZs. This architecture provides both high availability and fault tolerance for the stateless web application, as the ALB performs health checks and distributes requests across tasks in different AZs.

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 ECS service with tasks in multiple AZs and place an ALB in front.

    Why this is correct

    Running ECS tasks in multiple Availability Zones ensures that an AZ failure does not cause total loss of capacity. The ALB performs health checks and routes traffic only to healthy targets, so if tasks in one AZ become unhealthy, traffic automatically shifts to tasks in the other AZ. Additionally, ECS service scheduler maintains desired task count across AZs, and with service auto scaling you can scale based on request count or CPU. This architecture provides both resiliency and elasticity.

  • ✗

    Use an Auto Scaling group of EC2 instances in a single AZ and run ECS tasks on them.

    Why it's wrong here

    An Auto Scaling group can only maintain or replace EC2 instances, but if the entire ASG is pinned to a single AZ, an outage in that AZ takes down every instance and every running task. Even if the ASG scales out, it cannot move capacity to another AZ because the launch configuration or template specifies a single subnet placement. ECS tasks scheduled on these instances are equally vulnerable; there is no cross-AZ failover possible, so the application is not highly available.

  • ✗

    Deploy a CloudFront distribution with multiple origins in different AZs.

    Why it's wrong here

    CloudFront is a content delivery network for caching and accelerating delivery of static content at edge locations, not a compute service for running application containers. You cannot place an ECS task behind CloudFront as an origin for dynamic compute in a way that provides high availability for the application tier; CloudFront does not manage or schedule ECS tasks. While multiple origins could be specified, CloudFront does not do health checks for failover based on application availability in the same way as an ALB; it can use origin failover but that's for CDN content, not for providing HA compute capacity.

  • ✗

    Deploy a single ECS service with tasks in one AZ and use an ALB.

    Why it's wrong here

    Deploying a single ECS service in one AZ means all tasks share the same failure domain. If that AZ becomes unavailable, the ALB has no healthy targets in another AZ to which it can route traffic, so all users experience downtime. Even if the ALB is itself multi-AZ, the bottleneck is the compute capacity in a single AZ. ECS service auto scaling may try to replace tasks, but in the same AZ which is degraded, so it doesn't restore availability.

About these practice questions

This DOP-C02 question is part of Courseiva's 1,298-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 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.