Bird
0
0

How can you combine CloudWatch metrics with AWS Lambda to automate scaling based on CPU usage?

hard📝 Application Q9 of 15
AWS - CloudWatch
How can you combine CloudWatch metrics with AWS Lambda to automate scaling based on CPU usage?
AConfigure Lambda to send CPU metrics to CloudWatch
BUse Lambda to directly read CPU metrics and manually scale resources
CSet Lambda to run continuously and monitor CPU usage
DCreate a CloudWatch alarm on CPU metric that triggers a Lambda function to adjust scaling
Step-by-Step Solution
Solution:
  1. Step 1: Understand Automation with Alarms and Lambda

    CloudWatch alarms can trigger Lambda functions to automate actions like scaling.
  2. Step 2: Evaluate Other Options

    Lambda reading metrics manually is inefficient; sending metrics from Lambda is unrelated; continuous Lambda runs are costly.
  3. Final Answer:

    Create a CloudWatch alarm on CPU metric that triggers a Lambda function to adjust scaling -> Option D
  4. Quick Check:

    Alarm triggers Lambda for automation [OK]
Quick Trick: Use alarms to trigger Lambda for automated scaling [OK]
Common Mistakes:
  • Assuming Lambda polls metrics
  • Confusing metric sending with scaling
  • Running Lambda unnecessarily

Want More Practice?

15+ quiz questions · All difficulty levels · Free

Free Signup - Practice All Questions
More AWS Quizzes