350-501 Automation and Assurance Practice Question
A service provider is deploying a new automation framework using Ansible to configure MPLS VPNs. They need to ensure that the Ansible playbook can handle configuration rollback in case of failure. Which Ansible feature should be used?
⚠ Common exam trap
Cisco often tests the distinction between validation (check_mode) and actual rollback (backup), so the trap here is assuming that a dry run or ignoring errors provides a safety net for reverting changes after they have been applied.
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
✓
Use the 'backup' option in the ios_config module
The 'backup' option in the ios_config module instructs Ansible to save a copy of the running configuration to a local file before making any changes. If the playbook fails or produces an undesired state, the operator can restore the device to the previous configuration using that backup file. This provides a straightforward rollback mechanism for MPLS VPN deployments without requiring external version control or manual snapshots.
Answer analysis
Option-by-option breakdown
For each option: why learners choose it and why it is or isn't the right answer here.
- ✓
Use the 'backup' option in the ios_config module
Why this is correct
Backs up running config before changes for rollback.
- ✗
Use 'tags' to selectively apply tasks
Why it's wrong here
Helps run specific tasks, not rollback.
- ✗
Use 'check_mode' to validate changes before applying
Why it's wrong here
Validates but does not provide backup for rollback.
- ✗
Set 'ignore_errors' to true
Why it's wrong here
Ignores errors, does not provide rollback.
Go deeper
Related to this question
About these practice questions
Courseiva writes every 350-501 question from scratch — 971 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 →
JA
Written by Johnson Ajibi, MSc IT Security
Senior Network & Security Engineer · founder of Courseiva
This 350-501 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-501 exam.