[CLF-C02 Practice Questions Q3] High Availability (EC2 Across Multiple AZs and RDS Multi-AZ)

CLF-C02 Practice Questions Q3 High Availability (EC2 Across Multiple AZs and RDS Multi-AZ) Certification

“If I add more instances or use a larger instance, shouldn’t it be harder to take down? Is that not enough?”
“I thought that taking backups every day would keep me safe when a failure happens.”

AWS Certified Cloud Practitioner (exam code CLF-C02, CLF below) often asks whether a design can withstand the scope of a failure (here, an entire AZ). In this question, you choose a design that keeps an order system built on EC2 and RDS running even when an entire Availability Zone fails.

This article is Question 3 of a series that explains CLF practice questions one at a time. The author wrote the questions to match the scope of the exam; they are not actual exam questions. Choose your answer first, then read the explanation.


Question

A company runs its internal order system on Amazon EC2 and Amazon RDS. It does not want to stop taking orders even if an entire Availability Zone (AZ) fails, for example because of a power outage at a data center. Which design is the most appropriate?

  • A. Add more EC2 instances within one AZ and use Auto Scaling to maintain the number of instances
  • B. Take daily backups of the EC2 AMI and the RDS snapshot
  • C. Place a larger EC2 instance type in one AZ
  • D. Place EC2 instances in multiple AZs and distribute traffic with Elastic Load Balancing, and use a Multi-AZ deployment for RDS

Once you have chosen your answer, open the section below.

Show the answer (click to open)

Answer: D

If you place EC2 instances in multiple AZs and distribute traffic with Elastic Load Balancing, and use a Multi-AZ deployment for RDS, both the application and the database keep running in another AZ even if an entire AZ stops.


The answer is D

The correct answer is D.

  • EC2: place instances in multiple AZs and distribute traffic with Elastic Load Balancing
  • RDS: use a Multi-AZ deployment

Even if an entire AZ stops, both the application and the database keep running in another AZ. Let’s look at the options one at a time.


Explanation of each option

A: More instances, but still one AZ (incorrect)

On the left, "Failure of one instance": three EC2 instances are in an Auto Scaling group in AZ-a, and one has a cross on it, but the rest keep running. Auto Scaling launches a replacement. On the right, "Failure of an entire AZ": all three instances in the same AZ-a have crosses on them, and all stop at the same time. More instances, but still one AZ

If you add more instances, you can withstand the failure of one instance, as shown on the left of the diagram. Auto Scaling launches a replacement instance and maintains the number of instances.

However, all the instances are in the same AZ. As shown on the right of the diagram, if an entire AZ fails, all of them stop at the same time. No matter how many instances you line up in the same AZ, they cannot withstand the failure of the entire AZ.

B: Backups are a means of recovery (incorrect)

The top row is "Back up once a day": an AMI is created from EC2 and a snapshot from RDS. The bottom row is "When an AZ fails": failure, stop, restore from backup, and resume, in that order. Orders stop from the stop until the restore. It is a way to recover after a failure, not a way to keep running

An EC2 AMI and an RDS snapshot are backups for recovering after a failure. As shown in the lower part of the diagram, when an AZ fails, the system stops, and orders remain stopped until you restore from the backup and resume.

It is not a mechanism for keeping the system running.

C: Larger, but still one instance in one AZ (incorrect)

On the left, "Vertical scaling (scale up)": within AZ-a, a small EC2 instance becomes a large EC2 instance, so one instance gets faster, but it is still one instance in one AZ. On the right, "Failure of an entire AZ": the one large EC2 instance in AZ-a has a cross on it, and the one large instance stops. Bigger does not survive an AZ failure

Moving to a larger instance type is vertical scaling, shown on the left of the diagram. The performance of one instance goes up.

However, it is still one instance in one AZ. As shown on the right of the diagram, if the AZ fails, that one instance stops with it. Vertical scaling only raises the performance of one instance.

D: Both EC2 and RDS in multiple AZs (correct)

Inside a Region there are AZ-a (failure) and AZ-b (keeps running). Traffic from users reaches Elastic Load Balancing, which distributes it with a dotted line to the failed AZ-a and a solid line to AZ-b. EC2 and RDS (primary) in AZ-a have crosses on them. EC2 and RDS (standby) in AZ-b keep running. The two RDS instances are synchronized, and the standby fails over automatically. RDS Multi-AZ places a synchronized standby in another AZ

The diagram shows a configuration with EC2 in two AZs. Elastic Load Balancing (ELB) distributes traffic from users to the AZs that are running.

In an RDS Multi-AZ deployment, a synchronized standby is placed in another AZ. When a failure occurs, RDS fails over to the standby automatically. Even if AZ-a stops, you can keep taking orders with EC2 and RDS in AZ-b.


Keep running vs. don’t lose and can restore

Let’s summarize the difference between the two measures. If the goal is to keep running, use Multi-AZ. If the goal is to not lose data and be able to restore it, use backups. Both matter, but they have different roles, so on the exam you tell them apart by which goal the question states.

AspectKeep running (high availability)Don’t lose / can restore (backup)
MechanismSpread across multiple AZs (Multi-AZ)Take AMIs and snapshots
AWS examplesEC2 in multiple AZs + ELB, RDS Multi-AZEC2 AMI, RDS snapshot
During a failureKeeps running in another AZStopped until restored

Key points

  • Keep running even if an entire AZ fails = multiple AZs (EC2 + ELB, RDS Multi-AZ)
  • Adding instances or using a larger instance in the same AZ does not survive an AZ failure
  • “Keep running” → Multi-AZ; “don’t lose / can restore” → backups

The idea of spreading resources across multiple AZs and RDS Multi-AZ deployments are explained in detail in the course articles.

  • Lecture 3, Part 3: High availability and multiple Regions
  • Lecture 7, Part 4: RDS and Multi-AZ deployments

You can read all 14 lectures of AWS Cloud Practitioner Exam Prep in order from its series page.


The CLF-C02 Practice Questions series (100 questions)

All 100 questions with a reading guide: CLF-C02 Practice Questions

In this group (Questions 1–6: Cloud benefits and high availability):

This series is the English edition of 【CLF-C02 試験対策問題】, originally written in Japanese.

コメント

Copied title and URL