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

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 engineer is scripting CRUD operations against an inventory REST API. Match each task to the HTTP method that should be used.

Explanation

RESTful APIs map CRUD operations to HTTP methods. GET reads, POST creates, PUT replaces an entire resource, PATCH applies a partial update, and DELETE removes a resource. Choosing the correct method keeps scripts predictable and aligned with how the API expects to be used.

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

This practice resource focuses on the CompTIA AutoOps + AT0-001 (V1) certification. It evaluates your understanding of key concepts such as automation, operational efficiency, and IT service management. Engaging with this material prepares you for the exam by reinforcing essential skills and knowledge relevant to modern IT operations.

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. A deployment pipeline running on cloud-hosted runners authenticates to the cloud provider with a long-lived access key stored as a pipeline secret. Which option is more secure?

Explanation

Machine identities let workloads authenticate as themselves, and federation such as OIDC exchanges a signed job token for temporary cloud credentials. Nothing long-lived is stored, so there is no static key to leak or rotate. Credentials expire shortly after the job ends, which limits the damage if one is exposed.

Submit

3. Last quarter a service had 5 incidents with repair times of 30, 45, 20, 60, and 45 minutes. The mean time to repair is ____ minutes.

Explanation

MTTR is the total repair time divided by the number of incidents. The repair times add up to 200 minutes, and 200 divided by 5 is 40 minutes. Lowering MTTR through better alerting, runbooks, and automated rollback reduces the impact of each failure.

Submit

4. A cloud provider's contract guarantees 99.9% monthly availability and grants service credits if the target is missed. Which two statements about this commitment are correct? (Select two.)

Explanation

An SLA is an agreement with customers that specifies service levels and remedies when they are missed. Teams usually set internal SLOs tighter than the SLA so they can react before breaching the contract. 99.9% over a month allows only about 43 minutes of downtime, not seven hours.

Submit

5. After a fix to the checkout discount logic, users report that gift-card payments, which were not changed, now fail. Which QA practice would most likely have caught this before release?

Explanation

Regression testing reruns existing tests to confirm that previously working features still behave correctly after a change. It is designed to catch exactly this kind of unintended side effect. Load testing measures performance, and smoke testing is too shallow to verify every payment path.

Submit

6. A team keeps two identical production environments. The new version is deployed to the idle environment, and after verification the load balancer switches all traffic to it. Rolling back means switching traffic back. Which delivery method is this?

Explanation

Blue-green deployment runs two full environments and switches all traffic at once from the old one to the new one. Because the old environment stays intact, rollback is nearly instant. The trade-off is the cost of running duplicate infrastructure during the release.

Submit

7. A pipeline uses Git variables to decide what to do. Match each pipeline condition to the Git variable it should check.

Explanation

CI systems expose Git context as variables, such as CI_COMMIT_TAG, CI_COMMIT_BRANCH, and CI_COMMIT_SHA in GitLab. Tags usually mark releases, branches separate environments or workflows, and the commit SHA uniquely identifies the exact code that was built. Pipelines use these values in rules to control which jobs run.

Submit

8. A pipeline's final step posts results to a dashboard. It occasionally fails because of a flaky network, which marks the whole release as failed even though the deployment succeeded. Which two failure-handling approaches are appropriate? (Select two.)

Explanation

Failure handling should match how critical a step is. Retries absorb transient network errors, and marking a non-critical reporting step as allowed to fail keeps it from blocking a successful release. Rolling back a healthy deployment because of a dashboard error would cause needless disruption.

Submit

9. A team wants a full dependency vulnerability scan to run every night at 02:00, even on days when no code has changed. Which pipeline trigger should they use?

Explanation

Scheduled triggers start pipelines at defined times using cron syntax, regardless of code activity. Nightly scans catch newly published vulnerabilities in dependencies that have not changed. Push and pull request triggers only run when someone changes code.

Submit

