300435at Flashcards

(58 cards)

1
Q

1.What are two characteristics of RPC API calls? (Choose two.)

A. They can be used only on network devices.
B. They use only UDP for communications.
C. Parameters can be passed to the calls.
D. They must use SSL/TLS.
E. They call a single function or service.

A

A. They can be used only on network devices

C. Parameters can be passed to the calls.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
2
Q

2.Which two actions do Python virtual environments allow users to perform? (Choose two.)

A. Simplify the CI/CD pipeline when checking a project into a version control system, such as Git.
B. Efficiently port code between different languages, such as JavaScript and Python.
C. Run and simulate other operating systems within a development environment.
D. Quickly create any Python environment for testing and debugging purposes.
E. Quickly create an isolated Python environment with module dependencies.

A
D. Quickly create any Python environment for testing and debugging purposes. 
E. Quickly create an isolated Python environment with module dependencies.
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
3
Q

3.What are two benefits of leveraging Ansible for automation of Cisco IOS XE Software? (Choose two.)

A. Ansible playbooks are packaged and installed on IOS XE devices for automatic execution when an IOS device reboots.
B. All IOS XE operating systems include Ansible playbooks for basic system administration tasks.
C. It is a device-independent method for automation and can be used with any type of device or operating system.
D. Ansible playbooks can be written from the IOS XE EXEC command line to configure the device itself.
E. It does not require any modules of software except SSH to be loaded on the network device.

A

A. Ansible playbooks are packaged and installed on IOS XE devices for automatic execution when an IOS device reboots.
C. It is a device-independent method for automation and can be used with any type of device or operating system.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
4
Q

B) print (‘The Switch: “+return_val.deviceName+ “, \
went down at: “+return_val.occrredAt)

C) print (‘The Switch: “+return_val.[‘deviceName’]+ “, \
went down at: “+return_val.[‘occrredAt’]”)

A

print (‘The Switch: “+return_val.deviceName+ “, \

went down at: “+return_val.occrredAt)

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
5
Q

5> The exhibit also shows the data that is received by the application and stored in the variable return_val. Which Python code completes the task?
A)
bssids =return_val[“bssids”]
for number in range (return_val [“alertData”] [“countNode”]):
send_to_application (“ALERT: detected a bssid on the
network: “+ return_val[“alertData”] [bssids] [number])
B)
bssids =return_val[“bssids”]
for value in bssids:
send_to_application (“ALERT: detected a bssid on the
network: “+ value)
D)
bssids =return_val [“alertData”][“bssids”]
for value in bssids:
send_to_application (“ALERT: detected a bssid on the
network: “+ value)

A

A)
bssids =return_val[“bssids”]
for number in range (return_val [“alertData”] [“countNode”]):
send_to_application (“ALERT: detected a bssid on the
network: “+ return_val[“alertData”] [bssids] [number])

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
6
Q

6.Which two features are foundations of a software-defined network instead of a traditional network? (Choose two.)

A. control plane and data plane are tightly coupled
B. build upon a robust software stack
C. requires device by device-level configurations
D. automated through expressed intent to a software controller
E. requires significant physical hardware resources

A

B. build upon a robust software stack

D. automated through expressed intent to a software controller

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
7
Q
A)
git init
git add device status.py
git commit -m "Initial Revision"
git remote add origin \
   https://git.cisco.com/python_programmer/device_status.git
git push -u origin master
B)
git init
git remote add origin \
   https://git.cisco.com/python_programmer/device_status.git
git add device status.py
git push
C)
git init
git remote add origin \
   https://git.cisco.com/python_programmer/device_status.git
git add device status.py
git commit -m "Initial Revision"
git push -u origin master
D)
git init
git add device status.py
git remote add python_programmer/device_status
git push
A
git init
git add device status.py
git commit -m "Initial Revision"
git remote add origin \
   https://git.cisco.com/python_programmer/device_status.git
git push -u origin master
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
8
Q

8.What are two characteristics of synchronous calls to APIs? (Choose two.)
A. They can be used only with certain programming languages.
B. They make your application less portable, so asynchronous calls are preferred.
C. They can add perceived latency to your application if data is not received.
D. They block until a response is returned from the servers.
E. They do not block while waiting for the API to be processed.

A

C. They can add perceived latency to your application if data is not received.
E. They do not block while waiting for the API to be processed.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
9
Q
What is the result when running the Python scripts? 
A. s1 
B. s2 
C. s1, s2, s3 
D. s3
A

