0
0
AWScloud~10 mins

Lambda concurrency and throttling in AWS - Interactive Code Practice

Choose your learning style9 modes available
Practice - 5 Tasks
Answer the questions below
1fill in blank
easy

Complete the code to set the reserved concurrency limit for an AWS Lambda function.

AWS
aws lambda put-function-concurrency --function-name MyFunction --reserved-concurrent-executions [1]
Drag options to blanks, or click blank then click option'
Aunlimited
B-1
C0
D10
Attempts:
3 left
💡 Hint
Common Mistakes
Using 'unlimited' which is not accepted as a number.
Setting reserved concurrency to 0 disables the function.
2fill in blank
medium

Complete the code to check the current concurrency limit of a Lambda function.

AWS
aws lambda get-function-concurrency --function-name [1]
Drag options to blanks, or click blank then click option'
AYourFunction
BLambdaFunc
CMyFunction
DFunction1
Attempts:
3 left
💡 Hint
Common Mistakes
Using a wrong or misspelled function name.
Confusing function name with ARN.
3fill in blank
hard

Fix the error in the command to remove the reserved concurrency limit from a Lambda function.

AWS
aws lambda [1] --function-name MyFunction
Drag options to blanks, or click blank then click option'
Anull
Bdelete-function-concurrency
C0
DNone
Attempts:
3 left
💡 Hint
Common Mistakes
Using 'put-function-concurrency --reserved-concurrent-executions 0' which disables the function.
Using 'null' or 'None' which cause errors.
4fill in blank
hard

Fill both blanks to set the reserved concurrency limit to 1000 for a Lambda function (causing throttling beyond 1000 concurrent invocations).

AWS
aws lambda put-function-concurrency --function-name MyFunction --[2] [1]
Drag options to blanks, or click blank then click option'
A1000
Bthrottle
Creserved-concurrent-executions
Dconcurrency-limit
Attempts:
3 left
💡 Hint
Common Mistakes
Using invalid parameter names like 'throttle' or 'concurrency-limit'.
Confusing with provisioned concurrency parameters.
5fill in blank
hard

Fill all three blanks to create a CloudWatch alarm that triggers when Lambda throttling exceeds 5 errors in 1 minute.

AWS
aws cloudwatch put-metric-alarm --alarm-name LambdaThrottleAlarm --metric-name Throttles --namespace AWS/Lambda --statistic [1] --period [2] --threshold [3] --comparison-operator GreaterThanThreshold --evaluation-periods 1 --alarm-actions arn:aws:sns:us-east-1:123456789012:NotifyMe
Drag options to blanks, or click blank then click option'
ASum
BAverage
C60
D5
Attempts:
3 left
💡 Hint
Common Mistakes
Using 'Average' instead of 'Sum' which may not catch total throttles.
Setting threshold too high or too low.