Courseiva

DVA-C02 Troubleshooting and Optimization Practice Question

Network Topology
aws lambda invokefunction-name my-functionpayload '{"key": "value"}' output.txtRefer to the exhibit.```"StatusCode": 200,"FunctionError": "Unhandled","LogResult": "base64-encoded-log","ExecutedVersion": "$LATEST"

A developer runs the AWS CLI command shown in the exhibit. The output includes 'FunctionError': 'Unhandled'. What does this indicate?

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 threw an unhandled exception.

'Unhandled' indicates that the function code threw an exception that was not caught by any try-catch block. Option A is incorrect because a caught error would typically result in a 'Handled' status in the function logs, not 'Unhandled'. Option B is incorrect because a timeout error would produce a different error message, such as 'Task timed out', not 'Unhandled'. Option D is incorrect because an invocation failure (e.g., permissions or configuration issues) would result in an error before the function runs, not an 'Unhandled' function error.

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 threw an error that was caught by the code.

    Why it's wrong here

    When a function's code catches an exception internally with a try/catch and handles it gracefully, the invocation completes normally and the response does not include a FunctionError field at all, so this describes the opposite of what 'Unhandled' means.

  • ✗

    The function timed out.

    Why it's wrong here

    A Lambda timeout is reported differently — the invocation is terminated by the Lambda service itself and the CloudWatch Logs entry shows a 'Task timed out' message, which is a distinct failure mode from the runtime reporting an unhandled exception in the code.

  • ✓

    The function threw an unhandled exception.

    Why this is correct

    'FunctionError': 'Unhandled' is set by the Lambda runtime whenever the function code throws or rejects an exception that isn't caught anywhere in the handler, meaning the error propagated all the way up and terminated the invocation.

  • ✗

    The function was not invoked successfully.

    Why it's wrong here

    The presence of a FunctionError field alongside a payload actually confirms the invocation itself succeeded at the platform level (the request reached and executed the function); it was the code's own logic that failed, not the invocation mechanism.

About these practice questions

Courseiva writes every DVA-C02 question from scratch — 1,135 in total, each with an explanation and a wrong-answer breakdown. None are copied from real exams or dumps. Learn why practice questions differ from exam dumps →

How Courseiva writes practice questions · Editorial policy

JA

Written by Johnson Ajibi, MSc IT Security

Senior Network & Security Engineer · founder of Courseiva

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.