CLF-C02 exam dumps

CLF-C02 practice question 179 of 342

AWS Certified Cloud Practitioner. Free level, Amazon Web Services. Free question with the correct answer and a full explanation.

CLF-C02 Question 179

Single answer

A company hosts their e-commerce application on Amazon EC2 instances. During sales events, the application experiences sudden spikes in traffic, which causes performance issues. How can the company address these spikes while minimizing costs and ensuring the application scales automatically?

  1. A

    Manually launch additional EC2 instances during traffic spikes and terminate them afterward.

  2. B

    Use Amazon EC2 Auto Scaling to automatically add or remove instances based on traffic demand.

  3. C

    Upgrade all EC2 instances to larger instance types before sales events to handle increased traffic.

  4. D

    Use AWS CloudFormation to deploy a fixed number of EC2 instances to handle peak traffic.

Show answer and explanation

Correct answer: B

Explanation

Amazon EC2 Auto Scaling allows the application to automatically scale the number of instances up or down based on traffic demand. This ensures cost-effectiveness by avoiding over-provisioning while maintaining performance during traffic spikes. It aligns with the principle of elasticity in cloud computing.

  • A. Incorrect.

    Manually launching and terminating instances can be error-prone, time-consuming, and does not provide true elasticity. This option does not leverage automation.

  • B. Correct.

    Amazon EC2 Auto Scaling enables the dynamic scaling of instances based on predefined conditions, providing elasticity to handle traffic spikes and minimizing costs during low usage periods.

  • C. Incorrect.

    Upgrading to larger instance types increases costs regardless of actual demand and does not dynamically adjust to traffic changes, making it an inefficient solution.

  • D. Incorrect.

    Using AWS CloudFormation to deploy a fixed number of instances does not provide elasticity since the number of instances remains static, regardless of fluctuating traffic.

Timed practice exam

Take a CLF-C02 practice test under exam conditions

65 questions in 90 minutes, drawn from this bank, with a score report and a per-question review when you finish.

Start timed exam