mediumMultiple ChoiceObjective-mapped
CCNP Practice Question: An Ansible playbook uses the…
An Ansible playbook uses the cisco.ios.ios_l3_interfaces module to configure an IPv4 address on GigabitEthernet0/1:
```yaml --- - name: Configure IPv4 address hosts: cisco-routers gather_facts: no tasks: - name: Set IP address cisco.ios.ios_l3_interfaces: config: - name: GigabitEthernet0/1 ipv4: - address: 10.1.1.1/24 state: merged ```
What is the effect of the 'state: merged' parameter?
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 adds the IP address to the interface, merging with any existing configuration.
The 'merged' state adds the provided configuration to the existing configuration without removing any other settings. If the interface already has an IP address, it will be replaced only if the address is different; otherwise, it remains unchanged.
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 replaces the entire L3 configuration on the interface with only the provided address.
Why it's wrong here
That is the behavior of 'replaced', not 'merged'.
- ✓
It adds the IP address to the interface, merging with any existing configuration.
Why this is correct
'merged' adds the configuration to the existing one without removing other settings.
- ✗
It deletes the IP address if it exists.
Why it's wrong here
That would be 'absent' state.
- ✗
It only checks the configuration without making changes.
Why it's wrong here
That would be 'gathered' or 'rendered'.
About these practice questions
One of 1,175 original 350-401 practice questions on Courseiva, each with a full explanation and wrong-answer analysis — not exam dumps or protected exam content. Learn why practice questions differ from exam dumps →
JA
Written by Johnson Ajibi, MSc IT Security
Senior Network & Security Engineer · founder of Courseiva
This 350-401 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-401 exam.