DEVCOR 350-901 Weekly Quiz — Set 02 (Q6–Q10): Developing Applications Using Cisco Core Platforms & APIs

Q6) RESTCONF URL for an interface description

You want to update only the description of interface GigabitEthernet1 using the standard ietf-interfaces model. Which resource path is correct?

A. /restconf/data/interfaces/interface/GigabitEthernet1/description
B. /restconf/data/ietf-interfaces:interfaces/interface=GigabitEthernet1/description
C. /restconf/operations/ietf-interfaces:interfaces/interface[name=GigabitEthernet1]/config/description
D. /restconf/data/ietf-interfaces:interfaces/GigabitEthernet1/description


Q7) Safe rollback if commit isn’t confirmed (NETCONF)

You use the <candidate> datastore and want the device to auto-rollback unless your app confirms the change within 2 minutes. What’s the correct sequence?

A. Send <commit>, then <confirmed-commit>
B. Send <commit confirmed="true" timeout="120">, then send <commit> before timeout
C. Send <validate>, then <discard-changes>
D. Send <commit> with <rollback-on-error/>


Q8) OAuth2 for a SPA calling Cisco APIs on behalf of a user

A browser-only single-page app (no backend) needs user login and tokens to call Web APIs. Which OAuth 2.0/OIDC flow is recommended?

A. Client Credentials
B. Authorization Code with PKCE
C. Resource Owner Password Credentials
D. Implicit Grant


Q9) gNMI path for OpenConfig interface counters

You need a subscription to interface counters for GigabitEthernet1 using OpenConfig. Which path is correct?

A. /interfaces/interface[name=GigabitEthernet1]/state/counters
B. /ietf-interfaces:interfaces/interface=GigabitEthernet1/counters
C. /openconfig-telemetry:subscription/GigabitEthernet1/counters
D. /ifmib:ifTable/ifEntry/GigabitEthernet1/counter


Q10) Preventing lost updates with RESTCONF

Two automations may edit the same resource. How can you ensure your update only applies if no one changed the resource since you last read it?

A. Include If-Match: <ETag>; server rejects with 412 if the ETag no longer matches
B. Add Cache-Control: no-cache to the request
C. Use If-Modified-Since with the last change time
D. There is no mechanism for this in RESTCONF

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 *