Questions 28 to 30

Explanations for questions 28 to 30

We'll cover the following

Question 28

A distribution method is required for some static files. The requests will mainly be GET requests. A high volume of GETs is expected, often exceeding 2000 per second. The files are currently stored in an S3 bucket. According to AWS best practices, how can performance be optimized?

  1. Use Cross-Region Replication to spread the load across regions.
  2. Use ElastiCache to cache the content.
  3. Integrate CloudFront with S3 to cache the content.
  4. Use S3 Transfer Acceleration.

Correct Answer: 3

Explanation: Amazon S3 automatically scales to high request rates. For example, your application can achieve at least 3,500 PUT/POST/DELETE and 5,500 GET requests per second per prefix in a bucket. There are no limits to the number of prefixes in a bucket.

If your workload is mainly sending GET requests, in addition to the preceding guidelines, you should consider using Amazon CloudFront for performance optimization. By integrating CloudFront with Amazon S3, you can distribute content to your users with low latency and a high data transfer rate.

INCORRECT:Use Cross-Region Replication to spread the load across regions.” is incorrect. Cross-Region Replication creates a replica copy in another region but should not be used for spreading read requests across regions. There will be 2 S3 endpoints, and CRR is not designed for 2 way sync, so this would not work well.

INCORRECT:Use ElastiCache to cache the content.” is incorrect. ElastiCache is used for caching database content not S3 content.

CORRECT: “Integrate CloudFront with S3 to cache the content.” is the correct answer.

INCORRECT:Use S3 Transfer Acceleration.” is incorrect. Transfer Acceleration is used to accelerate object uploads to S3 over long distances (latency).

References: https://docs.aws.amazon.com/AmazonS3/latest/dev/request-rate-perf-considerations.html

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