Courseiva
Claude Code →hardMultiple Choice

CCDV-F Claude Code Practice Question

When Claude Code executes a shell command that requires user intervention (such as an interactive prompt), how does the agent typically handle this situation?

⚠ Common exam trap

Test-takers frequently assume the agent will automatically guess answers to interactive prompts or fail with an error, overlooking its safe design to pause for humans.

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

✓

It pauses the agent and waits for human input.

Handling interactive shell commands is a design challenge for autonomous agents. Claude Code is built to be safe and predictable. It monitors the output of the shell and, when it detects an interactive prompt that it cannot resolve autonomously, it pauses execution and waits for the user to provide input. This design prevents the agent from hanging indefinitely or making dangerous, unconfirmed assumptions in sensitive environments.

Answer analysis

Option-by-option breakdown

For each option: why learners choose it and why it is or isn't the right answer here.

  • ✗

    It automatically guesses the correct input.

    Why it's wrong here

    Guessing input for interactive prompts is dangerous and prone to failure. The agent is programmed to be cautious and will pause for human input rather than risk execution errors or system instability by providing incorrect, automated responses to interactive command-line prompts.

  • ✗

    It terminates the process and reports an error.

    Why it's wrong here

    Terminating the process is unnecessarily aggressive. The agent prefers to collaborate with the developer. It is designed to pause execution and request the developer's input, maintaining the flow of the task while ensuring that interactive steps are handled correctly by the human in the loop.

  • ✓

    It pauses the agent and waits for human input.

    Why this is correct

    The agent pauses its autonomous execution when it detects an interactive shell prompt. This allows the developer to complete the command manually, ensuring safety and accuracy, before the agent resumes its remaining planned tasks, which is the standard, secure way to handle non-deterministic shell behavior.

  • ✗

    It forces the command with the -y or --force flag.

    Why it's wrong here

    Blindly applying force flags can lead to unintended side effects, such as overwriting data or bypassing security checks. The agent avoids forcing commands unless explicitly instructed, preferring to wait for human guidance to ensure the action is intentional and safe for the current system state.

Visual reference

Client Recursive Resolver Root DNS (13 root servers) TLD DNS (.com, .org, …) Authoritative example.com query IP addr answer

About these practice questions

One of 257 original CCDV-F 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 Anthropic exam blueprint

This CCDV-F practice question is part of Courseiva's free Anthropic 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 CCDV-F exam.