CCNA Devnet Cisco Platforms Questions

75 of 124 questions · Page 1/2 · Devnet Cisco Platforms topic · Answers revealed

1
MCQmedium

An application uses Cisco DNA Center APIs and needs to receive notifications when a new device is added. Which DNA Center API category should be used to set up event-driven notifications?

A.Platform
B.Change your network
C.Know your network
D.Run your network
AnswerA

Correct. Platform APIs provide event notifications and task management.

Why this answer

The Platform API category includes event notifications and task management features.

2
MCQmedium

An application sends many requests to the Meraki API and receives HTTP 429 errors. The response includes a 'Retry-After' header. What does this status code indicate?

A.The requested resource was not found
B.The server encountered an internal error
C.The API key is invalid
D.The client has exceeded the rate limit
AnswerD

Correct. 429 indicates rate limiting, and Retry-After tells when to retry.

Why this answer

HTTP 429 means too many requests; rate limiting is in effect. Retry-After indicates the wait time.

3
MCQmedium

A Webex bot needs to send a message to a room. The bot has the room ID. Which API endpoint should be used, and what is the correct HTTP method?

A.POST /v1/messages
B.PUT /v1/messages/{messageId}
C.GET /v1/messages
D.POST /v1/rooms
AnswerA

Correct. Use POST /v1/messages with roomId and text fields.

Why this answer

To send a message to a Webex room, use POST /v1/messages with the roomId parameter.

4
MCQeasy

Which tool can be used to explore YANG models locally?

A.yangcatalog.org
B.Cisco DevNet sandbox
C.Postman
D.pyang
AnswerD

Correct. pyang is used to parse and explore YANG models.

Why this answer

pyang is a tool for validating and converting YANG models.

5
MCQeasy

Which Cisco platform uses NX-API to allow programmatic access to CLI commands via JSON?

A.Cisco Meraki
B.Cisco NX-OS
D.Cisco IOS XE
AnswerB

NX-OS uses NX-API.

Why this answer

NX-OS devices support NX-API for programmatic access.

6
MCQhard

In Cisco IOS XE, a network engineer wants to retrieve the hostname of a device using RESTCONF. Which URI and method should be used? Assume RESTCONF is enabled and the base URL is https://device/restconf.

A.GET /restconf/data/hostname
B.GET /restconf/data/Cisco-IOS-XE-native:native/hostname
C.GET /restconf/data/Cisco-IOS-XE-interfaces:interfaces
D.POST /restconf/data/Cisco-IOS-XE-native:native/hostname
AnswerB

Correct. This retrieves the hostname from the native model.

Why this answer

The hostname is part of the native YANG model. The correct path is /restconf/data/Cisco-IOS-XE-native:native/hostname with GET.

7
MCQmedium

A developer is using the Meraki Dashboard API to list all organizations. The base URL is https://api.meraki.com/api/v1/. What is the correct endpoint and authentication method?

A.POST /organizations with Bearer token in Authorization header
B.GET /organizations with Basic Auth username and password
C.GET /organizations with X-Cisco-Meraki-API-Key header
D.GET /v1/organizations with Cookie authentication
AnswerC

Correct. The API key is sent in the request header.

Why this answer

The Meraki Dashboard API uses a custom API key for authentication, sent via the `X-Cisco-Meraki-API-Key` header. To list all organizations, the correct HTTP method is GET, and the endpoint is `/organizations` (relative to the base URL `https://api.meraki.com/api/v1/`). This matches option C exactly.

Exam trap

The trap here is that candidates may confuse the Meraki API's custom header authentication with more common methods like Basic Auth or Bearer tokens, or incorrectly assume the endpoint path must include the version number again.

How to eliminate wrong answers

Option A is wrong because listing organizations is a read operation requiring GET, not POST; POST is used for creating resources. Option B is wrong because the Meraki API does not support Basic Auth; it requires a dedicated API key header. Option D is wrong because the endpoint includes `/v1/` redundantly (the base URL already contains the version), and the API uses a custom header, not cookie authentication.

8
Multi-Selectmedium

A developer is using the Meraki Dashboard API to manage networks. Which two statements about pagination are correct?

Select 2 answers
A.Paginated responses include a 'total' field showing the total count.
B.The API returns a maximum of 10 items per page.
C.The perPage parameter is required for all requests.
D.The startingAfter parameter is used for cursor-based pagination.
E.The Link header can provide the URL for the next page.
AnswersD, E

Correct. startingAfter and endingBefore are used for cursor-based pagination.

Why this answer

Meraki supports both LinkHeader and cursor-based pagination via startingAfter/endingBefore parameters.

9
MCQeasy

What authentication method is required to obtain a token from Cisco DNA Center's API?

A.Bearer token in Authorization header
B.API key in header X-API-Key
C.Basic Authentication (username:password base64 encoded) in Authorization header
D.OAuth 2.0 client credentials grant
AnswerC

Correct. DNA Center uses Basic Auth to get a token.

Why this answer

Cisco DNA Center uses Basic Authentication over HTTPS to obtain a token via POST /dna/system/api/v1/auth/token.

10
Multi-Selectmedium

A developer is integrating with Cisco Webex Teams. Which two resources can trigger a webhook?

Select 2 answers
A.resource: 'memberships', event: 'deleted'
B.resource: 'rooms', event: 'created'
C.resource: 'people', event: 'created'
D.resource: 'messages', event: 'created'
E.resource: 'teams', event: 'updated'
AnswersB, D

Correct. Room creation can trigger a webhook.

Why this answer

Option B is correct because the Cisco Webex Teams API supports webhooks for the 'rooms' resource with the 'created' event, which triggers when a new room (space) is created. This is a documented and valid webhook combination that allows developers to react to room creation events in real-time.

