DVA-C02 Troubleshooting and Optimization Practice Question
Network Topology
The exhibit shows the output of invoking a Lambda function from the AWS CLI. The function returned a status code of 200 but included a FunctionError field set to 'Unhandled'. What does this indicate?
⚠ Common exam trap
DVA-C02 often tests the confusion between HTTP status codes and function execution errors, leading candidates to think a 200 status means success even when FunctionError is present.
Answer choices
Why each option matters
Answer the question above first, then reveal the full breakdown to understand why each option is right or wrong.
Correct answer & explanation
✓
The function executed but threw an unhandled exception.
When a Lambda function returns a status code of 200 but includes a FunctionError field set to 'Unhandled', it means the function was invoked successfully but encountered an unhandled exception during execution. The 'Unhandled' error indicates that the function threw an error that was not caught by the function's code, causing the Lambda runtime to report it. The status code 200 refers to the HTTP response from the Lambda service, not the function's execution status.
Answer analysis
Option-by-option breakdown
For each option: why learners choose it and why it is or isn't the right answer here.
- ✓
The function executed but threw an unhandled exception.
Why this is correct
A 200 status code confirms the invocation reached the function and returned a response, while FunctionError set to 'Unhandled' signals the runtime caught an exception the code did not handle. The function executed but terminated abnormally, so the handler threw an unhandled error.
- ✗
The function returned an error in the LogResult field.
Why it's wrong here
FunctionError 'Unhandled' means the function's code threw an unhandled exception, not that LogResult contains an error; LogResult holds base64-encoded tail logs. It is tempting because logs often reveal the exception, but LogResult is diagnostic output, not the error signal itself.
- ✗
The function timed out during execution.
Why it's wrong here
A timeout produces a `Task timed out` error message and typically a 502 status, not a 200 with `FunctionError: Unhandled`. That field signals the handler itself threw an uncaught exception. Timeout configuration is the right focus when a function exceeds its configured limit, but here the invocation completed and returned a response.
- ✗
The function was invoked but there was a network error.
Why it's wrong here
A network error would surface as a CLI transport failure or timeout, not a 200 response carrying a FunctionError field; the invocation clearly reached the function and returned a payload. It is tempting because network faults do disrupt Lambda calls, but those manifest before invocation completes, whereas 'Unhandled' signals the function code itself threw an uncaught exception.
Quick reference
Cloud Service Model Comparison
| Model | You Manage | Provider Manages | Examples |
|---|---|---|---|
| IaaS | OS, runtime, apps, data | Hardware, hypervisor, networking | EC2, Azure VMs, GCP Compute Engine |
| PaaS | Apps and data | OS, runtime, middleware, hardware | Elastic Beanstalk, Azure App Service |
| SaaS | Data and settings only | Everything else | Microsoft 365, Salesforce, Workday |
| FaaS / Serverless | Function code only | Infra, scaling, runtime | Lambda, Azure Functions, Cloud Run |
| CaaS | Containers and apps | Kubernetes, OS, hardware | EKS, AKS, GKE |
Go deeper
Related to this question
About these practice questions
One of 1,135 original DVA-C02 practice questions on Courseiva, each with a full explanation and wrong-answer analysis — not exam dumps or protected exam content. Learn why practice questions differ from exam dumps →
JA
Written and reviewed by Johnson Ajibi, MSc IT Security
Senior Network & Security Engineer · founder of Courseiva
Last reviewed September 2026 · checked against the official Amazon Web Services exam blueprint
This DVA-C02 practice question is part of Courseiva's free Amazon Web Services certification practice question bank. Courseiva provides original exam-style practice questions with explanations, topic-based practice, mock exams, readiness tracking, and study analytics to help learners prepare for the DVA-C02 exam.