FjellSystem Design Lab
Chapter 16 checkpoint

Chapter 16 checkpoint: scaling on AWS

Every question from this chapter’s lessons. Your first answer to each is the one that counts; afterward you can practice again as often as you like. Passing needs 75% right on the first attempt.

0 of 18 answered0 right on the first attempt
Question 1 of 18
The primer’s service gets 100 billion reads a month. Using its rule of 2.5 million seconds in a month, how many reads per second is that on average?
reads/s

Answers within 5% count.

Question 2 of 18
Put the primer’s scaling steps in order, from one box to millions of users.
  1. Move static content to S3 and MySQL to RDS
  2. Add a memory cache and read replicas
  3. Add a load balancer, several web servers across zones, and a CDN
  4. Add Auto Scaling groups
  5. Move history to a warehouse, some data to NoSQL, and slow work to queues
  6. Run the web server and MySQL on one box

Question 3 of 18
Reads are overloading MySQL. What does the primer say to try before adding a separate memory cache such as ElastiCache?

Question 4 of 18
Why does the primer move session data from the web servers into the memory cache?

Question 5 of 18
An Application Load Balancer uses the default health checks: every 30 seconds, with 2 consecutive failures marking a target unhealthy. About how long after a zone fails does it stop sending that zone’s targets requests?

Answers within 10% count, in any unit you choose.

Question 6 of 18
The load needs 30 instances, spread over 3 zones. How many instances must each zone run so that losing any one zone still leaves enough, with nothing new launched?
instances per zone

Answers within 1% count.

Question 7 of 18
Aurora keeps 6 copies of each segment, 2 per zone in 3 zones, with a write quorum of 4 and a read quorum of 3. A whole zone fails, and then one more storage node. What can the volume still do?

Question 8 of 18
Which Auto Scaling policy does AWS recommend when capacity should follow a metric in proportion?

Question 9 of 18
Your service runs in three AWS Regions. Which Route 53 routing policy sends each user to the Region with the lowest latency for them?

Question 10 of 18
Route 53 health checks run every 30 seconds with a failure threshold of 3, and the record’s TTL is 60 seconds. In the worst case, how long can a client keep reaching a failed Region?

Answers within 2% count, in any unit you choose.

Question 11 of 18
An Aurora global database takes 400 writes a second, and replication to the secondary Region lags by about 1 second. About how many writes are at risk in an unplanned failover?
writes

Answers within 5% count.

Question 12 of 18
Match each disaster recovery strategy to what runs in the recovery Region.

Question 13 of 18
Is an Aurora global database active/active for writes?

Question 14 of 18
You keep 100 TB of logs in S3 Standard at 0.023 USD per GB-month. A lifecycle rule moves 80% to Glacier Instant Retrieval at 0.004 USD per GB-month and leaves 20% in Standard. What is the new monthly storage bill, ignoring request and retrieval charges, in USD?
USD

Answers within 5% count.

Question 15 of 18
Instances in a private subnet send a lot of data to S3 through a NAT gateway. How does a gateway VPC endpoint for S3 reduce the cost?

Question 16 of 18
At the AWS Ohio example rate of 0.045 USD per GB processed, what do 10,000 GB a month of S3 traffic cost in NAT gateway processing charges, in USD?
USD

Answers within 2% count.

Question 17 of 18
A team bought a Compute Savings Plan sized for its daytime peak. Its fleet shrinks to a third of that overnight, and the bill is higher than expected. Why?

Question 18 of 18
A service runs 10 instances in each of three Availability Zones, each instance handling 1,000 requests a second, and takes 24,000 requests a second. Zone b fails, and replacement instances take several minutes to start. Until they do, which component is the bottleneck?