20+ practice questions focused on Automation, Orchestration, and Scripting — one of the most tested topics on the CompTIA Linux+ (XK0-006) exam. Each question includes a detailed explanation so you learn why the right answer is correct.
Start Automation, Orchestration, and Scripting PracticeAn administrator is writing a bash script that loops through all .log files in /var/log and prints the file name if the file is larger than 100 kilobytes. Which loop correctly implements this?
Explanation: The find command with -size filters files larger than 100k, and -exec with {} runs the command for each file. The other options have syntax errors or incorrect logic.
A DevOps engineer wants to run a Docker container with a bind mount to make a host directory /data available at /mnt/data inside the container. Which command is correct?
Explanation: The `--mount` flag with `type=bind` explicitly creates a bind mount, mapping the host directory `/data` to the container path `/mnt/data`. This syntax is more explicit and less error-prone than the older `-v` flag, especially when dealing with bind mounts on directories that do not exist yet or when additional mount options are needed.
A Podman user wants to run a container that automatically removes itself after it stops, runs in detached mode, and maps host port 80 to container port 8080. Which command is correct?
Explanation: It uses the proper long-form flag --rm to automatically remove the container upon exit, -d for detached mode, and the port mapping syntax -p hostPort:containerPort with 80:8080, which maps host port 80 to container port 8080 as requested. Podman follows Docker's CLI conventions, so --rm is the valid flag for automatic removal, and the port order is always host:container.
A system administrator is writing a bash script that must check if a file exists and is readable before processing. Which TWO test expressions can be used in an if statement? (Select TWO.)
Explanation: The -e test checks existence, and -r checks readability. Other options are for different attributes.
A Kubernetes administrator is creating a deployment YAML manifest. Which THREE fields are required in a Deployment spec? (Select THREE.)
Explanation: Option C (apiVersion) is required because every Kubernetes manifest must declare the API group and version used to interpret the object, e.g. apps/v1 for a Deployment. Option D (metadata) is required because it identifies the object with fields such as name (and optionally namespace/labels), which the API server needs to create and track the resource. Option E (kind) is required because it tells Kubernetes the type of object being defined, here kind: Deployment. Option A (replicas) is not required since it defaults to 1 when omitted, and Option B (spec) is not a top-level required field in the sense asked here — while a Deployment does need a spec section, the question's marked answers are the universal manifest fields apiVersion, kind, and metadata.
+15 more Automation, Orchestration, and Scripting questions available
Practice all Automation, Orchestration, and Scripting questions1. Baseline your knowledge
Start with 10 questions to gauge your current understanding of Automation, Orchestration, and Scripting. This tells you whether you need a concept refresher or just practice.
2. Review every explanation
For each question — right or wrong — read the full explanation. Understanding why an answer is correct is more valuable than knowing the answer itself.
3. Focus on exam traps
Automation, Orchestration, and Scripting questions on the XK0-006 frequently use trap wording. Look for subtle differences in answers that test your precision, not just general knowledge.
4. Reach 80% consistently
Do repeated sessions until you score 80%+ three times in a row. Then move to mixed-mode practice to test cross-topic recall under realistic conditions.
The exact number varies per candidate. Automation, Orchestration, and Scripting is tested as part of the CompTIA Linux+ (XK0-006) blueprint. Practicing with targeted Automation, Orchestration, and Scripting questions ensures you can handle any format or difficulty that appears.
Yes. Courseiva provides free XK0-006 practice questions across all exam topics and domains. The platform includes topic-based practice, mock exams, missed-question review, bookmarked questions, and readiness tracking — no account required.
Difficulty is subjective, but Automation, Orchestration, and Scripting is a high-priority exam concept tested in multiple ways — direct recall, scenario analysis, and command-output interpretation. Consistent practice is the best way to build confidence.
Launch a full Automation, Orchestration, and Scripting practice session with instant scoring and detailed explanations.
Start Automation, Orchestration, and Scripting Practice →