
Explanation:
AWS Lambda requires specific IAM permissions to write logs to Amazon CloudWatch Logs. If the execution role assigned to the Lambda function lacks permissions like logs:CreateLogGroup, logs:CreateLogStream, and logs:PutLogEvents, the function will execute but no log entries will be visible in CloudWatch Logs.
Ultimate access to all questions.
A development team created and deployed a new AWS Lambda function 15 minutes ago. Although the function was invoked many times, Amazon CloudWatch Logs are not showing any log messages. What is one cause of this?
A
The developers did not enable log messages for this Lambda function.
B
The Lambda function's role does not include permissions to create CloudWatch Logs items.
C
The Lambda function raises an exception before the first log statement has been reached.
D
The Lambda functions creates local log files that have to be shipped to CloudWatch Logs first before becoming visible.
No comments yet.