A Lambda that only writes to one DynamoDB table was given AdministratorAccess to unblock a sprint. What should replace that policy?
Select an answer to reveal the explanation.
Short Explanation
Admin on a single-table writer is a skeleton key for a locker that only needs one padlock. Swap it for a role that can Put/Update that table—and nothing else. Root keys in env vars make it worse.
Full Explanation
Lambda execution roles should follow least privilege: grant only the DynamoDB actions and table ARN required for the function. AdministratorAccess and root credentials vastly exceed need and expand blast radius. Broad S3 wildcards are unrelated to scoping DynamoDB writes.