May 23, 2018

Sreekanth B

DevOps Technical Experienced Interview Questions And Answers

Explain What Is Devops?

It is a newly emerging term in IT field, which is nothing but a practice that emphasizes the collaboration and communication of both software developers and other information-technology (IT) professionals. It focuses on delivering software product faster and lowering the failure rate of releases.

Explain Which Scripting Language Is Most Important For A Devops Engineer?

A simpler scripting language will be better for a DevOps engineer. Python seems to be very popular.

Explain How Devops Is Helpful To Developers?

DevOps can be helpful to developers to fix the bug and implement new features quickly.  It also helps for clearer communication between the team members.

Mention What Is The Difference Between Memcache And Memcached?

Memcache: It is an extension that allows you to work through handy object-oriented (OOP’s) and procedural interfaces. It is designed to reduce database load in dynamic web applications.

Memcached: It is an extension that uses libmemcached library to provide API for communicating with Memcached servers. It is used to increase the dynamic web applications by alleviating database load. It is the latest API.

List Out Some Popular Tools For Devops?

Some of the popular tools for DevOps are:

ELK (Elasticsearch, Logstash, Kibana)

Mention At What Instance Have You Used The Ssh?

I have used SSH to log into a remote machine and work on the command line.  Beside this, I have also used it to tunnel into the system in order to facilitate secure encrypted communications between two untrusted hosts over an insecure network.

Explain How Would You Handle Revision (version) Control?

My approach to handle revision control would be to post the code on SourceForge or GitHub so everyone can view it.  Also, I will post the checklist from the last revision to make sure that any unsolved issues are resolved.

Mention What Are The Types Of Http Requests?

The types of Http requests are:


Explain What Would You Check If A Linux-build-server Suddenly Starts Getting Slow?

If a Linux-build-server suddenly starts getting slow, you will check for following three things:

Application Level troubleshooting:

RAM related issues, Disk I/O read write issues, Disk Space related Issues, etc.

System Level troubleshooting:

Check for Application log file OR application server log file, system performance issues, Web Server Log – check HTTP, tomcat log, etc. or check jboss, weblogic logs to see if the application server response/receive time is the issues for slowness, Memory Leak of any application

Dependent Services troubleshooting:

Antivirus related issues, Firewall related issues, Network issues, SMTP server response time issues, etc.

Mention What Are The Key Aspects Or Principle Behind Devops?

The key aspects or principle behind DevOps is:

Infrastructure as code
Continuous deployment
What Are The Core Operations Of Devops With Application Development And With Infrastructure?

The core operations of DevOps with:

Application development

Code building
Code coverage
Unit testing
With infrastructure


Explain How “infrastructure Of Code” Is Processed Or Executed In Aws?


The code for infrastructure will be in simple JSON format
This JSON code will be organized into files called templates
This templates can be deployed on AWS and then managed as stacks
Later the CloudFormation service will do the Creating, deleting, updating, etc. operation in the stack

Whether Your Video Card Can Run Unity How Would You Know?

When you use command


it will give detailed output about Unity’s requirements and  if they are met, then your video card can run unity.

Explain How You Can Minimize The Memcached Server Outages?

When one instance fails, several of them goes down, this will put larger load on the database server when lost data is reloaded as client make a request. To avoid this, if your code has been written to minimize cache stampedes then it will leave a minimal impact
Another way is to bring up an instance of Memcached on a new machine using the lost machines IP address
Code is another option to minimize server outages as it gives you the liberty to change the Memcached server list with minimal work
Setting timeout value is another option that some Memcached clients implement for Memcached server outage. When your Memcached server goes down, the client will keep trying to send a request till the time-out limit is reached.
Explain How You Can Update Memcached When Data Changes?

When data changes you can update Memcached by:

•  Clearing the Cache proactively: Clearing the cache when an insert or update is made

•  Resetting the Cache: It is similar to the first method but rather than just deleting the keys and waiting for the next request for the data to refresh the cache, reset the values after the insert or update.

Explain What Is Dogpile Effect? How Can You Prevent This Effect?

