Font size
WorksheetsIT 26210 PRELIMS
Total questions: 63
Worksheet time: 33mins
Which HTTP response status code indicates that the user is not authenticated to access the site?
201
400
401
403
404
In the REST API request URI example http://example.com/update/person?id=42&email=person%40example.com, which term describes the component example.com ?
query
path
scheme
authority
A developer wants to find the location of the Python 3 executable file. Which command should the developer use?
locate python3
where python3
which python3
find python3
Which type of credential information is used for the bearer authentication in REST APIs?
a username and password set by the client
a password encoded using Base64
an MD5 hash string generated by the client application
a string generated by an authentication server
What is the meaning of the term flow as it relates to the OAuth 2.0 authorization framework?
It is the number of requests contained in the token bucket.
It is a process for an API request to send authentication credentials to a web service.
It is a process for an API user to obtain an access token from the authorization server.
It is the sequence of data exchanged between a REST API request and a response.
A developer issues a Linux command python3 -m venv deveny . What is the developer trying to achieve?
to activate the Python 3 virtual environment named deveny
to enter the Python 3 virtual environment named veny using the devnet tool sets
to install the devnet tool sets in the Python 3 virtual environment named veny
to create a Python 3 virtual environment named deveny
A developer issues the Linux command pip3 freeze in an activated Python 3 virtual environment. What is the function that is provided by the command?
to deactivate the current virtual environment
to prepare the environment before installing a Python package
to output a list of installed Python packages
to lock the current virtual environment
Which SOAP message root element defines the XML document as a SOAP message?
Meta tag
Body
Envelope
Header
What is an application requirement in order to receive a notification from a webhook provider?
The application must provide a syslog service.
The application must always be running to receive HTTP POST requests.
The application must register a unique domain name from a certificate authority.
The application must accept HTTP UPDATE messages from the webhook provider.
What is an architectural constraint to which a true RESTful API web service must adhere?
It operates as a cloud service.
It runs as client/server model.
It must support the XML data format.
It uses HTTPS to transport data.
Which characteristic of the SOAP architecture specifies communication between all similar and dissimilar application types?
independence
interface uniformity
neutrality
extensibility
What is a webhook for REST APIs?
It is an HTTP redirect to forward the API request to another web service.
It is an HTTP PUT message to update information on a website.
It is an HTTP UPDATE message to notify the user that an API request is successfully completed.
It is an HTTP callback to a URL to notify the client application that an event has occurred.
What is a reason that a network engineer would use APIs?
to automate configuration or data collection tasks
to provide a more robust security architecture
to facilitate features across network devices that operate at different layers
to provide upper management with information about network performance
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 configuration changes from a network controller to end devices.
It supports a secure data transmission between a remote user and an enterprise network.
Which API architectural style uses an XML-based messaging protocol to communicate between applications?
SOAP
REST
NFS
XML-RPC
Which RESTFul operation corresponds to the HTTP GET method?
post
patch
update
read
In which situation would a synchronous API be used?
when a server is not part of the process
when the original API request or data from the request is delayed
when data is being retrieved from a database
when the client is not required to take action
What is an architectural constraint to which a true RESTful API web service must adhere?
It must support XML-RPC and JSON-RPC.
It allows resource caching.
It should be behind a firewall.
It operates as a cloud service.
What is an architectural constraint to which a true RESTful API web service must adhere?
It operates as a cloud service.
It uses HTTPS to transport data.
It must operate along with a DNS server.
It operates in a stateless way.
Which term is used to describe the first line of an XML document?
preamble
opening
prologue
introduction
Which code review method involves the developer going through the code line-by-line with the reviewer, allowing the developer to make changes on the spot?
email pass-around
formal
change-based
over-the-shoulder
What special characters are used to enclose JSON objects?
forward slash /
curly braces { }
square brackets [ ]
parenthesis ( )
A client is sending a REST API request to a web server. The request includes the need for data compression. Which three values are acceptable for the Accept-Encoding request header?
*
br
gzip
tar
zip
What are the three states of a Git file? (Choose three.)
secured
staged
committed
locked
modified
What is the role of the controller component in the Model-View-Controller (MVC) flow?
It accepts selected data and displays it to the user.
It provides visual representations and presentations of the data.
It takes user input and manipulates it to the proper format for the model.
It takes in user input and manipulates it to fit the format for the model or view.
What is the role of the view component in the Model-View-Controller (MVC) flow?
It accepts selected data and displays the visual representation to the user.
It accepts the input and applies the required rules to format the data.
It requests user input and manipulates it to fit the format for the model.
It manages the data, logic and rules of the application.
What is REST?
It is a way to store and interchange data in a structured format.
It is an architecture style for designing web service applications.
It is a human readable data structure that is used by applications for storing, transforming, and reading data.
It is a protocol that allows administrators to manage nodes on an IP network.
Which DevNet resource would a developer use if the developer is using a Cisco API and needs help understanding the error message received?
DevNet Support
DevNet Learning Labs
Code Exchange
DevNet Sandbox
A user issues a series of Linux commands as shown.
(omitted)$ pwd
/home/devasc/labs/ansible/backups
(omitted)$ cd ../..
Which directory is the current directory after the cd command is entered?
/home
/home/devasc/
/home/devasc/labs
/home/devasc/labs/ansible
A student new to Python is working in the interactive interpreter mode. The student issues the commands:
>>> devicenames=["RT1", "RT2", "SW1", "SW2"]
>>> hostnames=devicenames + ["RT3", "SW3"]
>>> del hostnames[3]
>>> hostnames
What is the result?
['RT1', 'RT2', 'SW1', 'RT3', 'SW3']
['RT1', 'RT2', 'SW1', 'SW2', 'SW3']
['RT1', 'RT2', 'RT3', 'SW2', 'SW3']
['RT1', 'RT2', 'SW2', 'RT3', 'SW3']
Which DevNet resource would a developer use if the developer is using a Cisco API and needs help understanding the error message received?
DevNet Sandbox
DevNet Learning Labs
Code Exchange
DevNet Support
What is Cisco DevNet?
a vendor-neutral type of virtual networking
a way to create networks using software alone
a Cisco-proprietary virtual network
a developer program
A Linux administrator is attempting to use a terminal to configure the network interface card on a computer. The administrator receives a message that the administrator does not have necessary permissions to perform the configuration. What should be done prior to the configuration command?
use a different user account
use the sudo command
change the chmod permissions on the network configuration file
identify a different network interface
What are two benefits of using APIs and integrations between applications? (Choose two.)
Integrations are used to provide applications the ability to notify each other when a specific event happens.
Integrations enable the applications to request actions from each other.
Integrations enable the applications to be installed on any operating system type.
Integrations are used to verify compatibility between different applications.
Integrations enable the applications to run a Docker instance using Hyper-V.
What are two features of the formal code review?
It promotes discussion among all of the reviewers.
It allows the developer to make changes on the spot.
It involves a review of the entire code base in a series of meetings.
For a quicker turnaround, it involves only one reviewer.
It involves the developer going through code with the reviewer line-by-line.
A student is learning Python using the interactive interpreter mode. The student issues the commands:
>>> routers=[ ]
>>> switches=[ ]
>>> devices=[\"RT1\", \"RT2\", \"RT3\", SW1\", \"SW2\", \"SW3\"]
>>> devices=devices + [\"RT4\", \"SW4\"]
>>> for i in devices:
if \"R\" in i: routers.append(i)
else: switches.append(i)
>>> switches
What is the result?
['SW4', 'SW1', 'SW2', 'SW3']
['SW1', 'SW2', 'SW3']
['SW4', 'SW3', 'SW2', 'SW1']
['SW1', 'SW2', 'SW3', 'SW4']
What is required in order to ensure that clients are able to talk to applications that are outside a local system?
a script
an application
a network
an API
A user issues the apt-get upgrade command to update system files in a Ubuntu Linux system and receives an error message of "permission denied." What should the user do to complete the task?
Issue the allow apt-get upgrade command.
Issue the sudo apt-get upgrade command.
Issue the apt-get install --allow command.
Issue the sudo apt-get install command.
What is the purpose of the Cisco DevNet Learning Labs?
They allow participants to add their own Python labs.
They provide a space for game development, interaction, and learning based on coding.
They allow participants to add their own labs as long as the labs relate to any type of coding.
They provide self-paced tutorials including coding.
What is contained within a DevNet Sandbox?
instructor-led videos focusing on hands-on exercises
a collection of Cisco developer API documentation
a collection of self-paced tutorials using REST APIs
a preconfigured environment already installed with Cisco platforms
What is the contracted response time after a developer opens a case-based ticket with the DevNet support service?
one hour
five business days
one week
one business day
What are two requirements when participating in the DevNet Learning Labs? (Choose two.)
The user must successfully log in with a DevNet account.
The user must have an active internet connection.
The user must have purchased the DevNet Learning Labs activation license.
The user must have successfully passed the 200-901 DEVASC exam
The user must install a developer environment on a local computer
A student new to Python is working in the interactive interpreter mode. The student issues the command:
>>> ipAddress = {"R1":"10.1.1.1","R2":"10.2.2.1","R3":"10.3.3.1"}
Which Python expression can be used to retrieve the IP address of R2?
ipAddress{'R2'}
ipAddress[R2]
ipAddress{"R2"}
ipAddress['R2']
A system administrator attempts to determine what is causing a computer to perform slower than normal. The administrator issues the ps command. What is displayed by this command?
current SSD usage
current HDD usage
current RAM usage
active processes using CPU time
What is a requirement when creating a Cisco DevNet account for accessing educational resources, such as Learning Labs and the DevNet Sandbox?
The account must contain a purchased license.
The account must be created using an existing online identity or via a new Cisco account.
The account must be registered using a Cisco email address.
The account holder must share personally created code before access is allowed.
What resources are available in the Cisco DevNet Code Exchange?
a repository of sample code written by other developers
self-paced tutorials that cover a wide range of automation and integration topics
production-like development and code testing environments
support for developer-related issues using forums and live chats
What is displayed after the following code is entered into a Python interpreter?
addition = 22 +10
print(addition)
(syntaxerror)-...as there should not be a space between the numerical values
nothing ( because the print command is wrong)
32
[22]+[10]
What command is used to rename a file in a Linux system?
r m
mv
dd
cp
Which Cisco DevNet online resource provides use cases for network automation, including listing data and activating policies across domains?
Code Exchange
DevNet Learning Labs
Automation Exchange
DevNet Sandbox
A Linux system administrator is searching the passwd file for any username that starts with a digit. Which grep command should the administrator use?
grep '^[0-9]' /etc/passwd
grep '[0-9]' /etc/passwd
grep '{0-9}' /etc/passwd
grep '_[0-9]' /etc/passwd
What is network programmability?
the ability to configure, monitor, and react to events in the network in real time
the ability to configure virtualized networks and deploy virtualized services in real time
the ability to program network devices using repetitive manual configuration via a terminal and command sets
the ability to easily monitor network devices using traditional network protocols
Which Python command creates a conditional control structure?
def
from
if
delay
What resources are available in the Cisco DevNet sandboxes?
support for developer-related issues through the use of forums and live chats
self-paced tutorials that cover a wide range of automation and integration topics
a repository of sample code written by developers
production-like development and code testing environments
Which DevNet event is provided by Cisco partners and Cisco offices?
DevNet Express
DevNet Codearama
DevNet Hackathon
DevNet Learn In
What is the output when the following code is entered into a Python program interpreter?
[1,2,4,5] + [3,6]
[21]
[1,2,3,4,5,6]
[12]+[9]
[1,2,4,5,3,6]
What type of learner should take the DevNet Associate course?
anyone interested in network automation and programmability
only new software developers
only new network engineers
anyone that does not like working in teams and is a software developer
Which link is used from the Cisco DevNet Learning Labs to access the largest collections of labs?
Sections
Modules
Bookends
Tracks
A student is learning Python and is reviewing a Python script as follows:
aclNum = int(input("What is the IPv4 ACL number? "))
if aclNum >= 1 and aclNum <= 99:
print("This is a standard IPv4 ACL.")
elif aclNum >=100 and aclNum <= 199:
print("This is an extended IPv4 ACL.")
else:
print("This is not a standard or extended IPv4 ACL.")
Under which condition will the elif statement be evaluated?
when the input is a string
when the first print statement fails
when the if statement is false
when the input is a float number
Which Cisco DevNet developer support option provides 1-on-1 support to the members of the Solution Partner program?
case-based ticket
knowledge base
chat with DevNet
community forum
How many elements does a SOAP message contain?
3
5
2
4
Which SDLC development methodology employs many quick iterations known as sprints?
Lean
Agile
Extreme Programming
Waterfall
Which SDLC phase concludes with functional code that satisfies customer requirements and is ready to be tested?
deployment
maintenance
testing
implementation
Which statement describes the Waterfall methodology of software development?
Multiple steps in the process are started simultaneously.
Each step in the process must be completed before the next step starts.
Process tasks are broken up into time-boxed iterations called sprints.
It emphasizes elimination of wasted effort and maximizes customer value.
