Courseiva
hardMultiple Choice

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?

⚠ Common exam trap

The trap here is assuming that a non-2xx status is required for an error; candidates forget that HTTP 200 only confirms the request was processed, not that data was returned, so they overlook missing query parameters as the cause of an empty body.

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.

An HTTP 200 response indicates the request reached the server and was processed successfully, so the issue is not connectivity or server failure. An empty body most commonly occurs when the API requires query parameters such as pagination, filters, or a specific resource identifier, and without them the endpoint returns a valid but empty result set.

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

    A 200 with an empty body indicates the endpoint processed the request but matched no records, typically because required query parameters such as pagination or filter values were omitted, returning an empty result set rather than an error.

  • ✗

    The server is experiencing a network timeout.

    Why it's wrong here

    A network timeout produces a client-side timeout error or HTTP 504 from a gateway, never a completed 200. Timeouts are diagnosed when requests hang or fail to reach the server. Since the call returned 200, connectivity succeeded and the empty body originates in the application or query layer.

  • ✗

    The SSL certificate is expired or invalid.

    Why it's wrong here

    An expired or invalid TLS certificate causes handshake failures, typically surfacing as connection errors or HTTP 495/496, not a successful 200 with an empty body. Certificate validation matters when diagnosing trust or handshake failures, but here the request completed, so the response payload itself is the issue.

  • ✗

    The API endpoint has been moved permanently (301).

    Why it's wrong here

    A 301 response redirects the client to a new location and returns that status code, not 200. Permanent redirects matter when endpoints are relocated and clients must follow Location headers. Here the call already returned 200, so the endpoint resolved correctly and the empty payload stems from something else.

About these practice questions

This XK0-006 question is part of Courseiva's 781-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 and reviewed by Johnson Ajibi, MSc IT Security

Senior Network & Security Engineer · founder of Courseiva

Last reviewed September 2026 · checked against the official CompTIA exam blueprint

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.