Ansible Online Test

TestDome skill assessments are used by more than 11,000 companies and 1,030,000 test takers.

For Jobseekers

Practice your skills and earn a certificate of achievement when you score in the top 25%.

Take a Practice Test

For Companies

Test candidates with real-world problems and interview the best ones.

Sign Up to Offer this Test

About the test

The Ansible online test assesses knowledge of using Ansible for software provisioning, configuration management, and application deployment.

The assessment includes work-sample tasks such as:

  • Installing updates on all servers.
  • Using Ansible Inventory files to organize and manage hosts.
  • Running commands against specific hosts or groups using Ansible Patterns.

A good Ansible developer or administrator should be familiar with using Ansible to enable infrastructure as code.

Sample public questions

Easy
5 min
mca
Public
Ansible
Conditional Statements
Playbook
Variable

A service called testdome_service has a licensing cost based on the number of systems it is installed on. For the purpose of checking if the package is installed or not, your DevOps team lead has shared the following playbook:

---
  - hosts: testdome_servers
    vars:
      package_names:
        - testdome_service
    tasks:
      - name: "Package check"
        package:
          name: "{{ item }}"
          state: present
        check_mode: yes
        loop: "{{ package_names }}"
        register: package_check

      - name: "Print"
        debug:
          msg: "Package is installed"
        when: package_check is succeeded

Which answers are correct for the given playbook?

Easy
3 min
mca
Public
Ansible
Ansible Handlers
Playbook

Your team manages the web farm for example.com which now needs to support URL rewriting so that it uses more user and search engine friendly URLs.

Your team plans to use the following playbook to achieve the above mentioned requirement:

---
  - hosts: example_web_servers
    become: yes
    tasks:  
      - name: check rewrite module
        apache2_module: 
          name=rewrite
          state=present
        notify:
          - apache2 handler
    handlers:
      - name: apache2 handler
        service:
          name=apache2
          state=restarted

What are the features and functions of the different parts of the given playbook?

For jobseekers: get certified

Earn a free certificate by achieving top 25% on the Ansible test with public questions.

Take a Certification Test

Sample silver certificate

Sunshine Caprio

Java and SQL
TestDome
Certificate
TestDome logo icon

For companies: premium questions

Buy TestDome to access premium questions that can't be practiced.
Get money back if you find any premium question answered online.

Sign Up to Offer this Test

3 more premium Ansible questions

Managing Hosts, Live Hosts, Node Management.

Skills and topics tested

  • Ansible
  • Ansible Inventory
  • Ansible Patterns
  • Ad Hoc Commands
  • Ansible Nodes

For job roles

  • Ansible Administrator
  • Ansible Developer
  • DevOps Engineer

Sample candidate report

What others say

Decorative quote

Simple, straight-forward technical testing

TestDome is simple, provides a reasonable (though not extensive) battery of tests to choose from, and doesn't take the candidate an inordinate amount of time. It also simulates working pressure with the time limits.

Jan Opperman, Grindrod Bank

Product reviews

G2 - Crowd Badge
G2 - High Performer (2022)
Capterra - 4.5 Stars
Capterra - Shortlist (2023)

Used by

Solve all your skill testing needs

150+ Pre-made tests

From web development and database administration to project management and customer support. See all pre-made tests.

90+ skills

From JavaScript and SQL to English and customer support. See all questions to filter by skill.

Multi-skills Test

Mix questions for different skills or even custom questions in one test. See an example.

How TestDome works

1

Choose a pre-made test
or create a custom test

2

Invite candidates via
email, URL, or your ATS

3

Candidates take
a test remotely

4

Sort candidates and
get individual reports

Want to know more?