ExamGecko
Question list
Search
Search

List of questions

Search

Related questions











Question 235 - SCS-C02 discussion

Report
Export

A security engineer logs in to the AWS Lambda console with administrator permissions. The security engineer is trying to view logs in Amazon CloudWatch for a Lambda function that is named my Function.

When the security engineer chooses the option in the Lambda console to view logs in CloudWatch, an ''error loading Log Streams' message appears.

The IAM policy for the Lambda function's execution role contains the following:

How should the security engineer correct the error?

A.
Move the logs:CreateLogGroup action to the second Allow statement.
Answers
A.
Move the logs:CreateLogGroup action to the second Allow statement.
B.
Add the logs:PutDestination action to the second Allow statement.
Answers
B.
Add the logs:PutDestination action to the second Allow statement.
C.
Add the logs:GetLogEvents action to the second Allow statement.
Answers
C.
Add the logs:GetLogEvents action to the second Allow statement.
D.
Add the logs:CreateLogStream action to the second Allow statement.
Answers
D.
Add the logs:CreateLogStream action to the second Allow statement.
Suggested answer: D

Explanation:

CloudWatchLogsReadOnlyAccess doesn't include 'logs:CreateLogStream' but it includes 'logs:Get*' https://docs.aws.amazon.com/AmazonCloudWatch/latest/logs/iam-identity-based-access-control-cwl.html#:~:text=oam%3A*%3A*%3Asink/*%22%0A%20%20%20%20%20%20%20%20%7D%0A%20%20%20%20%5D%0A%7D-,CloudWatchLogsReadOnlyAccess,-The%20CloudWatchLogsReadOnlyAccess%20policy

asked 16/09/2024
Antonio Agustin Mirano
34 questions
User
Your answer:
0 comments
Sorted by

Leave a comment first