CCNA Devnet Cisco Platforms Questions

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

76
Multi-Selecthard

A developer is building a chatbot that needs to send a direct message to a user on Webex. Which TWO fields are required in the POST /v1/messages request? (Choose TWO.)

Select 3 answers
A.roomId
B.toPersonId
C.markdown
D.toPersonEmail
E.files
AnswersB, C, D

Identifies the recipient by person ID.

Why this answer

To send a direct message, you must specify either toPersonEmail or toPersonId, and the message text or markdown.

77
MCQmedium

A developer wants to create a new room in Cisco Webex using the API. Which HTTP request is appropriate?

A.GET /v1/rooms
B.PUT /v1/rooms
C.POST /v1/rooms
D.DELETE /v1/rooms
AnswerC

Correct. POST is used to create a new room.

Why this answer

To create a new room, you must send a POST request to /v1/rooms with the room details in the body.

78
MCQeasy

Which Cisco platform provides a cloud-managed networking solution with a RESTful API that uses an API key in the X-Cisco-Meraki-API-Key header?

A.Cisco Webex
C.Cisco IOS XE
D.Cisco Meraki
AnswerD

Meraki API uses API key header.

Why this answer

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

79
MCQhard

A developer is working with the Webex API to receive real-time notifications when a message is posted. Which resource should they create?

A.A webhook with resource 'messages' and event 'created'
B.A bot that polls the /v1/messages endpoint every second
C.A membership to the room to receive notifications
D.A webhook with resource 'rooms' and event 'created'
AnswerA

This will trigger when a message is created.

Why this answer

Webex webhooks allow you to subscribe to events like message.created.

80
MCQmedium

An administrator wants to receive real-time notifications when a new message is posted to a Webex room. Which Webex API resource should be used to configure this?

A.People API
B.Messages API
C.Webhooks API
D.Rooms API
AnswerC

Webhooks API allows registering for events such as message.created.

Why this answer

Webhooks allow you to register for events like message.created. The webhook resource is used for this purpose.

81
MCQeasy

In DNA Center, which API category is used to deploy templates to devices?

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

Correct. This includes template deployment and PnP.

Why this answer

The 'Change your network' API category in Cisco DNA Center is specifically designed for network configuration and provisioning tasks, including deploying templates to devices. This category encompasses APIs that push configuration changes, such as applying CLI templates via the Template Programmer (formerly Template Editor) or provisioning new network settings, directly aligning with the action of deploying templates to network devices.

Exam trap

The trap here is that candidates confuse 'Run your network' (which involves monitoring and operational state) with 'Change your network' (which involves active configuration changes), leading them to select D because they associate 'running' with executing templates, but Cisco specifically separates read-only operations from write operations in its API categorization.

How to eliminate wrong answers

Option A is wrong because the 'Platform' API category provides foundational services like authentication, RBAC, and event notifications, not template deployment. Option B is wrong because 'Know your network' focuses on read-only APIs for inventory, topology, and assurance data, not on making configuration changes. Option D is wrong because 'Run your network' deals with operational tasks like device health monitoring and troubleshooting, not the active deployment of configuration templates.

82
MCQhard

An engineer is developing an EEM applet on a Cisco IOS XE device to run a CLI command when a specific syslog message appears. Which event trigger should be used?

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

Correct. This triggers on syslog message pattern match.

Why this answer

The syslog pattern event trigger allows matching a specific syslog message pattern.

83
MCQhard

A network engineer is using Cisco IOS XE RESTCONF to retrieve the hostname of a device. The YANG module used is 'Cisco-IOS-XE-native'. Which URL path is correct?

A.GET /restconf/data/Cisco-IOS-XE-native:native/hostname
B.GET /restconf/data/Cisco-IOS-XE-native:hostname
C.GET /restconf/api/data/Cisco-IOS-XE-native:native/hostname
D.GET /restconf/operational/Cisco-IOS-XE-native:native/hostname
AnswerA

Correct. This retrieves the hostname using the native model.

Why this answer

RESTCONF on IOS XE uses the path /restconf/data/ followed by the YANG path. The hostname is under native/hostname.

84
Multi-Selecthard

A network engineer wants to use model-driven programmability on IOS XE devices. Which two YANG model types are commonly used? (Choose two.)

