
Explanation:
An AWS Lambda Python function behind Amazon API Gateway with provisioned concurrency pre-initializes execution environments for consistent low latency, remains serverless, and requires minimal operations. Containerizing with ECS EC2 or Fargate requires managing capacity and images. Keeping warm with EventBridge is unreliable for bursts and wastes invocations.
Ultimate access to all questions.
An online learning startup runs a React single-page app that calls REST endpoints through Amazon API Gateway. The data engineering team needs a Python routine that can be invoked on demand via API Gateway and must synchronously return its result to the caller with predictable startup latency and minimal operations work. Which solution should they choose?
A
Containerize the Python script and run it on Amazon ECS with EC2 launch type behind an Application Load Balancer
B
Create an AWS Lambda function in Python and try to keep it warm using an Amazon EventBridge Scheduler rule that invokes it every 2 minutes
C
Use an AWS Lambda Python function behind Amazon API Gateway and enable provisioned concurrency
D
Run the Python routine as a service on Amazon ECS with AWS Fargate
No comments yet.