CompTIA Linux+ XK0-006 (V8) Practice Question

A systems administrator is tasked with parsing apache access logs to identify all requests that resulted in a 404 Not Found error. To speed up the process, the administrator prompts a public AI chatbot: "Generate a grep command with a regular expression to find all lines in an apache access log containing a 404 status code." The AI returns a command, which the administrator immediately incorporates into a script that runs on a production web server. The script later causes unexpected behavior by incorrectly filtering log entries. Which AI best practice was most critical for the administrator to have followed to prevent this issue?

  • Engaging in more detailed prompt engineering to include the specific log format.

  • Ensuring the AI model was specifically trained on system administration tasks.

  • Verifying the output of the AI-generated regular expression in a test environment.

  • Using a local, privately-hosted AI model instead of a public one.

CompTIA Linux+ XK0-006 (V8)
Automation, Orchestration, and Scripting
Your Score:
Settings & Objectives
Random Mixed
Questions are selected randomly from all chosen topics, with a preference for those you haven’t seen before. You may see several questions from the same objective or domain in a row.
Rotate by Objective
Questions cycle through each objective or domain in turn, helping you avoid long streaks of questions from the same area. You may see some repeat questions, but the distribution will be more balanced across topics.

Check or uncheck an objective to set which questions you will receive.

Bash, the Crucial Exams Chat Bot
AI Bot