nerdexam
CiscoCisco

300-435 · Question #31

300-435 Question #31: Real Exam Question with Answer & Explanation

The correct answer is A: present. To ensure that VRFs defined in the local_vrfs variable are created or exist on the device, the state parameter of the ios_vrf Ansible module must be set to present.

Device-Level Network Automation

Question

Refer to the exhibit. An engineer creates an Ansible playbook to configure VRF information using a local_vrfs variable. The code must be completed so that it can be tested. Which string completes the code? - name: Create VRFs as defined by local_vrfs ios_vrf: vrfs: "{{ local_vrfs }}" state:

Options

  • Apresent
  • Bup
  • Con
  • Dactive

Explanation

To ensure that VRFs defined in the local_vrfs variable are created or exist on the device, the state parameter of the ios_vrf Ansible module must be set to present.

Common mistakes.

  • B. up is not a standard state value for creating or managing configuration elements in Ansible modules; it typically refers to an operational status.
  • C. on is not a standard state value for creating or managing configuration elements in Ansible modules.
  • D. active is not a standard state value for creating or managing configuration elements in Ansible modules; it might describe an operational status but not the desired configuration state.

Concept tested. Ansible state parameter for configuration

Reference. https://docs.ansible.com/ansible/latest/collections/cisco/ios/ios_vrf_module.html

Topics

#Ansible#ios_vrf module#Playbook syntax#VRF configuration

Community Discussion

No community discussion yet for this question.

Full 300-435 PracticeBrowse All 300-435 Questions