Select 2 answers
A.MIB files
B.IETF YANG models
C.CLI commands
D.OpenConfig YANG models
E.Cisco native YANG models
AnswersD, E

Vendor-neutral models like oc-interfaces.

Why this answer

OpenConfig YANG models (Option D) are vendor-neutral, community-driven models that provide a consistent way to manage network devices across multiple vendors, including Cisco IOS XE. Cisco native YANG models (Option E) are Cisco-specific models that expose the full set of device features and are directly supported on IOS XE. Both are commonly used for model-driven programmability with NETCONF/RESTCONF.

Exam trap

Cisco often tests the distinction between YANG model types (OpenConfig, IETF, Cisco native) and non-YANG concepts like MIBs or CLI, so candidates mistakenly select MIB files or CLI commands because they are familiar management tools, but they are not YANG models.

85
MCQmedium

A developer is using the Cisco DNA Center API and receives a token. How is this token typically used in subsequent API requests?

A.As a query parameter named token
B.In the request body
C.In the X-Auth-Token header
D.In the Authorization header as Bearer <token>
AnswerC

This is the correct header for DNA Center API requests.

Why this answer

The Cisco DNA Center API uses token-based authentication where the token is passed in the X-Auth-Token HTTP header for subsequent requests. This is the standard method specified in the Cisco DNA Center API documentation, ensuring the server can validate the session without relying on cookies or query parameters.

Exam trap

Cisco often tests the specific header name (X-Auth-Token) versus the more generic Authorization header with Bearer scheme, so the trap here is that candidates familiar with OAuth 2.0 may incorrectly choose Option D, not realizing that Cisco DNA Center uses its own proprietary header for token transmission.

How to eliminate wrong answers

Option A is wrong because passing the token as a query parameter named 'token' is insecure and not supported by the Cisco DNA Center API; tokens should never be exposed in URLs due to logging and caching risks. Option B is wrong because placing the token in the request body would require a specific API endpoint to accept it that way, but the standard for RESTful APIs like DNA Center is to use headers, not the body, for authentication. Option D is wrong because although Bearer tokens in the Authorization header are common in OAuth 2.0, the Cisco DNA Center API specifically requires the X-Auth-Token header, not the Authorization header; using the wrong header will result in an authentication failure.

86
MCQeasy

A developer wants to retrieve the list of network devices from Cisco DNA Center. Which API endpoint should be used?

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

This is the correct endpoint for device list.

Why this answer

The GET /dna/intent/api/v1/network-device endpoint returns a list of network devices managed by DNA Center.

87
MCQmedium

Which command enables the NX-API feature on a Cisco NX-OS device?

A.restconf enable
B.nxapi enable
C.feature nxapi
D.enable nxapi
AnswerC

This is the correct command in global configuration mode.

Why this answer

The global configuration command 'feature nxapi' enables the NX-API interface.

88
MCQmedium

A developer is using the Meraki Dashboard API to list all networks in an organization. The response includes a Link header with rel="next". What does this indicate?

A.The organization ID is invalid.
B.There are additional data pages to retrieve.
C.The API version is deprecated and should be updated.
D.The request is rate-limited and needs to wait.
AnswerB

Link header with rel="next" is used for pagination.

Why this answer

Meraki uses Link headers for pagination; the next link indicates there are more pages of results to fetch.

89
Multi-Selectmedium

Which TWO statements about Cisco Meraki API pagination are correct? (Choose two.)

Select 2 answers
A.The perPage parameter is not supported.
B.Pagination is not required because all data is returned in one call.
C.Meraki uses page number parameter for pagination.
D.The startingAfter parameter specifies the ID of the last item to start after.
E.The Link header contains URLs for the next and previous pages.
AnswersD, E

This is a cursor parameter for pagination.

Why this answer

Meraki uses Link header for pagination and supports startingAfter/endingBefore parameters.

90
Multi-Selecteasy

A network administrator wants to use Cisco Webex APIs to automate sending messages to a specific room. Which TWO pieces of information are required to send a message using POST /v1/messages?

Select 3 answers
A.X-Cisco-Meraki-API-Key header
B.Message body as plain text or markdown
C.Room ID or email of the recipient
D.User ID of the recipient
E.Bearer token for authentication
AnswersB, C, E

The message content is provided in the request body as text or markdown.

Why this answer

