0
0
AWScloud~20 mins

Lambda concurrency and throttling in AWS - Practice Problems & Coding Challenges

Choose your learning style9 modes available
Challenge - 5 Problems
🎖️
Lambda Concurrency Master
Get all challenges correct to earn this badge!
Test your skills under time pressure!
service_behavior
intermediate
2:00remaining
Understanding Lambda Throttling Behavior

You have an AWS Lambda function with a reserved concurrency limit set to 5. If 10 requests arrive simultaneously, what happens to the extra requests beyond the limit?

AThe first 5 requests run immediately; the other 5 are throttled and receive a throttling error.
BThe first 5 requests are queued and run after the initial 5 finish; no errors occur.
CAll 10 requests run concurrently because Lambda automatically scales beyond reserved concurrency.
DLambda rejects all 10 requests because the concurrency limit is set to 5.
Attempts:
2 left
💡 Hint

Think about what reserved concurrency means for Lambda execution limits.

Architecture
intermediate
2:00remaining
Designing for High Lambda Concurrency

You expect a sudden spike of 1000 concurrent Lambda invocations. Your account's default concurrency limit is 100. What is the best architectural approach to handle this spike without throttling?

AUse an SQS queue to buffer requests and trigger Lambda with a controlled concurrency rate.
BSet the function's reserved concurrency to 1000 to allow all invocations.
CDeploy multiple identical Lambda functions and distribute requests evenly among them.
DRequest a concurrency limit increase from AWS and use reserved concurrency for the function.
Attempts:
2 left
💡 Hint

Think about how to smooth out sudden spikes using AWS services.

security
advanced
2:00remaining
Impact of Lambda Concurrency on Downstream Services

You have a Lambda function that writes to a database. The function has a reserved concurrency of 50. Suddenly, the function is throttled due to high traffic. What is a potential security risk if throttling is not handled properly?

AThrottled requests automatically bypass authentication checks.
BThrottled Lambda invocations may retry rapidly, causing a denial of service on the database.
CThrottling causes Lambda to expose environment variables to unauthorized users.
DLambda throttling disables encryption for data sent to the database.
Attempts:
2 left
💡 Hint

Consider what happens when clients retry failed requests aggressively.

Best Practice
advanced
2:00remaining
Configuring Reserved Concurrency for Multiple Lambda Functions

You have three Lambda functions: A, B, and C. Your account concurrency limit is 100. You want to ensure function A always has at least 30 concurrent executions available, but functions B and C can share the remaining concurrency. How should you configure reserved concurrency?

ADo not set reserved concurrency for any function; rely on account limit.
BSet reserved concurrency to 30 for function A; set 35 for B and 35 for C.
CSet reserved concurrency to 30 for function A; leave B and C without reserved concurrency.
DSet reserved concurrency to 100 for function A; no concurrency for B and C.
Attempts:
2 left
💡 Hint

Reserved concurrency guarantees capacity for a function.

🧠 Conceptual
expert
2:00remaining
Analyzing Lambda Throttling Metrics

You monitor your Lambda function's CloudWatch metrics and see a sudden spike in the Throttles metric while Invocations remain steady. What is the most likely explanation?

AThe function's timeout is too short, causing throttling errors.
BThe function is failing internally, causing retries that increase throttling.
CThe function's memory size is too small, causing slow execution and throttling.
DThe function's reserved concurrency limit was reached, causing throttling despite steady invocation count.
Attempts:
2 left
💡 Hint

Think about what causes throttling independent of invocation count.