Chapter 16 checkpoint

Scaling on AWS

Every question from this chapter’s lessons, grouped by the lesson that teaches it. Answer each one right to finish; you can try again whenever you like.

0 of 18 answered right

16.1 From one user to millions on AWS

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

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

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

16.2 Availability zones, failover and auto scaling

0 of 5 answered right
Open the lesson
Question 5
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
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
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
Which Auto Scaling policy does AWS recommend when capacity should follow a metric in proportion?

Question 9
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?

16.3 Multiple regions and disaster recovery

0 of 5 answered right
Open the lesson
Question 10
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 11
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 12
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 13
Match each disaster recovery strategy to what runs in the recovery Region.

Question 14
Is an Aurora global database active/active for writes?

16.4 Cost: compute, storage and network

0 of 4 answered right
Open the lesson
Question 15
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 16
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 17
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 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?