Dogpile effect is referred to the event when cache expires, and websites are hit by the multiple requests made by the client at the same time. This effect can be prevented by using semaphore lock. In this system when value expires, first process acquires the lock and starts generating new value.

Explain How To Enable Startup Sound In Ubuntu?

To enable startup sound

Click control gear and then click on Startup Applications
In the Startup Application Preferences window, click Add to add an entry
Then fill the information in comment box like Name, Command and Comment
/usr/bin/canberra-gtk-play—id= “desktop-login”—description= “play login sound”

Logout and then login once you are done
You can also open it with shortcut key Ctrl+Alt+T.
What Is The Quicker Way To Open An Ubuntu Terminal In A Particular Directory?

To open Ubuntu terminal in a particular directory you can use custom keyboard short cut.

To do that, in the command field of a new custom keyboard , type genome – terminal – – working – directory = /path/to/dir.

Explain How Memcached Should Not Be Used?

Memcached common misuse is to use it as a data store, and not as a cache
Never use Memcached as the only source of the information you need to run your application. Data should always be available through another source as well
Memcached is just a key or value store and cannot perform query over the data or iterate over the contents to extract information
Memcached does not offer any form of security either in encryption or authentication.

When Server Gets Shut Down Does Data Stored In Memcached Is Still Available?

Data stored in Memcached is not durable so if server is shut down or restarted then all the data stored in Memcached is deleted.

Explain How You Can Get The Current Color Of The Current Screen On The Ubuntu Desktop?

You can open the background image in The Gimp (image editor) and then use the dropper tool to select the color on the specific point. It gives you the RGB value of the color at that point.

Explain How You Create Launchers On Desktop In Ubuntu?

To create launchers on desktop in Ubuntu you can use

ALT+F2 then type “ gnome-desktop-item-edit –create-new~/desktop “,  it will launch the old GUI dialog and create a launcher on your desktop

Explain What Is Memcached?

Memcached is a free and open source, high-performance, distributed memory object caching system. The primary objective of Memcached is to enhance the response time for data that can otherwise be recovered or constructed from some other source or database. It is used to avoid the need to operate SQL data base or another source repetitively to fetch data for concurrent request.

Memcached can be used for

Social Networking -> Profile Caching
Content Aggregation -> HTML/ Page Caching
Ad targeting -> Cookie/profile tracking
Relationship -> Session caching
E-commerce -> Session and HTML caching
Location-based services -> Data-base query scaling
Gaming and entertainment -> Session caching
Memcache helps in

Speed up application processes
It determines what to store and what not to
Reduce the number of retrieval requests to the database
Cuts down the I/O ( Input/Output) access (hard disk)
Drawback of Memcached is

It is not a persistent data store
Not a database
It is not an application specific
It cannot cache large object
Mention Some Important Features Of Memcached?

Important features of Memcached includes:

CAS Tokens: A CAS token is attached to any object retrieved from cache. You can use that token to save your updated object.
Callbacks: It simplifies the code
getDelayed: It reduces the delay time of your script which is waiting for results to come back from server
Binary protocol: You can use binary protocol instead of ASCII with the newer client
Igbinary: Previously, client always used to do serialization of the value with complex data, but with Memcached you can use igbinary option.

Explain Whether It Is Possible To Share A Single Instance Of A Memcache Between Multiple Projects?

Yes, it is possible to share a single instance of Memcache between multiple projects. Memcache is a memory store space, and you can run memcache on one or more servers. You can also configure your client to speak to a particular set of instances.

So, you can run two different Memcache processes on the same host and yet they are completely independent. Unless, if you have partitioned your data, then it becomes necessary to know from which instance to get the data from or to put into.

You Are Having Multiple Memcache Servers, In Which One Of The Memcacher Server Fails, And It Has Your Data, Will It Ever Try To Get Key Data From That One Failed Server?

The data in the failed server won’t get removed, but there is a provision for auto-failure, which you can configure for multiple nodes. Fail-over can be triggered during any kind of socket or Memcached server level errors and not during normal client errors like adding an existing key, etc.

Subscribe to get more Posts :