Courseiva
Claude API Mechanics →mediumMultiple Choice

CCDV-F Claude API Mechanics Practice Question

Exhibit

POST /v1/messages
{
  "model": "claude-3-5-sonnet-20240620",
  "max_tokens": 1024,
  "messages": [
    {"role": "user", "content": "Hello, Claude!"}
  ]
}

Refer to the exhibit. When submitting this request via a standard HTTP client, which header is mandatory to specify the API version and ensure compatibility with the Messages API?

⚠ Common exam trap

Developers often omit the versioning header or use an incorrect date format, assuming the API defaults to the latest version, which results in immediate 400 Bad Request errors.

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

✓

anthropic-version: 2023-06-01

Anthropic requires a specific versioning header for all requests to the Messages API to ensure that developers are using the intended API contract. This prevents breaking changes from affecting existing integrations when the API evolves. Without this header, the API will return a 400 error, as it cannot determine which schema and logic to apply to the request.

Answer analysis

Option-by-option breakdown

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

  • ✗

    x-api-version: 2023-06-01

    Why it's wrong here

    This is an incorrect header name and value format. While some APIs use 'x-api-version', Anthropic specifically uses 'anthropic-version'. Using an unofficial header name will result in the request being rejected because the gateway does not recognize it as a valid instruction for API versioning.

  • ✓

    anthropic-version: 2023-06-01

    Why this is correct

    This is the correct, mandatory header required for all calls to the Anthropic Messages API. It informs the server which version of the API logic to execute. The value '2023-06-01' is the current standard version string used for the Claude 3 family and Messages API interactions.

  • ✗

    version: claude-v3

    Why it's wrong here

    The 'version' header with a value like 'claude-v3' is not part of the Anthropic API specification. The versioning is date-based rather than model-based, and it must be prefixed with 'anthropic-' to be correctly parsed by the server. Incorrect headers will lead to authentication or validation failures.

  • ✗

    anthropic-model-version: 2024-06-20

    Why it's wrong here

    This header name is incorrect. While the model name itself includes a date (like 20240620), the API versioning header is a separate requirement that remains constant across different models within the same API generation. Confusing the model name with the API version will result in request errors.

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.