22
33:information_source :   ; This repository contains questions on various DevOps and SRE related topics
44
5- :bar_chart :   ; There are currently ** 726 ** questions
5+ :bar_chart :   ; There are currently ** 733 ** questions
66
77:books :   ; To learn more about DevOps check the resources in [ DevOpsBit.com] ( https://devopsbit.com )
88
@@ -110,7 +110,7 @@ Make sure to elaborate :)
110110<details >
111111<summary >What are the anti-patterns of DevOps?</summary ><br ><b >
112112
113- * Now allowing to push in production on Friday :)
113+ * Not allowing to push in production on Friday :)
114114* 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
115115* Treating production differently from development environment. For example, not implementing security in development environment
116116</b ></details >
@@ -2467,7 +2467,11 @@ Kubernetes is especially good for scenarios when you no longer running small num
24672467</b ></details >
24682468
24692469<details >
2470- <summary >Explain what is a Pod</summary ><br ><b >
2470+ <summary >Explain what is a Kubernetes pod</summary ><br ><b >
2471+ </b ></details >
2472+
2473+ <details >
2474+ <summary >Explain what is a Kubernetes node</summary ><br ><b >
24712475</b ></details >
24722476
24732477<details >
@@ -2498,6 +2502,18 @@ In case we find out there was a temporary issue with the pod or the system, we c
24982502Setting the replicas to 0 will shut down the process. Now start it with ` kubectl scale deployment [name] --replicas=1 `
24992503</b ></details >
25002504
2505+ <details >
2506+ <summary >What the Kubernetes Scheduler does?</summary ><br ><b >
2507+ </b ></details >
2508+
2509+ <details >
2510+ <summary >Explain what is Kubelet</summary ><br ><b >
2511+ </b ></details >
2512+
2513+ <details >
2514+ <summary >What happens to running pods if if you stop Kubelet on the worker nodes?</summary ><br ><b >
2515+ </b ></details >
2516+
25012517<details >
25022518<summary >Describe how roll-back works</summary ><br ><b >
25032519</b ></details >
@@ -2664,7 +2680,7 @@ There are many other characteristics but these are the main ones that every pyth
26642680</b ></details >
26652681
26662682<details >
2667- <summary >What build -in types Python has? Which of them are mutable? How can you show that a certain data type is mutable?</summary ><br ><b >
2683+ <summary >What built -in types Python has? Which of them are mutable? How can you show that a certain data type is mutable?</summary ><br ><b >
26682684
26692685The mutable data types are:
26702686
@@ -2868,10 +2884,6 @@ Generally, every compiling process have a two steps.
28682884<summary >What is Lambda? How is it used?</summary ><br ><b >
28692885</b ></details >
28702886
2871- <details >
2872- <summary >What <code >//</code > is used for?</summary ><br ><b >
2873- </b ></details >
2874-
28752887<details >
28762888<summary >How do you swap values between two variables?</summary ><br ><b >
28772889
@@ -2898,8 +2910,35 @@ def return_sum():
28982910```
28992911</b ></details >
29002912
2913+ <details >
2914+ <summary >Print the average of [2, 5, 6]. It should be rounded to 3 decimal places</summary ><br ><b >
2915+
2916+ ```
2917+ li = [2, 5, 6]
2918+ print("{0:.3f}".format(sum(li)/len(li)))
2919+ ```
2920+ </b ></details >
2921+
29012922#### Lists
29022923
2924+ <details >
2925+ <summary >How do you get the maximum and minimum values from a list? How to get the last item from a list?</summary ><br ><b >
2926+
2927+ ```
2928+ Maximum: max(some_list)
2929+ Minimum: min(some_list)
2930+ Last item: some_list[-1]
2931+ ```
2932+ </b ></details >
2933+
2934+ <details >
2935+ <summary >How to get the top/biggest 3 items from a list?</summary ><br ><b >
2936+
2937+ ```
2938+ sorted(some_list, reverse=True)[:3]
2939+ ```
2940+ </b ></details >
2941+
29032942<details >
29042943<summary >How to merge two sorted lists into one sorted list?</summary ><br ><b >
29052944</b ></details >
@@ -3087,6 +3126,20 @@ y = ''.join(set(x))
30873126<summary >Find the frequency of each character in string</summary ><br ><b >
30883127</b ></details >
30893128
3129+ <details >
3130+ <summary >What is the result of each of the following?
3131+ ```
3132+ >> ', '.join(["One", "Two", "Three"])
3133+ >> " ".join("welladsadgadoneadsadga".split("adsadga")[:2])
3134+ >> "".join(["c", "t", "o", "a", "o", "q", "l"])[0::2]
3135+ </summary><br><b>
3136+ ```
3137+ >>> 'One, Two, Three'
3138+ >>> 'well done'
3139+ >>> 'cool'
3140+ ```
3141+ </b></details>
3142+
30903143<details>
30913144<summary>How to reverse a string? (e.g. pizza -> azzip)</summary><br><b>
30923145
0 commit comments