Exam trap

Cisco often tests the exact list of valid resource-event pairs, and the trap here is that candidates assume all resources support all CRUD-like events (create, read, update, delete), but in reality each resource has a limited set of supported events, and 'people' has no webhook support at all.

11
MCQhard

An engineer wants to trigger an EEM applet when a specific syslog message appears. Which event detector should be used?

A.event timer cron
B.event interface
C.event cli pattern
D.event syslog pattern
AnswerD

Syslog event detector triggers on syslog messages.

Why this answer

EEM's syslog event detector triggers on syslog messages matching a pattern.

12
Multi-Selecthard

A network engineer is using Cisco DNA Center to automate network changes. Which THREE operations are part of the 'Change your network' API category? (Choose three.)

Select 3 answers
A.Create and assign a site to a device
B.Run a command on a device via Command Runner
C.Initiate a Plug and Play (PnP) device provisioning
D.Deploy a configuration template to devices
E.Retrieve the list of network devices
AnswersA, C, D

Site creation is part of changing the network topology.

Why this answer

Option A is correct because the 'Change your network' API category in Cisco DNA Center includes operations that actively modify the network state. Creating and assigning a site to a device is a configuration change that associates a physical location with a device, which directly alters the network's logical topology and is part of the site management workflow under this API category.

Exam trap

Cisco often tests the distinction between read-only (query/inventory) and write (change) API operations, and the trap here is that candidates mistakenly classify 'Run a command on a device' as a change because it interacts with a device, but it is a transient troubleshooting action, not a persistent configuration change.

13
MCQhard

A developer is using the Meraki Dashboard API to retrieve a list of clients for a network. After a successful request, the response includes a Link header with rel="next" pointing to the next page. What does this indicate about the API's pagination?

A.The API uses page-based pagination with page and perPage parameters.
B.The API uses offset-based pagination and the next page can be retrieved by incrementing an offset parameter.
C.The API uses Link header pagination and the next page can be retrieved by following the URL in the Link header.
D.The API uses cursor-based pagination with startingAfter/endingBefore parameters.
AnswerC

The Link header with rel="next" provides the URL for the next page.

Why this answer

Meraki API uses Link headers for pagination, and a rel="next" link indicates there are additional pages to fetch.

14
MCQmedium

An application needs to authenticate to Cisco DNA Center. Which authentication method is used?

A.API key in X-Cisco-DNA-Center-API-Key header
B.OAuth2 with client credentials grant
C.Bearer token in Authorization header with no prior step
D.Basic Auth over HTTPS to obtain a token
AnswerD

Correct. Basic Auth is used to get a token for subsequent API calls.

Why this answer

DNA Center uses Basic Auth to obtain a token via POST /dna/system/api/v1/auth/token.

15
MCQhard

An engineer is configuring Cisco IOS XE for RESTCONF programmability. Which configuration is necessary to enable the RESTCONF API?

A.ip scp server enable
B.ip http server and ip http secure-server
C.feature nxapi
D.netconf-yang and restconf
AnswerD

Correct. Both netconf-yang and restconf are typically enabled to support model-driven programmability via RESTCONF.

Why this answer

RESTCONF requires the 'restconf' service to be enabled globally. Additionally, 'netconf-yang' is often enabled together, but 'restconf' is the key for RESTCONF.

16
MCQeasy

A network engineer wants to retrieve a list of all network devices from Cisco DNA Center using REST API. Which URL and HTTP method should be used?

A.POST /dna/intent/api/v1/network-device
B.GET /dna/system/api/v1/auth/token
C.GET /dna/intent/api/v1/topology/l2/{vlanID}
D.GET /dna/intent/api/v1/network-device
AnswerD

Correct. This is the intended API for listing network devices.

Why this answer

Cisco DNA Center provides the GET /dna/intent/api/v1/network-device endpoint to list all network devices.

17
MCQmedium

A developer is automating network configuration using Cisco DNA Center. They want to deploy a configuration template to multiple devices. Which API category should they use?

A.Change your network
B.Platform
C.Run your network
D.Know your network
AnswerA

Correct. Template deployment, plug and play are part of 'change your network'.

Why this answer

Template deployment falls under 'change your network' API category.

18
MCQmedium

When making API calls to Cisco Meraki Dashboard, what header must be included for authentication?

A.Authorization: Basic <base64>
B.Authorization: Bearer <token>
C.X-Cisco-Meraki-API-Key: <key>
D.Api-Key: <key>
AnswerC

This is the correct authentication header for Meraki.

Why this answer

Cisco Meraki Dashboard API uses a custom header for authentication rather than standard HTTP authentication schemes. The header `X-Cisco-Meraki-API-Key` must be included with the API key as its value. This is explicitly documented in the Meraki API reference and is required for all API requests to authenticate the caller.

Exam trap

Cisco often tests the fact that Meraki uses a custom header (`X-Cisco-Meraki-API-Key`) rather than the standard `Authorization` header, leading candidates to mistakenly choose `Authorization: Bearer <token>` or `Authorization: Basic <base64>`.

How to eliminate wrong answers

Option A is wrong because `Authorization: Basic <base64>` uses HTTP Basic Authentication, which is not supported by the Meraki Dashboard API; Meraki requires a custom header, not the standard Authorization header. Option B is wrong because `Authorization: Bearer <token>` uses OAuth 2.0 Bearer token authentication, which is not how Meraki authenticates API calls; Meraki uses a static API key in a custom header. Option D is wrong because `Api-Key: <key>` is a generic header name used by some other APIs (e.g., certain cloud services), but Meraki specifically requires the header name `X-Cisco-Meraki-API-Key`.

