Quiz
DevOps Final Exam
Create a free account to finish this quiz
Save your progress and see your final score.
Already have an account? Sign in
Questions in this quiz (40)
1What Linux command is used to display the contents of the current directory?
- AIn
- Bpwd
- Ccat
- Dls
2What command is used to rename a file in a Linux system?
- Arm
- Bmv
- Ccp
- Ddd
3A user issues a Linux command and the result is shown.
total 40
drwxr-xr-x 2 devasc devasc 4096 Apr 15 19:09 Videos
drwxr-xr-x 2 devasc devasc 4096 Apr 15 19:09 Templates
drwxr-xr-x 5 devasc devasc 4096 Mar 30 21:24 snap
drwxr-xr-x 2 devasc devasc 4096 Apr 15 19:09 Public
drwxr-xr-x 2 devasc devasc 4096 Apr 15 19:09 Pictures
drwxr-xr-x 2 devasc devasc 4096 Apr 15 19:09 Music
drwxr-xr-x 5 devasc devasc 4096 Mar 30 21:21 labs
drwxr-xr-x 2 devasc devasc 4096 Apr 15 19:09 Downloads
drwxr-xr-x 2 devasc devasc 4096 Apr 15 19:09 Documents
drwxr-xr-x 2 devasc devasc 4096 Mar 30 21:25 Desktop
devasc@labvm:~$
Which Linux command is used to display the contents of the current directory as shown?- Als -a
- Bls -l
- Cls -lr
- DIn
4A system administrator of a Linux server is searching the passwd file for the username taylor that appears at the beginning of the line. Which grep command should the administrator use?
- Agrep '.taylor' /etc/passwd
- Bgrep '[taylor]' /etc/passwd
- Cgrep taylor /etc/passwd
- Dgrep '^taylor' /etc/passwd
5A 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?
- AIssue the apt-get install --allow command
- BIssue the sudo apt-get install command
- CIssue the sudo apt-get upgrade command
- DIssue the allow apt-get upgradecommand
6A student is learning Python using the interactive interpreter mode. The student issues the commands:
What is the result?
- A['SW4', 'SW1', 'SW2', 'SW3']
- B['SW1', 'SW2', 'SW3', 'SW4']
- C['SW4', 'SW3', 'SW2', 'SW1']
- D['SW4']
- E['SW1', 'SW2', 'SW3']
7A student is learning Python in the interactive interpreter mode. The student issues the commands:
>>> devicenames=[\"RT1\", \"RT2\", \"SW1\", \"SW2\"]
>>> devicenames[-1]
What is the result?- ASW1
- BSW2
- C['RT2', 'SW1', 'SW2']
- DRT1
- Ean error message
8A developer needs to check the version of the running Python package. Which command should the developer use?
- Apython3 -i
- Bpython3 -V
- Cpython3 -q
- Dpython3 --v
9A student is learning Python in the interactive interpreter mode. The student issues the command:
>>> type(True)
What is the data type reported by Python?- ABoolean
- Bfloat
- Cstring
- Dinteger
10Which Python programming function is used to display output?
- Aif
- Bprint
- Cfor
- Dwhile
11A system administrator issues the apt-get upgrade command on a Linux operating system. What is the purpose of this command?
- AEvery application installed will update itself to the latest version.
- BOperating system updates are downloaded and will be installed.
- CThe remote repository of applications and dependencies will be updated to the latest version.
- DA specific application named upgrade will be installed.
12A Linux system administrator is searching the passwd file for any username that starts with a digit. Which grep command should the administrator use?
- Agrep ‘(0-9}’ /etc/passwd
- Bgrep ‘[0-9]’ /etc/passwd
- Cgrep ‘_[0-9]’ /etc/passwd
grep ‘^[0-9]’ /etc/passwd - Dgrep ‘^[0-9]’ /etc/passwd
13 What is the output when the following code is entered into a Python program interpreter?
[1,2,4,5] + [3,6]- A[1,2,3,4,5,6]
- B[1,2,4,5,3,6]
- C[12]+[9]
- D[21]
14What is displayed after the following code is entered into a Python interpreter?
addition = 22 +10
print(addition)- Anothing ( because the print command is wrong)
- B[22]+[10]
- C(syntaxerror)-…as there should not be a space between the numerical values
- D32
15A 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?
- Aidentify a different network interface
- Buse a different user account
- Cuse the sudo command
- Dchange the chmod permissions on the network configuration file
16A network engineer needs to review the status of all network interfaces of a server running a Linux operating system. The engineer enters the command ifconfig -a. What is the resuit of this command?
- AAll active interfaces will display information.
- BThe ARP table of the computer will be displayed.
- CBoth active and inactive interfaces will display information.
- DThe host routing table will be displayed.
17A 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?
- Acurrent RAM usage
- Bcurrent NIC status
- Cactive processes using CPU time
- Dcurrent HDD usage
18 A user issues the Linux command ls -l myfile.sh to check the permission of the file myfile.sh.
devasc@labvm:~/Documents$ ls -l myfile.sh
-rwxr-xr-- 1 self test 15 Mar 30 21:24 myfile.sh
DevNet Associate (Version 1.0) – Module 1 Exam Answers Jan 17, 2021 Last Updated: Sep 20, 2024 DevNet Associate 7 Comments
Share TweetSharePin it
Module 1: Course Introduction Exam Answers
DevNet Associate (Version 1.0) 1.5 Module Exam – DevNet Associate Module 1 Exam Answers
How to find: Press “Ctrl + F” in the browser and fill in whatever wording is in the question to find that question/answer. If the question is not here, find it in Questions Bank.
NOTE: If you have the new question on this test, please comment Question and Multiple-Choice list in form below this article. We will update answers for you in the shortest time. Thank you! We truly value your contribution to the website.
1. A system administrator issues the apt-get upgrade command on a Linux operating system. What is the purpose of this command?
Every application installed will update itself to the latest version.
Operating system updates are downloaded and will be installed.
The remote repository of applications and dependencies will be updated to the latest version.
A specific application named upgrade will be installed.
Explanation: When the apt-get upgrade command is isued in a Linux terminal, all installed applications will attempt to upgrade to the latest version available.
2. 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
Explanation: The grep Linux command can be used to process text line by line and to print any lines which match a specified pattern. The matching patterns are based on regular expression (regex) query modifiers used to select the appropriate content. Some regex query modifiers are as follows:
_ (underscore): matches a space
^ (caret): indicates the start of a string
$ (dollar sign): indicates the end of a string
. (period): matches a single character, including a space
* (asterisk): matches zero or more occurrences of the preceding character
[ ] (square bracket): matches a character
{ } (curly bracket): repeats preceding character
3. What is the output when the following code is entered into a Python program interpreter?
[1,2,4,5] + [3,6]
[1,2,3,4,5,6]
[12]+[9]
[21]
[1,2,4,5,3,6]
Explanation: The Python interpreter performs concatenation of two lists without reordering the list elements
4. What is displayed after the following code is entered into a Python interpreter?
addition = 22 +10
print(addition)
nothing ( because the print command is wrong)
[22]+[10]
(syntaxerror)-…as there should not be a space between the numerical values
32
Explanation: The Python interpreter will perform the operation and display the result, 32.
5. 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?
identify a different network interface
use a different user account
use the sudo command
change the chmod permissions on the network configuration file
Explanation: Multiple terminal commands require the use of the sudo command as a preface. The command sudo means “super user do”. Sudo will require an administrator password be entered to complete a configuration. Malicious software usually cannot do damage on its own without knowing the password first.
6. A network engineer needs to review the status of all network interfaces of a server running a Linux operating system. The engineer enters the command ifconfig -a. What is the resuit of this command?
All active interfaces will display information.
The ARP table of the computer will be displayed.
Both active and inactive interfaces will display information.
The host routing table will be displayed.
Explanation: The ifconfig command with the -a modifier will provide information for all network interfaces, even if they are down.
7. 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 RAM usage
current NIC status
active processes using CPU time
current HDD usage
Explanation: The ps command can be combined with multiple modifiers to display all processes running on a computer, view a specific process, or end processes that are using CPU time.
8. A user issues the Linux command ls -l myfile.sh to check the permission of the file myfile.sh.
devasc@labvm:~/Documents$ ls -l myfile.sh
-rwxr-xr-- 1 self test 15 Mar 30 21:24 myfile.sh
Which two statements describe the permissions assigned to the file? (Choose two.)- AAny user in the self group can read, modify, and execute the file.
- BThe user with the user ID of self can modify the file.
- CThe user with the user ID of devasc can modify the file.
- DAny user in the test group can execute the file. [ito yung isa]
19Which Python command creates a conditional control structure?
- Adef
- Bdelay
- Cfrom
- Dif
20A user enters the commands as shown. What is the result after the mv command is entered?
devasc@labvm:~/Documents$ pwd
/home/devasc/Documents
devasc@labvm:~/Documents$ mv myfile.sh ../Desktop/myfile2.sh- AThe file myfile.sh is copied to the /home/devasc/Desktop directory and renamed as myfile2.sh.
- BThe file myfile.sh is copied to the /home/devasc/Desktop directory and replaces the file myfile2.sh.
- CThe file myfile.sh is copied and renamed to myfile2.sh in the current directory.
- DThe file myfile.sh is moved to the /home/devasc/Desktop directory and renamed as myfile2.sh.
21A student new to Python is working in the interactive interpreter mode. The student issues the commands:
>>> ipAddress = {"R1":"10.1.1.1","R2":"10.2.2.1","R3":"10.3.3.1"}
Which data type is used to represent the variable ipAddress?- Alist
- Barray
- Ctuple
- Ddictionary
22A 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?- AipAddress{‘R2’}
- BipAddress[‘R2’]
- CpAddress[R2]
- DipAddress{“R2”}
23A 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?- A/
- B/home
- C/home/devasc/
- D/home/devasc/labs
24A 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?- A[‘RT1’, ‘RT2’, ‘RT3’, ‘SW2, ‘SW3’]
- B[‘RT1’, ‘RT2’, ‘SW2’, ‘RT3’, ‘SW3’]
- C[‘RT1’, ‘RT2’, ‘SW1’, ‘RT3’, ‘SW3’]
- D[‘RT1’, ‘RT2’, ‘SW1’, ‘SW2’, ‘SW3’]
25A student is learning Python in the interactive interpreter mode. The student issues the commands:
>>> y=2
>>> y*3
6
>>> 'Test'*y
What isthe result?- A‘Test2
- BTest6’
- CTypeError: A string type cannot be multiplied by an integer.
- D‘TestTest’
26A 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?- Awhen the input is a float number
- Bwhen the first print statement fails
- Cwhen the input is a string
- Dwhen the if statement is false
27A user issues a Linux command and the result is shown:
total 40
drwxr-xr-x 2 devasc devasc 4096 Mar 30 21:25 Desktop
drwxr-xr-x 2 devasc devasc 4096 Apr 15 19:09 Documents
drwxr-xr-x 2 devasc devasc 4096 Apr 15 19:09 Downloads
drwxr-xr-x 5 devasc devasc 4096 Mar 30 21:21 labs
drwxr-xr-x 2 devasc devasc 4096 Apr 15 19:09 Music
drwxr-xr-x 2 devasc devasc 4096 Apr 15 19:09 Pictures
drwxr-xr-x 2 devasc devasc 4096 Apr 15 19:09 Public
drwxr-xr-x 5 devasc devasc 4096 Mar 30 21:24 snap
drwxr-xr-x 2 devasc devasc 4096 Apr 15 19:09 Templates
drwxr-xr-x 2 devasc devasc 4096 Apr 15 19:09 Videos
devasc@labvm:~$
Which Linux command is used to display the contents of the current directory as shown?- Als -a
- Bls -l
- Cls
- Dls -lr
28A network engineer needs to review the status of all network interfaces of a server running a Linux operating system. The engineer enters the command ifconfig -a . What is the result of this command?
- AThe host routing table will be displayed.
- BAll active interfaces will display information.
- CBoth active and inactive interfaces will display information.
- DThe ARP table of the computer will be displayed.
29What is network programmability?
- Athe ability to easily monitor network devices using traditional network protocols
- Bthe ability to program network devices using repettive manual configuration via a terminal and command sets
- Cthe ability to configure, monitor, and react to events in the network in real time
- Dthe ability to configure virtualized networks and deploy virtualized services in real time
30What is the purpose of Cisco DevNet?
- Ato be the central resource for everything about networking at Cisco
- Bto teach everyone about the different Cisco API offerings and how to use them
- Cto teach specific coding courses such as advanced Python and implementing REST APIs
- Dto be the central resource for advanced software developers and the use of Cisco APIs
31What are two benefits of using APIs and integrations between applications? (Choose two.)
- AIntegrations are used to verify compatibility between different applications.
- BIntegrations enable the applications to run a Docker instance using Hyper-V.
- CIntegrations enable the applications to be installed on any operating system type.
- DIntegrations are used to provide applications the ability to notify each other when a specific event happens.
- EIntegrations enable the applications to request actions from each other. [ito isa]
32What is the contracted response time after a developer opens a case-based ticket with the DevNet support service?
- Aone week
- Bfive business days
- Cone hour
- Done business day
33Which Cisco DevNet developer support option provides 1-on-1 support to the members of the Solution Partner program?
- Acase-based ticket
- Bcommunity forum
- Cknowledge base
- Dchat with DevNet
34Which technology trend enables an industry shift towards automation, applications, and integrations?
- Asmaler and faster CPUs
- Badvanced API capabilities
- Cincreased storage and RAM
- Dincreased intenet connection bandwidth
35What resources are available in the Cisco DevNet sandboxes?
- Aself-paced tutorials that cover a wide range of automation and integration topics
- Bsupport for developer-related issues through the use of forums and live chats
- Ca repository of sample code writen by developers
- Dproduction-like development and code testing environments
36Which link is used from the Cisco DevNet Learning Labs to access the largest collections of labs?
- ASections
- BModules
- CBookends
- DTracks
37 Which Cisco DevNet online resource provides use cases for network automation, including listing data and activating policies across domains?
- AAutomation Exchange
- BDevNet Learning Labs
- CDevNet Sandbox
- DCode Exchange
38 What are two requirements when participating in the DevNet Learning Labs? (Choose two.)
- AThe user must successfully log in with a DevNet account.
- BThe user must have successfully passed the 200-901 DEVASC exam.
- CThe user must have an active internet connection. [ito isa]
- DThe user must have purchased the DevNet Learning Labs activation license.
39What are three major areas that comprise DevNet? (Choose three.)
- Aon-line training site for various technology vendors
- Binteractive and collaborative developer community
- Cintegrated community forums [ito isa]
- Dautomation and programmability standards development area
- Ecoordinated developer tools [ito pa]
40What resources are available in the Cisco DevNet Code Exchange?
- Aa repository of sample code written by other developers
- Bproduction-like development and code testing environments
- Csupport for developer-related issues using forums and live chats
- Dself-paced tutorials that cover a wide range of automation and integration topics
Information
- Description
- college Devops - Module1-2 Quiz on DevOps Final Exam, created by EUJEAN MARIE HERNANDEZ on 09/12/2024.
- Author
- EUJEAN MARIE HERNANDEZ
- Language
- English
- Views
- 0
- Tags
- Rating
- No ratings yet Rate this quiz