Config · Ansible interview questions

57 Config · Ansible questions from the DevOps & SRE bank, written for Indian campus drives and tech interviews. Every question has a verified answer and an AI-tutor explanation on placd.

Free to start: the 2-minute IT readiness check — six questions and a result.

Take the free IT readiness check

or take a mock interview set up for this area

1. What is Playbook?

Junior
  1. A.a list of managed hosts, optionally grouped, that Ansible targets
  2. B.a YAML file describing an ordered set of plays and tasks to run against hosts
  3. C.auto-discovered system information about a host gathered before tasks run
  4. D.Ansible's approach of managing hosts over SSH without installing a persistent agent

Answer + AI explanation with Pro

2. Which term means: "a YAML file describing an ordered set of plays and tasks to run against hosts"?

Junior
  1. A.Task
  2. B.Ansible Vault
  3. C.Inventory
  4. D.Playbook

Answer + AI explanation with Pro

3. Which statement is correct?

Junior
  1. A.Playbook — a task triggered by notify that runs once at the end if it was notified
  2. B.Playbook — host data generated at runtime from a cloud or external source rather than a static file
  3. C.Playbook — a YAML file describing an ordered set of plays and tasks to run against hosts
  4. D.Playbook — Ansible's approach of managing hosts over SSH without installing a persistent agent

Answer + AI explanation with Pro

4. What is Inventory?

Junior
  1. A.a single action in a play that invokes a module with arguments
  2. B.a list of managed hosts, optionally grouped, that Ansible targets
  3. C.a YAML file describing an ordered set of plays and tasks to run against hosts
  4. D.a feature that encrypts sensitive variables and files at rest

Answer + AI explanation with Pro

5. Which term means: "a list of managed hosts, optionally grouped, that Ansible targets"?

Junior
  1. A.Ansible Vault
  2. B.Playbook
  3. C.Fact
  4. D.Inventory

Answer + AI explanation with Pro

6. Which statement is correct?

Junior
  1. A.Inventory — host data generated at runtime from a cloud or external source rather than a static file
  2. B.Inventory — auto-discovered system information about a host gathered before tasks run
  3. C.Inventory — a list of managed hosts, optionally grouped, that Ansible targets
  4. D.Inventory — a single action in a play that invokes a module with arguments

Answer + AI explanation with Pro

7. What is Module?

Junior
  1. A.a list of managed hosts, optionally grouped, that Ansible targets
  2. B.host data generated at runtime from a cloud or external source rather than a static file
  3. C.a reusable unit of work Ansible executes on a host, like copy or service
  4. D.a structured, reusable bundle of tasks, variables, templates, and handlers

Answer + AI explanation with Pro

8. Which term means: "a reusable unit of work Ansible executes on a host, like copy or service"?

Junior
  1. A.Module
  2. B.Task
  3. C.Inventory
  4. D.Playbook

Answer + AI explanation with Pro

9. Which statement is correct?

Junior
  1. A.Module — a YAML file describing an ordered set of plays and tasks to run against hosts
  2. B.Module — Ansible's approach of managing hosts over SSH without installing a persistent agent
  3. C.Module — the property that re-running a playbook produces no changes if the system is already in the desired state
  4. D.Module — a reusable unit of work Ansible executes on a host, like copy or service

Answer + AI explanation with Pro

10. What is Task?

Junior
  1. A.a task triggered by notify that runs once at the end if it was notified
  2. B.the property that re-running a playbook produces no changes if the system is already in the desired state
  3. C.a feature that encrypts sensitive variables and files at rest
  4. D.a single action in a play that invokes a module with arguments

Answer + AI explanation with Pro

11. Which term means: "a single action in a play that invokes a module with arguments"?

Junior
  1. A.Task
  2. B.Handler
  3. C.Galaxy
  4. D.Playbook

Answer + AI explanation with Pro

12. Which statement is correct?