19
MCQmedium

An engineer is configuring IOS XE for RESTCONF. Which YANG module must be enabled to use RESTCONF?

A.restconf
B.Cisco-IOS-XE-native
C.netconf-yang
D.nxapi
AnswerA

The restconf module must be enabled to use RESTCONF.

Why this answer

RESTCONF is a standardized protocol (RFC 8040) that uses HTTP methods to access data defined in YANG modules. To enable RESTCONF on IOS XE, the 'restconf' module must be explicitly enabled in the configuration, typically via the 'restconf' global command. Without this module, the RESTCONF server will not start, and HTTP requests to the RESTCONF API will fail.

Exam trap

Cisco often tests the distinction between the protocol module (restconf) and the YANG data models (like Cisco-IOS-XE-native), leading candidates to confuse the data model with the enabling module.

How to eliminate wrong answers

Option B (Cisco-IOS-XE-native) is wrong because it is a native YANG data model for IOS XE configuration, not a protocol module that enables RESTCONF. Option C (netconf-yang) is wrong because it enables NETCONF, not RESTCONF; while both use YANG, they are separate protocols with different transports and operations. Option D (nxapi) is wrong because it is a Cisco NX-OS API for programmatic access, not applicable to IOS XE RESTCONF.

20
MCQmedium

A Meraki dashboard API request to list networks returns a paginated response. The engineer notices a Link header in the response. What does this header typically contain?

A.The rate limit remaining
B.The total number of resources
C.A URL to the next page of results
D.An error message
AnswerC

Correct. The Link header includes rel='next' for the next page.

Why this answer

Meraki uses Link headers for pagination, providing URLs for the next and previous pages.

21
MCQhard

A developer is using NX-API on a Cisco Nexus switch to execute CLI commands via JSON. Which endpoint and method should be used?

A.GET /restconf/data/Cisco-NX-OS-device:cli
B.POST /api/cli with XML body
C.GET /ins?cmd=show version
D.POST /ins with JSON body
AnswerD

Correct. NX-API endpoint is /ins and uses POST.

Why this answer

NX-API uses POST /ins with JSON payload containing CLI commands.

22
MCQmedium

A developer is using the Meraki Dashboard API to list the organizations accessible by the API key. They send a GET request to https://api.meraki.com/api/v1/organizations. What is the correct way to pass the API key?

A.In the Authorization header as Bearer token
B.In the URL as a query parameter: ?apiKey=...
C.In the request body as JSON
D.In the X-Cisco-Meraki-API-Key header
AnswerD

This is the correct header for Meraki API authentication.

Why this answer

Meraki Dashboard API uses the X-Cisco-Meraki-API-Key header for authentication.

23
Multi-Selectmedium

A developer is building an integration with Cisco Webex and needs to retrieve information about the authenticated user. Which TWO APIs can be used? (Choose two.)

Select 2 answers
A.GET /v1/rooms
B.GET /v1/memberships
C.GET /v1/people/me
D.GET /v1/people
E.POST /v1/people
AnswersC, D

Returns the authenticated user's details.

Why this answer

GET /v1/people/me returns the current user. GET /v1/people with an email also returns user info. POST /v1/people is not valid.

24
Multi-Selectmedium

A developer is building an integration with Cisco Meraki and needs to handle rate limiting. Which two responses indicate rate limiting and how should they be handled? (Choose two.)

Select 2 answers
A.X-RateLimit-Remaining header
B.Retry-After header with wait time in seconds
C.HTTP status code 429
D.Link header with rel="next"
E.HTTP status code 503
AnswersB, C

Retry-After tells how long to wait.

Why this answer

Option B is correct because the Retry-After header explicitly tells the client how long to wait before retrying a request, which is the standard way to handle rate limiting. Option C is correct because HTTP status code 429 (Too Many Requests) is the definitive signal from the server that the client has exceeded the allowed rate limit. Together, these two responses allow a developer to identify and respond to rate limiting by pausing requests for the specified duration.

Exam trap

Cisco often tests the distinction between proactive headers (like X-RateLimit-Remaining) and reactive responses (like 429 and Retry-After), so candidates mistakenly choose the header that warns about limits rather than the actual rate-limiting response.

25
MCQeasy

Which YANG model is commonly used as an open standard for interface configuration and is supported by many vendors?

A.ietf-interfaces
B.cisco-routing
C.openconfig-interfaces
D.Cisco-IOS-XE-native
AnswerC

Correct. OpenConfig interfaces model is a vendor-neutral standard.

Why this answer

OpenConfig models are vendor-neutral standard models. oc-interfaces is the OpenConfig interface model.

26
MCQeasy

A developer wants to retrieve a list of all network devices from Cisco DNA Center. Which API endpoint should they use?

A.GET /dna/intent/api/v1/topology/l2/{vlanID}
B.GET /dna/intent/api/v1/network-device
C.POST /dna/system/api/v1/auth/token
D.GET /dna/intent/api/v1/issues
AnswerB

This endpoint returns the list of network devices.

Why this answer

The correct endpoint is GET /dna/intent/api/v1/network-device as per Cisco DNA Center API documentation.

27
Multi-Selectmedium

A developer is working with the Meraki Dashboard API to manage SSIDs. Which TWO statements about pagination are correct? (Choose two.)

Select 2 answers
A.Pagination is handled automatically by the client library; no action required
B.The 'page' query parameter is used to specify page number
C.The 'endingBefore' parameter is used to go to the previous page
D.The 'startingAfter' parameter can be used to fetch the next page of results
E.The Link header contains a 'last' URL for the final page
AnswersC, D

