Courseiva
mediumMultiple ChoiceObjective-mapped

CCNP Practice Question: Given the following Ansible playbook snippet: ---…

Given the following Ansible playbook snippet: --- - name: Configure SNMP hosts: routers gather_facts: no tasks: - name: SNMP community ios_config: lines: - snmp-server community public RO What is the result of this playbook?

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 configures an SNMP community string 'public' with read-only access.

The playbook uses ios_config to add a line globally. The command 'snmp-server community public RO' configures an SNMP community string 'public' with read-only access. This is a valid global configuration command.

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 configures an SNMP community string 'public' with read-only access.

    Why this is correct

    Correct. The command is applied globally and sets the community string.

  • It fails because 'RO' is not a valid keyword; it should be 'read-only'.

    Why it's wrong here

    Incorrect. 'RO' is the correct abbreviation for read-only in IOS.

  • It configures the community string only for SNMPv3.

    Why it's wrong here

    Incorrect. The command is for SNMPv1/v2c community strings.

  • It removes any existing SNMP community strings.

    Why it's wrong here

    Incorrect. The command adds a community string, it does not remove others.

About these practice questions

Courseiva writes every 350-401 question from scratch — 1,175 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-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.