[CLF-C02 Practice Questions Q17] Rightsizing (CPU to Spare, Memory Running Short)

CLF-C02 Practice Questions Q17 Rightsizing (CPU to Spare, Memory Running Short) Certification

“CPU utilization is low, so I’d think going one size smaller would cut costs.”
“Buying Reserved Instances is also a way to optimize costs, so I don’t see why it’s wrong.”

AWS Certified Cloud Practitioner (exam code CLF-C02, CLF below) often asks you to read metrics (CPU and memory utilization) and choose the action that follows the idea of rightsizing. The deciding point is not only making the size smaller but also reviewing the instance family (a type with a different ratio of CPU to memory).

This article is Question 17 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 internal application on a general purpose instance. After checking three months of metrics in Amazon CloudWatch, it found that CPU utilization was always below 10%, but memory utilization was always above 85%. Which action follows the idea of rightsizing?

  • A. Buy a 3-year Reserved Instance for the current instance type
  • B. Change to a compute optimized instance
  • C. Change to a size one step smaller, staying with general purpose instances
  • D. Change to a memory optimized instance with fewer vCPUs

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

Show the answer (click to open)

Answer: D

CPU is spare and memory is short, so a size with fewer vCPUs in a memory optimized instance family, which has more memory per vCPU, is the fit. Rightsizing means choosing both the family and the size again to match actual usage.


The answer is D

The correct answer is D.

  • The current instance has spare CPU and is likely to run short of memory
  • Memory optimized instances are a family with more memory per vCPU, so they fit this usage

Let’s look at the options one at a time.


Explanation of each option

A: Reserved Instances fix the configuration (incorrect)

On the left is the current general purpose instance: the frame is the capacity and the fill is the amount in use. CPU is under 10% and memory is over 85%. The arrow to the right leads to "Same configuration, 3-year commitment", where a 3-year lock is placed on the same configuration. The discount lowers the unit price, but there is still spare CPU and not enough memory. You commit to 1 or 3 years of use (you pay even if you do not use it). At the bottom: this locks in a configuration that does not fit actual usage

The left of the diagram is the current instance. The frame is the capacity and the fill is the amount in use; CPU is below 10% and memory is above 85%.

With Reserved Instances, you decide on a configuration such as the instance family and Region, commit to 1 or 3 years of use, and receive a discount. You pay even if you do not use it. The unit price goes down, but it locks in, for a long time, a configuration with spare CPU and not enough memory. This is a way of buying, not a review of sizing.

B: Compute optimized is the opposite (incorrect)

On the left is the current general purpose instance with CPU under 10% and memory over 85%. The arrow to the right leads to a compute optimized instance, a family with many vCPUs per unit of memory. CPU has even more spare and memory runs short (the missing part is a hatched dashed outline). At the bottom: the opposite of current usage (spare CPU, not enough memory)

Compute optimized instances are a family with many vCPUs per unit of memory, suited to compute-heavy workloads. Here, usage has spare CPU and not enough memory. As shown in the diagram, CPU would have even more spare and memory would run short. It is the opposite of what the usage calls for.

C: Going smaller reduces memory too (incorrect)

On the left is the current general purpose instance with CPU under 10% and memory over 85%. The arrow to the right leads to a size one step smaller, still general purpose: a smaller size in the same family reduces vCPUs and memory together. There is less spare CPU, but memory runs short (already over 85%; the missing part is a hatched dashed outline). At the bottom: shrinking only the size leaves memory short

If you choose a size one step smaller in the same general purpose family, vCPUs and memory decrease together. The spare CPU shrinks, but memory is already above 85%. As shown in the diagram, the amount in use would exceed the capacity and memory would run short. Shrinking based only on the size leads to this kind of failure.

D: Memory optimized with fewer vCPUs (correct)

On the left is the current general purpose instance with CPU under 10% and memory over 85%. The arrow to the right leads to a memory optimized instance with a size with fewer vCPUs, a family with a lot of memory per vCPU. It reduces the spare CPU, with spare room in memory, and secures the memory you need. At the bottom: match both family and size to actual usage

Memory optimized instances are a family with more memory per vCPU. If you choose a size with fewer vCPUs in that family, you can, as shown in the diagram, reduce the spare CPU while securing the memory you need.

Rightsizing means choosing the instance family and size again to match actual usage. Review the family, not only the size. That is the deciding point here.


Differences among instance families

Here is a summary of the three instance families in this question, with their CPU-to-memory ratios and the workloads they suit.

FamilyCPU and memorySuited workloads
General purposeBalancedWeb servers, code repositories, and so on
Compute optimizedMany vCPUs per unit of memoryCompute-heavy workloads such as batch processing, media transcoding, and HPC
Memory optimizedA lot of memory per vCPUProcessing large datasets in memory

Rightsizing looks at both the family and the size. AWS Compute Optimizer also recommends instance types that fit, based on metrics. However, to analyze memory utilization, you must install the CloudWatch agent.


Key points

  • Spare CPU and short memory → memory optimized, with a size with fewer vCPUs
  • A smaller size in the same family also reduces memory
  • Reserved Instances are a way to buy at a discount, not a review of sizing
  • Rightsizing = look at both family and size

The course articles explain the idea of rightsizing and the differences among EC2 instance families in detail.

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