From 12d6f698bfda40094baa6ebb71c839fcedc20780 Mon Sep 17 00:00:00 2001 From: abregman Date: Sun, 20 Oct 2019 21:37:52 +0300 Subject: [PATCH] Add a couple of questions --- README.md | 110 ++++++++++++++++++++++++++++++++++++++++++++---------- 1 file changed, 90 insertions(+), 20 deletions(-) diff --git a/README.md b/README.md index 9ffd10d..493d6f7 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 **271** questions +:bar_chart:  There are currently **282** questions :warning:  You don't need to know how to answer all the questions in this repo. DevOps is not about knowing all :) @@ -538,7 +538,11 @@ CSMA/CD algorithm: #### :baby: Beginner
-Explain what each of the following commands does and given an example on how to use it: +What is your experience with Linux? When you can set up an application on multiple operating systems, on which one would you prefer to set it up and why?
+
+ +
+Explain what each of the following commands does and give an example on how to use it: * ls * rm @@ -565,6 +569,10 @@ With cron, tasks are scheduled using the following format: The tasks are stored in a cron file.
+
+Have you scheduled tasks in the past? What kind of tasks?
+
+ ##### Permissions
@@ -577,6 +585,10 @@ The tasks are stored in a cron file. * 777 * 644 * 750
+ +777 - means you are lazy +644 - owner has read+write permissions and everyone else can only read +750 - owner can do anything, group can read and execute and others can do nothing
@@ -591,27 +603,35 @@ The tasks are stored in a cron file. On a system which uses systemd, how would display the logs?
-
-What commands are you using for troubleshooting issues? specifically: +##### Debugging - * Disk issues - * Memory, CPU issues - * Networking issues
+
+What are you using for troubleshooting and debugging network issues?
+ +dstat -t is great for identifying network and disk issues.
-What is the difference between Linux and Unix?
+What are you using for troubleshooting and debugging disk issues?
+ +dstat -t is great for identifying network and disk issues.
-Are you familiar with the following process monitoring tools and commands?: +What are you using for troubleshooting and debugging networking issues?
+
- * top - * ps - * htop - * atop - * lsof -Can you explain when are you using each one?
+
+What are you using for troubleshooting and debugging process issues?
+ +strace is great for understanding what your program does. It prints every system call your program executed. +
+ +
+You get a call saying "my system is slow" - how would you deal with it?
+ +1. Check with top if anything consumes your CPU or RAM. +2. Run dstat -t to check if it's related to disk or network.
@@ -720,6 +740,17 @@ As to why, since some commands/processes can take a lot of time to finish execution or run forever
+
+Are you familiar with the following process monitoring tools and commands?: + + * top + * ps + * htop + * atop + * lsof +Can you explain when are you using each one?
+
+
What signal is used when you run 'kill '?
@@ -777,7 +808,7 @@ Zombie
-What does strace does?
+What strace does?
@@ -890,11 +921,23 @@ While an A record points a domain name to an IP address, a PTR record does the o #### :star: Advanced
-What happens in the OS when you execute ls?
+What happens when you execute ls? provide a detailed answer
-How processes are being created?
+Can you describe how processes are being created?
+
+ +
+What's happening in the following code?: + +``` +open("/my/file") = 5 +read(5, "file content") +``` +
+ +those are system calls for reading the file /my/file and 5 is the file descriptor number.
##### Network @@ -1238,14 +1281,41 @@ You use it this way: variable “my_var” {}
-What is "tainted resource"?
+What is a "tainted resource"?
+ +It's a resource which was successfully created but failed during provisioning. Terraform will fail and mark this resource as "tainted". +
+ +
+What terraform taint does?
+
+ +
+What types of variables are supported in Terraform?
+ +Strimg +Integer +Map +List +
+ +
+What are output variables and what terraform output does?
+
+ +
+Explain Modules +
+ +
+What is the Terraform Registry?
#### :star: Advanced
-Explain "remote state". When would you use it and how?
+Explain "Remote State". When would you use it and how?