CompTIA AutoOps + AT0-001 (V1) Exam Practice Test 1

Reviewed by Editorial Team
The ProProfs editorial team is comprised of experienced subject matter experts. They've collectively created over 10,000 quizzes and lessons, serving over 100 million users. Our team includes in-house content moderators and subject matter experts, as well as a global network of rigorously trained contributors. All adhere to our comprehensive editorial guidelines, ensuring the delivery of high-quality content.
Learn about Our Editorial Process
| By Thames
T
Thames
Community Contributor
Quizzes Created: 11201 | Total Attempts: 9,875,275
| Questions: 25 | Updated: Sep 25, 2026
Please wait...
Question 1 / 26
🏆 Rank #-- ▾
0 %
0/100
Score 0/100

1. An automation script logs HTTP status codes returned by a REST API. Match each status code to its most likely meaning.

Explanation

2XX codes indicate success, 3XX codes indicate redirection, 4XX codes indicate a client-side problem, and 5XX codes indicate a server-side problem. Scripts can use these classes to decide whether to continue, follow a redirect, fix the request, or retry later. A 503 is usually worth retrying with backoff, while a 401 needs corrected credentials.

Submit
Please wait...
About This Quiz
CompTIA Autoops + At0-001 (V1) Exam Practice Test 1 - Quiz

This assessment focuses on the CompTIA AutoOps + AT0-001 (V1) certification, evaluating your understanding of automation in IT operations. It tests your knowledge of key concepts such as cloud services, automation tools, and operational best practices. This practice resource is essential for anyone preparing for the certification, helping you identify... see moreareas for improvement and ensuring you\u2019re well-prepared for the exam. see less

2.

What first name or nickname would you like us to use?

You may optionally provide this to label your report, leaderboard, or certificate.

2. An engineer runs aws s3 ls intending to list staging buckets, but the output shows production buckets. The workstation has several credential profiles configured. What is the most likely cause and fix?

Explanation

Cloud CLIs load credentials and settings from named profiles, and they fall back to the default profile when none is specified. Passing --profile or setting AWS_PROFILE selects the intended account. Checking the active identity, for example with aws sts get-caller-identity, is a good habit before running commands.

Submit

3. Over a 30-day month (720 hours), a service failed 4 times and was down for a total of 8 hours. Using only operating time, the MTBF is ____ hours.

Explanation

MTBF equals total operating time divided by the number of failures. The service operated for 720 minus 8, or 712 hours, and 712 divided by 4 failures is 178 hours. A higher MTBF means the service fails less often.

Submit

4. A product team commits internally that 99.95% of API requests will complete successfully each month. There is no contract or financial penalty if the target is missed. What is this target called?

Explanation

An SLO is an internal reliability target for a measured indicator over a period of time. An SLA is a contractual promise to customers with consequences such as service credits. The SLI is the measurement itself, in this case the percentage of successful requests.

Submit

5. Immediately after a deployment finishes, the pipeline must quickly confirm that the application is basically usable before running longer test suites. Which two checks are appropriate smoke tests? (Select two.)

Explanation

Smoke tests are fast, shallow checks that confirm the critical paths of an application work after deployment. A health endpoint check and a basic login flow finish in seconds and quickly reveal a broken release. Load, regression, and penetration testing are valuable, but they are too long and deep to serve as smoke tests.

Submit

6. A team wants to release a new recommendation engine to 5% of users first, watch error rates and latency, and then gradually increase exposure if the metrics stay healthy. Which delivery method is this?

Explanation

A canary deployment sends a small percentage of real traffic to the new version and expands exposure as metrics confirm it is healthy. If problems appear, only a small group of users is affected and traffic can be shifted back. Rolling deployments replace instances in batches, but they are not designed around a controlled percentage of users.

Submit

7. A consultant is reviewing pipeline definitions across four teams. Match each pipeline definition file to the platform that reads it.

Explanation

Each CI/CD platform reads its own pipeline definition file from the repository. Jenkins uses a Groovy-based Jenkinsfile, GitLab reads .gitlab-ci.yml from the repository root, GitHub Actions reads YAML workflow files under .github/workflows, and Azure DevOps reads azure-pipelines.yml. Keeping pipelines as code allows them to be versioned and reviewed like application code.

Submit

8. A customer requires evidence of every open-source component shipped in each release so they can react quickly to newly disclosed vulnerabilities. Which two statements about generating an SBOM in the CI pipeline are correct? (Select two.)

