Courseiva
mediumMultiple SelectObjective-mapped

350-401 Practice Question: Which two statements about Ansible modules and…

Which two statements about Ansible modules and idempotency are true? (Choose two.)

Answer choices

Why each option matters

Answer the question above first, then reveal the full breakdown to understand why each option is right or wrong.

Correct answer & explanation

Idempotency means that running a playbook multiple times will always result in the same final state on the managed node.

Ansible modules are designed to be idempotent, meaning repeated runs produce the same state. The 'command' and 'shell' modules are not idempotent by default. Modules like 'copy' and 'template' check current state before making changes.

Answer analysis

Option-by-option breakdown

For each option: why learners choose it and why it is or isn't the right answer here.

  • Idempotency means that running a playbook multiple times will always result in the same final state on the managed node.

    Why this is correct

    Correct because idempotency ensures that repeated application of the same configuration does not change the system beyond the desired state.

  • The 'command' module is idempotent by default because it always runs the given command.

    Why it's wrong here

    Incorrect because the 'command' module is not idempotent; it executes the command every time without checking if the desired state already exists.

  • The 'copy' module is idempotent because it checks the checksum of the destination file before copying.

    Why this is correct

    Correct because the 'copy' module compares the source and destination file checksums and only copies if they differ, making it idempotent.

  • All Ansible modules are inherently idempotent regardless of how they are implemented.

    Why it's wrong here

    Incorrect because not all modules are idempotent; for example, 'command' and 'shell' modules execute every time unless the user adds a 'creates' or 'when' condition.

  • Idempotency only applies to network modules, not to Linux system modules.

    Why it's wrong here

    Incorrect because idempotency is a general design principle for all Ansible modules, including both network and system modules.

About these practice questions

Courseiva writes every 350-401 question from scratch — 1,175 in total, each with an explanation and a wrong-answer breakdown. None are copied from real exams or dumps. Learn why practice questions differ from exam dumps →

How Courseiva writes practice questions · Editorial policy

JA

Written by Johnson Ajibi, MSc IT Security

Senior Network & Security Engineer · founder of Courseiva

This 350-401 practice question is part of Courseiva's free Cisco certification practice question bank. Courseiva provides original exam-style practice questions with explanations, topic-based practice, mock exams, readiness tracking, and study analytics to help learners prepare for the 350-401 exam.