From 4921318f7d8de76ee6474e37c794a80480b1594e Mon Sep 17 00:00:00 2001 From: abregman Date: Sun, 20 Oct 2019 01:25:34 +0300 Subject: [PATCH] Add 20 new questions --- README.md | 113 ++++++++++++++++++++++++++++++++++++++++++++++++++---- 1 file changed, 105 insertions(+), 8 deletions(-) diff --git a/README.md b/README.md index 1b9bc9d..61d9d19 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 **230** questions +:bar_chart:  There are currently **250** questions :warning:  You don't need to know how to answer all the questions in this repo. DevOps is not about knowing all :) @@ -24,7 +24,7 @@ DevOps
DevOps

Beginner :baby:
Advanced :star: Jenkins
Jenkins

Beginner :baby:
Advanced :star: AWS
AWS

Beginner :baby:
- Network
Network

Beginner :baby:
+ Network
Network

Beginner :baby:
Advanced :star: Linux
Linux

Beginner :baby:
Advanced :star: Ansible
Ansible

Beginner :baby:
Terraform
Terraform

Beginner :baby:
@@ -277,6 +277,10 @@ Note: cross-dependency is when you have two or more changes to separate projects How to secure Jenkins?
+
+Can you describe some of Jenkins best practices?
+
+ #### :star: Advanced @@ -297,7 +301,7 @@ Note: cross-dependency is when you have two or more changes to separate projects
-What are some of Jenkins limitations?
+What are some of Jenkins limitations?
* Testing cross-dependencies (changes from multiple projects together) * Starting builds from any stage (although cloudbees implemented something called checkpoints) @@ -501,6 +505,35 @@ CSMA/CD algorithm: What is NAT? How it works?
+ +#### :star: Advanced + +
+Explain Spanning Tree Protocol (STP)
+
+ +
+What is link aggregation? Why is it used?
+
+ +
+What is Asymmetric Routing? How do deal with it?
+
+ +
+What is GRE? How it works?
+
+ +
+Explain OSPF
+
+ +
+Using Hammind code, what would be the code word for the following data word 100111010001101?
+ +00110011110100011101 +
+ ## Linux @@ -515,6 +548,7 @@ CSMA/CD algorithm: * grep * wc * touch + * man * df
@@ -555,6 +589,10 @@ The tasks are stored in a cron file. How to add a new user to the system without providing him the ability to log-in into the system?
+
+On a system which uses systemd, how would display the logs? +
+
What commands are you using for troubleshooting issues? specifically: @@ -700,6 +738,10 @@ SIGKILL - a signal which cannot caught or ignored To view all available signals run `kill -l`
+
+What happens when you press ctrl + c?
+
+
What are daemons?
@@ -714,6 +756,10 @@ Terminated Zombie +
+What is a zombie process? How do you get rid of it? +
+
What is the init process?
@@ -746,7 +792,7 @@ You can use the split command this way: split -l 25 some_file
What is a file descriptor? What file descriptors are you familiar with?
- +Kerberos File descriptor, also known as file handler, is a unique number which identifies an open file in the operating system. In Linux (and Unix) the first three file descriptors are: @@ -776,6 +822,10 @@ related to the file like its size, owner, permissions, etc. What is SELiunx?
+
+What is Kerberos?
+
+
What is nftables?
@@ -784,6 +834,16 @@ related to the file like its size, owner, permissions, etc. What firewalld daemon is responsible for?
+##### Network + +
+How can you turn your Linux server into a router?
+
+ +
+What is the routing table? How do you view it?
+
+ ##### DNS
@@ -829,6 +889,8 @@ While an A record points a domain name to an IP address, a PTR record does the o How processes are being created?
+##### Network +
When you run ip a you see there is a device called 'lo'. What is it and why do we need it?
@@ -838,7 +900,7 @@ While an A record points a domain name to an IP address, a PTR record does the o
-What is the routing table? How do you view it?
+What is network bonding? What types are you familiar with?
@@ -880,6 +942,9 @@ This is a good article about the topic: https://ops.tips/blog/how-linux-creates- ## Ansible + +#### :baby: Beginner +
Describe each of the following components in Ansible, including the relationship between them: @@ -899,6 +964,10 @@ Playbook – One or more plays. Each play can be executed on the same or differe Role – Ansible roles allows you to group resources based on certain functionality/service such that they can be easily reused. In a role, you have directories for variables, defaults, files, templates, handlers, tasks, and metadata. You can then use the role by simply specifying it in your playbook.
+
+What are some of Ansible best practices?
+
+
What is an inventory file and how you define one?
@@ -1085,6 +1154,10 @@ The benefits of Terraform over the other tools: You use it this way: variable “my_var” {}
+
+Give an example of several Terraform best practices
+
+ ## Docker @@ -1300,6 +1373,10 @@ Shortest way is: my_string[::-1] but it doesn't mean it's the most Explain what is GIL
+
+What is a generator? Why using generators? +
+ #### :star: Advanced @@ -1327,13 +1404,18 @@ Shortest way is: my_string[::-1] but it doesn't mean it's the most Explain Descriptors
+
+You create a web page where a user can upload a document. But the function which reads the uploaded files, runs for a long time, based on the document size. How can you overcome this?
+
+ ## Prometheus
Describe the following Prometheus components: - - Prometheus server - - Push Gateway - - Alert Manager
+ + * Prometheus server + * Push Gateway + * Alert Manager
Prometheus server responsible for scraping the storing the data
Push gateway is used for short-lived jobs
@@ -1601,6 +1683,9 @@ Depends on the language and settings used but in Bash for example, by default th How do you check variable length?
+
+What is the difference between single and double quotes?
+
#### Advanced @@ -1613,6 +1698,18 @@ Depends on the language and settings used but in Bash for example, by default th
+
+Can you give an example to some Bash best practices?
+
+ +
+What is the ternary operator? How do you use it in bash?
+ +A short way of using if/else. An example: + +[[ $a = 1 ]] && b="yes, equal" || b="nope" +
+ ## Scenarios Scenarios are questions which don't have verbal answer and require you one of the following: