350-601 Automation Practice Question
An engineer is writing an Ansible playbook to configure a Nexus switch. The playbook uses the cisco.nxos.nxos_config module. Which Ansible concept is used to ensure the playbook is idempotent?
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
✓
The 'check_mode: yes' flag ensures the playbook only shows changes without applying them.
The 'check_mode' (or '--check') flag in Ansible allows dry-run to verify idempotency.
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 is achieved by using the 'force' parameter.
Why it's wrong here
Force can override idempotency.
- ✗
Using 'gather_facts: no' makes the playbook idempotent.
Why it's wrong here
gather_facts is unrelated.
- ✗
Idempotency is guaranteed by default in Ansible.
Why it's wrong here
Not all modules are idempotent; it depends on the module.
- ✓
The 'check_mode: yes' flag ensures the playbook only shows changes without applying them.
Why this is correct
Check mode is used for idempotency testing.
Go deeper
Related to this question
About these practice questions
This 350-601 question is part of Courseiva's 984-question bank — original exam-style content with full explanations and wrong-answer analysis, never real exam questions or exam dumps. Learn why practice questions differ from exam dumps →
JA
Written by Johnson Ajibi, MSc IT Security
Senior Network & Security Engineer · founder of Courseiva
This 350-601 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-601 exam.