CompTIA Linux+ XK0-006 (V8) Practice Question

A team of administrators is reviewing Puppet code that relies on expressions such as $facts["os"]["family"] to choose the right package repository for each node. One colleague asks where the data in the $facts hash actually comes from and when it is gathered during a typical agent run. Which explanation is correct?

  • They are discovered by the Facter binary that runs locally on the agent before the catalog request, and the collected key/value pairs are sent with that request.

  • They are generated by an Ansible setup script that the agent downloads during plugin sync and executes after the catalog is applied.

  • They come from environment variables exported by systemd at boot and read by Puppet through a cron job every 30 minutes.

  • They are retrieved from a cached facts file on the Puppet Server after the catalog has already been compiled and then injected into the catalog.

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