N10-009 ยท Modern network architectures
Infrastructure as code for networks
Automation (playbooks, templates, drift/compliance, upgrades, dynamic inventories) and source control (versioning, repository, conflicts, branching).
Key points
- IaC: network configuration in text files (playbooks, templates) that tools apply the same way every time, replacing hand-typed changes.
- Dynamic inventory: device list built from a live source.
- Configuration drift: a device differs from its intended state; automation detects it, checks compliance, pushes upgrades.
- Source control (versioning, branches, merge conflict resolution): history, review, rollback.
Source: https://docs.ansible.com/ansible/latest/cli/ansible-playbook.html
Practice questions
What is configuration drift?
- A device's actual configuration diverging from its intended state
- A cable slowly degrading over time
- Packets circling endlessly in a routing loop
- A clock gradually losing synchronization
Show answer
Answer: A. A device's actual configuration diverging from its intended state
Drift is when a device's running configuration no longer matches its intended, documented state, often from manual changes. It is not a hardware failure or a routing loop.
Which are benefits of keeping network configs in a source control repository?
- A history of who changed what and when
- Simple rollback to a known-good version
- Peer review of changes before they are applied
- Higher forwarding speed on the devices
- No need to test changes before deployment
Show answer
Answer: A. A history of who changed what and when, B. Simple rollback to a known-good version, C. Peer review of changes before they are applied
Version control gives change history, easy rollback and peer review through branches and pull requests. It does not make devices faster or remove the need for testing.
True or false: Running a playbook in check mode applies the changes to devices and then reverts them.
Show answer
Answer: False
False. Check mode makes no changes; it only predicts what would change.
Practice 8 questions on this topic in Bitzu
Short lessons, instant explanations and spaced review of what you get wrong. Free on iOS and Android.
