DVA-C02 · Question #659
DVA-C02 Question #659: Real Exam Question with Answer & Explanation
The correct answer is D: Update the Lambda function execution role with appropriate permission to write logs to. Lambda needs IAM permissions to create log groups, log streams, and put log events in CloudWatch Logs. Adding (or updating) the function’s execution role with the managed policy AWSLambdaBasicExecutionRole (or equivalent permissions) enables the function to write its logs
Question
A developer is working on an AWS Lambda function. The developer notices that the Lambda function's logs do not appear in Amazon CloudWatch Logs. How should the developer resolve this issue?
Options
- ABundle the latest runtime version library with the Lambda function code. Redeploy the Lambda
- BConfigure the security group settings of the Lambda function to grant access to CloudWatch.
- CIncrease the memory of the Lambda function.
- DUpdate the Lambda function execution role with appropriate permission to write logs to
Explanation
Lambda needs IAM permissions to create log groups, log streams, and put log events in CloudWatch Logs. Adding (or updating) the function’s execution role with the managed policy AWSLambdaBasicExecutionRole (or equivalent permissions) enables the function to write its logs
Community Discussion
No community discussion yet for this question.