Practice free →
HomeAWS Developer Associatecloudcomputingawsdevtroubleshooting › Where do Lambda function STDOUT and STDERR end u…

Where do Lambda function STDOUT and STDERR end up by default?

AMailed to the AWS root account daily
BAmazon CloudWatch Logs (log group `/aws/lambda/<function-name>`)
CLost — Lambda doesn't persist logs anywhere
DStored in S3 buckets owned by the function's IAM role
Answer & Solution
Correct answer: B. Amazon CloudWatch Logs (log group `/aws/lambda/<function-name>`)
Lambda automatically streams stdout/stderr to CloudWatch Logs under `/aws/lambda/<function-name>`. The other options misstate what Lambda does.
Solve this in the app — AWS Developer Associate practice & 24k+ MCQs →
Related questions