BLACK FRIDAY SALE – Unlock Up to 25% OFF on All Exam Prep! - Ends In 00:00:00 Coupon code: SAVE25
Welcome to Pass4Success

- Free Preparation Discussions

CompTIA CAS-005 Exam - Topic 4 Question 21 Discussion

Posted by Claribel on Nov 23, 2025 at 06:15 PM

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?

Suggested Answer: A, A

The correct snippet is Option A, which shows an Ansible YAML playbook designed to deploy and maintain security software on Linux servers. Ansible is a configuration management tool widely used in enterprise environments, and the ansible.builtin.apt module specifically manages package installation on Debian/Ubuntu-based Linux distributions. This ensures consistent security software deployment across multiple servers.

Option B is XML-based and does not represent a valid configuration management script. Option C incorrectly uses JSON format and Reference Microsoft's store (com.microsoft.store.latest), which is irrelevant for Linux. Option D also uses JSON syntax with ''AppX,'' which applies to Windows applications, not Linux.

CAS-005 emphasizes infrastructure as code (IaC) and automation as best practices for secure system configuration. YAML-based playbooks in Ansible provide repeatability, auditability, and scalability, making Option A the most secure and appropriate solution.


Get Premium CAS-005 Questions as Interactive Web-Based Practice Test or PDF Real Exam Format Detailed Explanations Instant Access Get Your Practice Test
31 comments · newest first
JA
James 7 months ago
A definitely maintains security better. It’s the right approach!
BR
Britt 7 months ago
D seems off. SE Linux should be true for security.
BO
Bobbye 7 months ago
I feel like C is not suitable. Administrator is not the right user for Linux.
IS
Isaiah 8 months ago
Option B looks good too, but it’s not as flexible as A.
PE
Peggie 8 months ago
Agreed! A is clear and straightforward.
WI
Wilda 8 months ago
I think option A is the best choice. Ansible is great for Linux.
HA
Haydee 8 months ago
Not sure about D, SE Linux should be true for security, right?
FA
Fairy 8 months ago
Wait, why is C using "Administrator"? That's Windows!
SA
Samuel 8 months ago
B seems outdated with that OS version.
LO
Louisa 9 months ago
Definitely agree, A is the way to go!
JE
Jestine 9 months ago
Option A looks solid for Ansible.
CH
Chandra 9 months ago
Hmm, A) seems like the obvious choice. Unless you're a die-hard Windows admin, then C) might be more your style.
EU
Eun 10 months ago
A) is the way to go, though I'd probably add a few more tasks to harden those servers. Can't be too careful these days!
HE
Helene 10 months ago
A) is the clear winner, who needs all that fancy XML/JSON when Ansible has you covered?
NA
Nadine 10 months ago
A) for the win! Ansible makes this kind of deployment a breeze.
DA
Daron 10 months ago
I feel like option C is definitely wrong since it uses "Administrator," which is more Windows-centric. I think we need to focus on Linux-specific configurations.
AL
Allene 10 months ago
I’m leaning towards A as well, but I wonder if there are any specific security implications with using "ansible.builtin.apt." Did we cover that in our last session?
MU
Murray 10 months ago
I remember we discussed the importance of using the correct user permissions. Option B seems off since it mentions "Linux 3.1," which feels outdated.
LE
Lenny 11 months ago
I think option A looks familiar; it seems like the Ansible format we practiced. But I'm not entirely sure if "remote_user: root" is the best choice for security.
IS
Isabella 11 months ago
The Ansible YAML format in option A seems the most logical choice for this scenario. I'll make sure I have a good understanding of the Ansible syntax and modules before attempting to answer this question.
JO
Johanna 11 months ago
I'm not too familiar with the other configuration file formats, so I'll focus on understanding the Ansible YAML syntax. Identifying the correct tasks and variables will be key to solving this question.
LA
Lashawna 11 months ago
Option A looks like the most appropriate choice to me. The Ansible YAML format is clear and straightforward for installing security software on the Linux servers.
YU
Yun 11 months ago
A) looks like the correct Ansible playbook snippet to install security software on Linux servers.
AU
Audry 12 months ago
A) is the way to go, nice and straightforward Ansible syntax.
JA
Jani 1 year ago
Hmm, I'm a bit confused by the different syntax options presented here. I'll need to double-check my Ansible knowledge to make sure I understand the correct format for the configuration file.
DO
Dorothy 1 year ago
This looks like a straightforward Ansible configuration question. I'll review the options and think about the best approach to maintain security software across the Linux servers.
GL
Glendora 7 months ago
↳ replying to Dorothy
Definitely sticking with A for managing security software.
MI
Mirta 7 months ago
↳ replying to Dorothy
C and D are not even for Linux. They mention Windows.
DO
Dorathy 7 months ago
↳ replying to Dorothy
Option B seems a bit off with the XML format.
LE
Leoma 11 months ago
↳ replying to Dorothy
I think option A is the most suitable. It uses Ansible correctly.
CO
Colette 12 months ago
↳ replying to Dorothy
Agreed! A looks clean and straightforward.
0/2000 characters

Save Cancel