Explanation

A software bill of materials is an inventory of the components, libraries, and versions inside an artifact. Generating one per build and storing it with the matching artifact version lets teams check quickly whether a newly disclosed vulnerability affects a release. An SBOM supports vulnerability management but does not replace scanning or provide encryption.

Submit

9. A team wants its Jenkins pipeline to start within seconds of a push to the Git server, instead of polling the repository every 15 minutes. What should the team configure?

Explanation

A webhook sends an HTTP callback from the Git server to the CI system the moment an event such as a push occurs. This removes polling delay and wasted polling requests. A shorter cron interval still polls, and chat or manual triggers rely on a person remembering to act.

Submit

10. A pipeline runs unit tests (6 minutes), linting (2 minutes), and a security scan (5 minutes) one after another before a deploy stage. None of the three checks depends on the others. How can the team shorten the pipeline without skipping any checks?

Explanation

Independent jobs can run in parallel, so total time drops from 13 minutes to roughly the longest job, about 6 minutes. The deploy stage still waits for every check to pass, which preserves the quality gate. Running deploy in parallel or first would ship code before it has been validated.

Submit

11. The QA team discovers that the image tagged 2.3.1 in the artifact registry was overwritten with different contents after it had already passed testing. Which control would have prevented this?

Explanation

Artifact immutability guarantees that once a version is published, its contents never change. This ensures the artifact that passed QA is exactly what gets deployed. A fix should be published under a new version number rather than overwriting an existing one.

Submit

12. A CI pipeline needs a database password during integration tests. The password is currently hardcoded in the pipeline YAML file in the repository. What is the best practice?

Explanation

An encrypted key vault keeps secrets out of source control and grants access only to authorized identities. The pipeline fetches the secret at runtime, and the vault can log, rotate, and revoke it centrally. Base64 is only an encoding, not encryption, so anyone with repository access could decode the password.

Submit

13. A pipeline fails with a YAML parse error. The file looks correctly aligned in the editor, but it was indented using tab characters. YAML indentation must use ____ instead.

Explanation

The YAML specification does not allow tab characters for indentation, so a parser rejects them even when the file looks aligned. Replacing tabs with a consistent number of spaces, typically two per level, fixes the error. Many editors can be set to insert spaces automatically for YAML files.

Submit

14. A Bash deployment script contains the following code: set_env() { ENV_NAME="prod" } set_env echo "Deploying to $ENV_NAME" What does the script print?

Explanation

Bash variables are global by default, so a variable assigned inside a function remains available to the rest of the script after the function runs. Only variables declared with the local keyword are limited to the function. Because ENV_NAME was not declared local, the echo statement prints Deploying to prod.

Submit

15. An order service must hand off image-processing jobs to a pool of workers that sometimes go offline for maintenance. No job can be lost while the workers are down. Which cloud-based event mechanism fits best?

Explanation

A messaging queue durably holds messages until a consumer processes and acknowledges them, so work survives consumer downtime. Workers can pull jobs at their own pace, which also smooths out traffic spikes. Synchronous calls fail when the worker is unavailable, and fire-and-forget notifications do not guarantee retention.

Submit

16. An engineer needs to run configuration commands on 40 Linux servers that do not have any management agent installed. Which remote automation approach is most appropriate?

Explanation

SSH is available on virtually every Linux server and allows agentless tools to connect and run commands remotely. Key-based authentication avoids interactive passwords and scales well across many hosts. WinRM is the Windows remoting equivalent, and installing agents adds setup work the scenario does not call for.

Submit

17. A team is writing infrastructure as code for a new virtual network. The web tier must be reachable from the internet, while the database tier must never be directly reachable from the internet. Which two configurations support this design? (Select two.)

Explanation

Subnet design is the main way to separate internet-facing and internal resources. A public subnet has a route to the internet gateway, while a private subnet does not, so resources inside it cannot be reached directly from the internet. Sharing one subnet or giving databases public IP addresses removes that separation.

Submit

18. A configuration management tool reports that a production web server's NTP settings no longer match the defined desired state. An administrator had edited the file by hand during an outage. What has occurred, and what is the best remediation?

Explanation

Configuration drift happens when a system's actual state diverges from its declared state, often because of manual changes. Configuration management tools detect drift by comparing actual and desired state, then remediate by reapplying the declared configuration. If the manual change was actually needed, it should be added to the code so it is not overwritten again.

Submit

