Examers.io
ExamsOrganizationsHow it worksPricingHelp & FAQ
CompTIA logo

CompTIAAutoOps+

Domain 1Objective 1

Use Code to Support Automation AT0-001 Practice Questions (Page 2)

Part of the Automation Coding Concepts domain, which accounts for 31% of the AT0-001 exam. CompTIA does not publish an official question count, but from its 60-minute exam (~25–40 total, ~8–12 in this domain), expect 2–3 from this objective — we provide 16 practice questions to prepare you well beyond it. (estimate)

16questions here
4free pages
6concepts
31%of the exam

Questions 6–10

  1. 6application · medium

    A Python script needs to process a list of 1000 IP addresses and check each one for an open port. The check_port(ip) function takes about 1 second per IP. The script currently uses a for loop and takes about 17 minutes. Which modification would most significantly reduce the total runtime?

    Select an answer first
  2. 7expert · hard

    A Python script processes a CSV file and writes results to a database. In production, the script occasionally fails with a 'database connection lost' error. The script is run manually by an operator. What is the most robust way to handle this intermittent failure?

    Select an answer first
  3. 8foundation · easy

    Which of the following is a common technique for debugging an automation script?

    Select an answer first
  4. 9application · medium

    A DevOps engineer maintains a Python script that performs the same 15-line log-parsing routine in three different places. The routine extracts a timestamp and error code from each line, then writes a formatted entry to a report file. To improve maintainability, the engineer decides to refactor. What is the most appropriate action?

    Select an answer first
  5. 10foundation · easy

    What is a best practice for maintaining automation scripts?

    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. “AT0-001” is a trademark of its owner, used for identification only.