DVA-C02 · Question #695
A company migrates some of its Amazon EC2 workloads to Spot Instances. An infrastructure team wants to determine how often the deployed Spot Instances are interrupted and replaced. The infrastructure
The correct answer is B. Create an AWS Lambda function that receives an Amazon EventBridge notification every time a. Amazon EventBridge emits specific events for Spot Instance interruptions. Creating a Lambda function triggered by these Spot interruption events allows direct detection without extra filtering or lifecycle hook configuration, minimizing development effort. The function can then p
Question
A company migrates some of its Amazon EC2 workloads to Spot Instances. An infrastructure team wants to determine how often the deployed Spot Instances are interrupted and replaced. The infrastructure team must publish a custom metric to Amazon CloudWatch for Spot Instance interruptions and replacements. Which solution will meet this requirement with LEAST development effort?
Options
- ACreate an AWS Lambda function that receives an Amazon EventBridge notification every time an
- BCreate an AWS Lambda function that receives an Amazon EventBridge notification every time a
- CCreate an AWS Lambda function that receives an Amazon EC2 lifecycle hook notification every
- DCreate an AWS Lambda function that receives an Amazon EC2 lifecycle hook notification every
How the community answered
(21 responses)- A10% (2)
- B86% (18)
- C5% (1)
Explanation
Amazon EventBridge emits specific events for Spot Instance interruptions. Creating a Lambda function triggered by these Spot interruption events allows direct detection without extra filtering or lifecycle hook configuration, minimizing development effort. The function can then publish a custom CloudWatch metric for each interruption.
Community Discussion
No community discussion yet for this question.