
Answer-first summary for fast verification
Answer: Use an Amazon CloudWatch metric stream to send the EC2 Auto Scaling status data to Amazon Kinesis Data Firehose. Store the data in Amazon S3.
## Explanation **Correct Answer: A** **Why Option A is correct:** 1. **Serverless solution**: CloudWatch metric streams and Kinesis Data Firehose are fully managed, serverless services. 2. **Near-real-time updates**: CloudWatch metric streams can send metrics to Kinesis Data Firehose in near real-time, which can then deliver to S3. 3. **No impact on EC2 instance launches**: This solution operates independently of EC2 instances and doesn't affect their launch speed. 4. **Auto Scaling integration**: CloudWatch automatically captures EC2 Auto Scaling events and metrics. 5. **Scalability**: The solution scales automatically with the number of Auto Scaling events. **Why other options are incorrect:** **Option B (EMR cluster):** - Not serverless (requires managing EMR clusters) - Overly complex for this use case - Higher cost and operational overhead - Not the most efficient solution for near-real-time data **Option C (EventBridge + Lambda on schedule):** - Not near-real-time (runs on a schedule) - May miss events between scheduled runs - Less efficient than streaming approach **Option D (Bootstrap script with Kinesis Agent):** - **Directly violates the requirement**: Would affect EC2 instance launch speed because bootstrap scripts run during instance launch - Adds overhead to instance launch process - Requires agent installation and configuration on each instance - Not a serverless solution **Key AWS Services Used:** - **Amazon CloudWatch Metric Streams**: Streams CloudWatch metrics to destinations - **Amazon Kinesis Data Firehose**: Fully managed service for delivering streaming data to S3 - **Amazon S3**: Storage for the Auto Scaling status data This solution provides a fully managed, serverless pipeline that delivers Auto Scaling events to S3 in near real-time without impacting EC2 instance launch performance.
Author: LeetQuiz Editorial Team
Ultimate access to all questions.
No comments yet.
A company is building a solution that will report Amazon EC2 Auto Scaling events across all the applications in an AWS account. The company needs to use a serverless solution to store the EC2 Auto Scaling status data in Amazon S3. The company then will use the data in Amazon S3 to provide near-real-time updates in a dashboard. The solution must not affect the speed of EC2 instance launches.
How should the company move the data to Amazon S3 to meet these requirements?
A
Use an Amazon CloudWatch metric stream to send the EC2 Auto Scaling status data to Amazon Kinesis Data Firehose. Store the data in Amazon S3.
B
Launch an Amazon EMR cluster to collect the EC2 Auto Scaling status data and send the data to Amazon Kinesis Data Firehose. Store the data in Amazon S3.
C
Create an Amazon EventBridge rule to invoke an AWS Lambda function on a schedule. Configure the Lambda function to send the EC2 Auto Scaling status data directly to Amazon S3.
D
Use a bootstrap script during the launch of an EC2 instance to install Amazon Kinesis Agent. Configure Kinesis Agent to collect the EC2 Auto Scaling status data and send the data to Amazon Kinesis Data Firehose. Store the data in Amazon S3.