From 31dbfbbc9d2d9c4f31ab014ddb40a61119e66ab3 Mon Sep 17 00:00:00 2001 From: abregman Date: Mon, 3 Feb 2020 23:25:45 +0200 Subject: [PATCH] Add a couple of questions --- README.md | 69 ++++++++++++++++++++++++++++++++++++++++++++++++++----- 1 file changed, 63 insertions(+), 6 deletions(-) diff --git a/README.md b/README.md index 9f3421b..9e88028 100644 --- a/README.md +++ b/README.md @@ -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 **864** questions +:bar_chart:  There are currently **871** questions :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 @@ -2180,7 +2180,7 @@ Role – Ansible roles allows you to group resources based on certain functional Ansible is: -* Agent-less +* Agentless * Minimal run requirements (Python & SSH) and simple to use * Default mode is "push" (it supports also pull) * Focus on simpleness and ease-of-use @@ -2188,6 +2188,10 @@ Ansible is:
What kind of automation you wouldn't do with Ansible and why?
+ +While it's possible to provision resources with Ansible it might not be the best choice for doing so as Ansible doesn't +save state by default and a task that creates 5 instances, when executed again will create additional 5 instances (unless +additional check is implemented).
@@ -2326,6 +2330,18 @@ When given a written code, always inspect it thoroughly. If your answer is “th ```
+
+Write a single task that verifies all the files in files_list variable exist on the host
+ +``` +- name: Ensure all files exist + assert: + that: + - item.stat.exists + loop: "{{ files_list }}" +``` +
+
Write a playbook to deploy the file ‘/tmp/system_info’ on all hosts except for controllers group, with the following content
@@ -2471,6 +2487,10 @@ Gotenks = 32 What is Molecule? How it works?
+
+You run Ansibe tests and you get "idempotence test failed". What does it mean? Why idempotence is important?
+
+ ## Terraform @@ -2574,7 +2594,7 @@ It's a resource which was successfully created but failed during provisioning. T
What terraform taint does?
-terraform taint resource.id manually marks the resource as tainted in the state file. So when you terraform apply the next time, the resource will be destroyed and recreated. +terraform taint resource.id manually marks the resource as tainted in the state file. So when you run terraform apply the next time, the resource will be destroyed and recreated.
@@ -2771,10 +2791,15 @@ A common answer to this is to use [hadolint](https://github.com/hadolint/hadolin Explain what is Docker compose and what is it used for
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. + +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.
-What are the differences between Docker compose, Docker swarm and Kubernetes?
+Describe the process of using Docker Compose

+ +* Define the services you would like to run together in a docker-compose.yml file +* Run `docker-compose up` to run the services
@@ -3070,7 +3095,7 @@ The average performance of the above algorithm is O(log n). Best performance can * Radix Sort
-##### Data Structures & Types +#### Data Structures & Types
Implement Stack in any language you would like
@@ -3080,6 +3105,10 @@ The average performance of the above algorithm is O(log n). Best performance can Implement Hash table in any language you would like
+
+What is Integer Overflow? How is it handled?
+
+ #### :star: Advanced @@ -5903,6 +5932,12 @@ From the official docs: "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."
+
+You see in Kibana, after clicking on Discover, "561 hits". What does it mean?
+ +Total number of documents matching the search results. If not query used then simply the total number of documents. +
+
What visualization types are supported/included in Kibana?
@@ -6038,7 +6073,29 @@ It's an architecture in which data is and retrieved from a single, non-shared, s ## General -##### HTTP +
+Define or Explain what is an API
+ +I like this definition from [here](https://blog.christianposta.com/microservices/api-gateways-are-going-through-an-identity-crisis): + +"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." +
+ +#### Jira + +
+Explain/Demonstrate the following types in Jira: + + * Epic + * Story + * Task
+
+ +
+What is a project in Jira?
+
+ +#### HTTP
What is HTTP?