Courseiva
hardMultiple ChoiceObjective-mapped

XK0-006 Practice Question: Refer to the exhibit

Exhibit

$ curl -v https://api.example.com/v1/users
*   Trying 203.0.113.5:443...
* Connected to api.example.com (203.0.113.5) port 443 (#0)
* ALPN, offering h2
* SSL connection using TLSv1.3 / AEAD-AES256-GCM-SHA384
* ALPN, server accepted to use h2
* Server certificate:
*  subject: CN=api.example.com
*  start date: Jan 1 00:00:00 2023 GMT
*  expire date: Dec 31 23:59:59 2023 GMT
*  issuer: C=US; O=Let's Encrypt; CN=R3
*  SSL certificate verify ok.
> GET /v1/users HTTP/2
> Host: api.example.com
> User-Agent: curl/7.68.0
> Accept: */*
>
* TLSv1.3 (IN), TLS handshake, Newsession Ticket (4)
* TLSv1.3 (IN), TLS handshake, Newsession Ticket (3)
* old SSL session ID is stale, removing
* Mark bundle as not supporting multiuse
< HTTP/2 200
< date: Tue, 10 Oct 2023 12:00:00 GMT
< content-type: application/json
< content-length: 0
< server: nginx/1.18.0 (Ubuntu)
<
* Connection #0 to host api.example.com left intact

Refer to the exhibit. An API call returns HTTP 200 but an empty body. What is the most likely cause?

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 request is missing required query parameters, such as pagination or filters.

The HTTP 200 status with an empty body (content-length: 0) indicates the server processed the request successfully but returned no data. This commonly occurs when the request lacks required parameters such as pagination, filters, or other query parameters that define the scope of the response. The server (nginx) is running and the SSL handshake succeeded, ruling out network or certificate issues. Therefore, the most likely cause is missing query parameters, as stated in Option A.

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 request is missing required query parameters, such as pagination or filters.

    Why this is correct

    An empty 200 often indicates no results due to missing parameters.

  • The server is experiencing a network timeout.

    Why it's wrong here

    The connection was established and the response received quickly.

  • The SSL certificate is expired or invalid.

    Why it's wrong here

    The certificate is valid (start and expire dates within range and verify ok).

  • The API endpoint has been moved permanently (301).

    Why it's wrong here

    The response code is 200, not a redirect.

About these practice questions

This XK0-006 question is part of Courseiva's 979-question bank — original exam-style content with full explanations and wrong-answer analysis, never real exam questions or exam 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 XK0-006 practice question is part of Courseiva's free CompTIA 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 XK0-006 exam.