How do you handle operational logging for ALB, CloudFront and API Gateway?
IntermediateProductionObservability, Deployments and Governance
Answer
Enable access logs on every production entry point: ALB and NLB access logs to S3, CloudFront standard logs (or real-time logs via Kinesis for live analysis), API Gateway access logging to CloudWatch with a JSON format including request ID, status, latency and integration latency. Query with Athena using partition projection. These logs answer "what did the client see" when application logs are silent, especially for 502/504 debugging.
More on Observability, Deployments and Governance
What should a production CloudWatch alarm strategy look like?IntermediateHow do you alert on an error-rate percentage instead of a raw count?IntermediateHow do you implement distributed tracing on AWS today?IntermediateHow do you define SLOs with AWS-native tools?AdvancedHow do you monitor from the user's perspective?BeginnerHow do you centralize observability across many accounts?Intermediate