endingBefore retrieves items before a given ID, effectively moving backward.

Why this answer

Meraki uses the Link header with 'prev' and 'next' URLs for pagination. Additionally, the startingAfter and endingBefore query parameters allow manual pagination.

28
Multi-Selecthard

A developer is building a Cisco Webex bot that needs to automatically respond to messages. Which THREE resources/endpoints are essential for this functionality? (Choose three.)

Select 3 answers
A.Rooms API
B.People API
C.Licenses API
D.Webhooks API
E.Messages API
AnswersA, D, E

Required to create or list rooms where bot participates.

Why this answer

Essential endpoints are Messages (to send/receive), Webhooks (to get notified of events), and Rooms (to interact with rooms). People is useful but not essential for bot functionality.

29
MCQeasy

Which Cisco platform provides a cloud-managed dashboard with a REST API that uses an API key in the header and has a rate limit of 5 requests per second?

A.Cisco Webex
B.Cisco Meraki
D.Cisco IOS XE
AnswerB

Meraki is cloud-managed, uses API key, and has rate limit.

Why this answer

Meraki is a cloud-managed platform with the described API characteristics.

30
Multi-Selectmedium

A network administrator is planning to use model-driven programmability on Cisco IOS XE devices. Which TWO are valid YANG model sources for configuration? (Choose two.)

Select 2 answers
A.NETCONF capabilities
B.Cisco native YANG models (e.g., Cisco-IOS-XE-native)
C.CLI commands
D.OpenConfig YANG models (e.g., openconfig-interfaces)
E.SNMP MIBs
AnswersB, D

Correct. These are proprietary Cisco models.

Why this answer

Cisco native models and OpenConfig models are both valid. IETF models are also valid but not listed. The others are not YANG models.

31
MCQeasy

When using the Meraki Dashboard API, what HTTP header is used to pass the API key?

A.API-Key: <key>
B.X-Cisco-Meraki-API-Key: <key>
C.Authorization: Bearer <key>
D.Meraki-API-Key: <key>
AnswerB

Correct. This is the required header.

Why this answer

Meraki requires the API key in the X-Cisco-Meraki-API-Key header.

32
MCQmedium

A developer wants to use the Cisco Webex API to send a message to a specific person by email. Which parameter should be used in the POST /v1/messages request?

A.personId
B.toPersonEmail
C.recipientEmail
D.roomId
AnswerB

Correct. This sends a direct message to the specified email.

Why this answer

To send a message to a person, use the toPersonEmail parameter instead of roomId.

33
MCQeasy

Which Cisco DNA Center API is used to retrieve a list of network devices?

A.GET /dna/intent/api/v1/network-device
B.GET /dna/intent/api/v1/topology
C.GET /dna/intent/api/v1/issue
D.GET /dna/intent/api/v1/site
AnswerA

This is the correct API for device list.

Why this answer

GET /dna/intent/api/v1/network-device returns the device inventory.

34
MCQeasy

An administrator wants to retrieve a list of all network devices from Cisco DNA Center using the REST API. Which authentication method must be used first to obtain a token?

A.Basic Authentication to /dna/system/api/v1/auth/token
B.API key in the X-Cisco-Meraki-API-Key header
C.Bearer token passed directly in the first request
D.OAuth 2.0 with client credentials grant
AnswerA

Correct. The token is obtained by sending a POST request with Basic Auth credentials.

Why this answer

Cisco DNA Center uses Basic Authentication to authenticate to the /dna/system/api/v1/auth/token endpoint, which returns a token for subsequent API calls.

35
MCQeasy

An administrator wants to retrieve a list of all network devices from Cisco DNA Center using the REST API. Which authentication method is required to obtain the API token?

A.Bearer token from OAuth2
B.Basic Authentication with username and password
C.Digest Authentication
D.API key in X-Cisco-Meraki-API-Key header
AnswerB

DNA Center uses Basic Auth (Base64 encoded username:password) to get a token.

Why this answer

Cisco DNA Center uses Basic Authentication with username and password (Base64 encoded) in the Authorization header to obtain a token via POST /dna/system/api/v1/auth/token.

36
MCQeasy

A developer wants to get the current user's information from the Webex API. Which endpoint should they use?

A.GET /v1/people/me
B.POST /v1/messages
C.GET /v1/webhooks
D.GET /v1/rooms
AnswerA

This is the endpoint for the current user.

Why this answer

The GET /v1/people/me endpoint returns the authenticated user's details.

37
MCQeasy

A developer needs to retrieve a list of all network devices from Cisco DNA Center. Which API endpoint and HTTP method should be used?

A.POST /dna/intent/api/v1/issues
B.POST /dna/system/api/v1/auth/token
C.GET /dna/intent/api/v1/network-device
D.GET /dna/intent/api/v1/topology/l2/{vlanID}
AnswerC

Correct. This endpoint returns a list of network devices.

Why this answer

The correct API to get the device list is GET /dna/intent/api/v1/network-device. Authentication is handled separately via POST /dna/system/api/v1/auth/token.

38
Multi-Selecthard

Which three actions can an EEM applet perform when triggered? (Choose three.)

Select 3 answers
A.Modify a YANG data model
B.Execute a CLI command
C.Send a syslog message
D.Set a variable
E.Create a new VLAN
AnswersB, C, D

Action cli command runs a command.

Why this answer

Option B is correct because EEM (Embedded Event Manager) applets can execute CLI commands when triggered by an event. This allows automation of operational tasks such as configuration changes or troubleshooting commands without manual intervention.

Exam trap

Cisco often tests the distinction between EEM's built-in actions and actions that require a CLI command to achieve, such as creating a VLAN, which is not a direct EEM action but must be done via a CLI command.

