nerdexam
CiscoCisco

200-901 · Question #653

200-901 Question #653: Real Exam Question with Answer & Explanation

The correct answer is B: Print any configuration differences to stdout.. {"question_number": 8, "correct_answer": "B, C", "explanation": "Ansible's check mode (--check) is a dry-run mode - it simulates playbook execution without making actual changes to the device. Tasks that only read or compare data will still run, while tasks that write or deploy c

Infrastructure and Automation

Question

Refer to the exhibit. A developer is creating an Ansible playbook for a Cisco NX-OS device. The tasks that are defined in the playbook focus on the configuration on the device and is combined with other playbooks to showcase Day 0 to Day N tasks using an agentless tool like Ansible. Which two tasks will execute when the playbook is run in check mode? (Choose two.)

Options

  • ACreate a backup if there are any differences detected in the diff output.
  • BPrint any configuration differences to stdout.
  • CCompare the running-config against the latest.txt file.
  • DDeploy a configuration that is based on the latest.txt template.
  • ECompare the saved-config against the latest.txt file.

Explanation

{"question_number": 8, "correct_answer": "B, C", "explanation": "Ansible's check mode (--check) is a dry-run mode - it simulates playbook execution without making actual changes to the device. Tasks that only read or compare data will still run, while tasks that write or deploy changes are skipped. Comparing the running-config against latest.txt (C) is a read operation that executes in check mode. Printing configuration differences to stdout (B) is output-only and also executes. Creating a backup (A) and deploying configuration (D) make changes and are skipped. Answer E is a distractor; the playbook compares running-config, not saved-config.", "generated_by": "claude-sonnet", "llm_judge_score": 4}

Topics

#Ansible check mode#Network configuration#NX-OS#Automation dry run

Community Discussion

No community discussion yet for this question.

Full 200-901 PracticeBrowse All 200-901 Questions