CoreHRx Jobs

Apply in one click, save jobs and take free mock tests.

Register free Log in
Hiring? Post jobs with CoreHRx
My account
user

View & update profile

DevOps mock test: free online practice

15 to 30 random questions in 15 to 30 minutes, by the level you choose: ci/cd, release strategies, terraform, ansible, sre, dora, devsecops. After you submit you get your score, your strong and weak topics, and the right answer with an explanation for every question.

Want to revise first? Read the DevOps interview questions and answers.

Choose your experience

Free with a CoreHRx Jobs account: you will be asked to sign in or create one first.

What does the DevOps mock test cover?

The test covers 13 topics across three levels. Each attempt picks 15 to 30 questions at random, by the level you choose, so every attempt is different.

  • Terraform
  • GitHub Actions
  • Release Strategies
  • Ansible
  • Monitoring and Alerting
  • SRE and Error Budgets
  • Jenkins
  • CI/CD Basics
  • DevSecOps
  • GitLab CI
  • Azure DevOps Pipelines
  • Secrets Management
  • DORA Metrics

Sample DevOps mock test questions

One question from each level, the way they appear in the test. A new set comes on the 1st of every month. Try it, then open the answer.

  1. FresherJenkins

    What does agent any mean in this Jenkinsfile?

    pipeline {
        agent any
        stages {
            stage('Build') {
                steps {
                    sh 'mvn -B package'
                }
            }
        }
    }
    • Run the pipeline on any available agent that has a free executor
    • Let any user, even an anonymous visitor, start this pipeline from the UI
    • Accept a push to any Git branch as a build trigger
    • Run every stage on all of the agents at the same time
    Show the answer

    Answer: Run the pipeline on any available agent that has a free executor. agent decides where the work runs. any lets Jenkins pick any available agent; you can instead pick one by label, use a Docker image, or say none and choose per stage. Who may start a build is set by Jenkins permissions, not by the agent section.

  2. Intermediate (1-5 years)DORA Metrics

    Asha wants to measure lead time for changes for her team. Which start and end points match the DORA definition?

    • From commit to the change running in production
    • From the pull request being opened to its first review comment
    • From the ticket being created in the backlog to the demo of the feature in the sprint review meeting
    • From the build starting to the build artifact being uploaded
    Show the answer

    Answer: From commit to the change running in production. DORA lead time runs from code committed to code successfully running in production, so it measures the delivery pipeline: review, CI, waiting and release. Ticket-to-done is a wider product measure, and build time is only one part.

  3. Experienced (5+ years)GitHub Actions

    On an ubuntu-latest runner, what happens to steps A and B?

    steps:
      - name: A
        run: false | true
      - name: B
        shell: bash
        run: false | true
    • A passes and B fails, because only an explicit shell: bash adds -o pipefail
    • A fails and B passes, because the default shell is the stricter one
    • Both pass, because the last command in each pipe is true
    • Both fail, because bash on GitHub-hosted runners always runs every step with pipefail turned on
    Show the answer

    Answer: A passes and B fails, because only an explicit shell: bash adds -o pipefail. With no shell key, Linux steps run as bash -e {0}, so a pipe returns the status of its last command and false | true passes. shell: bash runs bash --noprofile --norc -eo pipefail {0}, so the failing false fails step B.

Take the full DevOps mock test: 15 to 30 questions and 15 to 30 minutes, by level.

How is the DevOps mock test scored?

A question counts as right only when you pick exactly the right option, or all the right options where it says so; a question left blank counts as wrong. Your score is the share of the test's questions you got right (15 to 30, by level). The result also scores every topic, so you know what to revise before the interview.

  • 75% or more in a topica strength
  • 50% to 74%worth a revision
  • Under 50%a topic to work on

DevOps mock test: questions people ask

Is the DevOps mock test free?

Yes. The DevOps mock test is free. You need a free CoreHRx Jobs account to start it, so your score and the topics to work on are saved.

How many questions are in the DevOps mock test?

It depends on the level: Fresher has 15 questions in 15 minutes, Intermediate has 20 questions in 20 minutes, Experienced has 30 questions in 30 minutes. They are multiple-choice questions picked at random from a larger bank of DevOps questions at your level, so every attempt is different.

Which DevOps topics does the test cover?

The questions cover Terraform, GitHub Actions, Release Strategies, Ansible, Monitoring and Alerting, SRE and Error Budgets, Jenkins, CI/CD Basics, DevSecOps, GitLab CI, Azure DevOps Pipelines, Secrets Management, DORA Metrics. Your result shows how you did in each topic.

Which level should I choose?

Fresher if you are a student or have less than a year of experience, Intermediate for 1 to 5 years at work, and Experienced for 5 years or more.

Can employers see my DevOps score?

Only your best DevOps score, and only when it is 60% or more. It shows on the job applications you send on CoreHRx. Lower scores stay private.

Can I take the DevOps mock test again?

Yes, up to 10 tests a day. Each attempt picks questions you have not seen recently first.

All mock tests