The POST /v1/messages endpoint requires either a roomId or toPersonEmail to specify the recipient, and the message body can be provided as text or markdown. Option B is incorrect because the API key is not used; Webex uses a bearer token. Option C is incorrect because the user ID is not required for sending messages.

Option E is incorrect because the message must be included in the request body.

91
MCQeasy

Which authentication method does Cisco DNA Center use to obtain an API token?

A.OAuth 2.0 with client credentials
B.Basic Authentication with username:password
C.Bearer token from a separate identity provider
D.API key in a custom header
AnswerB

DNA Center uses Basic Auth to obtain a token.

Why this answer

Cisco DNA Center uses Basic Authentication (username:password) via POST /dna/system/api/v1/auth/token to obtain a token for subsequent API calls.

92
Multi-Selectmedium

Which TWO of the following are categories of Cisco DNA Center APIs? (Choose two.)

Select 2 answers
A.Automate your network
B.Secure your network
C.Run your network
D.Monitor your network
E.Know your network
AnswersC, E

This includes command runner, path trace, issues.

Why this answer

DNA Center API categories include 'Know your network', 'Run your network', 'Change your network', and 'Platform'.

93
MCQeasy

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

A.OAuth 2.0 client credentials grant
B.API key in the X-Cisco-Meraki-API-Key header
C.Bearer token in the Authorization header directly with no initial authentication
D.Basic Authentication with username and password to obtain a token
AnswerD

Correct. The token is obtained via Basic Auth and then used in subsequent requests.

Why this answer

Cisco DNA Center uses Basic Authentication to obtain a token by sending a POST request to /dna/system/api/v1/auth/token with a Basic Auth header. The returned token is then used in subsequent API calls.

94
MCQmedium

An engineer needs to authenticate to the Cisco DNA Center API to obtain a token. What is the correct authentication method and endpoint?

A.POST /dna/system/api/v1/token with Bearer auth
B.GET /dna/intent/api/v1/auth/token with Basic auth header
C.POST /dna/system/api/v1/auth/token with API key in header
D.POST /dna/system/api/v1/auth/token with Basic auth header
AnswerD

This is the correct authentication endpoint and method.

Why this answer

Cisco DNA Center uses Basic authentication (with username:password) to POST to /dna/system/api/v1/auth/token to obtain a token.

95
MCQmedium

A developer is using the Meraki Dashboard API to retrieve a list of clients for a given network. The initial GET request returns a 429 HTTP status. What should the developer do to handle this response appropriately?

A.Convert the request to a POST method to bypass the rate limit
B.Check the Retry-After header and wait that many seconds before retrying
C.Ignore the 429 and send the request again with a different API key
D.Send a DELETE request to clear the rate limit counter
AnswerB

Correct. The Retry-After header tells the client how long to wait.

Why this answer

The Meraki API rate limits at 5 requests per second. A 429 response includes a Retry-After header indicating the number of seconds to wait before retrying.

96
MCQmedium

A developer is using the Meraki Dashboard API to retrieve a list of devices in an organization. The API response is paginated. Which HTTP header does Meraki use to indicate the next page of results?

A.Link
B.X-Cisco-Meraki-API-Key
C.Retry-After
D.X-Next-Page
AnswerA

Correct. Meraki uses the Link header with rel="next" to indicate the next page URL.

Why this answer

Meraki uses the Link header with rel="next" for pagination, or alternatively the startingAfter/endingBefore parameters.

97
MCQeasy

Which YANG model type is defined by industry standards and supported by multiple vendors, offering interoperability?

A.MIB-based models
B.IETF YANG models
C.Cisco native YANG models
D.OpenConfig YANG models
AnswerD

Correct. OpenConfig models are designed for multi-vendor interoperability.

Why this answer

OpenConfig models are vendor-neutral, community-driven YANG models that promote interoperability across different network devices.

98
Multi-Selectmedium

An engineer is using the Cisco Meraki Dashboard API to retrieve a list of all network clients for a specific network. Which TWO of the following are required to successfully make this API call?

Select 2 answers
A.Network ID in the URL path
B.Bearer token in the Authorization header
C.Organization ID in the URL path
D.API key as a query parameter
E.X-Cisco-Meraki-API-Key header with the API key
AnswersA, E

The network ID is required in the URL to identify the network.

