Q5 — AWS SAA-C03 Ch.15
Question 5 of 100 | ← Chapter 15
Q1105. A company wants to analyze and generate reports to track the usage of its mobile app. The app is popular and has a global user base. The company uses a custom report building program to analyze application usage.The program generates multiple reports during the last week of each month. The program takes less than l0 minutes to produce each report. The company rarely uses the program to generate reports outside of the last week of each month. The company wants to generate reports in the least amount of time when the reports are requested.Which solution will meet these requirements MOST cost-effectively?
- A. Run the program by using Amazon EC2 On-Demand Instances. Create an Amazon EventBridge rule to start the EC2 instances when reports are requested. Run the EC2 instances continuously during the last week of each month.
- B. Run the program in AWS Lambda. Create an Amazon EventBridge rule to run a Lambda function when reports are requested. ✓
- C. Run the program in Amazon Elastic Container Service (Amazon ECS). Schedule Amazon ECS to run the program when reports are requested.
- D. Run the program by using Amazon EC2 Spot Instances. Create an Amazon EventBridge rule to start the EC2 instances when reports are requested. Run the EC2 instances continuously during the last week of each month.
Correct Answer: B. Run the program in AWS Lambda. Create an Amazon EventBridge rule to run a Lambda function when reports are requested.
Explanation
The best solution for the company to analyze and generate reports for its mobile app, considering cost-effectiveness and responsiveness, is indeed:B. Run the program in AWS Lambda. Create an Amazon EventBridge rule to run a Lambda function when reports are requested.Cost-Effectiveness: AWS Lambda only charges for the compute time when the function is running, eliminating costs associated with idle resources. This is particularly beneficial since the report generation is infrequent and only occurs during the last week of each month.-- Quick Execution: Lambda functions are designed for short tasks and can be executed quickly (in less than 10 minutes) as required. This ensures rapid response times when reports are requested.Event-Driven Architecture: Utilizing Amazon EventBridge allows for a straightforward trigger mechanism for generating reports, ensuring that resources are only used when necessary and that the solution scales efficiently.This choice balances performance and cost, making it the most suitable option for the company's reporting needs.