Question 860
A serverless product optimizes short event processing cost. The team confirms that a workload has stable continuous high CPU load and Lambda invocation charges exceed EC2. Which approach most directly resolves this gap?
Explanation
Correct Answer
The scenario identifies this requirement: A workload has stable continuous high CPU load and Lambda invocation charges exceed EC2. Select Benchmark EC2/ECS continuous compute economics against Lambda as the specified technical mechanism. Long steady compute may favor provisioned capacity. This response addresses the problem described rather than a different design goal.
Incorrect Answers
The option Migrate supported short handlers to Lambda with API Gateway addresses a separate condition: a low-traffic webhook service runs on an always-on EC2 instance. Serverless per-invocation billing can suit sporadic traffic. The actual requirement is a workload has stable continuous high CPU load and Lambda invocation charges exceed EC2. Recommended corrective action: Benchmark EC2/ECS continuous compute economics against Lambda. Long steady compute may favor provisioned capacity.
For the alternative failure a high-volume Lambda function has too much memory allocated for its actual requirements, the control Benchmark and tune Lambda memory-duration cost tradeoffs is relevant: lambda price depends on memory allocation and execution duration. Here the evidence instead is a workload has stable continuous high CPU load and Lambda invocation charges exceed EC2. The selected technical mechanism is Benchmark EC2/ECS continuous compute economics against Lambda: long steady compute may favor provisioned capacity.
Schedule ECS service desired-count reductions with safeguards solves a different operational problem where an ECS service's tasks run 24/7 at full size although demand is only daytime. Scaling down idle containers reduces compute charges. It does not directly address a workload has stable continuous high CPU load and Lambda invocation charges exceed EC2. The case calls for Benchmark EC2/ECS continuous compute economics against Lambda, since long steady compute may favor provisioned capacity.