Q82 — AWS SAA-C03 Ch.10

Question 82 of 100 | ← Chapter 10

Q682. 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 10 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?

Correct Answer: B. Run the program in AWS Lambda. Create an Amazon EventBridge rule to run a Lambda function when reports are requested

Explanation

To meet the requirements of generating reports in the least amount of time when requested, while also being cost-effective, the solution that would be most suitable is B: Run the program in AWS Lambda and create an Amazon EventBridge rule to run a Lambda function when reports are requested.A: Running the program using Amazon EC2 On-Demand Instances and creating an Amazon EventBridge rule to start the instances when reports are requested: While this solution can provide flexibility in starting the instances on-demand, running EC2 instances continuously during the last week of each month can incur unnecessary costs when the program is not actively generating reports.C: Running the program in Amazon Elastic Container Service (Amazon ECS) and scheduling it to run when reports are requested: Amazon ECS is a container orchestration service, and while it can provide flexibility in managing containers, it may introduce unnecessary complexity and overhead for the requirements of running a single program to generate reports.D: Running the program using Amazon EC2 Spot Instances and creating an Amazon EventBridge rule to start the instances when reports are requested: While Spot Instances can offer cost savings, they are subject to availability and pricing fluctuations. Running EC2 instances continuously during the last week of each month may lead to unpredictable costs and potentially longer start times if Spot Instances are not available.B: Running the program in AWS Lambda and creating an Amazon EventBridge rule to run a Lambda function when reports are requested: This solution is the most cost-effective and efficient for generating reports. AWS Lambda offers serverless computing, where you pay only for the actual execution time of the function. Since the program takes less than 10 minutes to produce each report, Lambda can handle the workload efficiently without incurring costs for idle resources. Using EventBridge, you can trigger the Lambda function whenever a report is requested, ensuring the reports are generated in a timely manner.Therefore, the correct answer is B. Run the program in AWS Lambda and create an Amazon EventBridge rule to run a Lambda function when reports are requested.