B. s2

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
10
Q

Which type of YANG container is described by the JSON instance provided?

A. interface-configurations
B. active
C. interface-name
D. description

A

A. interface-configurations

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
11
Q

Which NETCONF protocol operation is used to interact with the YANG model?

A. edit-config
B. get
C. get-config
D. copy-config

A

A.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
12
Q
How many YANG models does the NETCONF  operation interact with? 
A. one 
B. two 
C. three 
D. four
A

A. one

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
13
Q

13.Which statement describe the difference between OpenConfig and native YANG data models?

A. Native models are designed to be independent of the underlying platform and are developed by vendors and standards bodies, such as the IETF.

B. Native models are developed by individual developers and designed to apply configurations on platforms.

C. OpenConfig models are developed by vendors and designed to integrate to features or configurations that are relevant only to that platform.

D. Native models are developed by vendors and designed to integrate to features or configurations that are relevant only to that platform.

A

A. Native models are designed to be independent of the underlying platform and are developed by vendors and standards bodies, such as the IETF.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
14
Q
An engineer creates a Python script using RESTCONF to display hostname information. The code must be completed so that it can be tested. Which string completes the highlighted areas in the exhibit? 
A. yang-data+json
B. yang +json 
C. yang.data+json 
D. json
A

A. yang-data+json

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
15
Q

15.Which statement is true for Cisco IOS XE Software?
A. RESTCONF supports JSON and XML and NETCONF supports XML.
B. RESTCONF supports XML and NETCONF supports JSON and XML.
C. RESTCONF and NETCONF supports JSON and XML.
D. RESTCONF supports XML and NETCONF supports JSON

A

A. RESTCONF supports JSON and XML and NETCONF supports XML.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
16
Q

16.Which curl command is used to update the SNMP community of network ID “1234567” to read-only?

A)
curl -L -H ‘X-Cisco-Meraki-API-Key: ‘ \
-H ‘Content-Type: application/jason’ \
-X PUT –data-binary ‘{ \
“access”: “users”, \
“communityString” : “readonly” } ‘ \
‘https://api.meraki.com/api/v0/networks/1234567/snmpSettings’
B)
curl -L -H ‘X-Cisco-Meraki-API-Key: ‘ \
-H ‘Content-Type: application/jason’ \
-X PUT –data-binary ‘{ \
“access”: “community”, \
“communityString” : “readonly” } ‘ \
‘https://api.meraki.com/api/v0/networks/1234567/snmpSettings’

A

-X PUT

“access”: “community”

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
17
Q

Which NETCONF statement type is represented by +–rw address* [ip]?

A. list
B. leaf-list
C. container
D. submodule

A

A. list

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
18
Q

18.The automation engineer must replace device configuration using RESTCONF. How is this configured using the Python library Requests?

A. delete()
B. post()
C. put()
D. patch()

A

C. put()

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
19
Q

19.Which two Netmiko methods are used to configure a device? (Choose two.)

A. send_config() 
B. send_control_from_file() 
C. send_config_set() 
D. send_command() 
E. send_config_from_file()
A

C. send_config_set()

E. send_config_from_file()

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
20
Q

An engineer creates an Ansible playbook to configure VRF information using a local_vrfs variable. The code must be completed so that it can be tested. Which string completes the code?

A. present
B. up
C. on
D. active

A

A. present

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
21
Q

Drag and drop

ioscmd interface
parents iosxe
iosconfig ios_config

A

ios_config

parents

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
22
Q
Which XML tag completes this NETCONF telemetry subscription with a Cisco IOS XE device? 
A. crontab 
B. cadence 
C. frequency 
D. period
A

D. period

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
23
Q

23.Which two statements are benefits of YANG-push telemetry data over traditional data collection methods? (Choose two.)

A. The subscription requests use less bandwidth than SNMP polls.
B. It uses UDP rather than TCP.
C. You can precisely define data subscriptions.
D. It scales better than SNMP.
E. It is supported on more devices than SNMP.

A

B. It uses UDP rather than TCP.

C. You can precisely define data subscriptions.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
24
Q

24.FILL BLANK Fill in the blank to complete the statement.

________is a solution for automating the configuration of a device when it is first powered on, using DHCP and TFTP

A

zero touch provisioning