10. In a pipeline, the deploy job sometimes starts before the build job has finished uploading its artifact, causing missing-file errors. What is the correct fix?

Explanation

Step dependencies, such as needs in GitLab or depends_on in other tools, tell the orchestrator that one job must finish before another starts. This guarantees the artifact exists before deploy runs. A fixed sleep only hides the race condition and still fails whenever the build takes longer than expected.

Submit

11. Operations needs to roll back production to the exact build deployed last Tuesday, but every artifact has been published as app:latest. Which practice would have made this straightforward?

Explanation

Unique, traceable version identifiers let teams deploy or roll back to an exact, known build. A floating tag like latest is overwritten with each publish, so earlier builds cannot be reliably identified. Adding the commit SHA links each artifact directly to its source code.

Submit

12. A contractor's CI access token was found posted on a public paste site. What should be done first?

Explanation

A leaked credential must be revoked right away, because anyone who copied it can use it until it becomes invalid. Issuing a new token with the smallest required scope limits future impact. Removing the post does not help, since the token may already have been copied.

Submit

13. A service fails to start and logs a parse error in settings.ini. The line above host= and port= reads database with no surrounding characters. In INI files, section names must be enclosed in square brackets, so the line should read ____.

Explanation

INI files group key-value pairs under section headers written in square brackets. Without the brackets, the parser treats database as an invalid key line with no value. Correcting it to [database] restores the section so host and port are read correctly.

Submit

14. A Python automation module contains the following code: total = 10 def add(x): total = x + 1 return total add(5) print(total) What is printed?

Explanation

Assigning to a name inside a Python function creates a new local variable unless the global keyword is used. The function's total exists only while add() runs and does not affect the module-level total. The print statement therefore shows the original value, 10.

Submit

15. A team wants images to be resized automatically whenever files are uploaded to object storage. They do not want to manage servers and want to pay only when the code runs. Which approach fits best?

Explanation

FaaS runs short-lived code in response to events and scales automatically with no server management. The provider bills only for execution time, which suits unpredictable, event-driven workloads such as uploads. A polling VM runs and costs money even when there is nothing to process.

Submit

16. An engineer must automate IIS configuration across 25 Windows Server hosts using PowerShell remoting, without installing a configuration management agent. What should be enabled on the hosts?

Explanation

Windows Remote Management is the protocol behind PowerShell remoting and lets tools run commands on Windows hosts without an agent. Using the HTTPS listener on port 5986 encrypts the session. RDP is designed for interactive desktop sessions and is not suited to automated command execution.

Submit

17. An IaC template deploys three web VMs behind a load balancer. Users sometimes reach a VM that is still booting and receive errors. Which two load balancer settings address this? (Select two.)

Explanation

Health checks let a load balancer send traffic only to instances that respond correctly. A healthy threshold of several consecutive successful checks keeps booting or flapping instances out of rotation until they are ready. Sticky sessions would actually keep users pinned to a bad instance.

Submit

18. Two engineers ran terraform apply against the same environment at the same time from their laptops, and the state file became inconsistent. What is the best way to prevent this?

Explanation

IaC tools rely on a state file to map declared resources to real ones. A remote backend gives everyone the same state, and locking ensures only one operation can modify it at a time. Committing state to Git does not prevent concurrent writes and can expose secrets stored in state.

Submit

19. A Python script fails with NameError: name 'retries' is not defined on the line if attempt > retries:. Earlier in the script, the value is assigned with retry_count = 3. What is the correct fix?

Explanation

A NameError means the code referenced a name that was never defined in the current scope, often because of a typo or a renamed variable. The script defines retry_count but reads retries. Using a consistent name, or defining the variable before use, resolves the error, and linters can catch these mistakes before runtime.

Submit

20. A team has shipped version 5.2 to customers while development of 5.3 continues on main. Customers report a critical bug in 5.2 that must be patched without including any unfinished 5.3 work. Which strategy supports this?