39
MCQeasy

A developer wants to receive real-time notifications when a new message is posted in a Webex room. Which Webex API resource should they use?

A.Webhooks
B.Memberships API
C.Rooms API
D.Messages API polling
AnswerA

Webhooks provide event-driven notifications for Webex events.

Why this answer

Webhooks provide real-time HTTP callbacks triggered by events in Webex, such as a new message being posted. By registering a webhook on the 'messages' resource with the 'created' event, the developer's server receives a POST request immediately when a message is sent, eliminating the need for polling.

Exam trap

Cisco often tests the distinction between synchronous polling (Messages API) and asynchronous event-driven notifications (Webhooks), trapping candidates who assume polling is acceptable for real-time requirements.

How to eliminate wrong answers

Option B (Memberships API) is wrong because it manages room membership (add/remove/list members) and does not expose message events. Option C (Rooms API) is wrong because it handles room creation, listing, and updates, not real-time message notifications. Option D (Messages API polling) is wrong because polling requires repeated GET requests to check for new messages, which is inefficient and not real-time; Webex explicitly recommends webhooks over polling for event-driven notifications.

40
MCQhard

A developer is using the Meraki Dashboard API to retrieve a list of clients for a network. The API returns a 429 error. What should the developer do to handle this correctly?

A.Ignore the error and continue, as 429 is a temporary issue.
B.Wait for the number of seconds specified in the Retry-After header before retrying.
C.Switch to a different base URL to bypass the limit.
D.Increase the request rate by using multiple API keys in parallel.
AnswerB

The Retry-After header indicates how long to wait.

Why this answer

A 429 HTTP status code indicates 'Too Many Requests,' meaning the client has exceeded the rate limit imposed by the Meraki Dashboard API. The correct handling is to respect the Retry-After header, which specifies the number of seconds the client must wait before retrying the request, as per RFC 7231 Section 7.1.3. This ensures compliance with API rate limits and prevents further throttling or temporary blocking.

Exam trap

Cisco often tests the misconception that 429 is a transient error like a 503 Service Unavailable, leading candidates to think they can simply retry immediately or ignore it, rather than understanding that 429 specifically requires honoring the Retry-After header for rate-limit compliance.

How to eliminate wrong answers

Option A is wrong because ignoring a 429 error and continuing will likely result in continued failures or a temporary ban, as the API enforces rate limits to protect server resources. Option C is wrong because switching to a different base URL does not bypass rate limits; rate limits are applied per API key or client, not per URL endpoint. Option D is wrong because increasing the request rate with multiple API keys in parallel would exacerbate the rate-limit violation, and using multiple keys without coordination may still trigger per-key limits or violate the API's terms of service.

41
MCQhard

In Cisco DNA Center, which API category includes the ability to deploy a configuration template to devices?

A.Change your network
B.Run your network
C.Know your network
D.Platform
AnswerA

Correct. Template deployment is part of changing the network.

Why this answer

The 'Change your network' category includes template deployment, plug and play, and other configuration changes.

42
MCQhard

A network engineer wants to automate a configuration change on a Cisco IOS XE device when a specific syslog message appears. Which tool should they use?

A.RESTCONF with a Python script polling the device
B.SNMP trap receiver
C.EEM applet configured to match the syslog pattern and execute CLI commands
D.NETCONF with a YANG-based notification subscription
AnswerC

EEM can trigger on syslog events and run commands.

Why this answer

Embedded Event Manager (EEM) can trigger actions based on syslog patterns.

43
MCQmedium

An organization uses Cisco DNA Center and wants to programmatically deploy a configuration template to multiple devices. Which API category should be used?

A.Platform
B.Change your network
C.Run your network
D.Know your network
AnswerB

Template deployment is part of 'change your network' APIs.

Why this answer

The 'change your network' category includes template deployment, plug and play, etc.

44
MCQeasy

A developer needs to send a message to a Webex room using the API. Which HTTP method and endpoint should they use?

A.GET /v1/messages
B.PUT /v1/messages
C.DELETE /v1/messages
D.POST /v1/messages
AnswerD

This creates a new message.

Why this answer

To send a message, use POST to /v1/messages with the room ID and message body.

45
Multi-Selectmedium

Which two Meraki Dashboard API features are used to paginate through large result sets? (Choose two.)

Select 2 answers
A.offset and limit parameters
B.page and perPage query parameters
C.startingAfter and endingBefore parameters
D.Retry-After header
E.Link header with rel="next"
AnswersC, E

These cursor parameters allow navigating through pages.

Why this answer

Meraki supports Link header for standard pagination and startingAfter/endingBefore parameters for cursor-based pagination.

46
MCQmedium

Which authentication method is used by the Cisco Meraki Dashboard API?

A.JWT token in the Authorization header
B.OAuth 2.0 token in the Authorization header
C.HTTP Basic authentication with username and password
D.API key in the X-Cisco-Meraki-API-Key header
AnswerD

This is the standard authentication for Meraki APIs.

Why this answer

Meraki Dashboard API uses an API key passed in the X-Cisco-Meraki-API-Key header.

47
Multi-Selecthard

Which THREE items are valid triggers for Cisco EEM (Embedded Event Manager) applets? (Choose three.)

Select 3 answers
A.SNMP trap receipt
B.Syslog pattern match
C.Timer (absolute or countdown)
D.CLI command match
E.HTTP request receipt
AnswersB, C, D

Syslog patterns can trigger EEM applets.

Why this answer

EEM supports syslog pattern, CLI command match, timer, and interface triggers.

48
MCQhard

A network administrator wants to use EEM on an IOS XE device to send a syslog message whenever a specific CLI command is entered. Which event detector should be used?

