1) RESTCONF & YANG output format
You want to retrieve interface data from an IOS-XE device using RESTCONF and receive JSON encoded per YANG. Which combination is correct?
A. GET https://router/restconf/operational/ietf-interfaces:interfaces with Accept: application/json
B. GET https://router/restconf/data/ietf-interfaces:interfaces with Accept: application/yang-data+json
C. GET https://router/api/v1/interfaces with Accept: application/xml
D. GET https://router/restconf/data/ietf-interfaces/interfaces with Accept: application/yang
Explanation:
RESTCONF uses the /restconf/data/ subtree for configuration/state resources and YANG module-qualified paths (e.g., ietf-interfaces:interfaces). To request JSON that follows YANG encoding, use the media type application/yang-data+json.
2) HTTP methods & partial updates
You need to change only the description of an existing interface resource without replacing the whole interface object. Which HTTP method best matches this requirement?
A. GET
B. POST
C. PUT
D. PATCH
Explanation:PATCH is designed for partial updates. PUT replaces the entire resource representation, POST typically creates subordinate resources or triggers actions, and GET is read-only.
3) Webex (Cisco) API authentication
When sending a request to the Webex REST API to create a message, which header is required for authentication?
A. Authorization: Basic <base64 user:pass>
B. X-Auth-Token: <token>
C. Authorization: Bearer <access_token>
D. Cookie: session=<token>
Explanation:
Webex’s modern REST APIs use OAuth 2.0 bearer tokens. You pass the token in Authorization: Bearer <access_token>. Basic auth and cookie-based sessions aren’t used here; X-Auth-Token is not the standard header.
4) Ansible for network automation
You must ensure an interface description is configured on a Cisco IOS-XE device in an idempotent way (no change when already correct). Which Ansible task type is most appropriate?
A. Use the command module to run conf t and interface ... lines
B. Use the ios_config module with lines: and appropriate parents:
C. Use the shell module to push a CLI script
D. Use the raw module to send CLI directly over SSH
Explanation:
Network-aware modules like ios_config understand device state and support idempotency (and check mode). command, shell, and raw simply push text and don’t inherently provide idempotent behavior.
5) Event-driven integrations vs polling (Meraki/DNA Center/Webhooks)
You’re designing an integration that reacts quickly to network events (e.g., AP down) while minimizing API calls and rate-limit risk. What’s the best approach?
A. Poll the API every 5 seconds for changes
B. Poll the API every 60 seconds and increase page size
C. Subscribe to webhooks and process events on receipt
D. Schedule a nightly batch job to collect events
Explanation:
Webhooks push events to your listener as they occur, yielding lower latency and far fewer API requests than polling—ideal for event-driven workflows common to Meraki and other Cisco platforms.