diff --git a/README.md b/README.md index b3f5045..5b7d11d 100644 --- a/README.md +++ b/README.md @@ -2,7 +2,7 @@ :information_source:  This repository contains questions on various DevOps and SRE related topics -:bar_chart:  There are currently **770** questions +:bar_chart:  There are currently **781** questions :books:  To learn more about DevOps check the resources in [DevOpsBit.com](https://devopsbit.com) @@ -63,6 +63,7 @@ Design
Design
+ you
Questions you ask
Challenges
Challenges
@@ -1308,7 +1309,7 @@ Each number has different meaning, based on how the application was developed. I consider this as a good blog post to read more about it: https://shapeshed.com/unix-exit-codes -##### Storage, Filesystem +##### Storage & Filesystem
What's an inode?
@@ -1404,6 +1405,10 @@ True What is lazy umount?
+
+What is tmpfs?
+
+
Fix the following commands: @@ -1896,6 +1901,15 @@ This is a good article about the topic: https://ops.tips/blog/how-linux-creates- You executed a script and while still running, it got accidentally removed. Is it possible to restore the script while it's still running?
+#### Memory + +
+What is the difference between MemFree and MemAvailable in /proc/meminfo?
+ +MemFree - The amount of unused physical RAM in your system +MemAvailable - The amount of available memory for new workloads (without pushing system to use swap) based on MemFree, Active(file), Inactive(file), and SReclaimable. +
+ ## Operating System @@ -1961,6 +1975,15 @@ False. It was true in the past but today's operating systems perform lazy loadin Explain what is Semaphore and what its role in operating systems
+#### Memory + +
+What is cache? What is buffer?
+ +Buffer: Reserved place in RAM which is used to hold data for temporary purposes +Cache: Cache is usually used when processes reading and writing to the disk to make the process faster by making similar data used by different programs easily accessible. +
+ ## Virtualization @@ -2775,6 +2798,10 @@ The immutable data types are: You can usually use the function hash() to check an object mutability. If an object is hashable, it is immutable (although this does not always work as intended as user defined objects might be mutable and hashable).
+
+Explain set and frozenset types. What would you use them for?
+
+
In Python, functions are first-class objects. What does it mean?
@@ -2956,6 +2983,10 @@ Generally, every compiling process have a two steps. Explain what is GIL
+
+Explain the @property decorator
+
+
What is Lambda? How is it used?
@@ -3022,6 +3053,20 @@ some_list[:3] ```
+
+How to sort list be the length of items?
+ +``` +sorted_li = sorted(li, key=len) +``` + +Or without creating a new list: + +``` +li.sort(key=len) +``` +
+
Do you know what is the difference between list.sort() and sorted(list)?
@@ -4991,6 +5036,10 @@ Authorization is the process of identifying what level of access the service or What is air-gapped network (or air-gapped environment)? What its advantages and disadvantages?
+
+Explain what is Buffer Overflow
+
+ ##### Containers
@@ -5462,6 +5511,12 @@ TODO: explain what is actually a Cookie What is faster than RAM?
+
+What is the C10K problem? Is it relevant today?
+ +https://idiallo.com/blog/c10k-2016 +
+ ## HR Although the following questions are not DevOps related, they are still quite common and part of the DevOps interview process so it's better to prepare for them as well. @@ -5569,6 +5624,8 @@ You can use and elaborate on one or all of the following: ## Questions you CAN ask + + A list of questions you as a candidate can ask the interviewer during or after the interview. These are only a suggestion, use them carefully. Not every interviewer will be able to answer these (or happy to) which should be perhaps a red flag warning for your regarding working in such place but that's really up to you. @@ -5632,6 +5689,22 @@ Vertical Scaling is the process of adding resources to increase power of existin Horizontal Scaling is the process of adding more resources that will be able handle requests as one unit
+
+How would you update each of the services in the following drawing without having app (foo.com) downtime?
+ +

+
+ +
+Users report that there is huge spike in process time when adding little bit more data to process as an input. What might be the problem?
+ +

+
+ +
+How would you scale the architecture from the previous question to hundreds of users?
+
+ ## Challenges Challenges require you one of the following: diff --git a/credits.md b/credits.md index 11dfb9c..5ba915b 100644 --- a/credits.md +++ b/credits.md @@ -12,3 +12,4 @@ Linux, Kubernetes and Prometheus logos are trademarks of The Linux Foundation®< Mongo logo is a trademark of Mongo®
Distributed logo by Flatart
Challenge icon by Elizabeth Arostegui in Technology Mix +"Question you ask" icon (man raising hand) by [Webalys](https://www.iconfinder.com/webalys) diff --git a/images/design/cdn-no-downtime.png b/images/design/cdn-no-downtime.png new file mode 100644 index 0000000..fbc5d22 Binary files /dev/null and b/images/design/cdn-no-downtime.png differ diff --git a/images/design/input-process-output.png b/images/design/input-process-output.png new file mode 100644 index 0000000..4986a0a Binary files /dev/null and b/images/design/input-process-output.png differ diff --git a/images/you.png b/images/you.png new file mode 100644 index 0000000..4111e94 Binary files /dev/null and b/images/you.png differ