A.event syslog pattern
B.event interface
C.event cli match
D.event timer
AnswerC

Correct. EEM can match CLI commands and execute actions.

Why this answer

EEM can trigger on CLI command entry using 'cli match' event.

49
Multi-Selectmedium

An engineer is configuring Cisco IOS XE device programmability using RESTCONF. Which THREE of the following are required to enable and use RESTCONF on the device?

Select 3 answers
A.Use only Cisco native YANG models
B.Enable the HTTP/HTTPS server on the device
C.Enable the restconf feature
D.Send requests to /rest/ API endpoint
E.Enable the netconf-yang feature
AnswersB, C, E

RESTCONF runs over HTTP/HTTPS, so the server must be enabled.

Why this answer

RESTCONF requires the device to have the restconf and netconf-yang features enabled (or at least restconf). The HTTP/HTTPS server must also be enabled. The RESTCONF API uses YANG data models.

Option A is incorrect because NETCONF is not required for RESTCONF; however, netconf-yang is a prerequisite for enabling restconf on some platforms. Option B is incorrect because the native model is available but not required; other YANG models can be used. Option C is incorrect because the URL for RESTCONF is /restconf, not /rest.

50
Multi-Selecthard

A network engineer is planning to use model-driven programmability with YANG models. Which three statements about YANG models are correct?

Select 3 answers
A.pyang is a tool that can be used to explore YANG models.
B.Cisco native YANG models are defined by Cisco and often have more detailed features.
C.yangcatalog.org is an online repository of YANG models.
D.OpenConfig models are vendor-specific.
E.YANG models are only used with NETCONF, not RESTCONF.
AnswersA, B, C

Correct. pyang can parse and display YANG models.

Why this answer

A is correct because pyang is a command-line tool that validates and converts YANG models into various formats (e.g., tree, UML, YIN), enabling engineers to explore the structure and semantics of YANG modules. It is widely used in network automation workflows to inspect model hierarchies and dependencies before implementing NETCONF or RESTCONF configurations.

Exam trap

Cisco often tests the distinction between vendor-specific (Cisco native) and vendor-neutral (OpenConfig) YANG models, and the trap here is assuming OpenConfig is vendor-specific because it is often associated with Cisco devices, when in fact it is an open standard.

51
MCQhard

A developer is using the NX-API on a Cisco Nexus switch to retrieve the configuration. The developer sends a POST request to /ins with a JSON payload. Which HTTP method and path are correct?

A.POST /ins
B.PUT /restconf/data
C.POST /api/v1/exec
D.GET /ins
AnswerA

Correct. NX-API uses POST to /ins with the CLI commands in the body.

Why this answer

NX-API uses POST to /ins with a JSON or XML payload containing the CLI commands.

52
MCQhard

A developer is using the Meraki Dashboard API and receives an HTTP 429 status code with a Retry-After header. What is the correct interpretation?

A.The API key is invalid and the request should be re-authenticated.
B.The rate limit has been exceeded; the client should wait the number of seconds specified in Retry-After before retrying.
C.The server is temporarily unavailable; the client should retry immediately.
D.The request was successful but the response is too large.
AnswerB

This is the standard rate limiting response.

Why this answer

HTTP 429 status code indicates 'Too Many Requests', meaning the client has exceeded the rate limit imposed by the Meraki Dashboard API. The Retry-After header specifies the number of seconds the client must wait before sending a new request to avoid further throttling. This is a standard rate-limiting mechanism defined in RFC 6585.

Exam trap

Cisco often tests the distinction between HTTP 429 (rate limiting) and 503 (server unavailable), and candidates may confuse Retry-After with a suggestion rather than a mandatory wait period.

How to eliminate wrong answers

Option A is wrong because an invalid API key would result in a 401 Unauthorized or 403 Forbidden status, not 429. Option C is wrong because a 429 status specifically indicates rate limiting, not server unavailability (which would be 503 Service Unavailable), and retrying immediately would continue to exceed the limit. Option D is wrong because a successful request returns a 2xx status code, and a response that is too large would typically result in a 413 Payload Too Large or be handled via pagination, not a 429.

53
Multi-Selecthard

Which TWO of the following are features of the DNA Center 'Platform' API category?

Select 2 answers
A.Template deployment
B.Path trace
C.Task management
D.Event notifications
E.Device inventory
AnswersC, D

Correct. Platform APIs include task management.

Why this answer

The Platform category includes event notifications and task management.

54
MCQmedium

A developer wants to use Cisco NX-API on a Nexus switch to execute a CLI command via JSON. What must be enabled on the switch first?

A.feature nxapi
B.ip http server
C.netconf-yang
D.restconf
AnswerA

This enables the NX-API feature.

Why this answer

The 'feature nxapi' command enables NX-API on NX-OS.

55
MCQeasy

Using the Cisco DNA Center API, which endpoint should be queried to retrieve the Layer 2 topology for a specific VLAN?

A.GET /dna/intent/api/v1/issues
B.GET /dna/intent/api/v1/topology/l2/{vlanID}
C.GET /dna/intent/api/v1/network-device
D.GET /dna/intent/api/v1/topology/physical-topology
AnswerB

Correct. This returns the L2 topology for the specified VLAN.

Why this answer

Cisco DNA Center provides /dna/intent/api/v1/topology/l2/{vlanID} to retrieve Layer 2 topology information for a given VLAN.

56
MCQmedium

A developer wants to retrieve the current user's Webex profile information. Which API endpoint should be called?

A.GET /v1/people
B.GET /v1/people/me
C.GET /v1/memberships/me
D.GET /v1/rooms/me
AnswerB

Correct. This returns the authenticated user's profile.

