DEVCOR 350-901 Weekly Quiz — Set 01 (Q1–Q5): Developing Applications Using Cisco Core Platforms & APIs

Q1) 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


Q2) RESTCONF media types

When sending and receiving YANG-modeled data in JSON via RESTCONF, which headers are correct?

A. Content-Type: application/json only
B. Accept: application/yang-data+json and Content-Type: application/yang-data+json
C. Accept: text/plain
D. No headers required


Q3) Preventing configuration race conditions in NETCONF

Before editing the <running> datastore on a multi-user device, which NETCONF RPC should the client send?

A. <get>
B. <commit>
C. <lock>
D. <discard-changes>


Q4) gNMI subscription choice

You need near real-time updates only when configuration or state changes occur, minimizing bandwidth. Which gNMI subscription mode fits?

A. sample
B. once
C. on_change
D. poll


Q5) Ansible with RESTCONF on IOS-XE

You will automate IOS-XE via RESTCONF (not CLI or NETCONF). Which inventory connection is correct?

A. ansible_connection=network_cli
B. ansible_connection=netconf
C. ansible_connection=httpapi
D. ansible_connection=local

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 *