Where do Lambda and Glue job logs go by default?
Why C is the answer
Amazon CloudWatch Logs
CloudWatch Logs collects their output.
In detail
- Lambda and Glue job logs go to CloudWatch Logs.
- Set retention, so logs do not grow forever.
Use case
An illustrative scenario, not a real incident.
An engineer reads a Lambda function's errors in CloudWatch Logs.
See it in different ways
flowchart LR A["Glue or Lambda failure"] --> B["CloudWatch Logs"] B --> C["Metric filter"] C --> D["CloudWatch alarm"] D --> E["Amazon SNS notification"]
sequenceDiagram participant S as S3 participant E as EventBridge participant F as Step Functions participant N as SNS S->>E: Object created E->>F: Start the workflow F->>F: Glue job, with retries F-->>N: Alert on failure
flowchart LR S0["Job runs"] --> S1["Output written"] --> S2["CloudWatch Logs"]
Key point: CloudWatch Logs collects output.
Why the other options are wrong
- A. Amazon S3, by default
- They do not go to S3 by default.
- B. AWS X-Ray
- X-Ray shows traces.
- D. AWS CloudTrail
- CloudTrail records API calls.

