
CompTIAAutoOps+
Domain 1Objective 1
Use Code to Support Automation AT0-001 Practice Questions (Page 3)
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 11–15
- 11
A PowerShell script that creates Azure VMs has been running successfully for months. Recently, the script began failing because the VM size 'Standard_D2s_v3' is no longer available in the target region. The script hardcodes the VM size in three places. What is the most effective maintenance action?
Select an answer first - 12
In an automation script, what is the primary purpose of a variable?
Select an answer first - 13
A Python script uses a function to fetch data from an API. The function sometimes raises a TimeoutError. The script currently crashes when this happens. The team wants the script to retry the API call up to three times with a 5-second delay between attempts, and then fail if all retries fail. What is the most appropriate implementation?
Select an answer first - 14
What is the purpose of using a loop inside a function in an automation script?
Select an answer first - 15
Which loop structure is best suited for iterating over a list of items in a Python script?
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.