Q32 — AWS SAA-C03 Ch.13

Question 32 of 100 | ← Chapter 13

Q932. A company has an employee web portal. Employees log in to the portal to view payroll details. The company is developing a new system to give employees the ability to upload scanned documents for reimbursement. The company runs a program to extract text-based data from the documents and attach the extracted information to each employee's reimbursement lDs for processing.The employee web portal requires 100% uptime.The document extract program runs infrequently throughout the day on an on-demand basis.The company wants to build a scalable and cost-effective new system that will require minimal changes to the existing web portal. The company does not want to make any code changes.Which solution will meet these requirements with the LEAST implementation effort?

Correct Answer: D. Create an Amazon S3 bucket to host the web portal. Use Amazon API Gateway and an AWS Lambda function for the existing functionalities. Use the Lambda function to run the document extract program.Invoke the Lambda function when the API that is associated with a new document upload is called.

Explanation

A OR DThe solution that meets the requirements with the LEAST implementation effort is:D. Create an Amazon S3 bucket to host the web portal. Use Amazon API Gateway and an AWS Lambda function for the existing functionalities. Use the Lambda function to run the document extract program. Invoke the Lambda function when the API that is associated with a new document upload is called.Here's why:Minimal Changes: This approach requires minimal changes to the existing web portal. You can host the portal on S3 and use API Gateway and Lambda functions to handle the existing functionalities and the new document upload and extraction process.Scalability and Cost-Effectiveness: Lambda functions are serverless and scale automatically based on demand, ensuring scalability and cost-effectiveness. API Gateway handles traffic routing and scaling, further enhancing the system's performance.On-Demand Execution: The Lambda function can be invoked on demand when a new document is uploaded, ensuring efficient resource utilization.Why other options are less efficient or require more effort:A. Run Amazon EC2 On-Demand Instances in an Auto Scaling group for the web portal. Use an AWS Lambda function to run the document extract program. lnvoke the Lambda function when an employee uploads a new reimbursement document. This approach requires managing EC2 instances and an Auto Scaling group, adding complexity and operational overhead.B. Run Amazon EC2 Spot Instances in an Auto Scaling group for the web portal.Run the document extract program on EC2 Spot Instances. Start document extract program instances when an employee uploads a new reimbursement document. Using Spot Instances introduces uncertainty in availability and requires managing Spot instance lifecycle, increasing complexity.C. Purchase a Savings Plan to run the web portal and the document extract program. Run the web portal and the document extract program in an Auto Scaling group. While Savings Plans offer cost savings, they require upfront commitment and still involve managing EC2 instances and Auto Scaling groups, adding complexity.In summary:Option D provides the most straightforward and efficient solution with minimal implementation effort. It leverages serverless services like S3, API Gateway, and Lambda functions to achieve scalability, cost- effectiveness, and on-demand execution while requiring minimal changes to the existing web portal.