Cloudfront Quiz
You are hosting a web server on an EC2 Instance. With the number of requests consuming a large part of the CPU, the response performance for the application is getting degraded. Which of the following would help alleviate the problem and provide a better response time?
A. Place the EC2 Instance behind a Classic Load Balancer.
B. Place the EC2 Instance behind an Application Load Balancer.
C. Place the EC2 Instance in an Auto Scaling Group with the max size as 1.
D. Place a CloudFront distribution in front of the EC2 Instance.
D. Place a CloudFront distribution in front of the EC2 Instance.
Since there is a mention of only one EC2 instance, placing it behind the ELB would not make much sense, hence Option A and B are invalid.
Having it in an Auto Scaling Group with just one instance would not make much sense.
CloudFront distribution would help alleviate the load on the EC2 Instance because of its edge location and cache feature.
For more information on CloudFront, please visit the following URL:
https://docs.aws.amazon.com/AmazonCloudFront/latest/DeveloperGuide/Introduction.html