The answer is the `insecure-registries` setting in the Docker daemon configuration. This is correct because Docker Engine, by default, enforces TLS for all registry communications to ensure encrypted and authenticated connections; when a developer pushes to a registry over HTTP, such as `192.168.1.100:5000`, the daemon rejects the operation as insecure. The `insecure-registries` array in `/etc/docker/daemon.json` explicitly tells the daemon to bypass TLS verification for specified IP addresses or CIDR ranges, allowing HTTP-based pushes. On the CompTIA Linux+ XK0-005 exam, this tests your ability to troubleshoot container image operations and modify daemon runtime parameters—a common trap is confusing this with `--registry-mirror` or assuming TLS is optional by default. Remember the memory tip: “Insecure registries are for HTTP, not HTTPS—if it’s port 5000 without TLS, add it to the list.”
XK0-005 Scripting, Containers and Automation Practice Question
This XK0-005 practice question tests your understanding of scripting, containers and automation. This is a configuration task: choose the command set that satisfies every stated requirement. Small differences — like 'secret' vs 'password' or 'transport input ssh' vs 'all' — change whether the answer is correct. After answering, compare your reasoning against the explanation and wrong-answer breakdown below. Once you have made your selection, read the full explanation to reinforce the concept and understand why each distractor is designed to mislead on exam day.
Refer to the exhibit. A developer is pushing an image to a private registry at `192.168.1.100:5000` but receives an error about using an insecure registry. Which part of the Docker daemon configuration allows this registry without TLS?
Answer the question above first, then reveal the full breakdown to understand why each option is right or wrong.
Correct answer & explanation
✓
The 'insecure-registries' setting
The error indicates the Docker client is attempting to push an image to a registry over HTTP (port 5000) without TLS. By default, Docker Engine requires TLS for all registry communications. The `insecure-registries` setting in `/etc/docker/daemon.json` allows the daemon to bypass TLS verification for specified IP addresses or CIDR ranges, enabling communication with registries that lack a valid TLS certificate.
Key principle: Answer the scenario, not the keyword: identify the specific constraint before choosing the most familiar-sounding option.
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 'insecure-registries' setting
Why this is correct
This setting explicitly allows insecure (non-TLS) connections to the specified registry.
Related concept
Read the scenario before looking for a memorised answer.
✗
The 'exec-opts' setting
Why it's wrong here
Exec-opts are for cgroup driver, not registries.
✗
The 'storage-driver' setting
Why it's wrong here
Storage driver configuration is unrelated to registry security.
✗
The 'log-driver' setting
Why it's wrong here
Log driver affects logging, not registry security.
Common exam traps
Common exam trap: answer the scenario, not the keyword
CompTIA often tests the distinction between daemon configuration options that affect registry communication versus those that affect container runtime or storage, leading candidates to confuse `insecure-registries` with unrelated settings like `exec-opts` or `storage-driver`.
Detailed technical explanation
How to think about this question
When `insecure-registries` is set, Docker Engine disables TLS verification for the listed registries, allowing HTTP connections and self-signed certificates. This is defined in the `daemon.json` file as an array of strings (e.g., `["192.168.1.100:5000"]`). The daemon must be restarted after changes. In production, a registry should use TLS with a valid certificate; insecure registries are only appropriate for isolated lab or internal networks.
KKey Concepts to Remember
Read the scenario before looking for a memorised answer.
Find the constraint that changes the correct option.
Eliminate answers that are true in general but not in this case.
TExam Day Tips
→Watch for words such as best, first, most likely and least administrative effort.
→Review why wrong options are wrong, not only why the correct option is correct.
Key takeaway
Answer the scenario, not the keyword: identify the specific constraint before choosing the most familiar-sounding option.
Real-world example
How this comes up in practice
A network engineer segments a warehouse floor into three subnets: 20 scanners, 5 printers, and 2 management hosts. Picking the wrong mask wastes addresses or leaves too few usable hosts. Exam questions test whether you can apply CIDR notation, calculate block size, and identify the correct usable-host range for a given prefix.
Related glossary terms
Concepts from this question explained
These glossary pages explain the core terms tested in this XK0-005 question in full detail.
Scripting, Containers and Automation — This question tests Scripting, Containers and Automation — Read the scenario before looking for a memorised answer..
What is the correct answer to this question?
The correct answer is: The 'insecure-registries' setting — The error indicates the Docker client is attempting to push an image to a registry over HTTP (port 5000) without TLS. By default, Docker Engine requires TLS for all registry communications. The `insecure-registries` setting in `/etc/docker/daemon.json` allows the daemon to bypass TLS verification for specified IP addresses or CIDR ranges, enabling communication with registries that lack a valid TLS certificate.
What should I do if I get this XK0-005 question wrong?
Identify which exam domain this question belongs to, review the core concept, then practise similar questions from the same domain.
What is the key concept behind this question?
Read the scenario before looking for a memorised answer.
About these practice questions
Courseiva creates original exam-style practice questions with explanations and wrong-answer analysis. It does not publish real exam questions, exam dumps, or protected exam content. Learn why practice questions differ from exam dumps →
Share a tip, memory trick, or ask about the reasoning behind this question. Do not post real exam questions, leaked content, braindumps, or copyrighted exam material. Comments are moderated and may be removed without notice.
This XK0-005 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-005 exam.
Question Discussion
Share a tip, memory trick, or ask about the reasoning behind this question. Do not post real exam questions, leaked content, braindumps, or copyrighted exam material. Comments are moderated and may be removed without notice.
Sign in to join the discussion.