Why this answer

Option A is correct because the Meraki Dashboard API endpoint for listing network clients (GET /networks/{networkId}/clients) requires the network ID as a path parameter to identify the specific network from which to retrieve client data. Without the network ID in the URL, the API cannot determine which network's clients to return, making it a mandatory component of the request.

Exam trap

Cisco often tests the distinction between authentication methods (API key header vs. Bearer token) and the correct placement of identifiers (network ID vs. organization ID) to see if candidates understand the specific Meraki API authentication and resource hierarchy.

99
MCQmedium

In DNA Center, which API endpoint is used to retrieve a list of current network issues?

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

Correct. This endpoint returns a list of network issues.

Why this answer

DNA Center's issues API is at /dna/intent/api/v1/issues.

100
MCQmedium

Which Cisco platform provides an API to retrieve a list of issues affecting the network?

A.Cisco IOS XE
B.Cisco Meraki
C.Cisco Webex
AnswerD

Correct. DNA Center provides GET /dna/intent/api/v1/issues.

Why this answer

Cisco DNA Center includes issues API under the 'run your network' category.

101
MCQhard

A developer needs to retrieve the hostname of a Cisco IOS XE device using RESTCONF. Which URI path is correct?

A./restconf/data/Cisco-IOS-XE-native:hostname
B./api/v1/device/hostname
C./restconf/data/Cisco-IOS-XE-native:native/hostname
D./restconf/data/hostname
AnswerC

Correct. This path accesses the hostname leaf.

Why this answer

RESTCONF uses the YANG module namespace. The native hostname is at /restconf/data/Cisco-IOS-XE-native:native/hostname.

102
MCQmedium

An administrator is automating the deployment of a new switch using Cisco DNA Center. Which API category should they use to provision the device with a configuration template?

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

Template deployment and plug and play are part of this category.

Why this answer

Template deployment falls under the 'change your network' API category in Cisco DNA Center.

103
MCQmedium

A developer is exploring YANG models on yangcatalog.org. They want to find a standard model for interface configuration that is vendor-neutral. Which model should they look for?

A.Cisco-NX-OS-device
B.oc-interfaces
C.ietf-interfaces
D.Cisco-IOS-XE-native
AnswerB

OpenConfig models are vendor-neutral.

Why this answer

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

104
Multi-Selectmedium

A network automation engineer is using Cisco DNA Center APIs. Which TWO of the following are valid API categories? (Choose two.)

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

Correct. This includes device list, topology, and site APIs.

Why this answer

The valid categories are 'Know your network' and 'Change your network'. 'Monitor your network' and 'Secure your network' are not official categories.

105
Multi-Selectmedium

A network administrator is using Cisco DNA Center APIs to automate network changes. Which two API categories are used to perform configuration deployments? (Choose two.)

Select 2 answers
A.Platform
B.Change your network
C.Know your network
D.Run your network
E.Event notifications
AnswersA, B

Platform APIs include task management to track deployment status.

Why this answer

DNAC API categories: 'Change your network' includes template deployment and PnP; 'Platform' includes task management for monitoring deployment status.

106
Multi-Selectmedium

A developer is using the Meraki Dashboard API to list all organizations. Which TWO of the following are true regarding pagination in the Meraki API? (Choose TWO.)

Select 2 answers
A.Page size is fixed at 1000 items per page.
B.Pagination is optional and disabled by default.
C.Pagination requires the use of OAuth tokens.
D.The Link header contains URLs for the next and previous pages.
E.The startingAfter and endingBefore parameters control the page cursor.
AnswersD, E

Meraki uses the Link header for pagination.

Why this answer

Meraki API pagination uses Link header or startingAfter/endingBefore query parameters.

107
MCQhard

An application needs to retrieve all network clients from a specific Meraki network. The API response may be paginated. Which query parameters can be used to implement cursor-based pagination with the Meraki Dashboard API?

A.offset and limit
B.startingAfter and endingBefore
C.page and perPage
D.nextToken and previousToken
AnswerB

Correct. These are the cursor parameters for pagination.

Why this answer

Meraki supports cursor-based pagination using startingAfter and endingBefore parameters.

108
MCQmedium

An administrator is configuring a Cisco Meraki Dashboard API integration. After receiving a 429 HTTP response, what header should be examined to determine when the request can be retried?

