diff --git a/README.md b/README.md index e0b31b8..d95b01d 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 **726** questions +:bar_chart:  There are currently **733** questions :books:  To learn more about DevOps check the resources in [DevOpsBit.com](https://devopsbit.com) @@ -110,7 +110,7 @@ Make sure to elaborate :)
What are the anti-patterns of DevOps?
-* Now allowing to push in production on Friday :) +* Not allowing to push in production on Friday :) * One specific person is in charge of different tasks. For example there is only one person who is allowed to merge the code of everyone else * Treating production differently from development environment. For example, not implementing security in development environment
@@ -2467,7 +2467,11 @@ Kubernetes is especially good for scenarios when you no longer running small num
-Explain what is a Pod
+Explain what is a Kubernetes pod
+
+ +
+Explain what is a Kubernetes node
@@ -2498,6 +2502,18 @@ In case we find out there was a temporary issue with the pod or the system, we c Setting the replicas to 0 will shut down the process. Now start it with `kubectl scale deployment [name] --replicas=1`
+
+What the Kubernetes Scheduler does?
+
+ +
+Explain what is Kubelet
+
+ +
+What happens to running pods if if you stop Kubelet on the worker nodes?
+
+
Describe how roll-back works
@@ -2664,7 +2680,7 @@ There are many other characteristics but these are the main ones that every pyth
-What build-in types Python has? Which of them are mutable? How can you show that a certain data type is mutable?
+What built-in types Python has? Which of them are mutable? How can you show that a certain data type is mutable?
The mutable data types are: @@ -2868,10 +2884,6 @@ Generally, every compiling process have a two steps. What is Lambda? How is it used?
-
-What // is used for?
-
-
How do you swap values between two variables?
@@ -2898,8 +2910,35 @@ def return_sum(): ```
+
+Print the average of [2, 5, 6]. It should be rounded to 3 decimal places
+ +``` +li = [2, 5, 6] +print("{0:.3f}".format(sum(li)/len(li))) +``` +
+ #### Lists +
+How do you get the maximum and minimum values from a list? How to get the last item from a list?
+ +``` +Maximum: max(some_list) +Minimum: min(some_list) +Last item: some_list[-1] +``` +
+ +
+How to get the top/biggest 3 items from a list?
+ +``` +sorted(some_list, reverse=True)[:3] +``` +
+
How to merge two sorted lists into one sorted list?
@@ -3087,6 +3126,20 @@ y = ''.join(set(x)) Find the frequency of each character in string
+
+What is the result of each of the following? +``` +>> ', '.join(["One", "Two", "Three"]) +>> " ".join("welladsadgadoneadsadga".split("adsadga")[:2]) +>> "".join(["c", "t", "o", "a", "o", "q", "l"])[0::2] +
+``` +>>> 'One, Two, Three' +>>> 'well done' +>>> 'cool' +``` +
+
How to reverse a string? (e.g. pizza -> azzip)