Deal of The Day! Hurry Up, Grab the Special Discount - Save 25% - Ends In 00:00:00 Coupon code: SAVE25
Welcome to Pass4Success

- Free Preparation Discussions

Amazon SCS-C03 Exam - Topic 2 Question 15 Discussion

An AWS Lambda function was misused to alter data, and a security engineer must identify who invoked the function and what output was produced. The engineer cannot find any logs created by the Lambda function in Amazon CloudWatch Logs.Which of the following explains why the logs are not available?
A) The execution role for the Lambda function did not grant permissions to write log data to CloudWatch Logs.
B) The Lambda function was invoked by using Amazon API Gateway, so the logs are not stored in CloudWatch Logs.
C) The execution role for the Lambda function did not grant permissions to write to the Amazon S3 bucket where CloudWatch Logs stores the logs.
D) The version of the Lambda function that was invoked was not current.

Amazon SCS-C03 Exam - Topic 2 Question 15 Discussion

Actual exam question for Amazon's SCS-C03 exam
Question #: 15
Topic #: 2
[All SCS-C03 Questions]

An AWS Lambda function was misused to alter data, and a security engineer must identify who invoked the function and what output was produced. The engineer cannot find any logs created by the Lambda function in Amazon CloudWatch Logs.

Which of the following explains why the logs are not available?

Show Suggested Answer Hide Answer
Suggested Answer: A

AWS Lambda automatically sends function execution logs to Amazon CloudWatch Logs when logging is enabled in the function code. However, this logging capability depends on the Lambda execution role having the appropriate permissions. According to the AWS Certified Security -- Specialty Study Guide, the execution role must include permissions such as logs:CreateLogGroup, logs:CreateLogStream, and logs:PutLogEvents.

If these permissions are missing, Lambda cannot create log groups or streams, and no execution logs will appear in CloudWatch Logs---even though the function was successfully invoked. This is the most common reason Lambda logs are unavailable during forensic investigations.

Option B is incorrect because Lambda logs are stored in CloudWatch Logs regardless of whether the invocation source is API Gateway, EventBridge, or another AWS service. Option C is incorrect because CloudWatch Logs does not require direct S3 permissions from the Lambda execution role. Option D is irrelevant because Lambda versions do not affect logging behavior.

AWS documentation emphasizes verifying execution role permissions as a first step when Lambda logs are missing.

Referenced AWS Specialty Documents:

AWS Certified Security -- Specialty Official Study Guide

AWS Lambda Execution Roles

Amazon CloudWatch Logs Integration with Lambda


Contribute your Thoughts:

0/2000 characters
Mireya
3 days ago
D) could be a factor too, but A) is likely the main issue.
upvoted 0 times
...
Edgar
8 days ago
Wait, how can you not have logs? That seems odd.
upvoted 0 times
...
Lorrine
13 days ago
B) is wrong, API Gateway logs are separate.
upvoted 0 times
...
Lenna
19 days ago
Totally agree, without the right permissions, logs won't show up.
upvoted 0 times
...
Therese
24 days ago
A) makes the most sense, no permissions = no logs.
upvoted 0 times
...
Alyce
29 days ago
I feel like D could be a factor, but I don't recall if the version affects logging directly. I need to double-check that.
upvoted 0 times
...
Ollie
1 month ago
I practiced a question similar to this, and I think C is unlikely because CloudWatch doesn’t store logs in S3.
upvoted 0 times
...
Cammy
1 month ago
I’m not entirely sure, but I think B might be misleading. Even if API Gateway is involved, logs should still go to CloudWatch, right?
upvoted 0 times
...
Anjelica
1 month ago
I remember we discussed how important it is for the execution role to have the right permissions for logging. So, A seems like a strong possibility.
upvoted 0 times
...

Save Cancel