nerdexam
CompTIA

CAS-005 · Question #482

A company is migrating from a Windows Server to Linux-based servers. A security engineer must deploy a configuration management solution that maintains security software across all the Linux servers.

The correct answer is A. --- - name: deployment hosts: linux_servers remote_user: root tasks: - name: Install security software ansible.builtin.apt:. Option A is correct because it is a valid Ansible YAML playbook snippet that uses the appropriate 'ansible.builtin.apt' module, which is the correct package manager for Linux/Debian-based distributions (such as Ubuntu). Ansible is an industry-standard, agentless configuration man

Submitted by alyssa_d· Mar 6, 2026Security Operations / Scripting, Automation, and Configuration Management (CompTIA Security+ or CySA+ - Infrastructure Security Domain)

Question

A company is migrating from a Windows Server to Linux-based servers. A security engineer must deploy a configuration management solution that maintains security software across all the Linux servers. Which of the following configuration file snippets is the most appropriate to use? A. B. C. D.

Exhibits

CAS-005 question #482 exhibit 1
CAS-005 question #482 exhibit 2
CAS-005 question #482 exhibit 3
CAS-005 question #482 exhibit 4
CAS-005 question #482 exhibit 5
CAS-005 question #482 exhibit 6

Options

  • A
    • name: deployment hosts: linux_servers remote_user: root tasks:
      • name: Install security software ansible.builtin.apt:
  • B<hosts>linux_servers</hosts> <os_type>Linux_3.1</os_type> <SELinux>true</SELinux> <source>com.canonical.io</source>
  • C{ "name":"deployment", "hosts":"linux_servers", "remote_user":"administrator", } { "tasks":"name":"Install security software", "com.microsoft.store.latest" }
  • D{ "task":"install", "hosts": "linux_servers", "remote_user": "root" "se_linux":"false" "application": "AppX" }

How the community answered

(56 responses)
  • A
    89% (50)
  • B
    2% (1)
  • C
    7% (4)
  • D
    2% (1)

Explanation

Option A is correct because it is a valid Ansible YAML playbook snippet that uses the appropriate 'ansible.builtin.apt' module, which is the correct package manager for Linux/Debian-based distributions (such as Ubuntu). Ansible is an industry-standard, agentless configuration management tool well-suited for maintaining security software across Linux servers, and the YAML structure with 'hosts', 'remote_user', and 'tasks' fields is syntactically correct for an Ansible playbook.

Topics

#Configuration Management#Ansible#Linux Security#Infrastructure as Code

Community Discussion

No community discussion yet for this question.

Full CAS-005 Practice