Explanation

Release branching keeps a stable branch for each shipped version, so fixes can be applied and released without pulling in new development. The fix is then merged or cherry-picked back into main so it is not lost. Shipping from main would expose customers to unfinished 5.3 features.

Submit

21. Before starting work, a developer wants to see what teammates have pushed to origin without changing any local branches or files in the working directory. Which command should they run?

Explanation

git fetch downloads new commits and updates remote-tracking branches such as origin/main, but it does not merge anything into local branches. The developer can inspect the changes, for example with git log main..origin/main, before deciding how to integrate them. git pull would fetch and merge immediately, changing the local branch.

Submit

22. A shared library is currently at version 3.4.2. Match each change to the version number that should be released next under semantic versioning.

Explanation

Semantic versioning uses MAJOR.MINOR.PATCH. Backward-compatible fixes increment PATCH, backward-compatible new features increment MINOR and reset PATCH, and breaking changes increment MAJOR and reset the others. Consumers can then judge the risk of an upgrade from the version number alone.

Submit

23. A Python automation job works on a developer's laptop but fails in CI with ModuleNotFoundError: No module named 'requests'. Which two actions ensure the dependency is installed consistently? (Select two.)

Explanation

requirements.txt declares a Python project's dependencies, and pinning versions keeps every environment on the same release. The CI job must install from that file before running the script, because a fresh build environment starts without the developer's local packages. Renaming the script to requests.py would actually shadow the real library and cause new errors.

Submit

24. An engineer needs to count how many lines in /var/log/app.log contain the word timeout, ignoring case. They run: grep ____ timeout /var/log/app.log

Explanation

The -i option makes grep's matching case-insensitive, so Timeout and TIMEOUT also match. The -c option prints the number of matching lines instead of the lines themselves. Short options can be combined, so -ic works the same as -i -c.

Submit

25. A maintenance script must restart the nginx, redis, and postgres services in order and stop immediately if any restart fails. Which Bash construct is most appropriate?

Explanation

A for loop iterates over each item in a list and runs the same commands for every element. Adding || exit 1 stops the script as soon as a restart returns a non-zero status. The while true loop never ends, and the case statement only handles one value.

Submit
×
Saved
Thank you for your feedback!
View My Results
Cancel
  • All
    All (25)
  • Unanswered
    Unanswered ()
  • Answered
    Answered ()
An automation engineer is scripting CRUD operations against an...
A deployment pipeline running on cloud-hosted runners authenticates to...
Last quarter a service had 5 incidents with repair times of 30, 45,...
A cloud provider's contract guarantees 99.9% monthly availability and...
After a fix to the checkout discount logic, users report that...
A team keeps two identical production environments. The new version is...
A pipeline uses Git variables to decide what to do. Match each...
A pipeline's final step posts results to a dashboard. It occasionally...
A team wants a full dependency vulnerability scan to run every night...
In a pipeline, the deploy job sometimes starts before the build job...
Operations needs to roll back production to the exact build deployed...
A contractor's CI access token was found posted on a public paste...
A service fails to start and logs a parse error in settings.ini. The...
A Python automation module contains the following code:...
A team wants images to be resized automatically whenever files are...
An engineer must automate IIS configuration across 25 Windows Server...
An IaC template deploys three web VMs behind a load balancer. Users...
Two engineers ran terraform apply against the same environment at the...
A Python script fails with NameError: name 'retries' is not defined on...
A team has shipped version 5.2 to customers while development of 5.3...
Before starting work, a developer wants to see what teammates have...
A shared library is currently at version 3.4.2. Match each change to...
A Python automation job works on a developer's laptop but fails in CI...
An engineer needs to count how many lines in /var/log/app.log contain...
A maintenance script must restart the nginx, redis, and postgres...
play-Mute sad happy unanswered_answer up-hover down-hover success oval cancel Check box square blue
Alert!