# CompTIA AutoOps+ AT0-001 practice exams

> AT0-001 practice exams: 290 questions in 5 timed tests covering Automation Coding Concepts. Every answer explained, with a score for each domain.

Page: https://devopscodelab.com/exams/comptia-at0-001/

290 questions in 5 timed practice tests. Each test has about 60 questions and a 60-minute limit. The pass mark is 75%. Results are split across the 4 exam domains.

## Exam at a glance

| Setting | Value |
| --- | --- |
| Practice tests | 5 |
| Questions in total | 290 |
| Questions per test | About 60 |
| Time limit per test | 60 minutes |
| Pass mark | 75% |
| Question types | Single answer and multiple answer (25 multiple-answer questions) |
| Level | Associate |
| Category | DevOps & Cloud Native |

These are the settings of our practice tests. Check the official CompTIA exam page for the current format before you book.

## Domains and weights

| Domain | Weight | Questions in our bank |
| --- | --- | --- |
| Automation Coding Concepts | 31% | 90 |
| System Configuration | 25% | 72 |
| Continuous Integration | 24% | 70 |
| Continuous Delivery | 20% | 58 |

## Price and access

- AT0-001 practice exams: $12.99 for 12 months of access.
- Free mini exam: 15 questions with explanations (free account): https://devopscodelab.com/app/exams/comptia-at0-001/mini/
- All-Access subscription includes every exam: https://devopscodelab.com/pricing/
- 10 free questions with answers: https://devopscodelab.com/exams/comptia-at0-001/free-practice-questions/

## Sample questions

### Question 1 of 3

A Python automation script provisions user accounts from a list. The engineer wants the provisioning logic in one place so it can be called for each user and unit-tested separately. Which change BEST meets this goal?

- A. Replace the loop with a while True construct that reads the next user from a counter until an IndexError occurs
- B. Store the provisioning steps in a global variable as a string and run it with exec() for each user in the list
- C. Copy the provisioning block once per user so each account has its own clearly separated section of code
- D. Move the provisioning steps into a function that takes the username as a parameter and call it inside the loop

**Answer:** D

**Explanation:** A parameterised function encapsulates the logic, removes duplication and can be called by unit tests directly. Copying the block per user multiplies maintenance effort and defeats reuse. Running code stored in a string with exec() is hard to test and a security risk, and an endless loop that relies on an exception for termination is fragile and does not make the logic more testable.

### Question 2 of 3 (choose 2)

A team adopts trunk-based development for its automation repository. Which two practices are characteristic of this branching strategy? (Choose two.)

- A. Each release is maintained on its own permanent branch that never merges back
- B. Feature flags hide incomplete work that has already been merged to main
- C. Long-lived feature branches are merged only at the end of each quarter
- D. Developers merge small changes into the main branch at least daily
- E. A separate develop branch collects features before release branches are cut

**Answer:** B, D

**Explanation:** Trunk-based development relies on frequent, small merges into a single main branch and uses feature flags to keep unfinished functionality inactive in production. Long-lived feature branches contradict the model, a develop branch plus release branches describes Git Flow, and permanent per-release branches are a release-maintenance pattern rather than trunk-based development.

### Question 3 of 3

An operations engineer writes a Bash script that must stop immediately when any command returns a non-zero exit status, instead of continuing with later steps. Which line should be added near the top of the script?

- A. trap '' EXIT
- B. set -x
- C. export PIPESTATUS=1
- D. set -e

**Answer:** D

**Explanation:** The set -e option makes Bash exit as soon as a command returns a non-zero status. The set -x option only prints each command before running it for debugging. An empty trap on EXIT merely registers a no-op handler and does not stop on failures, and PIPESTATUS is a read-only array Bash fills with pipeline exit codes rather than a switch that changes error handling.


## Study plans

### Two weeks

1. Day 1: take practice test 1 in exam mode to get a baseline.
2. Days 2 to 5: domain mode on Automation Coding Concepts and System Configuration, the two most heavily weighted domains.
3. Day 6: practice test 2 in exam mode, then the mistakes quiz.
4. Days 7 to 12: practice tests 3 to 5, one every other day, each followed by its mistakes quiz.
5. Days 13 and 14: final mode. Book the exam when your readiness stays above the pass mark.

### Four weeks

1. Week 1: one practice test in practice mode, reading every explanation. Note your two lowest domains.
2. Week 2: domain mode on those two domains, then a second practice test in exam mode.
3. Week 3: practice tests 3 and 4 in exam mode, with the mistakes and flagged quizzes after each.
4. Week 4: practice test 5 and final mode until your readiness holds above the pass mark.

## Questions about the AT0-001 practice exams

**Are these real AT0-001 exam questions?**

No. We write every question ourselves and map it to the published AT0-001 exam objectives. We do not use leaked or recalled questions.

**Do the time limit and pass mark match the official exam?**

They match the settings of our practice tests. Exam providers change their format from time to time, so check the official exam page before you book.

**Can I try it before I pay?**

Yes. The free mini exam has 15 questions with full explanations and needs no account.

**How long do I keep access?**

A single-exam purchase gives you 12 months of access. All-Access includes this exam for as long as your subscription runs.

**What happens after I finish a test?**

You get a score, a pass or fail against the pass mark, a score per domain and every answer with its explanation.

Last updated November 2026.

DevOpsCode Lab is not affiliated with CompTIA. AT0-001 and related names are trademarks of their owners. We write every question ourselves; these are not real exam questions.