Junior
  1. A.Task — a YAML file describing an ordered set of plays and tasks to run against hosts
  2. B.Task — a list of managed hosts, optionally grouped, that Ansible targets
  3. C.Task — a single action in a play that invokes a module with arguments
  4. D.Task — a task triggered by notify that runs once at the end if it was notified

Answer + AI explanation with Pro

13. What is Role?

Junior
  1. A.the hub for sharing and installing reusable Ansible roles and collections
  2. B.a feature that encrypts sensitive variables and files at rest
  3. C.a single action in a play that invokes a module with arguments
  4. D.a structured, reusable bundle of tasks, variables, templates, and handlers

Answer + AI explanation with Pro

14. Which term means: "a structured, reusable bundle of tasks, variables, templates, and handlers"?

Junior
  1. A.Task
  2. B.Galaxy
  3. C.Role
  4. D.Agentless model

Answer + AI explanation with Pro

15. Which statement is correct?

Junior
  1. A.Role — Ansible's approach of managing hosts over SSH without installing a persistent agent
  2. B.Role — a structured, reusable bundle of tasks, variables, templates, and handlers
  3. C.Role — a task triggered by notify that runs once at the end if it was notified
  4. D.Role — a reusable unit of work Ansible executes on a host, like copy or service

Answer + AI explanation with Pro

16. What is Handler?

Junior
  1. A.host data generated at runtime from a cloud or external source rather than a static file
  2. B.the property that re-running a playbook produces no changes if the system is already in the desired state
  3. C.a feature that encrypts sensitive variables and files at rest
  4. D.a task triggered by notify that runs once at the end if it was notified

Answer + AI explanation with Pro

17. Which term means: "a task triggered by notify that runs once at the end if it was notified"?

Junior
  1. A.Ansible Vault
  2. B.Handler
  3. C.Idempotency
  4. D.Agentless model

Answer + AI explanation with Pro

18. Which statement is correct?

Junior
  1. A.Handler — a reusable unit of work Ansible executes on a host, like copy or service
  2. B.Handler — host data generated at runtime from a cloud or external source rather than a static file
  3. C.Handler — a list of managed hosts, optionally grouped, that Ansible targets
  4. D.Handler — a task triggered by notify that runs once at the end if it was notified

Answer + AI explanation with Pro

19. What is Idempotency?

Mid
  1. A.a task triggered by notify that runs once at the end if it was notified
  2. B.a feature that encrypts sensitive variables and files at rest
  3. C.a single action in a play that invokes a module with arguments
  4. D.the property that re-running a playbook produces no changes if the system is already in the desired state

Answer + AI explanation with Pro

20. Which term means: "the property that re-running a playbook produces no changes if the system is already in the desired state"?

Mid
  1. A.Idempotency
  2. B.Agentless model
  3. C.Galaxy
  4. D.Dynamic inventory

Answer + AI explanation with Pro

21. Which statement is correct?

Mid
  1. A.Idempotency — host data generated at runtime from a cloud or external source rather than a static file
  2. B.Idempotency — a single action in a play that invokes a module with arguments
  3. C.Idempotency — a YAML file describing an ordered set of plays and tasks to run against hosts
  4. D.Idempotency — the property that re-running a playbook produces no changes if the system is already in the desired state

Answer + AI explanation with Pro

22. What is Fact?

Mid
  1. A.auto-discovered system information about a host gathered before tasks run
  2. B.a task triggered by notify that runs once at the end if it was notified
  3. C.Ansible's approach of managing hosts over SSH without installing a persistent agent
  4. D.the hub for sharing and installing reusable Ansible roles and collections

Answer + AI explanation with Pro

23. Which term means: "auto-discovered system information about a host gathered before tasks run"?

Mid
  1. A.Module
  2. B.Inventory
  3. C.Task
  4. D.Fact

Answer + AI explanation with Pro

24. Which statement is correct?

Mid
  1. A.Fact — a reusable unit of work Ansible executes on a host, like copy or service
  2. B.Fact — a structured, reusable bundle of tasks, variables, templates, and handlers
  3. C.Fact — a list of managed hosts, optionally grouped, that Ansible targets
  4. D.Fact — auto-discovered system information about a host gathered before tasks run

