1. Which two statements describe characteristics of the command line interface (CLI)? (Choose two.)
- Commands can be scripted.
- The interface protects against misconigurations.
- Commands cannot be encrypted.
- Commands are well known and documented.
- The command-line interface supports a small number of commands.
2. What is a characteristic of a RESTful API?
- It is a southbound API.
- It uses HTTP methods to gather and manipulate data.
- It facilitates the coniguration changes from a network controller to end devices.
- It supports a secure data transmission between a remote user and an enterprise network.
3. Which characters are used to enclose a JSON key?
- quotation marks
- commas
- square brackets
- colons
4. Which data format does the Cisco DNA Center controller expect from the REST API for incoming data?
- XML
- JSON
- HTML
- YAML
5. Which menu across the top of the Cisco DevNet main page provides learning tracks that guide users through various technologies and associated API labs?
- Events
- Support
- Discover
- Technologies
6. Which type of API is used to communicate from a network controller to its management software in network automation applications?
- lower layer
- upper layer
- northbound
- southbound
7. Which character is used to separate JSON key/value pairs?
- (comma) ,
- (semi colon) ;
- (dash) –
- (forward slash) /
8. What is a difference between the XML and HTML data formats?
- XML formats data in hexadecimal whereas HTML formats data in binary.
- XML uses a self-descriptive data structure but HTML uses a standard document structure.
- XML requires indentation for each key/value pair whereas HTML does not require indentation.
- XML encloses data within a pair of tags whereas HTML uses a pair of quotation marks to enclose data.
9. What is a characteristic of the Yet Another Next Generation (YANG) data model?
- It uses a list structure.
- It uses a MIBs structure.
- It uses a tree structure.
- It uses the JSON data format.
10. Which RESTFul operation corresponds to the HTTP GET method?
- read
- update
- patch
- post
11. Which HTTP response status code indicates that the request to update the database is completed?
- 200
- 201
- 400
- 401
- 403
- 404
12. Which two data formats can RESTCON use when requesting data or responding with data? (Choose two.)
- XML
- HTML
- YAML
- JSON
- YANG
13. What character is used to add comments to Python code?
- $
- #
- %
- @
- !
14. A student is learning Python. What is the output of the print function?
user_string1 = \”Good\”
user_string2 = \”Morning! \”
print (user_string2 * 3)
- Good Morning!
- Good Morning! Good Morning! Good Morning!
- Morning! Morning! Morning!
- Good Morning! Morning! Morning!
“Do I Know This Already?” Quiz Answers:
1. True or false: Python is considered one of the most difficult programming languages to learn and adopt.
- True
- False
2. To authenticate with Cisco’s DNA Center, which type of HTTP request method must be used?
- PUT
- PATCH
- GET
- POST
- HEAD
3. What does CRUD stand for?
- CREATE, RESTORE, UPDATE, DELETE
- CREATE, READ, UPDATE, DELETE
- CREATE, RETRIEVE, UPDATE, DELETE
- CREATE, RECEIVE, UPLOAD, DOWNLOAD
- CREATE, RECEIVE, UPLOAD, DELETE
4. When using the Cisco vManage Authentication API, what is the Headers Content Type that is used?
- MD5
- X-Auth-Token
- SSH
- x-www-form-urlencoded
- JSON
5. Which of the following is in JSON data format?
a.
{
"user": "root",
"father": "Jason",
"mother": "Jamie",
"friend": "Luke"
}
b.
<users> <user> <name>root</name> </user> <user> <name>Jason</name> </user> <user> <name>Jamie</name> </user> <user> <name>Luke</name> </user> </users>
c.
root Jason Jamie Luke
d.
[users[root|Jason|Jamie|Luke]]
6. What is the HTTP status code for Unauthorized?
- 201
- 400
- 401
- 403
- 404
7. In Python, why would you use three quotation marks in a row? (Choose two.)
- To begin a multiple-line string
- To start a function
- To represent a logical OR
- To end a multiple-line string
- To call a reusable line of code
8. Which of the following is a Python dictionary?
a.
dnac = {
"host": "sandboxdnac.cisco.com",
"port": 443,
"username": "devnetuser",
"password": "Cisco123!"
}
b.
[users[root|Jason|Jamie|Luke]]
c.
def dnac_login(host, username, password): url = "https://{}/api/system/v1/auth/token". format(host) response = requests.request("POST", url, auth=HTTPBasicAuth(username, password), headers=headers, verify=False) return response.json()["Token"]
d.
print(dnac_devices)
9. Which of the following are Python functions? (Choose two.)
a.
dnac = { "host": "sandboxdnac.cisco.com", "port": 443, "username": "devnetuser", "password": "Cisco123!" }
b.
[users[root|Jason|Jamie|Luke]]
c.
def dnac_login(host, username, password):
url = "https://{}/api/system/v1/auth/token".
format(host)
response = requests.request("POST", url,
auth=HTTPBasicAuth(username, password),
headers=headers, verify=False)
return response.json()["Token"]
d.
print(dnac_devices)
10. When using the Cisco DNA Center Token API, what authentication method is used?
- MD5
- X-Auth-Token
- SSH
- Basic authentication
- JSON
11. What is the DevNet Community page used for? (Choose two.)
- To ask questions
- To exchange code
- To access learning labs
- To access DevNet ambassadors and evangelists
- To get news on local DevNet events
12. When using GitHub, what is the purpose of a repository? (Choose three.)
- Provides a place to store a developer’s code
- Provides a place to store music and photos
- Gives the option to share a developer’s code with other users
- Provides documentation on code examples
- Offers a sandbox to test custom code
13. Why is using the command-line interface (CLI) to configure a large number of devices considered difficult to scale? (Choose two.)
- The CLI is prone to human error and misconfi guration.
- The CLI is quick and effi cient for confi guring many devices simultaneously.
- Telnet access to the CLI is best practice.
- The command line is used on a device-by-device basis.
- Using APIs is considered a legacy method of confi guration.
14. Which of the following are part of the YANG model? (Choose two.)
- Type
- Leaf
- Container
- String
- Method