AWS Certified Data Engineer – Associate (DEA-C01) — Question 31
A company has a frontend ReactJS website that uses Amazon API Gateway to invoke REST APIs. The APIs perform the functionality of the website. A data engineer needs to write a Python script that can be occasionally invoked through API Gateway. The code must return results to API Gateway.
Which solution will meet these requirements with the LEAST operational overhead?
Answer options
- A. Deploy a custom Python script on an Amazon Elastic Container Service (Amazon ECS) cluster.
- B. Create an AWS Lambda Python function with provisioned concurrency.
- C. Deploy a custom Python script that can integrate with API Gateway on Amazon Elastic Kubernetes Service (Amazon EKS).
- D. Create an AWS Lambda function. Ensure that the function is warm by scheduling an Amazon EventBridge rule to invoke the Lambda function every 5 minutes by using mock events.
Correct answer: B
Explanation
The correct answer is B because AWS Lambda provides a serverless compute service that automatically manages the infrastructure, requiring the least operational overhead. Option A and C involve managing container orchestration, which increases complexity and overhead, while option D introduces unnecessary maintenance by needing a scheduled trigger to keep the function warm.