Skip to content

Commit

Permalink
Add a couple of questions
Browse files Browse the repository at this point in the history
  • Loading branch information
abregman committed Nov 24, 2020
1 parent 62505e3 commit 24299d4
Showing 1 changed file with 107 additions and 36 deletions.
143 changes: 107 additions & 36 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@

:information_source:  This repo contains questions and exercises on various technical topics, sometimes related to DevOps and SRE :)

:bar_chart:  There are currently **1344** questions
:bar_chart:  There are currently **1353** questions

:busts_in_silhouette:  [Join](https://www.facebook.com/groups/538897960007080) our [Facebook group](https://www.facebook.com/groups/538897960007080) for additional exercises, articles and more resources on DevOps

Expand Down Expand Up @@ -75,6 +75,9 @@
<td align="center"><a href="#HR"><img src="images/HR.png" width="110px;" height="75px;" alt="HR"/><br /><b>HR</b></a></td>
<td align="center"><a href="#exercises"><img src="images/exercises.png" width="110px;" height="75px;" alt="Exercises"/><br /><b>Exercises</b></a></td>
</tr>
<tr>
<td align="center"><a href="#redis"><img src="images/redis.png" width="75px;" height="75px;" alt="Redis"/><br /><b>Redis</b></a></td>
</tr>
</table>
</center>
<!-- markdownlint-enable -->
Expand Down Expand Up @@ -213,6 +216,16 @@ Stateless applications don't store any data in the host which makes it ideal for
Stateful applications depend on the storage to save state and data, typically databases are stateful applications.
</b></details>

<details>
<summary>What is Reliability? How does it fit DevOps?</summary><br><b>

Reliability, when used in DevOps context, is the ability of a system to recover from infrastructure failure or disruption. Part of it is also being able to scale based on your organization or team demands.
</b></details>

<details>
<summary>What "Availability" means? What means are there to track Availability of a service?</summary><br><b>
</b></details>

<details>
<summary>Describe the workflow of setting up some type of web server (Apache, IIS, Tomcat, ...)</summary><br><b>
</b></details>
Expand All @@ -238,19 +251,17 @@ You should be able to explain those that you mention.
</b></details>

<details>
<summary>You need to install periodically the same package on different operating systems (Ubuntu, RHEL, ...). How would you do it?</summary><br><b>
<summary>You need to install periodically a package (unless it's already exists) on different operating systems (Ubuntu, RHEL, ...). How would you do it?</summary><br><b>

It can be as simple as one Ansible (or other CM tool) task that runs periodically with Cron. In more advanced cases, perhaps a CI system.
</b></details>
There are multiple ways to answer this question (there is no right and wrong here):

<details>
<summary>What is Reliability? How does it fit DevOps?</summary><br><b>

Reliability, when used in DevOps context, is the ability of a system to recover from infrastructure failure or disruption. Part of it is also being able to scale based on your organization or team demands.
* Simple cron job
* Pipeline with configuration management technology (such Puppet, Ansible, Chef, etc.)
...
</b></details>

<details>
<summary>Compare SRE to DevOps</summary><br><b>
<summary>What are the differences between SRE and DevOps?</summary><br><b>
</b></details>

<details>
Expand All @@ -272,9 +283,6 @@ One can argue whether it's per company definition or a global one but at least a

</b></details>

<details>
<summary>What is a post-mortem meeting?</summary><br><b>
</b></details>

<details>
<summary>What is "infrastructure as code"? What implementation of IAC are you familiar with?</summary><br><b>
Expand Down Expand Up @@ -314,12 +322,15 @@ One can argue whether it's per company definition or a global one but at least a
</b></details>

<details>
<summary>Is it right to say implementing or practicing DevOps leads to more secure software?</summary><br><b>
<summary>What do you think about the following sentence?: "implementing or practicing DevOps leads to more secure software"</summary><br><b>
</b></details>

<details>
<summary>Do you know what is a "post-mortem meeting"? What is your opinion on that?</summary><br><b>
</b></details>

<details>
<summary>Tell me how you perform plan capacity for your CI/CD resources (e.g. servers, storage, etc.)</summary><br><b>
<summary>How do you perform plan capacity for your CI/CD resources? (e.g. servers, storage, etc.)</summary><br><b>
</b></details>

<details>
Expand Down Expand Up @@ -364,7 +375,6 @@ Note: cross-dependency is when you have two or more changes to separate projects

## Jenkins


<details>
<summary>What is Jenkins? What have you used it for?</summary><br><b>

Expand Down Expand Up @@ -3402,8 +3412,10 @@ Notes:

<details>
<summary>What readdir() system call does?</summary><br><b>
</b></details>


<details>
<summary>What exactly the command <code>alias x=y</code> does?</summary><br><b>
</b></details>

#### Linux Filesystem & Files
Expand Down Expand Up @@ -4473,6 +4485,12 @@ False. A Kubernetes cluster consists of at least 1 master and 0 or more workers.
* etcd - stores cluster configuration
</b></details>

<details>
<summary>True or False? The API server is the only component which communicates directly with etcd</summary><br><b>

True
</b></details>

<details>
<summary>What are the components of a worker node?</summary><br><b>

Expand Down Expand Up @@ -4649,15 +4667,15 @@ kubectl create quota some-quota --hard-cpu=2,pods=2

```
cat << EOF | kubectl create -f -
> apiVersion: v1
> kind: Pod
> metadata:
> name: nginx
> spec:
> containers:
> - name: nginx
> image: nginx
> EOF
apiVersion: v1
kind: Pod
metadata:
name: nginx
spec:
containers:
- name: nginx
image: nginx
EOF
```
</b></details>

Expand Down Expand Up @@ -4718,11 +4736,17 @@ kubectl delete pods --field-selector=status.phase!='Running'
</b></details>

<details>
<summary>How to display the resources usages of pods?</code></summary><br><b>
<summary>How to display the resources usages of pods?</summary><br><b>

kubectl top pod
</b></details>

<details>
<summary>What <code>kubectl get componentstatus</code> does?</summary><br><b>

Outputs the status of each of the control plane components.
</b></details>

<details>
<summary>What is Minikube?</summary><br><b>

Expand Down Expand Up @@ -5152,7 +5176,7 @@ There are many other characteristics but these are the main ones that every pyth
</b></details>

<details>
<summary>What is mutability? Which of the built-in types in Python are mutable? How can you show that a certain data type is mutable?</summary><br><b>
<summary>What is mutability? Which of the built-in types in Python are mutable?</summary><br><b>

Mutability determines whether you can modify an object of specific type.

Expand All @@ -5169,8 +5193,6 @@ The immutable data types are:
Bool
Tuple
Frozenset

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).
</b></details>

<details>
Expand Down Expand Up @@ -5204,7 +5226,7 @@ You can usually use the function hash() to check an object mutability. If an obj
</b></details>

<details>
<summary>What is the result of `bool("")`? What about `bool(" ")`?</summary><br><b>
<summary>What is the result of `bool("")`? What about `bool(" ")`? Explain</summary><br><b>

bool("") -> evaluates to False
bool(" ") -> evaluates to True
Expand Down Expand Up @@ -5241,7 +5263,12 @@ if lower(input("Insert a character: ")[0]) in "aieou": # Takes care of multiple

<details>
<summary>How to define a function with Python?</summary><br><b>
Using the `def` keyword
Using the `def` keyword. For Examples:

```
def sum(a, b):
return (a + b)
```
</b></details>

<details>
Expand All @@ -5258,7 +5285,6 @@ def my_function():
You can then assign a function to a variables like this `x = my_function` or you can return functions as return values like this `return my_function`
</b></details>


<details>
<summary>Explain inheritance and how to use it in Python</summary><br><b>

Expand Down Expand Up @@ -5443,6 +5469,14 @@ For more details about errors and exceptions follow this [https://docs.python.or
<summary>What is the difference between repr function and str?</summary><br><b>
</b></details>

<details>
<summary>What is the __call__ method?</summary><br><b>
</b></details>

<details>
<summary>Do classes has the __call__ method as well? What for?</summary><br><b>
</b></details>

<details>
<summary>What _ is used for in Python?</summary><br><b>

Expand Down Expand Up @@ -5787,7 +5821,7 @@ set([food for bro in x for food in bro['food']])
```
</b></details>

#### Dictionaries
#### Python Dictionaries

<details>
<summary>How to create a dictionary?</summary><br><b>
Expand All @@ -5800,7 +5834,7 @@ my_dict = dict([('x', 1), ('y', 2)])
</b></details>

<details>
<summary>How to remove an item from a dictionary?</summary><br><b>
<summary>How to remove a key from a dictionary?</summary><br><b>

del my_dict['some_key']
you can also use `my_dict.pop('some_key')` which returns the value of the key.
Expand Down Expand Up @@ -6270,15 +6304,19 @@ PEP8 is a list of coding conventions and style guidelines for Python
#### Flask

<details>
<summary>You wrote you have experience with Django/Flask. Can you describe what is Django/Flask and how you have used it? Why Flask and not Djano? (or vice versa)</summary><br><b>
<summary>Can you describe what is Django/Flask and how you have used it? Why Flask and not Djano? (or vice versa)</summary><br><b>
</b></details>

<details>
<summary>What is a route?</summary><br><b>
</b></details>

<details>
<summary>How do you manage DB integration?</summary><br><b>
<summary>What is a blueprint in Flask?</summary><br><b>
</b></details>

<details>
<summary>What is a template?</summary><br><b>
</b></details>

#### zip
Expand Down Expand Up @@ -7146,6 +7184,12 @@ as key-value pair, document-oriented, etc.
<summary>Can you explain the difference between OpenShift and Kubernetes?</summary><br><b>
</b></details>

<details>
<summary>True or False? OpenShift is a IaaS (infrastructure as a service) solution</summary><br><b>

False. OpenShift is a PaaS (platform as a service) solution.
</b></details>

<details>
<summary>Define Pods and explain what are stateful pods</summary><br><b>
</b></details>
Expand Down Expand Up @@ -8584,6 +8628,16 @@ CPDoS or Cache Poisoned Denial of Service. It poisons the CDN cache. By manipula

</b></details>

#### Security - Threats

<details>
<summary>Explain "Advanced persistent threat (APT)"</summary><br><b>
</b></details>

<details>
<summary>What is a "Backdoor" in information security?</summary><br><b>
</b></details>

## Puppet

<details>
Expand Down Expand Up @@ -9616,6 +9670,14 @@ Not only this will tell you what is expected from you, it will also provide big

## Databases

<details>
<summary>What is sharding?</summary><br><b>

Sharding is a horizontal partitioning.

Are you able to explain what is it good for?
</b></details>

<details>
<summary>What is a connection pool?</summary><br><b>

Expand Down Expand Up @@ -9925,6 +9987,15 @@ Raspberry Pi
<summary>What types of storage are there?</summary><br><b>
</b></details>

## Redis

<details>
<summary>What is Redis?</summary><br><b>

* In memory data structure store
* Open Source
</b></details>

## Big Data

<details>
Expand Down

0 comments on commit 24299d4

Please sign in to comment.