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.
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.
upis not a standardstatevalue for creating or managing configuration elements in Ansible modules; it typically refers to an operational status. - C.
onis not a standardstatevalue for creating or managing configuration elements in Ansible modules. - D.
activeis not a standardstatevalue 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
Community Discussion
No community discussion yet for this question.