19. A developer runs git merge feature/login and Git responds with: CONFLICT (content): Merge conflict in app.py. Automatic merge failed. What should the developer do next?

Explanation

A merge conflict means Git found overlapping changes it cannot combine automatically. The developer must open the file, choose or combine the content between the <<<<<<<, =======, and >>>>>>> markers, and remove the markers. Staging the resolved file with git add and committing completes the merge.

Submit

20. An automation script creates a service account and appends an entry to /etc/sudoers every time it runs. After several nightly runs, the sudoers file contains duplicate entries. Which infrastructure as code principle is the script violating?

Explanation

An idempotent operation produces the same end state no matter how many times it runs. Blindly appending a line adds another copy on each run, so the result keeps changing. The script should check whether the entry exists, or use a tool module that manages the line's presence, before making a change.

Submit

21. A developer accidentally committed a cloud access key to a shared repository last month. The team wants to deal with the exposure and prevent it from happening again. Which two actions should the team take? (Select two.)

Explanation

A pre-commit hook that detects secrets stops credentials before they ever enter history. A key that was already committed remains retrievable from earlier commits even after the file is deleted, so it must be revoked and replaced. Indentation linting and squashing later commits do nothing about the exposed credential.

Submit

22. Developers on a team are building several independent enhancements at the same time. The lead wants each change reviewed and tested on its own before it reaches the main branch. Which branching strategy fits this requirement?

Explanation

Feature branching isolates each piece of work on its own branch, so it can be reviewed, tested, and merged through a pull request independently. Release branching is aimed at stabilizing and patching a shipped version, not at isolating parallel development. Committing straight to main removes the isolation the lead is asking for.

Submit

23. A team's container image build reinstalls every Python dependency whenever any source file changes, which makes each build take several minutes. Which Dockerfile change best fixes this?

Explanation

Docker caches each layer and rebuilds a layer only when its inputs change. Copying requirements.txt and installing dependencies first means that layer stays cached until the dependency list itself changes. Source code copied afterward can change freely without triggering a full reinstall.

Submit

24. A REST API returns {"status":"ok","items":[{"id":7,"name":"web01"}]}. To print only the name of the first item, the engineer runs: curl -s $URL | jq '____'

Explanation

jq filters use dot notation to walk JSON objects and square brackets to index arrays. .items selects the array, [0] selects its first element, and .name returns that element's name field. The result is "web01".

Submit

25. An engineer is writing log-parsing rules for an automation job. Match each regular expression to the text it is designed to match.

Explanation

The caret (^) anchors a match to the start of a line and the dollar sign ($) anchors it to the end. \d{3} matches exactly three digits, \. matches a literal period, and \s* matches any amount of leading whitespace. Combining anchors, character classes, and quantifiers lets automation extract exactly the lines it needs from logs.

Submit
×
Saved
Thank you for your feedback!
View My Results
Cancel
  • All
    All (25)
  • Unanswered
    Unanswered ()
  • Answered
    Answered ()
An automation script logs HTTP status codes returned by a REST API....
An engineer runs aws s3 ls intending to list staging buckets, but the...
Over a 30-day month (720 hours), a service failed 4 times and was down...
A product team commits internally that 99.95% of API requests will...
Immediately after a deployment finishes, the pipeline must quickly...
A team wants to release a new recommendation engine to 5% of users...
A consultant is reviewing pipeline definitions across four teams....
A customer requires evidence of every open-source component shipped in...
A team wants its Jenkins pipeline to start within seconds of a push to...
A pipeline runs unit tests (6 minutes), linting (2 minutes), and a...
The QA team discovers that the image tagged 2.3.1 in the artifact...
A CI pipeline needs a database password during integration tests. The...
A pipeline fails with a YAML parse error. The file looks correctly...
A Bash deployment script contains the following code:...
An order service must hand off image-processing jobs to a pool of...
An engineer needs to run configuration commands on 40 Linux servers...
A team is writing infrastructure as code for a new virtual network....
A configuration management tool reports that a production web server's...
A developer runs git merge feature/login and Git responds with:...
An automation script creates a service account and appends an entry to...
A developer accidentally committed a cloud access key to a shared...
Developers on a team are building several independent enhancements at...
A team's container image build reinstalls every Python dependency...
A REST API returns {"status":"ok","items":[{"id":7,"name":"web01"}]}....
An engineer is writing log-parsing rules for an automation job. Match...
play-Mute sad happy unanswered_answer up-hover down-hover success oval cancel Check box square blue
Alert!