[CLF-C02 Practice Questions Q8] Design Principles of the Reliability Pillar (Automatic Recovery and Horizontal Scaling)

CLF-C02 Practice Questions Q8 Design Principles of the Reliability Pillar (Automatic Recovery and Horizontal Scaling) Certification

“I thought that if I made the server more powerful, it would stop going down. Is that not enough?”
“Encryption is important too, so I choose it, thinking it is an effort for reliability.”

AWS Certified Cloud Practitioner (exam code CLF-C02, CLF below) often asks you to identify a design principle of the reliability pillar of the Well-Architected Framework from the problem described in the question. You answer which design principle addresses a problem such as “the system stops when something fails.”

This article is Question 8 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 an online reservation system on AWS. When one server failed at night, the system could not accept reservations until a staff member responded, and this has happened several times. Which improvements follow the design principles of the reliability pillar of the AWS Well-Architected Framework? (Choose two.)

  • A. Replace the server with a single, more powerful server to prepare for failure
  • B. Encrypt data at rest and in transit
  • C. Set up a mechanism that automatically recovers when a failure is detected
  • D. Replace one large server with several smaller servers and distribute the requests
  • E. Do not test recovery procedures, because causing failures in an environment close to production is dangerous

Once you have chosen two answers, open the section below.

Show the answer (click to open)

Answer: C and D

C is “automatically recover from failure,” and D is “scale horizontally to increase aggregate workload availability.” Both are design principles of the reliability pillar. Both are improvements that keep the system accepting reservations without waiting for a staff member to respond.


The answer is C and D

The correct answers are C and D.

  • C: the design principle to automatically recover from failure
  • D: the design principle to scale horizontally to increase aggregate workload availability

Both are improvements that keep the system accepting reservations without waiting for a staff member. Let’s look at the options one at a time.


Explanation of each option

A: A single, more powerful server is still a single point of failure (incorrect)

The left side is "Replace with one faster server (vertical scaling)." The current server, with an "Upgrade" arrow, becomes one faster server, but it is still just one server. The right side is "If that one server fails." Requests from a customer reach the server marked with a failure X, and even at night it stays down until staff respond, so it cannot accept reservations. With one server, a single point of failure remains

As in the left of the diagram, replacing the server with one more powerful server is vertical scaling. Performance goes up, but there is still only one server. As in the right of the diagram, if that one server fails, the system still cannot accept reservations. The single point of failure, where one failure stops everything, remains.

B: Encryption belongs to the security pillar (incorrect)

The left side is "Encrypt data at rest and in transit." For data at rest (a database and a key), encrypt the data that is stored. For data in transit (communication between a computer and a server), encrypt the traffic that is sent and received. Efforts to protect data. The right side is "Which pillar is this principle from?" The answer, in an orange frame, is "Security pillar: protect data in transit and at rest." A gray frame says "Not the reliability pillar: encryption does not prepare you for server failures."

Encrypting data at rest and in transit is an effort to protect data. It corresponds to the design principle “protect data in transit and at rest” of the security pillar.

It is important, but it does not solve the problem in this question, where reservations stop when a server fails. Tell them apart by which pillar each belongs to.

C: Automatically recover from failure (correct)

Four boxes connected by arrows from left to right: the server fails (X mark), monitor and detect (e.g., CloudWatch), start recovery when a threshold is crossed, and automatically replace with a new server (check mark). Below them: "EC2 Auto Scaling automatically replaces unhealthy instances." At the bottom, from "Before: reservations cannot be accepted until staff respond" to "After: recovers automatically, without waiting for staff."

This is the reliability pillar’s design principle to automatically recover from failure.

For example, you monitor with Amazon CloudWatch and automatically start a recovery process when a threshold is crossed. EC2 Auto Scaling automatically replaces unhealthy instances with new ones. Even at night, the system recovers without waiting for a staff member.

D: Scale horizontally (correct)

The left side is "One large server." Requests from customers reach one server marked with a failure X, and one failure stops all reservations. The right side is "Spread across several small servers." Elastic Load Balancing (the load balancer) distributes requests to three servers. The top and bottom servers are accepting (check marks), and the middle one has failed (X mark). If one server fails, the others keep accepting

This is the design principle to scale horizontally to increase aggregate workload availability.

As in the right of the diagram, you replace one large server with several smaller servers. You distribute requests with Elastic Load Balancing. Even if one server fails, the remaining servers can keep accepting reservations.

E: Test recovery procedures (incorrect)

At the top, from a red box, "Option: too risky, so do not test recovery procedures," an "Opposite" arrow points to a green box, "Design principle: Test recovery procedures." Below, three boxes are connected by arrows: simulate a failure (e.g., AWS Fault Injection Service), run the recovery steps (does automatic recovery work?), and verify the recovery (fix procedure gaps in advance). At the bottom: "In the cloud, you can verify recovery before a real failure occurs."

A design principle of the reliability pillar is to test recovery procedures. “Do not test” says the opposite.

In the cloud, you can simulate failures and check in advance whether your recovery procedures work. You can find and fix gaps in the procedures before a failure happens in production.


The five design principles of the reliability pillar

Let’s organize the five design principles of the reliability pillar. The correct answers this time were the first and third in the table. “Stop guessing capacity” is the idea of automatically adding and removing resources to match demand.

Design principleExamples
Automatically recover from failureMonitor, and recover automatically when a threshold is crossed
Test recovery proceduresSimulate failures and check the recovery procedures
Scale horizontally to increase aggregate workload availabilitySplit one large server into several small ones and distribute the load
Stop guessing capacityMonitor demand, and add or remove resources automatically
Manage change in automationMake infrastructure changes through automation

Key points

  • “It stops until staff respond” → automatically recover from failure
  • Instead of making one server bigger, split it into smaller ones and distribute the load (horizontal scaling)
  • Encryption belongs to the security pillar. Recovery procedures should be tested

The lectures explain the six Well-Architected pillars, and how to design for failure and scale horizontally, in detail.

  • Lecture 11, Part 3: The six pillars
  • Lecture 11, Part 6: Designing for failure and loose coupling

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 7–18: Well-Architected, AWS CAF, and migration):

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

コメント

Copied title and URL