Why this answer

The /v1/people/me endpoint returns details about the authenticated user.

57
Multi-Selectmedium

A developer is using the Meraki Dashboard API to list all networks in an organization. Which TWO of the following are valid methods for pagination?

Select 2 answers
A.offset and limit parameters
B.startingAfter and endingBefore parameters
C.X-Next-Page header
D.page and perPage parameters
E.Link header with rel="next"
AnswersB, E

Correct. These parameters are used for cursor-based pagination.

Why this answer

Meraki supports Link header with rel="next" and the startingAfter/endingBefore parameters for pagination.

58
MCQmedium

A developer is using the Cisco Webex API to send a message to a specific room. They have the room ID. Which endpoint and method should they use?

A.PUT /v1/messages/{messageId}
B.POST /v1/messages with roomId in the body
C.POST /v1/rooms with roomId in the body
D.GET /v1/messages?roomId=...
AnswerB

This is the correct endpoint and method to send a message.

Why this answer

To send a message to a Webex room, the correct endpoint is POST /v1/messages with roomId in the body.

59
MCQmedium

A developer needs to retrieve the current user's details from Webex API. Which endpoint should they call?

A.GET /v1/people/me
B.GET /v1/rooms?me=true
C.POST /v1/people
D.GET /v1/people?email=current@user.com
AnswerA

This endpoint returns the current user's information.

Why this answer

GET /v1/people/me returns details of the authenticated user.

60
MCQeasy

Which Meraki API response header provides information for paginating through a large result set?

A.Content-Range
B.Link
C.X-RateLimit-Remaining
D.Retry-After
AnswerB

Correct. The Link header contains URLs for next and previous pages.

Why this answer

Meraki uses the Link header (LinkHeader) with 'next' and 'prev' URLs, or alternatively the startingAfter/endingBefore parameters. The Link header is standard for pagination.

61
MCQhard

An engineer is using EEM on an IOS XE device. They want to trigger an applet when a specific syslog message appears. Which event trigger type should they use?

A.event syslog pattern
B.event interface
C.event cli match
D.event timer
AnswerA

This matches a syslog message pattern.

Why this answer

EEM supports syslog pattern matching as an event trigger.

62
MCQmedium

An application uses the Meraki Dashboard API to fetch the list of networks for an organization. The API response includes a Link header with rel='next' pointing to the next page. Which pagination method is the API using?

A.Cursor-based pagination using startingAfter/endingBefore parameters
B.Offset-based pagination using page and perPage parameters
C.LinkHeader-based pagination
D.Token-based pagination using a nextPageToken parameter
AnswerC

Correct. Meraki uses LinkHeader-based pagination where the next page URL is provided in the Link header.

Why this answer

Meraki supports LinkHeader-based pagination. The Link header with rel='next' indicates the next page URL.

63
Multi-Selecthard

A developer is building an automation script to retrieve network device details from Cisco DNA Center. The script needs to authenticate and then call the device list API. Which THREE steps are required in the correct sequence?

Select 2 answers
A.Send a GET request to /dna/intent/api/v1/network-device
B.Enable cookie-based authentication in the HTTP client
C.Use the token in the Authorization header as Bearer token for subsequent requests
D.Send a POST request to /dna/system/api/v1/auth/token with Basic Auth
E.Include the token as a query parameter in the device list request
AnswersC, D

The token is used in the Authorization header for all subsequent API calls.

Why this answer

Option C is correct because after obtaining a token via a POST request to the authentication endpoint, the token must be included in the Authorization header as a Bearer token for subsequent API calls. Cisco DNA Center uses token-based authentication (JWT), and the token is passed in the HTTP header as 'Authorization: Bearer <token>' to authorize requests to the device list API.

Exam trap

Cisco often tests the distinction between token-based authentication (Bearer token in header) and cookie-based or query-parameter authentication, and candidates may incorrectly assume cookies or query parameters are valid for Cisco DNA Center APIs.

64
MCQhard

A developer needs to register a Webex webhook that triggers when a new message is posted in any room the bot is a member of. Which resource and event should be specified?

A.resource: 'rooms', event: 'created'
B.resource: 'messages', event: 'updated'
C.resource: 'messages', event: 'created'
D.resource: 'memberships', event: 'created'
AnswerC

Correct. This triggers when a new message is created.

Why this answer

To listen for new messages in any room the bot is in, use the 'messages' resource and 'created' event.

65
Multi-Selectmedium

Which THREE of the following are valid event triggers for an EEM applet on Cisco IOS XE? (Choose THREE.)

Select 3 answers
A.timer
B.cli match
C.snmp trap
D.http request
E.syslog pattern
AnswersA, B, E

EEM supports timer-based events.

Why this answer

Option A is correct because EEM applets support timer-based event triggers, such as absolute time, countdown, or watchdog timers, allowing automation of actions at specified intervals or after a delay. This is a core EEM feature defined in Cisco IOS XE for scheduling tasks without external input.

Exam trap

Cisco often tests the exact EEM event trigger keywords, and candidates mistakenly assume 'snmp trap' is valid because SNMP traps are common network events, but the correct trigger is 'event snmp notification' or 'event snmp oid', not 'trap'.

66
Multi-Selecthard

Which three components are required to set up a Webex webhook for message creation events? (Choose three.)

Select 3 answers
A.Resource type (e.g., "messages")
B.Room ID to filter messages
C.API access token as a query parameter
D.Target URL to receive notifications
E.Event type (e.g., "created")
AnswersA, D, E

Resource specifies what to monitor.

Why this answer

