↑ ↓ to move, Enter to open, Esc to close

    CSCO-200-901Automating Networks Using Cisco Platforms

    Switch exam

    Microsoft Azure

    aws Amazon Web Services

    Google Cloud

    ServiceNow

    Databricks

    Cisco

    Salesforce

    All exams and search

    Exams / CSCO-200-901 / D1 Infrastructure and Automation

    D1.1

    Infrastructure and Automation (part 1 of 3)

    • 3 min read
    • 6 sections
    • 31 questions
    • Free preview
    • Exam domain: Infrastructure and Automation
    You are reading a free preview. The rest of the CSCO-200-901 course unlocks with an Exam pass or All access.See plans

    Ansible essentials

    Ansible control node, inventory, variables, playbook and handler

    Concept What it is Exam hook
    Inventory ("host file") List of managed nodes and groups, plus their variables "Constructs an inventory of resources under management"
    Playbook YAML file describing the desired state and tasks Defines state; agentless
    Handler Task that runs only when notified by a task that reported changed "Runs tasks when a property changes"
    host_vars / group_vars YAML variable files per host / per group Unique per device → host_vars
    ios_config Applies configuration lines (idempotent, compares to running-config) Use it to configure IOS
    ios_command Sends commands; cannot run in configuration mode Show/exec only
    apt absent removes, present installs, latest upgrades name: "*" + latest = update all
    • Handlers: "you may want to restart a service if a task updates the configuration of that service, but not if the configuration is unchanged."
    • Inventory: "Your inventory defines the managed nodes you automate and the variables associated with those hosts."
    • Variables: the host_group_vars plugin "loads YAML vars into corresponding groups/hosts in group_vars/ and host_vars/ directories."
    • ios_command: "This module does not support running commands in configuration mode. Please use ios_config to configure IOS devices."
    • Tasks run in order, so a later task can override an earlier one (an unconfigured task followed by a trunk task leaves a trunk).
    • A trunk carries the permitted VLANs; it does not bridge different VLANs to each other.

    CI/CD and artifacts

    From git push to CI pipeline, tests, artifact repository and delivery

    Term Meaning
    Continuous integration Merge often to the shared branch; each change is built and tested automatically
    Continuous delivery Keeps software releasable, with release to production as a decision
    Continuous deployment Every passing change goes to production automatically
    Artifact repository Stores build inputs/outputs and manages binaries (versioned, searchable, traceable)
    • "Continuous integration is focused on automatically building and testing" code.
    • AWS CodeArtifact is "a secure, highly scalable, managed artifact repository service".
    • git push (not git commit) sends changes to the server and triggers the pipeline.

    Infrastructure as code and model-driven programmability

    • IaC makes new environments "repeatable, reliable, and consistent": same inputs, same result, built from reusable modules. Coupling, drift and overlap are anti-patterns.
    • Model-driven programmability = YANG data models with NETCONF/RESTCONF: a standard, programmatic way to configure devices, and the same model works across devices.
    • Device level: RESTCONF/NETCONF + YANG. Controller level: REST northbound, westbound integration to ITSM tools.

    Cisco DevNet resources (the source key, no allowed-site doc)

    Need Resource
    Community / open-source code Code Exchange
    Free lab gear to test code (IOS XE) DevNet Sandbox
    Beginner-to-advanced use cases Automation Exchange
    Test framework for devices pyATS
    Virtual topology to test config changes VIRL / Cisco Modeling Labs
    WAN, less MPLS cost Cisco SD-WAN

    Edge, load balancing, HTTP

    • Edge: devices "work offline for extended periods"; local compute, data management and sync near the source; high-speed local processing.
    • Application Load Balancer: HTTP/HTTPS (layer 7); TCP is the Network Load Balancer.
    • NGINX 502 Bad Gateway: nginx answered but the upstream (back-end) server is faulty.
    • Cache-Control: max-age lets caches reuse responses and cut database load without changing clients.

    Bash quick reference

    Task Command
    Append cwd to PATH for subshells export PATH=$PATH:$(pwd)
    Delete a tree without prompts rm -rf dir (-f = never prompt)
    Delete files older than 30 days find DIR -mtime +30 -type f -delete (-print only lists)
    Loop while [ -d "$d" ]; do cd $d; done Descends while the directory exists, then mkdir

    Exam traps

    • Handler ≠ task ≠ role ≠ playbook: only handlers fire on change.
    • ios_command cannot configure; ios_config does.
    • Per-device variables: host_vars; shared → group_vars.
    • git commit is local; git push triggers CI.
    • Pick CI for "merge often + run tests"; delivery/deployment involve release.
    • Q020 (pyATS) and Q035 (VIRL) both ask about testing tools; follow the keyword (test framework vs. virtual network).
    • Typos in options (e.g. $(pwc1)) are in the source; pick the structurally right answer.

    Docs

    The rest of this chapter is part of the CSCO-200-901 premium course

    Unlock every chapter, all 628 questions and spaced review with All access or a 90-day exam pass. Every Fundamentals exam stays free, and the first chapter of every exam is open.

    Chapters