diff --git a/README.md b/README.md index 416dace..a5a8e4d 100644 --- a/README.md +++ b/README.md @@ -3,7 +3,7 @@ :information_source:  This repository contains interview questions on various DevOps related topics -:bar_chart:  There are currently **434** questions +:bar_chart:  There are currently **440** questions :warning:  You don't need to know how to answer all the questions in this repo. DevOps is not about knowing all :) @@ -379,14 +379,15 @@ SAAS * Availability zone * Region * Edge location
- - AWS regions are data centers hosted across different geographical locations worldwide, each region is completely independant of one another. Within each region,There are multiple isolatated locations known as Availability Zones. Multiple availability zones insure high availability in case one of them goes down. Edge locations are basically content delivery network which caches data and insures lower latency and faster delivery to the users in any location. They are located in major cities in the world. - - + + +
+What is IAM?
+
##### S3 @@ -425,32 +426,18 @@ True What security measures have you taken in context of S3?
-##### CloudFront -
-Explain what is CloudFront and what is it used for
+What is a storage class? What storage classes are you familiar with?
-
-Explain the following - * Origin - * Edge location - * Distribution
-
- -
-What delivery methods available for the user with CDN?
-
- -
-True or False? objects are cached for the life of TTL
-
- - ##### EC2
-What type of instances have you created?
+What is EC2? What is it used for?
+
+ +
+What EC2 pricing models are there?
@@ -475,21 +462,34 @@ Stop the instance, the type of the instance to match the desired RAM and start t What are Security Groups?
-
How to migrate an instance to another availability zone?
- -
-What are security groups?
-
- -
What are spot instances?
- + +##### CloudFront + +
+Explain what is CloudFront and what is it used for
+
+ +
+Explain the following + * Origin + * Edge location + * Distribution
+
+ +
+What delivery methods available for the user with CDN?
+
+ +
+True or False? objects are cached for the life of TTL
+
## Network @@ -770,17 +770,13 @@ Using the `chmod` command.
-How to add a new user to the system without providing him the ability to log-in into the system?
- - * adduser user_name --shell=/bin/false --no-create-home - +What is systemd?
On a system which uses systemd, how would display the logs? - * journalctl - +journalctl
##### Debugging @@ -912,6 +908,10 @@ hard link can be created only within the same file system. * LV
+
+What is NFS? What is it used for?
+
+
What RAID is used for? Can you explain the differences between RAID 0, 1, 5 and 10?
@@ -1118,6 +1118,10 @@ related to the file like its size, owner, permissions, etc. ##### DNS +
+What is DNS? Why do we need it?
+
+
What the file /etc/resolv.conf is used for? What does it include?
@@ -1151,7 +1155,7 @@ While an A record points a domain name to an IP address, a PTR record does the o
-How do you list the content of a package?
+How do you list the content of a package without actually installing it?
@@ -1743,6 +1747,13 @@ Swarm management which means you can create new swarms in Docker Cloud. Do you know how to create a new user without using adduser/useradd command?
+
+How to add a new user to the system without providing him the ability to log-in into the system?
+ + * adduser user_name --shell=/bin/false --no-create-home +
+ + ## Coding @@ -2628,16 +2639,29 @@ as key-value pair, document-oriented, etc.
What do you tend to include in every script you write?
+ +Few example: + + * Comments on how to run it and/or what it does + * Adding "set -e" since I want the script to exit if a certain command failed + +You can have an entirely different answer. It's based only on your experience.
True or False?: when a certain command/line fails, the script, by default, will exit and will no keep running
-Depends on the language and settings used but in Bash for example, by default the script will keep running. +Depends on the language and settings used. +When a script written in Bash fails to run a certain command it will keep running and will execute all other commands mentioned after the command which failed. +Most of the time we would actually want the opposite to happen. In order to make Bash exist when a specific command fails, use 'set -e' in your script.
Today we have tools and technologies like Ansible. Why would someone still use shell scripting?
+ + * Speed + * The module we need doesn't exist + * We are delivering the scripts to customers who don't have access to the public network and don't necessarily have Ansible installed on their systems.
@@ -2652,10 +2676,19 @@ Depends on the language and settings used but in Bash for example, by default th
How do you debug shell scripts?
+ +Answer depends on the language you are using for writing your scripts. If Bash is used for example then: + + * Adding -x to the script I'm running in Bash + * Old good way of adding echo statements + +If Python, then using pdb is very useful.
How do you get input from the user in shell scripts?
+ +Using the keyword read so for example read x will wait for user input and will store it in the variable x.
@@ -2682,6 +2715,10 @@ Depends on the language and settings used but in Bash for example, by default th What is the difference between single and double quotes?
+
+Write a script which will list the differences between two directories
+
+ #### Advanced