A is correct because every Webex webhook must specify a resource type to define which API resource triggers the webhook. For message creation events, the resource type must be "messages" to indicate that the webhook listens for changes to message resources. Without this, the webhook cannot know which data model to monitor.

Exam trap

Cisco often tests the distinction between required fields (resource, event, target URL) and optional filters (like roomId), leading candidates to incorrectly select optional parameters as mandatory components.

67
MCQhard

A developer is working with Meraki API to list all clients on a network. The response is paginated. Which parameter allows the developer to specify the starting point for the next page?

A.nextToken
B.startingAfter
C.page
D.offset
AnswerB

This parameter sets the cursor for the next page.

Why this answer

Meraki uses startingAfter and endingBefore parameters for cursor-based pagination.

68
MCQmedium

When using RESTCONF on Cisco IOS XE, which URL retrieves the hostname configuration?

A.GET /restconf/data/ietf-interfaces:interfaces
B.GET /restconf/data/openconfig-interfaces:interfaces
C.GET /restconf/data/Cisco-IOS-XE-native:native/interface
D.GET /restconf/data/Cisco-IOS-XE-native:native/hostname
AnswerD

This retrieves the hostname from the native model.

Why this answer

The native YANG model Cisco-IOS-XE-native contains the hostname under /native/hostname.

69
MCQeasy

Which API is used to execute CLI commands on Cisco IOS XE devices using on-device programmability?

A.RESTCONF
C.Meraki Dashboard API
D.Webex API
AnswerA

RESTCONF can be used to retrieve data and execute operations on IOS XE.

Why this answer

RESTCONF is a RESTful API that uses HTTP methods to access structured data defined in YANG models, and on Cisco IOS XE devices, it can be used to execute CLI commands via the 'cli' YANG data model. This allows programmatic execution of CLI commands without requiring an interactive SSH session, making it the correct choice for on-device programmability.

Exam trap

Cisco often tests the distinction between on-device programmability (RESTCONF/NETCONF) and controller-based APIs (DNA Center), so the trap here is assuming that a centralized management API can directly execute CLI commands on a device, when in fact it only sends configuration intents to the controller.

How to eliminate wrong answers

Option B is wrong because the DNA Center API is a northbound interface for managing the Cisco DNA Center controller, not for directly executing CLI commands on individual IOS XE devices. Option C is wrong because the Meraki Dashboard API is used to manage Meraki cloud-managed devices, which do not run IOS XE and do not support CLI command execution via this API. Option D is wrong because the Webex API is designed for collaboration services (messaging, meetings, etc.) and has no capability to interact with IOS XE device CLI.

70
MCQeasy

A network engineer needs to retrieve a list of all network devices from Cisco DNA Center. Which API endpoint should they use?

A.POST /dna/system/api/v1/auth/token
B.GET /dna/intent/api/v1/issues
C.GET /dna/intent/api/v1/network-device
D.GET /dna/intent/api/v1/topology/l2/{vlanID}
AnswerC

This endpoint returns a list of network devices.

Why this answer

The correct endpoint to retrieve the device list in Cisco DNA Center is GET /dna/intent/api/v1/network-device.

71
MCQmedium

A Meraki API request is receiving HTTP 429 responses. According to the Meraki rate limit, what should the developer do?

A.Switch to the DNA Center API.
B.Use a different API key.
C.Reduce the number of concurrent requests and wait for the Retry-After header value.
D.Immediately retry the request without delay.
AnswerC

Correct. The Retry-After header specifies how long to wait.

Why this answer

Meraki returns 429 with a Retry-After header indicating the number of seconds to wait.

72
MCQeasy

A developer wants to send a message to a Webex room using the API. Which HTTP method and endpoint should they use?

A.POST /v1/rooms
B.PUT /v1/messages
C.GET /v1/messages
D.POST /v1/messages
AnswerD

This endpoint creates a new message.

Why this answer

To send a message, use POST to /v1/messages with roomId or toPersonEmail.

73
MCQmedium

A developer wants to send a message to a Webex room using the API. The message should contain a simple text body. Which endpoint and parameter are required?

A.GET /v1/messages with query parameter 'roomId'
B.POST /v1/memberships with body parameter 'message'
C.POST /v1/rooms with body parameter 'text'
D.POST /v1/messages with body parameter 'roomId' and 'text'
AnswerD

Correct. This sends a text message to the specified room.

Why this answer

To send a message, a POST request is made to /v1/messages with a JSON body containing roomId and text (or markdown). roomId identifies the target room.

74
MCQmedium

A developer wants to send a message to a specific room in Webex using the API. The developer already has the room ID. Which API call is correct?

A.POST /v1/messages with body { 'roomId': 'Y2lzY29zcGFyazovL3VzL1JPT00v...', 'text': 'Hello' }
B.PUT /v1/messages with body { 'roomId': '...', 'text': 'Hello' }
C.POST /v1/rooms with body { 'title': 'New Room' }
D.GET /v1/messages with query parameter roomId='...'
AnswerA

Correct. This sends a message to the specified room.

Why this answer

To send a message to a room, POST /v1/messages is used with roomId and text in the body.

75
Multi-Selectmedium

A developer wants to use Cisco DNA Center to change the network configuration. Which TWO API categories provide capabilities to modify the network? (Choose two.)

Select 2 answers
A.Platform
B.Run your network
C.Know your network
D.Monitor your network
E.Change your network
AnswersB, E

Command runner can execute commands that change configuration.

Why this answer

Change your network and Run your network (command runner) can modify the network. Know your network is read-only.

Page 1 of 2 · 124 questions totalNext →

Ready to test yourself?

Try a timed practice session using only Devnet Cisco Platforms questions.

CCNA Devnet Cisco Platforms Questions — Page 1 of 2 | Courseiva