Complete the code to set the reserved concurrency limit for an AWS Lambda function.
aws lambda put-function-concurrency --function-name MyFunction --reserved-concurrent-executions [1]The reserved concurrency must be a positive integer to limit concurrent executions. '10' sets the limit to 10 concurrent executions.
Complete the code to check the current concurrency limit of a Lambda function.
aws lambda get-function-concurrency --function-name [1]The command requires the exact function name. 'MyFunction' matches the example function used.
Fix the error in the command to remove the reserved concurrency limit from a Lambda function.
aws lambda [1] --function-name MyFunctionUse 'delete-function-concurrency' to remove the reserved concurrency configuration, allowing the function to use the full account concurrency limit.
Fill both blanks to set the reserved concurrency limit to 1000 for a Lambda function (causing throttling beyond 1000 concurrent invocations).
aws lambda put-function-concurrency --function-name MyFunction --[2] [1]
The command sets --reserved-concurrent-executions 1000 to limit the function to 1000 concurrent executions.
Fill all three blanks to create a CloudWatch alarm that triggers when Lambda throttling exceeds 5 errors in 1 minute.
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
The alarm uses the 'Sum' statistic over a 60-second period and triggers when throttles exceed 5.