DVA-C02 practice question · Troubleshooting and Optimization
Where would a developer look first to see the console.log output and runtime errors from a specific AWS Lambda function…
Where would a developer look first to see the console.log output and runtime errors from a specific AWS Lambda function invocation?
- AThe function's Amazon CloudWatch Logs log group
- BThe IAM console's policy simulator
- CAmazon Route 53 query logs
- DThe S3 bucket's server access logs
Show the answer and explanation
Correct answer: A) The function's Amazon CloudWatch Logs log group
Why each option is right or wrong
- A) Correct. Lambda automatically streams a function's console output and runtime errors to a dedicated CloudWatch Logs log group, which is the standard first place to check for invocation-level debugging.
- B) Incorrect. The policy simulator tests whether a policy would allow or deny an action; it doesn't show a function's runtime output or errors.
- C) Incorrect. Route 53 query logs cover DNS lookups, not a Lambda function's console output or runtime errors.
- D) Incorrect. S3 access logs record requests made to a bucket, not a Lambda function's own execution logs.
- Exam domain
- Troubleshooting and Optimization · 18% of DVA-C02
- Question type
- Multiple choice (one answer)
Related DVA-C02 questions
- Which CloudWatch feature lets a developer run SQL-like queries directly against log data to quickly find patterns, such…Troubleshooting and Optimization
- An API Gateway endpoint backed by Lambda is returning a high rate of 429 (Too Many Requests) errors to clients during a…Troubleshooting and Optimization
- A developer is unsure whether a specific IAM policy actually grants a particular action on a particular resource…Troubleshooting and Optimization
- An asynchronously invoked Lambda function keeps failing, and after its configured retries are exhausted, the event seems…Troubleshooting and Optimization
All 67 free DVA-C02 questions by domain · 15 sample questions on one page
Practise the full DVA-C02 exam
This question is one of a small free sample from the CertRidge DVA-C02 bank. Full practice exams match the real exam's length, time limit and domain weights, explain every option, and Review Mode re-drills the questions you miss.
Original question written from the official exam guide. Not affiliated with AWS; never copied from the real exam.
Worth reading: DVA-C02 cheat sheet, Lambda, DynamoDB, API Gateway, IAM and Cognito, messaging, CI/CD and X-Ray in tables, plus what DVA-C03 changes.