From 7c5f66ee2b9e5174773ba268caf01b9f2136b189 Mon Sep 17 00:00:00 2001 From: abregman Date: Wed, 20 Jan 2021 14:15:20 +0200 Subject: [PATCH] Add a couple of answers and one new question --- README.md | 88 +++++++++++++++++++++++++++++++++++++------------------ 1 file changed, 60 insertions(+), 28 deletions(-) diff --git a/README.md b/README.md index 878598d..6e2295b 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 **1417** questions +:bar_chart:  There are currently **1418** 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 @@ -98,10 +98,13 @@ Red Hat: "DevOps describes approaches to speeding up the processes by which an idea (like a new software feature, a request for enhancement, or a bug fix) goes from development to deployment in a production environment where it can provide value to the user. These approaches require that development teams and operations teams communicate frequently and approach their work with empathy for their teammates. Scalability and flexible provisioning are also necessary. With DevOps, those that need power the most, get it—through self service and automation. Developers, usually coding in a standard development environment, work closely with IT operations to speed software builds, tests, and releases—without sacrificing reliability." +Google: + +"...The organizational and cultural movement that aims to increase software delivery velocity, improve service reliability, and build shared ownership among software stakeholders"
-What are the benefits of DevOps? What it can help us to achieve?
+What are the benefits of DevOps? What can it help us to achieve?
* Collaboration * Improved delivery @@ -114,9 +117,9 @@ Red Hat:
What are the anti-patterns of DevOps?
-* One person is in charge of different tasks. For example there is only one person who is allowed to merge the code of everyone else +* One person is in charge of different tasks. For example there is only one person who is allowed to merge the code of everyone else into the repository * Treating production differently from development environment. For example, not implementing security in development environment -* Not allowing to push to production on Friday ;) +* Not allowing someone to push to production on Friday ;)
@@ -130,7 +133,7 @@ Each piece of code (change/patch) is verified, to make the change is safe to mer
Can you describe an example of a CI (and/or CD) process starting the moment a developer submitted a change/PR to a repository?
-There is no one answer for such question as CI processes vary depending on the technologies used and the type of the project to where the change was submitted. +There are many answers for such question as CI processes vary depending on the technologies used and the type of the project to where the change was submitted. Such processes can include one or more of the following stages: * Compile @@ -142,9 +145,9 @@ Such processes can include one or more of the following stages: For example: -A developer submitted a PR to a project. The PR triggered two jobs (or one combined job). One job for lint-testing the change and the second job for building a package using the submitted change and running multiple api/scenario tests. Once all tests passed and the change was approved by a maintainer/core, it's merged/pushed to the repository. If some of the tests failed, the change will not be allowed to merged/pushed to the repository. +A developer submitted a pull request to a project. The PR (pull request) triggered two jobs (or one combined job). One job for running lint test on the change and the second job for building a package which includes the submitted change, and running multiple api/scenario tests using that package. Once all tests passed and the change was approved by a maintainer/core, it's merged/pushed to the repository. If some of the tests failed, the change will not be allowed to merged/pushed to the repository. -A different process can describe how a developer pushes code to a repository, a workflow then triggered to build a container image and push it the registry. Once in the registry, the k8s cluster is applied with the new changes. +A complete different CI process can describe how a developer pushes code to a repository, a workflow then triggered to build a container image and push it to the registry. Once in the registry, the k8s cluster is applied with the new changes.
@@ -164,15 +167,27 @@ For more info please read [here](https://www.atlassian.com/continuous-delivery/c
-Would you prefer a "configuration->deployment" model or "deployment->configuration"?
+Would you prefer a "configuration->deployment" model or "deployment->configuration"? Why?
+ +Both has advantages and disadvantages. +With "configuration->deployment" model for example, where you configure/build one image to be used by multiple deployments, there is less chance of deployments being different from one another so it has a clear advantage of a consistent environment.
What CI/CD best practices are you familiar with? Or what do you consider as CI/CD best practice?
+ +* Automated process of building, testing and deploying software +* Commit and test often +* Testing/Staging environment should be a clone of production environment
-Where do you store CI/CD pipelines? (Application repository, one central repository, ...)? Why?
+Where do you store CI/CD pipelines? Why?
+ +There are multiple approaches as to where to store the CI/CD pipeline definitions: + +1. App Repository - store them in the same repository of the application they are building or testing +2. Central Repository - store all organization's/project's CI/CD pipelines in one separate repository
@@ -185,14 +200,16 @@ For more info please read [here](https://www.atlassian.com/continuous-delivery/c * Logging * Code review * Code coverage + * Containers and Containers Orchestration * Tests
- * CI/CD - Jenkins, Circle CI, Travis + * CI/CD - Jenkins, Circle CI, Travis, Drone, Argo CD, Zuul * Provisioning infrastructure - Terraform, CloudFormation * Configuration Management - Ansible, Puppet, Chef * Monitoring & alerting - Prometheus, Nagios * Logging - Logstash, Graylog, Fluentd * Code review - Gerrit, Review Board * Code coverage - Cobertura, Clover, JaCoCo + * Containers and Containers Orchestration - Docker, Podman, Kubernetes, Nomad * Tests - Robot, Serenity, Gauge
@@ -200,9 +217,10 @@ For more info please read [here](https://www.atlassian.com/continuous-delivery/c What are you taking into consideration when choosing a tool/technology?
In your answer you can mention one or more of the following: - * mature vs. cutting edge + * mature/stable vs. cutting edge * community size * architecture aspects - agent vs. agentless, master vs. masterless, etc. + * learning curve
@@ -218,16 +236,24 @@ which follows the immutable infrastructure paradigm.
-What ways are you familiar with to deliver a software? What are the advantages and disadvantages of each method?
+What ways are there to distribute software? What are the advantages and disadvantages of each method?
* Source - Maintain build script within version control system so that user can build your app after cloning repository. Advantage: User can quickly checkout different versions of application. Disadvantage: requires build tools installed on users machine. - * Archive - collect all your app files into one archive (e.g. tar) and deliver it to the user. Advantage: Only tool needed is an unarchiver. Disadvantage: Requires repeating the same procedure when updating, not good if there are a lot of dependencies. + * Archive - collect all your app files into one archive (e.g. tar) and deliver it to the user. Advantage: User gets everything he needs in one file. Disadvantage: Requires repeating the same procedure when updating, not good if there are a lot of dependencies. * Package - depends on the OS, you can use your OS package format (e.g. in RHEL/Fefodra it's RPM) to deliver your software with a way to install, uninstall and update it using the standard packager commands. Advantages: Package manager takes care of support for installation, uninstallation, updating and dependency management. Disadvantage: Requires managing package repository. * Images - Either VM or container images where your package is included with everything it needs in order to run successfully. Advantage: everything is preinstalled, it has high degree of environment isolation. Disadvantage: Requires knowledge of building and optimizing images.
+
+Are you familiar with "The Cathedral and the Bazaar models"? Explain each of the models
+ +* Cathedral - source code released when software is released +* Bazaar - source code is always available publicly (e.g. Linux Kernel) +
+
What is caching? How does it works? Why is it important?
+ Caching is fast access to frequently used resources which are computationally expensive or IO intensive and do not change often. There can be several layers of cache that can start from CPU caches to distributed cache systems. Common ones are in memory caching and distributed caching.
Caches are typically data structures that contains some data, such as a hashtable or dictionary. However, any data structure can provide caching capabilities, like set, sorted set, sorted dictionary etc. While, caching is used in many applications, they can create subtle bugs if not implemented correctly or used correctly. For example,cache invalidation, expiration or updating is usually quite challenging and hard.
@@ -283,13 +309,9 @@ There are multiple ways to answer this question (there is no right and wrong her
-What are the differences between SRE and DevOps?
-
+What is Chaos Engineering?
-
-What SRE team is responsible for?
- -One can argue whether it's per company definition or a global one but at least according to a large companies, like Google for example, the SRE team is responsible for availability, latency, performance, efficiency, change management, monitoring, emergency response, and capacity planning of their services +Read about Chaos Engineering [here](https://en.wikipedia.org/wiki/Chaos_engineering)
@@ -305,7 +327,6 @@ One can argue whether it's per company definition or a global one but at least a
-
What is "infrastructure as code"? What implementation of IAC are you familiar with?
IAC (infrastructure as code) is a declerative approach of defining infrastructure or architecture of a system. Some implementations are ARM templates for Azure and Terraform that can work across multiple cloud providers. @@ -388,13 +409,19 @@ Note: cross-dependency is when you have two or more changes to separate projects Have you contributed to an open source project? Tell me about this experience
-
-Are you familiar with "The Cathedral and the Bazaar models"? Explain each of the models
+#### SRE -* Cathedral - source code released when software is released -* Bazaar - source code is always available publicly (e.g. Linux Kernel) +
+What are the differences between SRE and DevOps?
+
+What SRE team is responsible for?
+ +One can argue whether it's per company definition or a global one but at least according to a large companies, like Google for example, the SRE team is responsible for availability, latency, performance, efficiency, change management, monitoring, emergency response, and capacity planning of their services +
+ + ## Jenkins
@@ -2208,8 +2235,10 @@ Read more [here](https://www.globalsign.com/en/blog/what-is-hsts-and-how-do-i-us
What is your experience with Linux?
-An open question. Answer based on your real experience. You can highlight one or more of the following: +Only you know :) +Some ideas on what to focus: +* Administration * Troubleshooting & Debugging * Storage * Networking @@ -2293,12 +2322,12 @@ mv command.
-What is special about /tmp when compared to other paths?
+What is special about /tmp directory when compared to other directories?
Explain each field in the output of `ls -l` command
-It shows a detailed list of files in a long format. From the left; +It shows a detailed list of files in a long format. From the left: * file permissions, number of links, owner name, owner group, file size, timestamp of last modification and directory/file name
@@ -2312,6 +2341,8 @@ These are files directly not displayed after performing a standard ls direct lis
Explain piping. How do you perform piping?
+ +Using a pipe in Linux, allows you to send the output of one to another (also called redirection). For example: `cat /etc/services | wc -l`
@@ -2361,7 +2392,6 @@ history command or .bash_history file How to change the permissions of a file?
Using the `chmod` command. -
@@ -2446,6 +2476,8 @@ Hardware -> Kernel -> Daemons, System Libraries, Server Display.
Where system logs are located?
+ +/var/log