A.X-RateLimit-Reset
B.Retry-After
C.X-Cisco-Meraki-API-Key
D.Location
AnswerB

Correct. Meraki includes a Retry-After header in the 429 response.

Why this answer

Meraki's rate limit returns a 429 status with a Retry-After header indicating the number of seconds to wait before retrying.

109
MCQeasy

Which YANG model is an OpenConfig model commonly used for interface configuration?

A.openconfig-interfaces
B.Cisco-IOS-XE-interfaces
C.ietf-interfaces
D.openconfig-routing-policy
AnswerA

Correct. OpenConfig's interface model is oc-interfaces (openconfig-interfaces).

Why this answer

OpenConfig models include oc-interfaces for interface configuration.

110
MCQmedium

Which YANG model is an OpenConfig model used for interface configuration?

A.oc-yang-interfaces
B.ietf-interfaces
C.Cisco-IOS-XE-interfaces
D.openconfig-interfaces
AnswerD

This is the OpenConfig model for interfaces.

Why this answer

OpenConfig is a vendor-neutral, community-driven data model standard for network configuration and state. The 'openconfig-interfaces' YANG model is the OpenConfig model specifically designed for interface configuration, providing a consistent, model-driven approach across different network operating systems. Option D is correct because it directly names the OpenConfig model for interfaces.

Exam trap

Cisco often tests the distinction between vendor-neutral OpenConfig models, IETF standard models, and Cisco proprietary native models, expecting candidates to recognize that 'openconfig-interfaces' is the correct OpenConfig model name, not a generic or IETF-prefixed alternative.

How to eliminate wrong answers

Option A is wrong because 'oc-yang-interfaces' is not a recognized YANG model name; OpenConfig models use the prefix 'openconfig-', not 'oc-yang-'. Option B is wrong because 'ietf-interfaces' is the IETF standard YANG model for interface management (RFC 7223), not an OpenConfig model. Option C is wrong because 'Cisco-IOS-XE-interfaces' is a Cisco proprietary native YANG model specific to IOS XE platforms, not an OpenConfig model.

111
MCQmedium

An administrator needs to retrieve the hostname of an IOS XE device using RESTCONF. Which URL and data path should they use?

A.GET /restconf/data/Cisco-IOS-XE-native:native/hostname
B.GET /api/v1/device/hostname
C.POST /restconf/data/Cisco-IOS-XE-native:native/hostname
D.GET /restconf/data/ietf-interfaces:interfaces
AnswerA

This is the correct RESTCONF path for the hostname.

Why this answer

RESTCONF on IOS XE uses the native YANG model; the hostname is under /Cisco-IOS-XE-native:native/hostname.

112
MCQeasy

Which tool is used to explore and validate YANG models?

A.Postman
B.cURL
C.YANGman
D.pyang
AnswerD

pyang is the standard tool for YANG model exploration.

Why this answer

pyang is a Python-based tool for validating and converting YANG models.

113
MCQhard

A network engineer is using Cisco IOS XE RESTCONF to retrieve the hostname of a device. The device has already enabled netconf-yang and restconf. Which URL path should be used?

A./restconf/data/hostname
B./restconf/data/Cisco-IOS-XE-native:native/hostname
C./restconf/operations/hostname
D./restconf/config/Cisco-IOS-XE-native:native/hostname
AnswerB

This is the correct RESTCONF path for hostname using the native YANG model.

Why this answer

The hostname is under Cisco-IOS-XE-native:native/hostname in the YANG model. RESTCONF uses the module name and path.

114
MCQmedium

When using the NX-API on Cisco NX-OS, which HTTP method is used to send CLI commands in JSON format?

A.POST
B.PUT
C.GET
D.PATCH
AnswerA

Correct. CLI commands are sent via POST to /ins.

Why this answer

NX-API uses POST requests to the /ins endpoint with a JSON body containing the CLI commands and the type (cli_show or cli_conf).

115
MCQmedium

Which NX-OS API method allows sending CLI commands in JSON format without enabling any additional features?

A.NX-API method 'cli' with JSON encoding
B.RESTCONF with YANG data
C.SNMP with MIB objects
D.NETCONF with XML data
AnswerA

NX-API allows CLI commands via JSON-RPC.

Why this answer

