Bird
0
0

You want to run a highly available web application using ECS. How should you design your ECS cluster to ensure availability if one EC2 instance fails?

hard📝 Application Q8 of 15
AWS - ECS and Fargate
You want to run a highly available web application using ECS. How should you design your ECS cluster to ensure availability if one EC2 instance fails?
AUse a single large EC2 instance with all resources
BRun all tasks on Fargate to avoid EC2 instances
CRegister multiple EC2 instances in different Availability Zones to the cluster
DCreate multiple clusters in the same Availability Zone
Step-by-Step Solution
Solution:
  1. Step 1: Understand high availability requirements

    Distributing EC2 instances across Availability Zones prevents single point of failure.
  2. Step 2: Evaluate options

    Single large instance risks failure impact. Fargate avoids EC2 but may increase cost and complexity. Multiple clusters in one AZ do not protect against AZ failure.
  3. Final Answer:

    Register multiple EC2 instances in different Availability Zones to the cluster -> Option C
  4. Quick Check:

    Multi-AZ EC2 instances improve availability [OK]
Quick Trick: Spread instances across AZs for availability [OK]
Common Mistakes:
  • Using single instance
  • Ignoring AZ distribution
  • Confusing clusters with AZs

Want More Practice?

15+ quiz questions · All difficulty levels · Free

Free Signup - Practice All Questions
More AWS Quizzes