DEVASC 200-901 Weekly Quiz — Set 03 (Q11–Q15): Developing Applications & Automating Workflows on Cisco Core Platforms

Q11) Secure calls to device APIs with self-signed certs

Your Python script talks to an IOS-XE device’s RESTCONF API over HTTPS. The device uses a self-signed certificate. What’s the best practice?

A. Pass verify=False in requests.get() to skip TLS checks
B. Import the device (or CA) cert into a trust bundle and pass its path via verify="/path/to/ca.pem"
C. Switch to plain HTTP to avoid certificate errors
D. Add a custom header X-Trust: true so the server allows the call


Q12) Modeling interfaces in YANG

You need to represent a collection of interfaces, each uniquely identified by a name (for example, GigabitEthernet1). Which YANG construct is correct?

A. leaf interface { type string; }
B. leaf-list interface { type string; }
C. list interface { key "name"; leaf name { type string; } ... }
D. container interface { leaf name { type string; } }


Q13) RESTCONF RPC vs data resource

You want to trigger an operation (RPC/action) exposed by a YANG module (not set config/state directly). Which RESTCONF target is correct?

A. POST /restconf/data/...
B. GET /restconf/data/...
C. POST /restconf/operations/<module>:<rpc-name>
D. PATCH /restconf/operations/<module>:<rpc-name>


Q14) Jinja2 templating for safe defaults

In an Ansible template, you want an interface description to default to “Managed by Ansible” if description isn’t provided. Which Jinja2 is best?

A. description {{ description or "Managed by Ansible" }}
B. description {{ default(description, "Managed by Ansible") }}
C. description {{ description | default("Managed by Ansible") }}
D. description {{ description if description else "Managed by Ansible" | safe }}


Q15) Model-driven telemetry vs SNMP

Which statement most accurately contrasts model-driven telemetry (MDT) with SNMP on Cisco platforms?

A. MDT uses server-driven push streams (e.g., gNMI/gRPC) of YANG-modeled paths with subscriptions; SNMP is predominantly poll-based using MIBs and has coarser intervals
B. MDT and SNMP are both pull only; the difference is that MDT uses XML while SNMP uses JSON
C. SNMP traps deliver full state continuously; MDT only sends deltas when a CLI change occurs
D. MDT can’t stream counters; it only reports syslog messages

Comments

No comments yet. Why don’t you start the discussion?

Leave a Reply

Your email address will not be published. Required fields are marked *