NX-API on NX-OS supports both JSON-RPC (with method 'cli' or 'cli_ascii') and JSON encoding for CLI commands. The method 'cli' or 'cli_ascii' in JSON-RPC format is used.

116
Multi-Selectmedium

Which THREE of the following are valid event triggers in Cisco EEM?

Select 3 answers
A.snmp oid
B.timer
C.interface (line protocol change)
D.http request
E.syslog pattern
AnswersB, C, E

Correct. EEM can trigger based on a timer (absolute, countdown, etc.).

Why this answer

EEM supports syslog pattern, CLI match, timer, and interface events.

117
Multi-Selecthard

A network automation engineer is evaluating options for model-driven programmability on Cisco devices. Which THREE are valid YANG model sources or tools? (Choose three.)

Select 3 answers
A.pyang
B.NETCONF
C.Cisco native YANG models
D.yangcatalog.org
E.oc-interfaces
AnswersA, C, D

pyang is a YANG data modeling tool.

Why this answer

pyang is a YANG tool, yangcatalog.org is a repository, and Cisco native models are valid sources. OpenConfig is a standard, but oc-interfaces is a model, not a source/tool.

118
MCQmedium

A developer wants to create a Webex webhook that triggers when a new message is posted in any room the bot is in. Which resource event should they subscribe to?

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

Correct. This triggers when a message is created.

Why this answer

To trigger on new messages, subscribe to 'messages' resource with 'created' event.

119
MCQmedium

Which EEM applet action is used to execute a CLI command when an event triggers?

A.action 1.0 event "..."
B.action 1.0 set 1.0 "..."
C.action 1.0 cli command "..."
D.action 1.0 syslog msg "..."
AnswerC

Correct. This executes a CLI command.

Why this answer

EEM uses 'action' with a sequence number and 'cli' keyword to execute commands.

120
MCQhard

An engineer is exploring YANG models for network interfaces. They need a vendor-neutral model that can be used across multiple device types. Which YANG model should they use?

A.ietf-interfaces
B.OpenConfig interfaces
C.Cisco-NX-OS-device
D.Cisco-IOS-XE-native
AnswerB

OpenConfig provides vendor-neutral YANG models.

Why this answer

OpenConfig models are vendor-neutral, while Cisco native models are vendor-specific.

121
MCQhard

A developer needs to send a message to a specific room in Webex using the API. What is the correct endpoint and required body parameter for the room destination?

A.POST /v1/messages with roomId parameter
B.POST /v1/messages with toPersonEmail parameter
C.POST /v1/memberships with roomId
D.POST /v1/rooms with message text
AnswerA

roomId specifies the target room for the message.

Why this answer

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

122
MCQhard

An EEM applet is triggered when a specific syslog message pattern appears. Which action should be used to send a custom syslog message?

A.action 1.0 cli command "show logging"
B.action 1.0 syslog msg "Custom event occurred"
C.action 1.0 info type routername
D.action 1.0 set 1.0 _syslog_msg "Custom event"
AnswerB

Correct. This generates a syslog message with the specified text.

Why this answer

EEM applets use 'action <label> syslog msg <message>' to generate a syslog message.

123
MCQmedium

A network automation engineer needs to retrieve the Layer 2 topology for a specific VLAN from Cisco DNA Center. Which API endpoint should be used?

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

This is the correct endpoint for Layer 2 topology.

Why this answer

The endpoint GET /dna/intent/api/v1/topology/l2/{vlanID} is used to retrieve Layer 2 topology for a VLAN.

124
Multi-Selectmedium

A developer is building an application that interacts with the Webex API to create rooms and send messages. The application needs to receive real-time notifications when a new message is posted in any room. Which TWO actions should the developer take? (Choose two.)

Select 2 answers
A.Poll the GET /v1/messages endpoint every second
B.Provide a target URL where the webhook sends the notification
C.Use the 'roomId' parameter to filter messages
D.Register a webhook for the 'message.created' event
E.Send a POST request to /v1/webhooks with 'resource: messages' and 'event: seen'
AnswersB, D

The webhook needs a URL to send the POST request to.

Why this answer

To receive real-time notifications, a webhook must be registered for the 'message.created' event. The webhook will POST to a specified URL when a message is created.

← PreviousPage 2 of 2 · 124 questions total

Ready to test yourself?

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