
Answer-first summary for fast verification
Answer: Create an Amazon EventBridge (Amazon CloudWatch Events) scheduled event that invokes an AWS Lambda function to query the application's API for the data., Use Amazon Simple Email Service (Amazon SES) to format the data and to send the report by email.
## Explanation **Correct Answers: D and B** **D. Create an Amazon EventBridge (Amazon CloudWatch Events) scheduled event that invokes an AWS Lambda function to query the application's API for the data.** - Amazon EventBridge (formerly CloudWatch Events) can be used to create scheduled events that run at specific times (e.g., every morning). - AWS Lambda is ideal for this use case because it can: - Query the REST API to extract shipping statistics - Process and format the data into HTML - Be triggered by EventBridge on a schedule - Scale automatically and only run when needed **B. Use Amazon Simple Email Service (Amazon SES) to format the data and to send the report by email.** - Amazon SES is specifically designed for sending email at scale - It can format HTML emails and send to multiple recipients - The Lambda function can use SES to send the formatted HTML report to the required email addresses **Why other options are incorrect:** **A. Configure the application to send the data to Amazon Kinesis Data Firehose.** - Kinesis Data Firehose is for streaming data ingestion and delivery to destinations like S3, Redshift, etc. - It's not suitable for scheduled batch processing or email delivery **C. Create an Amazon EventBridge (Amazon CloudWatch Events) scheduled event that invokes an AWS Glue job to query the application's API for the data.** - AWS Glue is primarily for ETL (Extract, Transform, Load) jobs and data cataloging - It's overkill for this simple API query and email task - Glue jobs are better suited for large-scale data processing, not simple API calls **E. Store the application data in Amazon S3. Create an Amazon Simple Notification Service (Amazon SNS) topic as an S3 event destination to send the report by email.** - This approach would require storing data in S3 first - SNS can send notifications but is not ideal for formatted HTML email reports - SNS email capabilities are limited compared to SES - This doesn't address the scheduled nature of the requirement **Architecture Flow:** 1. EventBridge scheduled rule triggers Lambda function every morning 2. Lambda function queries the REST API for shipping statistics 3. Lambda processes data and formats it into HTML 4. Lambda uses Amazon SES to send the HTML report to multiple email addresses This solution is cost-effective, serverless, and meets all requirements: scheduled execution, API querying, HTML formatting, and email delivery to multiple recipients.
Ultimate access to all questions.
No comments yet.
Author: LeetQuiz Editorial Team
A company is developing an application that provides order shipping statistics for retrieval by a REST API. The company wants to extract the shipping statistics, organize the data into an easy-to-read HTML format, and send the report to several email addresses at the same time every morning.
Which combination of steps should a solutions architect take to meet these requirements? (Choose two.)
A
Configure the application to send the data to Amazon Kinesis Data Firehose.
B
Use Amazon Simple Email Service (Amazon SES) to format the data and to send the report by email.
C
Create an Amazon EventBridge (Amazon CloudWatch Events) scheduled event that invokes an AWS Glue job to query the application's API for the data.
D
Create an Amazon EventBridge (Amazon CloudWatch Events) scheduled event that invokes an AWS Lambda function to query the application's API for the data.
E
Store the application data in Amazon S3. Create an Amazon Simple Notification Service (Amazon SNS) topic as an S3 event destination to send the report by email.