Skip to content

Commit 31dbfbb

Browse files
author
abregman
committed
Add a couple of questions
1 parent dbedc63 commit 31dbfbb

File tree

1 file changed

+63
-6
lines changed

1 file changed

+63
-6
lines changed

README.md

Lines changed: 63 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22

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

5-
:bar_chart:  There are currently **864** questions
5+
:bar_chart:  There are currently **871** questions
66

77
:warning:  You can use these for preparing for an interview but most of the questions and exercises don't represent an actual interview. Please read [Q&A](common-qa.md) for more details
88

@@ -2180,14 +2180,18 @@ Role – Ansible roles allows you to group resources based on certain functional
21802180

21812181
Ansible is:
21822182

2183-
* Agent-less
2183+
* Agentless
21842184
* Minimal run requirements (Python & SSH) and simple to use
21852185
* Default mode is "push" (it supports also pull)
21862186
* Focus on simpleness and ease-of-use
21872187
</b></details>
21882188

21892189
<details>
21902190
<summary>What kind of automation you wouldn't do with Ansible and why?</summary><br><b>
2191+
2192+
While it's possible to provision resources with Ansible it might not be the best choice for doing so as Ansible doesn't
2193+
save state by default and a task that creates 5 instances, when executed again will create additional 5 instances (unless
2194+
additional check is implemented).
21912195
</b></details>
21922196

21932197
<details>
@@ -2326,6 +2330,18 @@ When given a written code, always inspect it thoroughly. If your answer is “th
23262330
```
23272331
</b></details>
23282332

2333+
<details>
2334+
<summary>Write a single task that verifies all the files in files_list variable exist on the host</summary><br><b>
2335+
2336+
```
2337+
- name: Ensure all files exist
2338+
assert:
2339+
that:
2340+
- item.stat.exists
2341+
loop: "{{ files_list }}"
2342+
```
2343+
</b></details>
2344+
23292345
<details>
23302346
<summary>Write a playbook to deploy the file ‘/tmp/system_info’ on all hosts except for controllers group, with the following content</summary><br><b>
23312347

@@ -2471,6 +2487,10 @@ Gotenks = 32
24712487
<summary>What is Molecule? How it works?</summary><br><b>
24722488
</b></details>
24732489

2490+
<details>
2491+
<summary>You run Ansibe tests and you get "idempotence test failed". What does it mean? Why idempotence is important?</summary><br><b>
2492+
</b></details>
2493+
24742494
## Terraform
24752495

24762496
<a name="terraform-beginner"></a>
@@ -2574,7 +2594,7 @@ It's a resource which was successfully created but failed during provisioning. T
25742594

25752595
<details>
25762596
<summary>What <code>terraform taint</code> does?</summary><br><b>
2577-
<code>terraform taint resource.id</code> manually marks the resource as tainted in the state file. So when you <code>terraform apply</code> the next time, the resource will be destroyed and recreated.
2597+
<code>terraform taint resource.id</code> manually marks the resource as tainted in the state file. So when you run <code>terraform apply</code> the next time, the resource will be destroyed and recreated.
25782598
</b></details>
25792599

25802600
<details>
@@ -2771,10 +2791,15 @@ A common answer to this is to use [hadolint](https://github.com/hadolint/hadolin
27712791
<summary>Explain what is Docker compose and what is it used for</summary><br><b>
27722792

27732793
Compose is a tool for defining and running multi-container Docker applications. With Compose, you use a YAML file to configure your application’s services. Then, with a single command, you create and start all the services from your configuration.
2794+
2795+
For example, you can use it to set up ELK stack where the services are: elasticsearch, logstash and kibana. Each running in its own container.
27742796
</b></details>
27752797

27762798
<details>
2777-
<summary>What are the differences between Docker compose, Docker swarm and Kubernetes?</summary><br><b>
2799+
<summary>Describe the process of using Docker Compose</summary><br><br>
2800+
2801+
* Define the services you would like to run together in a docker-compose.yml file
2802+
* Run `docker-compose up` to run the services
27782803
</b></details>
27792804

27802805
<details>
@@ -3070,7 +3095,7 @@ The average performance of the above algorithm is O(log n). Best performance can
30703095
* Radix Sort</summary><br><b>
30713096
</b></details>
30723097

3073-
##### Data Structures & Types
3098+
#### Data Structures & Types
30743099

30753100
<details>
30763101
<summary>Implement Stack in any language you would like</summary><br><b>
@@ -3080,6 +3105,10 @@ The average performance of the above algorithm is O(log n). Best performance can
30803105
<summary>Implement Hash table in any language you would like</summary><br><b>
30813106
</b></details>
30823107

3108+
<details>
3109+
<summary>What is Integer Overflow? How is it handled?</summary><br><b>
3110+
</b></details>
3111+
30833112
<a name="coding-advanced"></a>
30843113
#### :star: Advanced
30853114

@@ -5903,6 +5932,12 @@ From the official docs:
59035932
"Kibana is an open source analytics and visualization platform designed to work with Elasticsearch. You use Kibana to search, view, and interact with data stored in Elasticsearch indices. You can easily perform advanced data analysis and visualize your data in a variety of charts, tables, and maps."
59045933
</b></details>
59055934

5935+
<details>
5936+
<summary>You see in Kibana, after clicking on Discover, "561 hits". What does it mean?</summary><br><b>
5937+
5938+
Total number of documents matching the search results. If not query used then simply the total number of documents.
5939+
</b></details>
5940+
59065941
<details>
59075942
<summary>What visualization types are supported/included in Kibana?</summary><br><b>
59085943
</b></details>
@@ -6038,7 +6073,29 @@ It's an architecture in which data is and retrieved from a single, non-shared, s
60386073

60396074
## General
60406075

6041-
##### HTTP
6076+
<details>
6077+
<summary>Define or Explain what is an API</summary><br><b>
6078+
6079+
I like this definition from [here](https://blog.christianposta.com/microservices/api-gateways-are-going-through-an-identity-crisis):
6080+
6081+
"An explicitly and purposefully defined interface designed to be invoked over a network that enables software developers to get programmatic access to data and functionality within an organization in a controlled and comfortable way."
6082+
</b></details>
6083+
6084+
#### Jira
6085+
6086+
<details>
6087+
<summary>Explain/Demonstrate the following types in Jira:
6088+
6089+
* Epic
6090+
* Story
6091+
* Task</summary><br><b>
6092+
</b></details>
6093+
6094+
<details>
6095+
<summary>What is a project in Jira?</summary><br><b>
6096+
</b></details>
6097+
6098+
#### HTTP
60426099

60436100
<details>
60446101
<summary>What is HTTP?</summary><br><b>

0 commit comments

Comments
 (0)