Answer + AI explanation with Pro

25. What is Ansible Vault?

Mid
  1. A.a single action in a play that invokes a module with arguments
  2. B.host data generated at runtime from a cloud or external source rather than a static file
  3. C.a feature that encrypts sensitive variables and files at rest
  4. D.the property that re-running a playbook produces no changes if the system is already in the desired state

Answer + AI explanation with Pro

26. Which term means: "a feature that encrypts sensitive variables and files at rest"?

Mid
  1. A.Handler
  2. B.Ansible Vault
  3. C.Task
  4. D.Role

Answer + AI explanation with Pro

27. Which statement is correct?

Mid
  1. A.Ansible Vault — a feature that encrypts sensitive variables and files at rest
  2. B.Ansible Vault — a list of managed hosts, optionally grouped, that Ansible targets
  3. C.Ansible Vault — auto-discovered system information about a host gathered before tasks run
  4. D.Ansible Vault — a YAML file describing an ordered set of plays and tasks to run against hosts

Answer + AI explanation with Pro

28. What is Agentless model?

Mid
  1. A.a reusable unit of work Ansible executes on a host, like copy or service
  2. B.a single action in a play that invokes a module with arguments
  3. C.Ansible's approach of managing hosts over SSH without installing a persistent agent
  4. D.a list of managed hosts, optionally grouped, that Ansible targets

Answer + AI explanation with Pro

29. Which term means: "Ansible's approach of managing hosts over SSH without installing a persistent agent"?

Mid
  1. A.Idempotency
  2. B.Agentless model
  3. C.Handler
  4. D.Ansible Vault

Answer + AI explanation with Pro

30. Which statement is correct?

Mid
  1. A.Agentless model — a YAML file describing an ordered set of plays and tasks to run against hosts
  2. B.Agentless model — the hub for sharing and installing reusable Ansible roles and collections
  3. C.Agentless model — Ansible's approach of managing hosts over SSH without installing a persistent agent
  4. D.Agentless model — the property that re-running a playbook produces no changes if the system is already in the desired state

Answer + AI explanation with Pro

Showing 30 of 57 Config · Ansible questions — the full set, with answers, explanations and an AI tutor on every question, is inside.

Free to start

Start with a free readiness check

Sign up free for the 2-minute IT readiness check and a scored result. Answers, explanations and the AI tutor on every Config · Ansible question come with Pro.

Take the free IT readiness check

or take a mock interview set up for this area

24,000+ questions & coding problemsSoftware & IT16,274 questionsGovernment jobs26 examsAptitudenew questions every timeAI practice interviewwith feedback65 topics to practiseMechanical1,149 questionsGATE ME9 papersEngineering Mathematics381 questions2-minute checkfreeDSA Problems1,422Civil1,005 questionsGATE CE9 papersCS Fundamentals1,209 questionsYour scores6 skillsSystem Design25Electrical / EEE1,047 questionsGATE EE9 papersRun your codeC++ · Java · PythonLow-Level Design144Electronics & Comm.975 questionsGATE EC9 papersAI help on every questionFull-Stack6,282Chemical1,005 questionsGATE CH9 papersAI whiteboardsystem designWork abroadEurope · remote · transfersESE ME1 paperGATE practice papers2019–2026ESE CE1 paperDate alertsbefore the last dateESE EE1 paperBehavioural courseHR round practiceESE ET1 paperResume optimizerProSSC JE ME1 paperApplication trackerSSC JE CE1 paperCompany-wise prepSSC JE EE1 paperRole roadmapsRRB JE1 subjectPriced in ₹UPI · cardsISRO SC1 paperGATE CS9 papersIBPS SO IT1 paperUGC NET CS1 paperSSC CGL26 papersIBPS PO26 papersRRB NTPC26 papersSSC CHSL26 papersIBPS Clerk26 papersSBI Clerk26 papersRRB Group D26 papersSSC CPO26 papersSSC GD26 papers