
Ultimate access to all questions.
A security engineer with administrator permissions logs into the AWS Lambda console and attempts to view logs in Amazon CloudWatch for a specific Lambda function named 'myFunction'. Upon selecting the option to view logs in CloudWatch, the engineer encounters an 'error loading Log Streams' message. The IAM policy associated with the Lambda function's execution role is relevant to this issue. What corrective action should the security engineer implement to successfully view the logs?
A
Move the logs:CreateLogGroup action to the second Allow statement.
B
Add the logs:PutDestination action to the second Allow statement.
C
Add the logs:GetLogEvents action to the second Allow statement.
D
Add the logs:CreateLogStream action to the second Allow statement.