devops quiz1 solution
devops quiz1 solution
Quiz # 1 (Solution)
Subject: Devops Course Code: CS-423
Class: CS/AI/DS Total Marks: 20
Instructor: Israr Ahmad Date:
Name: Roll #
Any student who is involved in cheating / moved his head or spotted talking/speaking will be given
straight zero mark without any notice and warning. No argument will be entertained so be careful.
9. DevOps focuses attention on bridging communication gaps between Development and Operations teams:
a) True.
b) False.
10. Which command should you use to search for the word "error" in data.txt?
A) find "error" data.txt
B) search "error" data.txt
C) grep "error" data.txt
D) locate "error" data.txt
Q1: Write any 2 tools name to log into the cloud environment other than console? [2]
1.Putty
2.SSH
Q2: While creating ec2 instance aws cloud provide us key-pair in 2 file format, list it down? [2]
1.ppk
2.pem
Q3: What is the working and difference of security groups and network ACLs in terms of VPC? [2]
Security groups are applied to specific instances and control inbound and outbound traffic for those
instances within the VPC, while network ACLs Operate at the subnet level and control traffic in and
out of an entire subnet, affecting all instances within that subnet.
Q4: You installed apache on Ubuntu using command apt install apache2, it is installed successfully and its
status is active and running, but when you try you access it using its address you unable to access it, write
down what could be the reason and solution for it?[2]
It is the issue of port, we need to navigate to security group in aws web console
Add the inbound/outbound rule and allow and add port so it can be accessible.
Q5: You created a directory named “devops” and a file in it named “Quiz1.txt” in your current directory, but
now you realize you no longer need it. What command you will use to delete directory with file? [2]
rm -r devops
or
rm -rf devops
Good Luck