Courseiva

DVA-C02 Troubleshooting and Optimization Practice Question

Network Topology
$ aws lambda invokefunction-name my-functionpayload '{"key": "value"}' response.jsonRefer to the exhibit.CLI command output:"StatusCode": 200,"FunctionError": "Unhandled","LogResult": "U1RBUlQgUmVxdWVzdElkOiA4ZjJhNjg2Yy1kM2I4LTExZTgtYjQ4OS1hYjA5M2U0ZjY4MzMgVmVyc2lvbjogJExBVEVTVApFTkQgUmVxdWVzdElkOiA4ZjJhNjg2Yy1kM2I4LTExZTgtYjQ4OS1hYjA5M2U0ZjY4MzMKUkVQT1JUIHJlcXVlc3RJZDogOGYyYTY4NmMtZDNiOC0xMWU4LWI0ODktYWIwOTNlNGY2ODMzCg=="

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

ModelYou ManageProvider ManagesExamples
IaaSOS, runtime, apps, dataHardware, hypervisor, networkingEC2, Azure VMs, GCP Compute Engine
PaaSApps and dataOS, runtime, middleware, hardwareElastic Beanstalk, Azure App Service
SaaSData and settings onlyEverything elseMicrosoft 365, Salesforce, Workday
FaaS / ServerlessFunction code onlyInfra, scaling, runtimeLambda, Azure Functions, Cloud Run
CaaSContainers and appsKubernetes, OS, hardwareEKS, AKS, GKE

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 →

How Courseiva writes practice questions · Editorial policy

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.