Examers.io
ExamsOrganizationsHow it worksPricingHelp & FAQ
CompTIA logo

CompTIALinux+

Domain 4Objective 5

AI Best Practices XK0-006 Practice Questions (Page 3)

Part of the Automation, Orchestration, and Scripting domain, which accounts for 17% of the XK0-006 exam. CompTIA does not publish an official question count, but from its 90-minute exam (~35–60 total, ~6–10 in this domain), expect 1–2 from this objective — we provide 23 practice questions to prepare you well beyond it. (estimate)

23questions here
5free pages
5concepts
17%of the exam

Questions 11–15

  1. 11application · medium

    A DevOps engineer is using an AI assistant to generate an Ansible playbook that deploys a web server. The first attempt produced a playbook that installs the wrong package name for the target distribution. The engineer needs a more accurate result. Which prompt revision is MOST likely to improve the output?

    Select an answer first
  2. 12application · medium

    A team is using an AI to generate code for a data-processing pipeline. They notice that the AI's suggestions consistently fail when processing data from a specific demographic group. The team suspects the AI has a bias. What is the BEST way to address this?

    Select an answer first
  3. 13foundation · easy

    A developer uses an AI code-generation tool to produce a script that will be deployed in a production environment. Which action best aligns with responsible code generation practices?

    Select an answer first
  4. 14application · medium

    A team is using an AI to generate code for a system that recommends training courses to employees. They discover that the AI's recommendations are biased against employees from certain departments. What is the BEST way to mitigate this bias?

    Select an answer first
  5. 15application · medium

    An AI assistant generated a Python script that uses `subprocess.call` with `shell=True` to run a system command. The script is intended for a production server. What should the reviewer do?

    Select an answer first
Finished these 5 questions?

Review the revealed explanations, or continue through the curriculum.

Free Basic Practice is a study aid with revealable answers — not a scored exam. Examers.io is independent and not affiliated with or endorsed by CompTIA. “XK0-006” is a trademark of its owner, used for identification only.