
CompTIASecurityX (CASP+)
Domain 3Objective 1
Automation CAS-005 Practice Questions (Page 2)
Part of the Security engineering domain, which accounts for 31% of the CAS-005 exam. CompTIA does not publish an official question count, but from its 165-minute exam (~65–110 total, ~20–34 in this domain), expect 4–7 from this objective — we provide 37 practice questions to prepare you well beyond it. (estimate)
37questions here
8free pages
11concepts
31%of the exam
Questions 6–10
- 6
A Linux administrator needs to create a Bash script that checks if a file exists and prints a message if it does. Which Bash construct is used to perform this conditional check?
Select an answer first - 7
A security operations team wants to automatically run a script whenever a new user account is created in Active Directory. Which approach is best suited for this event-driven automation?
Select an answer first - 8
A security analyst is writing a Python script to parse a JSON file containing security alerts. Which Python module should be imported to work with JSON data?
Select an answer first - 9
A Linux administrator needs to automate the patching of a fleet of servers, but the servers are in different security zones and some are not allowed to access the internet directly. The administrator wants to use a central patch repository. Which approach best meets these constraints?
Select an answer first - 10
A DevOps team wants to automate the deployment of a web application that consists of multiple microservices. The deployment should be reproducible, version-controlled, and include the ability to roll back to a previous version. The team also wants to ensure that the infrastructure is provisioned consistently across environments. Which approach best meets these requirements?
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. “CAS-005” is a trademark of its owner, used for identification only.