DVA-C02 Question 58
Select 3Your e-commerce application is experiencing increased traffic during a holiday sale. You need to ensure that the application can handle this surge in traffic without downtime. The application is hosted on AWS and uses Amazon EC2 instances behind an Elastic Load Balancer (ELB). Which of the following actions will help you achieve scalability effectively?
- A
Enable Auto Scaling for your EC2 instances and configure scaling policies based on CPU utilization.
- B
Upgrade the EC2 instances to larger instance types manually to handle increased traffic.
- C
Use Amazon CloudFront to cache static content closer to users.
- D
Enable Elastic Load Balancer's cross-zone load balancing feature to distribute traffic evenly across all instances.
- E
Manually provision additional EC2 instances during peak hours to handle the increase in requests.
Show answer and explanation
Correct answers: A, C, D
Explanation
To achieve scalability during traffic surges, it is critical to leverage automated solutions like Auto Scaling, caching mechanisms like Amazon CloudFront, and efficient traffic distribution via features like cross-zone load balancing. Manual interventions, such as upgrading or provisioning instances, are less effective and do not align with AWS best practices for scaling dynamically.
- A. Correct.
Correct: Enabling Auto Scaling allows you to automatically add or remove EC2 instances based on traffic patterns, ensuring scalability without manual intervention.
- B. Incorrect.
Incorrect: Manually upgrading instances does not provide the flexibility or automation needed to handle unpredictable traffic surges effectively.
- C. Correct.
Correct: Amazon CloudFront helps reduce the load on your backend servers by caching static content, improving scalability and performance.
- D. Correct.
Correct: Cross-zone load balancing ensures that traffic is distributed evenly across all EC2 instances in different Availability Zones, improving the scalability of your application.
- E. Incorrect.
Incorrect: Manually provisioning instances is error-prone and does not provide the automated scalability required for a highly dynamic traffic environment.