
Answer-first summary for fast verification
Answer: Use Amazon CloudWatch Logs for both Lambda functions and API Gateway logs.
Amazon CloudWatch Logs is the appropriate service for logging both AWS Lambda function executions and Amazon API Gateway requests. It provides real-time monitoring of logs and can store them securely, ensuring that all operations involving personal data are tracked and can be audited.
Author: LeetQuiz Editorial Team
Ultimate access to all questions.
You are responsible for setting up a logging mechanism for a new application that involves handling personal data. The application uses AWS Lambda functions to process data and Amazon API Gateway for RESTful services. Describe how you would configure logging for both the Lambda functions and API Gateway to ensure that all operations are logged, and the logs are stored in a centralized and secure location.
A
Use AWS CloudTrail for Lambda function logs and Amazon CloudWatch Logs for API Gateway logs.
B
Use Amazon CloudWatch Logs for both Lambda functions and API Gateway logs.
C
Use AWS X-Ray for tracing Lambda function operations and Amazon CloudWatch Logs for API Gateway logs.
D
Use Amazon S3 for storing Lambda function logs and AWS CloudTrail for API Gateway logs.
No comments yet.