DOP-C02 exam dumps

DOP-C02 practice question 310 of 411

AWS Certified DevOps Engineer - Professional. Professional level, Amazon Web Services. Free question with the correct answer and a full explanation.

DOP-C02 Question 310

Select 2

Your organization uses an Auto Scaling group (ASG) in a production environment to handle traffic spikes for a web application. Recently, a sudden surge in traffic caused the application to slow down due to insufficient compute capacity. To address this issue dynamically, you decide to implement configuration changes to the ASG in response to CloudWatch alarms for CPU utilization. Which approach will ensure the application scales appropriately during such events?

  1. A

    Configure CloudWatch to trigger a Step Scaling policy that increases the number of instances in the ASG based on CPU utilization thresholds.

  2. B

    Enable automatic scaling based on predictive scaling policies to forecast traffic patterns and adjust capacity proactively.

  3. C

    Manually monitor the CPU utilization metrics in CloudWatch and add instances to the ASG when a threshold is breached.

  4. D

    Configure an EventBridge rule to invoke an AWS Lambda function that modifies the ASG configuration when the CPU utilization exceeds a defined threshold.

  5. E

    Set up a Target Tracking Scaling policy for the ASG to maintain the average CPU utilization at a pre-defined target value.

Show answer and explanation

Correct answers: A, E

Explanation

To implement configuration changes in response to events like traffic surges, you should use automated scaling solutions offered by AWS. Step Scaling policies allow fine-grained control over scaling actions based on CloudWatch alarm thresholds, while Target Tracking Scaling policies simplify scaling by maintaining a target metric like CPU utilization. Predictive Scaling can also enhance proactive capacity adjustments for traffic surges, but manual scaling or custom solutions using EventBridge and Lambda are less optimal for this scenario.

  • A. Correct.

    Correct: Step Scaling policies allow you to define specific actions (e.g., adding or removing instances) based on thresholds for CloudWatch alarms, making them a suitable choice for handling sudden CPU utilization spikes.

  • B. Incorrect.

    Correct: Predictive Scaling uses machine learning to forecast traffic trends and proactively adjusts capacity, making it an effective solution for handling unexpected traffic surges.

  • C. Incorrect.

    Incorrect: Manually monitoring metrics and scaling the ASG introduces delays and is not an automated or scalable solution in response to events.

  • D. Incorrect.

    Incorrect: While EventBridge and Lambda can modify ASG configurations, this approach is more complex and less efficient compared to native Auto Scaling policies for handling CPU-based scaling.

  • E. Correct.

    Correct: Target Tracking Scaling policies simplify scaling by maintaining a predefined metric (e.g., average CPU utilization) without requiring manual intervention, making them ideal for dynamic scaling.

Timed practice exam

Take a DOP-C02 practice test under exam conditions

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

Start timed exam