A company wants to reduce the blast radius of compromised credentials used by a Lambda function that reads from DynamoDB and writes to an SQS queue. What is the best practice to apply?

Answer

Grant the Lambda execution role least-privilege actions only on the specific DynamoDB table and SQS queue ARNs required

Explanation

Applying least privilege to the Lambda execution role limits what damage a compromised function identity can do. Scoping permissions to specific resources reduces blast radius.

Last reviewed: October 2026

Reviewed by FirstInTest Editorial Team

Report an error
QuestionBack to list