Update prepare_for_interview

This commit is contained in:
abregman 2020-01-02 18:33:11 +02:00
parent b98fe35d3e
commit 66c0672a08
2 changed files with 132 additions and 101 deletions

View File

@ -2,7 +2,7 @@
:information_source:  This repository contains questions on various DevOps and SRE related topics :information_source:  This repository contains questions on various DevOps and SRE related topics
:bar_chart:  There are currently **740** questions :bar_chart:  There are currently **744** questions
:books:  To learn more about DevOps check the resources in [DevOpsBit.com](https://devopsbit.com) :books:  To learn more about DevOps check the resources in [DevOpsBit.com](https://devopsbit.com)
@ -444,6 +444,9 @@ In cloud providers, someone else owns and manages the hardware, hire the relevan
In On-Premise solution, it's quite the opposite. You need to take care of hardware, infrastructure teams and pay for everything which can be quite expensive. On the other hand it's tailored to your needs. In On-Premise solution, it's quite the opposite. You need to take care of hardware, infrastructure teams and pay for everything which can be quite expensive. On the other hand it's tailored to your needs.
</b></details> </b></details>
<details>
<summary>What is Serverless Computing?</summary><br><b>
</b></details>
## AWS ## AWS
@ -2313,6 +2316,10 @@ List
The primary difference between containers and VMs is that containers allow you to virtualize The primary difference between containers and VMs is that containers allow you to virtualize
multiple workloads on the operating system while in the case of VMs the hardware is being virtualized to multiple workloads on the operating system while in the case of VMs the hardware is being virtualized to
run multiple machines each with its own OS. run multiple machines each with its own OS.
* Containers don't require an entire guest operating system as VMs
* It's usually takes a few seconds to set up a container as opposed to VMs which can take minutes or at least more time than containers as there is an entire OS to boot and initialize as opposed to container where you mainly lunch the app itself
* Docker is one of the technologies allowing you to manage containers - run multiple containers on a host, move containers between hosts, etc.
</b></details> </b></details>
<details> <details>
@ -3193,7 +3200,7 @@ set([food for bro in x for food in bro['food']])
<summary>What is List Comprehension? Is it better than a typical loop? Why? Can you demonstrate how to use it?</summary><br><b> <summary>What is List Comprehension? Is it better than a typical loop? Why? Can you demonstrate how to use it?</summary><br><b>
</b></details> </b></details>
#### Strings #### Python Strings
<details> <details>
<summary>How to extract the unique characters from a string? for example given the input "itssssssameeeemarioooooo" the output will be "mrtisaoe"</summary><br><b> <summary>How to extract the unique characters from a string? for example given the input "itssssssameeeemarioooooo" the output will be "mrtisaoe"</summary><br><b>
@ -3244,6 +3251,10 @@ Detailed answer can be found here: http://codingshell.com/python-all-string-perm
<summary>Find the frequency of each character in string</summary><br><b> <summary>Find the frequency of each character in string</summary><br><b>
</b></details> </b></details>
<details>
<summary>Count the number of spaces in a string</summary><br><b>
</b></details>
<details> <details>
<summary>Given the string (which represents a matrix) "1 2 3\n4 5 6\n7 8 9" create rows and colums variables (should contain integers, not strings)</summary><br><b> <summary>Given the string (which represents a matrix) "1 2 3\n4 5 6\n7 8 9" create rows and colums variables (should contain integers, not strings)</summary><br><b>
@ -3311,6 +3322,10 @@ mario
<summary>What is a generator? Why using generators?</summary><br><b> <summary>What is a generator? Why using generators?</summary><br><b>
</b></details> </b></details>
<details>
<summary>What is <code>yeild</code>? When would you use it?</summary><br><b>
</b></details>
<details> <details>
<summary>Explain the following types of methods and how to use them: <summary>Explain the following types of methods and how to use them:
@ -3738,6 +3753,10 @@ a = f()
<summary>You have created a web page where a user can upload a document. But the function which reads the uploaded files, runs for a long time, based on the document size and user has to wait for the read operation to complete before he/she can continue using the web site. How can you overcome this?</summary><br><b> <summary>You have created a web page where a user can upload a document. But the function which reads the uploaded files, runs for a long time, based on the document size and user has to wait for the read operation to complete before he/she can continue using the web site. How can you overcome this?</summary><br><b>
</b></details> </b></details>
<details>
<summary>How yield works exactly?</summary><br><b>
</b></details>
## Monitoring ## Monitoring
<a name="monitoring-beginner"></a> <a name="monitoring-beginner"></a>

View File

@ -1,19 +1,22 @@
## How to prepare for an DevOps interview? ## How to prepare for DevOps/SRE/Production Engineer interviews?
Note: the following is opinionated. Note: the following is opinionated.
### Technical subjects you should be familiar with ### Skills you should have
#### Linux #### Linux
Every DevOps Engineer should have knowledge about operating systems and specifically Linux which is probably in 95% of the DevOps jobs postings out there. Every DevOps Engineer should have a deep understanding of at least one operating system and if you have the option to choose then I would say it should definitely be Linux as I believe it's a requirement of at least 90% of the DevOps jobs postings out there.
Usually next question is "How extensive my knowledge should be?" - out of all DevOps skills, I would say this should be your strongest one. Be familiar with processes, debugging tools, filesystem, networking, ... be familiar with the operating system. Understand how it works, how to deal with issues, ... this is where it all starts.
Usually, the followup question is "How extensive should my knowledge be?" Out of all the DevOps skills, I would say this, along with coding, should be your strongest skills. Be familiar with OS processes, debugging tools, filesystem, networking, ... know your operating system, understand how it works, how to manage issues, etc.
Not long ago, I've created a list of Linux resources right [here](http://devopsbit.com/resources/linux). There are some good sites there that you can use for learning more about Linux.
#### Coding #### Coding
Some DevOps interviews include coding tasks/questions. Be prepared for those by doing actual coding. It should be at least scripting level but some companies (especially top 5) will require more than that which means you should be familiar with common algorithms, data structures, etc. My personal belief is that any DevOps engineer should know coding, at least to some degree and you'll find out that indeed some of DevOps interviews will include coding tasks/questions. Be prepared for those by doing some actual coding. It should be at least a scripting level but some companies will require more than that which means you should be familiar with common algorithms, data structures, etc.
Also, the following is probably clear to most people but let's still clarify it: when given the chance to choose any language for answering coding tasks/questions, choose the one you have experience with! Some candidates prefer to to choose the language they think the company is using and this is a huge mistake because right answer > wrong answer in any language. Also, the following is probably clear to most people but let's still clarify the next point: when given the chance to choose any language for answering coding tasks/questions, choose the one you have experience with! Some candidates prefer to choose the language they think the company is using and this is a huge mistake since giving the right answer is always better than a wrong answer, no matter which language you used :)
I recommend the following sites for practicing coding: I recommend the following sites for practicing coding:
@ -21,37 +24,72 @@ I recommend the following sites for practicing coding:
* [LeetCode](https://leetcode.com) * [LeetCode](https://leetcode.com)
* [Exercism](https://exercism.io) * [Exercism](https://exercism.io)
Starting your own project is also a good idea. More on that later on.
#### Architecture and Design #### Architecture and Design
This is also an important aspect of DevOps. You should be able to describe how to design different systems, workflows and architectures. Some will also say scale is an important aspect of that.<br> This is also an important aspect of DevOps. You should be able to describe how to design different systems, workflows, and architectures. Also, the scale is an important aspect of that. A design which might work for a dozen of hosts or X amount of data, will not necessarily work well with bigger scale.
A design which might work for a dozen of hosts or X amount of data, will not necessarily work with thousands of hosts and different scale of data.
Some ideas: Some ideas for you to explore:
* How to design and implement a CI pipeline (or pipelines) for verifying PRs, run multiple different types of tests, package the project and deploy it somewhere * How to design and implement a CI pipeline (or pipelines) for verifying PRs, run multiple different types of tests, package the project and deploy it somewhere
* How to design and implement secured ELK architecture which will get logs from 10,000 apps and will display the data eventually to the user * How to design and implement secured ELK architecture which will get logs from 10,000 apps and will display the data eventually to the user
* Microservices designs are also quite popular these days
I recommend going over the following GitHub projects as they are really deep-diving into System Design:
* https://github.com/donnemartin/system-design-primer
#### Tools #### Tools
Some interviews will focus on specific tools. Which tools is mainly based on what you mentioned in your C.V + those that are mentioned in the job posting and used in the company. Here are some questions I believe anyone should know to answer regarding the tools he/she is familiar with: Some interviews will focus on specific tools or technologies. Which tools? this is mainly based on a combination of what you mentioned in your C.V & those that are mentioned in the job posting and used in the company. Here are some questions I believe anyone should know to answer regarding the tools he/she is familiar with:
* What the tool does? What it allow us to achieve that we couldn't do without it? * What the tool does? What it allows us to achieve that we couldn't do without it?
* What its advantages over other tools in the same area, with the same purpose? * What its advantages over other tools in the same area, with the same purpose? Why you specifically using it?
* How it works? * How it works?
* How to use it? (general usage, no need to start memorizing flags) * How to use it?
Let's deep dive into practical preparation steps Let's deep dive into practical preparation steps
### Scenarios || Challenges || Tasks
This is a very common way to interview today for DevOps roles. The candidate is given a task which represents a common task of DevOps Engineers or a piece of common knowledge and the candidate has several hours or days to accomplish the task.<br>
This is a great way to prepare for interviews and I recommend to try it out before actually interviewing. How? Take requirements from job posts and convert them into scenarios. Let's see an example:
"Knowledge in CI/CD" -> Scenario: create a CI/CD pipeline for a project.
At this point, some people ask: "but what project?" and the answer is: what about GitHub? it has only 9125912851285192 projects...and a free way to set up CI to any of them (also a great way to learn how to collaborate with others :) )
Let's convert another scenario:
"Experience with provisioning servers" -> Scenario: provision a server (to make it more interesting: create a web server).
And the last example:
"Experience with scripting" -> Scenario: write a script. Don't waste too much time thinking "what script should I write?". Simply automate something you are doing manually or even implement your own version of common small utils.
### Start your own DevOps project
Starting a DevOps project is a good idea because:
* It will make you practice coding
* It will be something you can add to your resume and talk about with the interviewer
* Depends on size and complexity, it can teach you something about design in general
* Depends on adoption, it can you teach you about managing Open Source projects
Same here, don't overthink what your project should be about. Just go and build something :)
### Sample interview questions ### Sample interview questions
Make a sample list of interview questions on various topics/areas like technical, company, role, ... and try to answer them. Make a sample list of interview questions on various topics/areas like technical, company, role, ... and try to answer them.
See if you can manage answering them in a fluent, detailed way. See if you can manage to answer them in a fluent, detailed way.
Better yet, ask a good friend/colleague to challenge you with some questions. You might not be objective enough when self-interviewing yourself :) Better yet, ask a good friend/colleague to challenge you with some questions. Your self-awareness might be an obstacle in objective self-review of your knowledge :)
### Networking ### Networking
For those who attend technical meetups, conferences, ... it can be a great opportunity to chat with people from other companies on their interviewing process. But don't start with it, it can be quite awkward. Say at least hello first... (: For those who attend technical meetups and conferences, it can be a great opportunity to chat with people from other companies on their interviewing process. But don't start with it, it can be quite awkward. Say at least hello first... (:
Doing so can give you a lot of information on what to expect from an interview at some companies or how to how to better prepare. Doing so can give you a lot of information on what to expect from an interview at some companies or how to how to better prepare.
@ -60,74 +98,48 @@ Doing so can give you a lot of information on what to expect from an interview a
It may sound trivial but the idea here is simple: be ready to answer any question regarding any line you included in your resume. It may sound trivial but the idea here is simple: be ready to answer any question regarding any line you included in your resume.
Sometimes candidates surprised when they are asked on a skill or line which seems to be not related to the position but the simple truth is: if you mentioned something on your resume, it's only fair to ask you about it. Sometimes candidates surprised when they are asked on a skill or line which seems to be not related to the position but the simple truth is: if you mentioned something on your resume, it's only fair to ask you about it.
### Know the company ### Know the company
Be familiar with the company you are interviewing at. Some ideas: Be familiar with the company you are interviewing at. Some ideas:
* What the company does? * What the company does?
* What products it has? * What products it has?
* Latest major achievement(s) * Why its products are unique (or better than other products)? This can also be a good question for you to ask
### Books ### Books
From my experience this is not done by many candidates but it's one of the best ways to deep dive into topics like operating system, virtualization, scale, distributed systems, ... From my experience, this is not done by many candidates but it's one of the best ways to deep dive into topics like operating system, virtualization, scale, distributed systems, etc.
In most cases, you will do fine with reading books but for the AAA interviews (hardest level) you'll want to read some books and overall, if you inspire to be better DevOps Engineer, books is a great way :) In most cases, you will do fine without reading books but for the AAA interviews (hardest level) you'll want to read some books and overall if you inspire to be better DevOps Engineer, books (also articles, blog posts) is a great way :)
### Scenarios
This is a very common way to interview today for DevOps roles. The candidate is given a task which represents a common task of DevOps Engineers or common knowledge and the candidate has several hours or days to accomplish the task.<br>
This is a great way to prepare to interviews and I recommend to try it out before actually interviewing. How? Take requirements from job posts and convert them to scenarios. Let's see an example:
"Knowledge in CI/CD" -> Scenario: create a CI/CD pipeline for a project.
At this point some people ask: "but what project?" and the answer is: what about GitHub? it has only 9125912851285192 projects...and a free way to set up CI to any of them (also a great way to learn how to collaborate with others :) )
Let's convert another scenario:
"Experience with provisioning servers" -> Scenario: provision a server (to make it more interesting: create a web server).
And the last example:
"Experience with scripting" -> Scenario: write a script. Don't waste too much time thinking "what script should I write?". Simply automate something you are doing manually or even implement you own version of common small utils.
### Start your own DevOps project
Starting a DevOps project is a good idea because:
* It will make you practice coding
* It will be something you can add to your resume and talk about with the interviewer
* Depends on size and complexity, it can teach you something about design
* Depends on adoption, it can you teach you about managing Open Source projects
### Consider starting in non-DevOps position ### Consider starting in non-DevOps position
Landing DevOps as a first position can be challenging. No, it's not impossible but still, since DevOps covers many different practices, tools, ... it can be quite challanging and also overwhelming for someone to try and achieve it as a first position.<br> While not a preparation step, you should know that landing DevOps as a first position can be challenging. No, it's not impossible but still, since DevOps covers many different practices, tools, ... it can be quite challenging and also overwhelming for someone to try and achieve it as a first position.<br>
A possible path to become a DevOps engineer is to start with actually a different (but related) position and switch from there after 1-2 years or more. A possible path to becoming a DevOps engineer is to start with actually a different (but related) position and switch from there after 1-2 years or more.
Some ideas: Some ideas:
* System Administrator - This is perfect because every DevOps Engineer should have solid understanding of the OS and sys admins know their OS :) * System Administrator - This is perfect because every DevOps Engineer should have a solid understanding of the OS and sysadmins know their OS :)
* Software Developer/Engineer - A DevOps should have coding skills and this position will provide more than the required knowledge in most cases * Software Developer/Engineer - A DevOps should have coding skills and this position will provide more than the required knowledge in most cases
* QA Engineer - This is more tricky one because IMHO there are less overlapping areas/skills with DevOps Engineer but some people done it so it's not impossible :) * QA Engineer - This is a more tricky one because IMHO there are less overlapping areas/skills with DevOps Engineer. Sure, DevOps engineers should have some knowledge about testing but usually, it seems their solid skills/background is mainly composed out of system internals and coding skills.
### What to expect from a DevOps interview? ### What to expect from a DevOps interview?
DevOps interviews can be very different. Some will include design questions, some will focus on coding, others will include short technical questions and you might even have an interview where the interviewer only goes over your resume and discussing your past experience. DevOps interviews can be very different. Some will include design questions, some will focus on coding, others will include short technical questions and you might even have an interview where the interviewer only goes over your resume and discussing your past experience.
There are a couple of things you can do about about it so it will be less overwhelming experience: There are a couple of things you can do about it so it will be a less overwhelming experience:
1. You can and probably should ask the HR (in some cases even the team lead) how the interview process looks like. Some will be kind enough to even tell you how to prepare. 1. You can and probably should ask the HR (in some cases even the team lead) how the interview process looks like. Some will be kind enough to even tell you how to prepare.
2. Usually the job posting gives more than an hint on where the focus will be and what you should focus on in your preparations so read it carefully. 2. Usually, the job posting gives more than a hint on where the focus will be and what you should focus on in your preparations so read it carefully.
3. There are plenty of sites that have notes or summary of the interview process in different companies, especially the big enterprises. 3. There are plenty of sites that have notes or a summary of the interview process in different companies, especially big enterprises.
### Don't forget to be an interviewer as well ### Don't forget to be an interviewer as well
Some people tend to look at interviews as one-way road of "Determining whether a candidate is qualified" but in reality, a candidate should also determine whether Some people tend to look at interviews as a one-way road of "Determining whether a candidate is qualified" but in reality, a candidate should also determine whether
the company is interviewing at, is the right place for him/her. the company he/she is interviewing at, is the right place for him/her.
* Do I care about team size? More specifically, do I care about being one-man show or being part of a bigger team? * Do I care about team size? More specifically, do I care about being a one-man show or being part of a bigger team?
* Do I care about work-life balance? * Do I care about work-life balance?
* Do I care about personal growth and how it's practically done? * Do I care about personal growth and how it's practically done?
* Do I care about knowing what are my responsibilities as part of the role? * Do I care about knowing what are my responsibilities as part of the role?