Courseiva
AutomationeasyMultiple ChoiceObjective-mapped

350-601 Automation Practice Question

Exhibit

- name: Apply VLAN configuration to Nexus switches\n  hosts: nexus_switches\n  gather_facts: no\n  tasks:\n    - name: Configure VLAN 10\n      cisco.nxos.nxos_config:\n        lines:\n          - vlan 10\n          - name Automation_VLAN\n        provider: "{{ cli }}"

Refer to the exhibit. What is the intended effect of this Ansible playbook task?

⚠ Common exam trap

Cisco often tests the distinction between `merged`, `replaced`, `overridden`, and `deleted` states in Ansible modules, and the trap here is that candidates mistakenly associate any configuration task with a reboot or save operation, or assume `merged` implies deletion of existing configuration.

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

It ensures VLAN 10 exists with the name 'Automation_VLAN' on the target switches.

The Ansible playbook task uses the `cisco.nxos.nxos_vlans` module with the `state: merged` directive, which ensures that the specified VLAN configuration (VLAN 10 with name 'Automation_VLAN') is present on the target Nexus switches. If VLAN 10 does not exist, it will be created; if it exists with a different name, it will be updated. The `merged` operation does not delete or reboot; it only applies the configuration to align the device's state with the playbook's desired state.

Answer analysis

Option-by-option breakdown

For each option: why learners choose it and why it is or isn't the right answer here.

  • It deletes VLAN 10 from all switches.

    Why it's wrong here

    The task is adding lines, not deleting; no negate statement.

  • It saves the running configuration to startup.

    Why it's wrong here

    Saving requires a separate task or parameter (save: yes).

  • It reboots the Nexus switches after applying the configuration.

    Why it's wrong here

    No reboot is triggered; it only configures VLAN.

  • It ensures VLAN 10 exists with the name 'Automation_VLAN' on the target switches.

    Why this is correct

    The nxos_config module pushes the provided lines, ensuring they are present.

Visual reference

Switch VLAN 10 Sales (192.168.10.0/24) PC-A PC-B VLAN 20 HR (192.168.20.0/24) PC-C PC-D Router VLANs isolate traffic — inter-VLAN routing requires a Layer 3 device

About these practice questions

Courseiva writes every 350-601 question from scratch — 984 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 →

How Courseiva writes practice questions · Editorial policy

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.