Skip to main content

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)

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.