25
25.Which tag is required when establishing a YANG-push subscription with a Cisco IOS XE device? A. yp:period B. yp:subscription-result C. yp:subscription-id D. yp:xpath-filter
D.
26
Which expression completes the highlighted section in the format call? A. intf_info B. intf_config C. intf_get D. intf_config[0]
A. intf_info
27
What is the correct ncclient method to use to collect the running configuration of a Cisco IOS XE device that uses NETCONF? A. config=m.copy_config(source=’running’) B. config=m.get(source=’running’) C. config=m.collect_config(source=’running’) D. config=m.get_config(source=’running’)
A. config=m.copy_config(source=’running’)
28
28.FILL BLANK Fill in the blanks to complete this API request against the Cisco SD_WAN vManage Statistics API, which specified a deviceId of 260faff9-2d31-4312-cf96-143b46db0211, a local-color of biz-internet, and a remote-color of gold. https//vmanage-ip-address:8443/dataservice/device/app-route/statistics?___________260faff9-2d31-4312-cf-a430211 ______ biz-internet _________ gold
deviceID= local-color= remote-color=
29
29.What does the command boot ipxe forever switch 1 perform when executed on a Cisco IOS XE device? A. It continuously sends DHCP requests for iPXE until the device boots with an image. B. It continuously sends DNS requests for iPXE until the device restarts. C. It continuously sends DNS requests for iPXE until the device boots with an image. D. It continuously sends DHCP requests for iPXE until the device restarts.
A. It continuously sends DHCP requests for iPXE until the device boots with an image.
30
30.The Cisco DNA Center Sites API must be used to add a device to a site, but only the site name is available. Which API call must be used to retrieve the site identifier so that the device can be properly added to the network? A. /dna/intent/api/site/siteId B. /dna/intent/api/site C. /dna/intent/api/v1/site D. /dna/intent/api/v1/site/siteName
C. /dna/intent/api/v1/site
31
31.When a Grafana dashboard is built to receive network events from Cisco DNA Center, which integration bundle is enabled to send notifications? A. Basic ITSM CMDB Synchronization B. DNA Center Rest API C. Network Events for REST API Endpoint D. Network Issue Monitor and Enrichment for ITSM
B. DNA Center Rest API
32
``` 32.Webhook that are generated by Cisco DNA Center are REST calls with which properties? A. JSON payload delivered via PUT B. XML payload delivered via POST C. JSON payload delivered via POST D. XML payload delivered via PUT ```
A. JSON payload delivered via PUT
33
33.Which two API calls are used to trigger a device configuration sync in Cisco DNA Center? (Choose two.) A. PUT /dna/intent/api/v1/network-device B. PUT /dna/intent/api/v1/network-device/sync-all C. PUT /dna/intent/api/v1/network-device/{networkDeviceId}/sync D. PUT /dna/intent/api/v1/network-device/sync E. POST /dna/intent/api/v1/network-device/{networkDeviceId}/sync
E. POST /dna/intent/api/v1/network-device/{networkDeviceId}/sync C. PUT /dna/intent/api/v1/network-device/{networkDeviceId}/sync
34
Drag and drop Get task by ID Get file by ID Run read-only commands on devices Get device list
1 . Run read-only commands on devices 2. Get device list 3. Get file by ID 4. Get task by ID
35
35.A network administrator must troubleshoot a network issue using Cisco DNA Center. Which API request helps to determine issue details, impacted hosts, or suggested actions for the resolution? A. /dna/intent/v1/issues B. /dna/intent/api/v1/issues C. /dna/intent/v1/issue-enrichment-details D. /dna/api/v1/client-health/issues
B. /dna/intent/api/v1/issues
36
36.Which two network assurance features are provided by the Cisco DNA Center API? (Choose two.) ``` A. site health B. license compliance health C. client health D. Cisco APIC appliance health E. Cisco DNA Center appliance health ```
A. site health | C. client health
37
37.In which direction does the Cisco DNA Center Intent API communicate? A. westbound B. eastbound C. northbound D. southbound
C. northbound
38
38.Which two features are characteristics of software-defined networks when compared to traditional infrastructure? (Choose two.) ``` A. configured box-by-box B. changed manually C. use overlay networks D. designed to change E. require software development experience to manage ```
C. use overlay networks | D. designed to change
39
39.Refer to the exhibit. Cisco SD-WAN deployment must be troubleshooted using vManage APIs. A call to vEdge Hardware Health API returns the data in the exhibit (only a portion is shown). If this JSON is converted to a Python dictionary and assigned to the variable “d”, how the status is accessed that is indicated on line 16? A. d[data][0][statusList][0][status] B. d[‘data’][‘statusList’][‘status’] C. d{‘data’}[0]{‘statusList’}[0]{‘status’} D. d[‘data’][0][‘statusList’][0][‘status’]
B. d[‘data’][‘statusList’][‘status’] no [0]
40
40.FILL BLANK Information about a rebooted device needs to be displayed with an ID of 260faff9-2d31-4312-cf96143b46db0211 using the Cisco SD-WAN vManage Administration APIs. The API documentation states that deviceId is a required request parameter. Fill in the blank to create the REST call. https://vmanage-ip-address:8443/dataservice/device/action/reboot _________ 260faff9-2d31-4312-cf96143b46db0211
?deviceid=
41
41.What is the purpose of using the Cisco SD-WAN vManage Certificate Management API? A. to generate a CSR B. to allocate resources to the certificate server C. to request a certificate from the certificate server D. to enable vManage Center
A. to generate a CSR
42
``` 42.Which action allows for creating a Python script to pull inventory for Cisco SD-WAN Viptela devices using the Viptela library in the code? A. from urllib.request import Viptela B. from viptela.devices import Viptela C. from viptela.viptela import Viptela D. from viptela.library import Viptela ```
B. from viptela.devices import Viptela
43
43.What is primary purpose of using the Cisco SD-WAN vManage Certificate Management API? A. to securely deploy vManage B. to report an issue to Cisco TAC C. to install signed certificates D. to contact Enterprise Certificate Authority
A. to securely deploy vManage
44
44. FILL BLANK Fill in the blank to complete the URL for the Cisco SD-WAN API that retrieves a list of users that are logged into a device. https: //vmanage-ip-address/dataservice/device/_____deviceId=deviceId
users?
45
45.Which two API calls must be issued to attach a device template in Cisco SD-WAN? (Choose two.) A. “monitor device action status” GET API request with the device ID to display the status of the attach action B. “monitor device action status” GET API request with the process ID to display the status of the attach action C. PUT call to initiate the attach action D. POST call to initiate the attach action E. GET call to initiate the attach action
B. “monitor device action status” GET API request with the process ID to display the status of the attach action D. POST call to initiate the attach action process ID
46
46.During a network outage, a network administrator used the Cisco SD-WAN vManage Troubleshooting Dashboard APIs to troubleshoot the cause of the issue. Which detail is captured during troubleshooting with these APIs? A. VPN health B. public cloud resources C. connections summary D. OMP connection health
C. connections summary
47
A Python script has been created that calls the Cisco SD-WAN vManage Device Inventory API to get the list of vEdges. The JSON data that returns to a Python dictionary has been converted and assigned to a variable named “d”. A portion of the JSON is shown in the exhibit. Which code will complete the expression hostname= to access the hostname? A. d[“data”][0][“host-name”] B. d[data][0][host-name] C. d(“data”)[0](“host-name”) D. d[“host-name”][“data”]{“0”}
A. d[“data”][0][“host-name”] [“data”]
48
48.FILL BLANK Fill in the blank to complete the URL for an API call to Cisco SD-WAN to display the history of the Bidirectional Forwarding Detection sessions that run on a vEdge router. https://vmanage-ip-address/dataservice/device/________________deviceId=deviceId
bfd/history?
49
A Python script must be created to deactivate vSmart Policy Cisco SD-WAN vManage Configuration APIs. The documentation states the URL is as shown in the exhibit for this REST call using POST, and that “policyId” is a required request parameter. Which line of Python code makes this call, assuming the variable “s” is a valid Requests session object and the variable “policy-id” is the policyId? A. s.port(‘https://vmanage:8443/dataservice/template/policy/vsmart/activate?policyId=%s’ %policy_id) B. s.port(‘https://vmanage:8443/dataservice/template/policy/vsmart/activate/%s’ % policy_id) C. s.port(‘https://vmanage:8443/dataservice/template/policy/vsmart/activate&policyId=%s’ %policy_id) D. s.port(‘https://vmanage:8443/dataservice/template/policy/vsmart/activate/’, data = {‘policyId’:policy_id})
A. s.port(‘https://vmanage:8443/dataservice/template/policy/vsmart/activate?policyId=%s’ %policy_id) ? ? ? ? activate?
50
50.A configuration has been made to add to every switch port a new port description. The script worked initially, but after a few seconds, an HTTP 429 status code was received. What causes this error message from the Meraki cloud? A. The wrong API key is used to query the data. B. The rate limit of the Cisco Meraki API is exceeded. C. The API key has expired. D. The device goes offline while you poll the API dashboard
B. The rate limit of the Cisco Meraki API is exceeded.
51
51.Which Python snippet receives a Meraki webhook request? A) @app.route('/mynet/webhook', methods=['PUT']) @app.accept_body(WebhookSchema) def receive_webhook(^^kwargs): send_sms_alert(kwargs['alertType']) B) @app.route('/mynet/webhook', methods=['GET']) @app.accept_body(WebhookSchema) def receive_webhook(^^kwargs): send_sms_alert(kwargs['alertType']) C) @app.route('/mynet/webhook', methods=['PATCH']) @app.accept_body(WebhookSchema) def receive_webhook(^^kwargs): send_sms_alert(kwargs['alertType']) D) @app.route('/mynet/webhook', methods=['POST']) @app.accept_body(WebhookSchema) def receive_webhook(^^kwargs): send_sms_alert(kwargs['alertType'])
@app.route('/mynet/webhook', methods=['POST']) @app.accept_body(WebhookSchema) def receive_webhook(^^kwargs): send_sms_alert(kwargs['alertType']) POST@@@!@#!@
52
52.Which two types of solution are built with the Meraki Location Scanning API? (Choose two.) ``` A. networking automation B. mapping C. guest Wi-Fi D. Sense E. wayfinder ```
B. mapping | E. wayfinder
53
53.Which URI with the request body of Request body: {“name”:”Test”,”organizationId”:,”type”:”appliance”} creates a new Meraki network called “Test”, when using APIs? A. PUT https://api.meraki.com/api/v0/organizations/[org_id]/networks B. POST https://api.meraki.com/api/v0/networks C. POST https://api.meraki.com/api/v0/organizations/[org_id]/networks/[net_id] D. POST https://api.meraki.com/api/v0/organizations/[org_id]/networks
D. POST https://api.meraki.com/api/v0/organizations//networks POST networks
54
54.With the MV Sense API, which REST endpoint provides LUX level? A. /merakimv/XXXX-XXXX-XXXX/light B. /merakimv/XXXX-XXXX-XXXX/raw_detections C. /merakimv/XXXX-XXXX-XXXX/0 D. /merakimv/XXXX-XXXX-XXXX/zones
A. /merakimv/XXXX-XXXX-XXXX/light
55
55.Which REST endpoint is used to create a Cisco Meraki network? A. POST /organizations/{organizationId}/networks B. PATCH /networks{networkId} C. PUT /organizations/{organizationId}/networks D. POST /networks{networkId}
A. POST /organizations/{organizationId}/networks POST / / /networks
56
56.Which URI removes an administrator from a Meraki network using an API call? A. DELETE https://api/meraki.com/api/v0/organizations/[org_id]/admins/[admin_id] B. DELETE https://api/meraki.com/api/v0/admins/ [admin_id] C. PUT https://api/meraki.com/api/v0/organizations/[org_id]/admins/?delete= [admin_id] D. DELETE https://api/meraki.com/api/v0/organizations/[org_id]/admins/[user]
A. DELETE https://api/meraki.com/api/v0/organizations//admins/ removes = DELETE /admins/
57
Which two parameters are mandatory when the Cisco Meraki API is used to create a network? (Choose two.) ``` A. timezone B. disableMyMerakiCom C. type D. tags E. organizationId ```
E. organizationId A. timezone
58
58.Which HTTP request is valid to create a new wireless network called “Demo Wireless Network” in the organization “QASD-EROA-MKAW”? A) POST /organizations/QASD-EROA-MKAW/networks HOST: https://api.meraki.com/api/v0 { "name": "Demo Wireless Network", "organizationID": "QASD-EROA-MKAW" "type": "wireless" } ``` C) POST /organizations/networks HOST: https://api.meraki.com/api/v0 { "name": "Demo Wireless Network", "organizationID": "QASD-EROA-MKAW" "type": "wireless" } ```
POST /organizations/QASD-EROA-MKAW/networks "type": "wireless"