Course menuSOA-C03

Exams / SOA-C03 / Caching with CloudFront and ElastiCache / Question 1

SOA-C03 practice question: Caching with CloudFront and ElastiCache (1 of 2)

Reliability and Business Continuity A free question from our original SOA-C03 practice exam. Try it, then open the answer to see why each option is right or wrong.

A pet insurer's quote website runs on EC2 instances that query an Amazon RDS for MySQL database. Query analysis shows that most database load comes from the same few hundred plan-lookup queries, whose results change only once a day. Database CPU reaches 90 percent at peak, and the team wants sub-millisecond reads for these lookups. What should a CloudOps engineer recommend?

Choose one answer.

  1. A. Turn on Multi-AZ for the DB instance so that the standby instance serves part of the read traffic.
  2. B. Put Amazon DynamoDB Accelerator (DAX) in front of the RDS database so that repeated queries are answered from memory.
  3. C. Move the DB instance to a larger instance class so that it has more CPU to process the repeated lookups at peak.
  4. D. Add an ElastiCache cluster and cache the plan-lookup results in the application with a TTL of a few hours.
Show the answer and explanation

Answer: D

Explanation

When a small set of queries with slowly changing results drives database load, caching them in memory is the standard fix. ElastiCache serves them in sub-millisecond time and frees the database for other work. Multi-AZ standbys do not serve reads, DAX works only with DynamoDB, and scaling up keeps every query on the database.

Study

Keep practicing

Answer questions with a score at the end, or practice just this topic with the explanation after each one. No sign-up needed.