nerdexam
CompTIA

XK0-005 · Question #10260

An administrator needs to download a monitoring agent called node_exporter.0.16.0- Linux.amd64 from the internal web page https://company.local/downloads/. The server does not have graphical…

The correct answer is B. curl -k https://company.local/downloads/node_exporter.0.16.0-. To download a file from an HTTPS URL without certificate validation issues, the curl -k command is used.

System Management

Question

An administrator needs to download a monitoring agent called node_exporter.0.16.0- Linux.amd64 from the internal web page https://company.local/downloads/. The server does not have graphical interface. Which of the following commands will accomplish this task?

Options

How the community answered

(56 responses)
  • A
    4% (2)
  • B
    73% (41)
  • C
    7% (4)
  • D
    16% (9)

Why each option

To download a file from an HTTPS URL without certificate validation issues, the `curl -k` command is used.

Acurl -K https://company.local/downloads/node_exporter.0.16.0-

`curl -K` (or `--config`) specifies a configuration file to read `curl` options from, which is not related to bypassing SSL certificate validation.

Bcurl -k https://company.local/downloads/node_exporter.0.16.0-Correct

The `curl -k` option, short for `--insecure`, allows `curl` to perform SSL/TLS connections even if the server's certificate is self-signed, expired, or otherwise untrusted. This is a common requirement when accessing internal web pages that might not have publicly recognized certificates, enabling the download of the specified file.

Ccurl --auth https://company.local/downloads/node_exporter.0.16.0-

`curl --auth` is not a standard `curl` option for authentication; options like `-u` or `--user` are used for specific authentication schemes.

Dcurl -A https://company.local/downloads/node_exporter.0.16.0-

`curl -A` (or `--user-agent`) sets the User-Agent header for the HTTP request, which does not affect certificate validation.

Concept tested: `curl` insecure HTTPS download

Source: https://curl.se/docs/manpage.html#-k

Topics

#curl#HTTPS#command-line#file download

Community Discussion

No community discussion yet for this question.

Full XK0-005 Practice