
Answer-first summary for fast verification
Answer: Use Amazon CloudWatch Logs for both API Gateway and Lambda logs.
Amazon CloudWatch Logs is the appropriate service for logging both Amazon API Gateway requests and AWS Lambda function executions. It provides real-time monitoring of logs and can store them securely, ensuring that all operations involving sensitive user data are tracked and can be audited for compliance.
Author: LeetQuiz Editorial Team
Ultimate access to all questions.
Your team is developing a new web application that uses Amazon API Gateway and AWS Lambda for backend services. The application handles sensitive user data and requires a robust logging strategy to ensure compliance with data protection regulations. Describe how you would implement logging for both API Gateway and Lambda to ensure that all access and operations are logged, and the logs are stored securely and can be easily accessed for auditing purposes.
A
Use AWS CloudTrail for API Gateway logs and Amazon CloudWatch Logs for Lambda logs.
B
Use Amazon CloudWatch Logs for both API Gateway and Lambda logs.
C
Use AWS X-Ray for tracing API Gateway requests and Amazon CloudWatch Logs for Lambda logs.
D
Use Amazon S3 for storing API Gateway logs and AWS Config for Lambda configuration logs.
No comments yet.