DevOps Interview Questions
-
- 1. Give a brief explanation about DevOps?
It is a collaboration or blending of software developers and operations people and it is a new concept that has emerged in the Information Technology field. It focuses on delivering software product faster and lowering the failure rate of releases which was usually the case and hence this concept was started and it seems to be growing rapidly.
New software tools have come up to help organizations in automating testing and creating a more streamlined development and release pipeline. This has reduced the errors and the time taken to get the product ready and to release it. It is cross-functional in its nature.
- 2. Why is DevOps needed?
There are many needs of DevOps and some of the important ones are as follows.
It is needed to increase the deployment frequency of a particular product.
It lowers the failure rate of new releases that was very evident before DevOps came into the picture.
It shortens the lead time between fixes. This makes the process less time consuming.
The recovery time in case of a new release crashing is significantly reduced.
- 3. Give an example of where DevOps can be used in real life and elaborate on the same
Many Industries in the real world use DevOps and it is increasingly becoming popular among the industries and any one of them can be used as an example.
Many e-commerce websites use DevOps and they have had an overall improvement in their processes. One example is about a company called Etsy which was struggling with its existing methods. After using DevOps it has a fully automated deployment pipeline, and its continuous delivery practices have reportedly resulted in more than 50 deployments a day with reduced disruptions.- 4. When is SSH used?
SSH can be used to handle revision control which would be to post the code on SourceForge or GitHub so everyone can view it. Also, SSH can be used to post the checklist from the last revision to make sure that any unsolved issues are resolved.
- 5. What are the key principals behind DevOps?
The key principles behind DevOps are as follows.
The main principle behind DevOps is that it creates the continuous deployment. It was mainly created to reduce the various intermediaries between the processes that were making the process long and inefficient. This concept makes the product development a continuous process.
The other important principle of DevOps is the automation that it has brought into the system. The various manual intermediaries have been automated because of the concept of DevOps. Even automated testing has come into the fore.
The other principal of DevOps is monitoring. It has made it easier to monitor the whole process of product development as it is more streamlined and simple. There are a few steps to monitor and most of the IT operations are automated.
Security is another principal behind DevOps. It makes the whole process more secure and since the process is ever improving it makes it more and more secure.
- 6. What are the key areas of DevOps in relation to application development and infrastructure?
The key areas in relation to application development are as follows.
- Building the code
- Covering the code
- Testing the units
- Packaging
- Deployment
- Key areas in infrastructure are as follows.
- Provisioning
- Configuration
- Orchestration
- Deployment
- Building the code
- 7. How is Infrastructure of code processed or executed in AWS?
The infrastructure code will be in a simple format called JSON.
The JSON code will be organized into files and they are called templates
These templates can be deployed on AWS. After that, they can be managed as stacks
After this the Cloud Formation service will do the Creating, deleting, updating, etc. and other related operations in the stack.
- 8. Which is the most important scripting language that a DevOps engineer must know?
There are various scripting languages that are used in the process of DevOps. However, Python seems to be the most popular and most used scripting language and it is very important that a DevOps engineer has a clear understanding and working knowledge of this scripting language.
- 9. How is DevOps helpful to developers?
DevOps have many advantages to a developer. It makes their life much easier as the process is streamlined and simplified. Other than this it helps the developers to fix the bug and implement new features quickly and also it allows better and clear communication between team members and so the product that is developed will be exactly as per the requirements. Developers have to do coding which is a tough job and DevOps makes it easier.
- 10. What are some of the popular DevOps tools?
- Jenkins
- Nagios
- Monit
- ELK (Elasticsearch, Logstash, Kibana)
- Io
- Jenkins
- Docker
- Ansible
- Git
- Collectd/Collectl
- Jenkins
- 11. What are the different types of Http requests?
- The different types of Http requests are as follows.
- GET
- HEAD
- PUT
- POST
- PATCH
- DELETE
- TRACE
- CONNECT
- OPTIONS
- The different types of Http requests are as follows.
- 12. Fully explain the concept of Memcached
Memcached is an important aspect of DevOps and it is a free and open source, high-performance, distributed memory object caching system. The main objective of Memcached is to improve the time taken for responding to data that can otherwise be recovered or constructed from some other source or database. It reduces the need to operate SQL database or another source continuously in order to fetch data for the repeated request.
The benefits of Memcached are as follows.
- It helps to speed up the application processes.
- It helps to determine what to store and what not to store.
- It reduces the number of retrieval requests to the database.
- Cuts down the I/O (Input/Output) access (hard disk).
- The disadvantages of Memcached are as follows.
- It does not act as an ever-present data store.
- It cannot be considered as a database.
- It is not specific to any application and hence becomes difficult to use.
- It does not have the capability to cache large object.
- It helps to speed up the application processes.
- 13. What are the important features of Memcached?
The important features of Memcached are as follows.
CAS token is an important feature of Memcached. It is attached to an object retrieved from the cache. The user can use that token to save the updated object.
- It simplifies the code that is present in the process.
- It reduces the delay time of the script which is waiting for results to come back from the server
- The binary protocol can be used instead of ASCII with the newer client
- Memcached helps the user to use binary option and so the client need not always use serialization with complex data.
- 14. Explain the possibility of sharing a single instance of a Memcache between multiple projects?
The possibility of sharing a single instance of Memcache between multiple projects is present and is high. Memcache is a memory store space, and it can is possible to run Memcache on one or more servers. The user can also configure the client to speak to a particular set of instances. This allows two different Memcache processes to be run on the same host and yet they are completely independent. This will work if the data has not been partitioned, then it becomes necessary to know from which instance to get the data from or to put into.
- 15. How can Memcached be updated when data changes?
The Memcached can be updated in the following ways.
Proactively clearing the cache and not waiting for the notifications. Clearing the cache when an insert or update is made will help in keeping Memcache updated.
By resetting the Cache. It is similar to the first method the only difference being rather than just deleting the keys and waiting for the next request for the data to refresh the cache, resetting the values after the insert or update.
- 16. What is Dogpile effect and what are the ways of preventing this effect?
There are instances when the cache expires or the websites are hit by several requests that are made by the clients all at the same time. This effect is called as Dogpile effect. This is quite common in occurrence this effect can be prevented by using a semaphore lock. In this system when value expires, the first process acquires the lock and starts generating new value.
- 17. What are the ways in which Memcached should not be used?
The common mistake with the use of Memcached is to use it as a data store, and not as a cache. This is a big error.
Memcached should never be used as the only source of the information that is needed to run the application. Data should always be available through another source as well.
Memcached cannot perform a query over the data or perform over the contents to extract information. Memcached should be used just as a key or value to store.
Memcached does not offer any form of security either in encryption or authentication.
- 18. Is the data stored in Memcached still available when the server shuts down?
- The data stored in Memcached is not permanent and it will get deleted when the server shuts down due to some reason or is deliberately shut down.
Interested about DevOps?
Get in touch with training experts Get Free QuotesLeave a commentLatest Jobs in US & Canada
HIRING FULL TIME PROJECTS CA PP
- 0 - 2 Years
- 4 weeks ago
- New York, NY
- Valid Work Visa,US Citizen,Green Card
DevOps Engineer
- 0 - 1 Years
- 12 months ago
- Dallas, TX
- Valid Work Visa,US Citizen,Green Card
DevOps Engineer
- 0 - 1 Years
- 12 months ago
- New York, NY
- Valid Work Visa,US Citizen,Green Card