AWS Certified Solutions Architect Professional SAP-C02 Practice Question
A financial services company is modernizing a component of its legacy market data processing application. This component, currently hosted on a fleet of over-provisioned Amazon EC2 instances, handles unpredictable, high-throughput transaction bursts. A critical requirement is to maintain processing latency under 100ms per invocation to meet SLAs. The primary goals are to reduce costs associated with idle capacity and improve scalability. The development team has refactored the component into an AWS Lambda function. Which configuration should a Solutions Architect recommend to meet these requirements MOST effectively?
Create a scheduled Amazon EventBridge rule that invokes the function every minute to keep it warm.
Increase the function's memory allocation to the maximum and rely on on-demand scaling.
Place the function in a target group behind an Application Load Balancer and configure aggressive health checks to trigger invocations.
Configure Provisioned Concurrency for the function, setting the number of concurrent executions based on anticipated peak load.
The correct answer is to configure Provisioned Concurrency for the Lambda function. This feature is specifically designed for applications that require predictable, low-latency performance by keeping a specified number of execution environments initialized and ready to respond in double-digit milliseconds. This directly addresses the two main requirements: eliminating cold start latency to meet the sub-100ms SLA during sudden bursts and optimizing costs compared to running a constantly active EC2 fleet.
Increasing the function's memory allocation does provide more CPU power, which can reduce both cold start duration and execution time. However, it does not eliminate the cold start itself. The first request to an idle function will still experience initialization latency, which could violate the strict SLA. This makes it a helpful optimization but not the primary solution for guaranteed low latency.
Creating a scheduled Amazon EventBridge rule to invoke the function every few minutes is a technique known as a "pinger" or "warmer". This is an outdated practice that is now considered an anti-pattern. It typically only keeps a single execution environment warm, which is insufficient for handling high-throughput bursts of traffic, and it is less reliable and efficient than Provisioned Concurrency.
While an Application Load Balancer (ALB) can use a Lambda function as a target, using its health check mechanism to keep the function warm is not a recommended or effective pattern for this use case. ALB health checks are designed to monitor target health and route traffic accordingly, not to manage Lambda execution environments for performance. Provisioned Concurrency is the purpose-built AWS feature for this scenario.
Ask Bash
Bash is our AI bot, trained to help you pass your exam. AI Generated Content may display inaccurate information, always double-check anything important.
What is Provisioned Concurrency in AWS Lambda?
Open an interactive chat with Bash
Why is the 'pinger' or 'warmer' approach considered an anti-pattern?
Open an interactive chat with Bash
How does memory allocation impact AWS Lambda performance?
Open an interactive chat with Bash
AWS Certified Solutions Architect Professional SAP-C02
Accelerate Workload Migration and Modernization
Your Score:
Report Issue
Bash, the Crucial Exams Chat Bot
AI Bot
Loading...
Loading...
Loading...
IT & Cybersecurity Package Join Premium for Full Access