Questions 52 to 54

Explanations for questions 52 to 54

We'll cover the following

Question 52

There is expected to be a large increase in write intensive traffic to a website you manage that registers users onto an online learning program. You are concerned about writes to the database being dropped and need to come up with a solution to ensure this does not happen. Which of the solution options below would be the best approach to take?

  1. Update the application to write data to an SQS queue, and provision additional EC2 instances to process the data and write it to the database.
  2. Use RDS in a Multi-AZ configuration to distribute writes across AZs.
  3. Use CloudFront to cache the writes, and configure the database as a custom origin.
  4. Update the application to write data to an S3 bucket, and provision additional EC2 instances to process the data and write it to the database.

Correct Answer: 1

Explanation: This is a great use case for Amazon Simple Queue Service (Amazon SQS). SQS is a web service that gives you access to message queues that store messages waiting to be processed and offers a reliable, highly-scalable, hosted queue for storing messages in transit between computers. SQS is used for distributed/decoupled applications. In this circumstance, SQS will reduce the risk of writes being dropped, and it is the best option presented.

Level up your interview prep. Join Educative to access 80+ hands-on prep courses.