CompTIACompTIA
XK0-005 · Question #10260
XK0-005 Question #10260: Real Exam Question with Answer & Explanation
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
- Acurl -K https://company.local/downloads/node_exporter.0.16.0-
- Bcurl -k https://company.local/downloads/node_exporter.0.16.0-
- Ccurl --auth https://company.local/downloads/node_exporter.0.16.0-
- Dcurl -A https://company.local/downloads/node_exporter.0.16.0-
Explanation
To download a file from an HTTPS URL without certificate validation issues, the curl -k command is used.
Common mistakes.
- A.
curl -K(or--config) specifies a configuration file to readcurloptions from, which is not related to bypassing SSL certificate validation. - C.
curl --authis not a standardcurloption for authentication; options like-uor--userare used for specific authentication schemes. - D.
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
Reference. https://curl.se/docs/manpage.html#-k
Topics
#curl#HTTPS#command-line#file download
Community Discussion
No community discussion yet for this question.