Are you preparing for the Memcached interview? Need all type of questions that will be asked in the interview. Then visit our wisdomjobs memcached site page. Here we have provided all type of Memcached interview question and answers and also we have provided memcached job roles. To be precise about memached is general purpose distributed memory cache system. It is regularly used to speed up the dynamic database driven websites. If you are familiar with memcached topics then there are many leading companies that offer job roles like senior PHP developer, Python architect, senior Java backend engineer,cloud architect along with that there are many other roles too. For more details on memcached interview questions visit our wisdomjobs memcached jobs site page.
Question 1. What Is Memcached?
Answer :
Memcached is a general purpose free and open source, high performance, distributed memory object caching system. It is used to speed up database-driven websites by caching data and objects in RAM.
In simple words you can say that, Memcached is a component which stores data temporally for 1hour/ 6 hour/ 12 hours/ 1 day etc. and you can integrate this component with your applications to increase their performance.
Question 2. In Which Language Memcached Is Written And Who Is The Author?
Answer :
Memcached is written in "C language" and it is written by Danga Interactive.
Question 3. How Memcached Works?
Answer :
See the following steps to understand how Memcached works:
Question 4. When The Initial Version Of Memcached First Launched?
Answer :
The first version of Memcached is launched on May, 22, 2003.
Question 5. In Which Websites And Services Memcached Is Generally Used?
Answer :
Memcached can be used for:
Question 6. What Is The Best Usage Of Memcached?
Answer :
Best usage of Memcached:
Question 7. What Are The Drawbacks/ Limitations Of Memcached?
Answer :
A list of limitations or drawbacks of Memcached:
Question 8. In Which Conditions Cache Cannot Retain The Stored Information?
Answer :
Cache cannot retain the stored information in following conditions:
Question 9. Is It Possible To Share A Single Instance Of Memcache Between Multiple Projects?
Answer :
Yes, it is possible to share a single instance of Memcache between multiple projects because Memcache is a memory store space and it can be run on one or more servers. You can also run two different Memcache processes on the same host and yet they are completely independent.
Answer :
The data in the failed server won't get removed, but there is a provision for auto-failure, which can be configured 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.
Question 11. How Can You Minimize The Memcached Server Outages?
Answer :
Following are the methods to minimize the Memcached server outage:
When one instance fails, several of them goes down, this will put larger load on the database server when the client reloaded the lost data. To avoid this, you should write your code to minimize cache stampedes, it will leave a comparatively less impact.
You can 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.
Question 12. How Can You Update Memcached When Data Changes?
Answer :
There are two ways to update Memcached when data changes:
By clearing the cache proactively: You can update memcached by clearing the cache when an insert or update is made.
By resetting the cache: It is slightly 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, it resets the values after the insert or update.
Question 13. What Is Dogpile Effect? How To Prevent This Effect?
Answer :
Dogpile effect is a situation when cache expires, and websites are hit by multiple requests made by the client at the same time.
You can prevent this effect by using semaphore lock. In this system when value expires, first process acquires the lock and starts generating new value.
Question 14. If Server Gets Shut Down Then Data Stored In Memcached Is Still Available?
Answer :
In Memcached, data is not permanently stored. This data is not durable so if the server is shut down or restarted then all the data stored in Memcached is deleted.
Question 15. What Is The Difference Between Sap Hana And Memcached?
Answer :
SAP HANA is an in-memory RDBMS and mostly used for accelerating SAP applications while Memcached is a key/value caching system and used for accessing both RDBMS and NOSQL databases.
Question 16. How To Connect Memcached Server With Telnet Command?
Answer :
By using this memcached command:
telnet ostname portNumber
Question 17. How To Get The Value Of Key?
Answer :
By using this command: get key
Question 18. How To Set The Value Of Key?
Answer :
By using this format:
set[key][flags][exptim][bytes][noreply]
Question 19. How To Add Value In Key?
Answer :
By using this format:
add[key][flags][exptim][bytes][noreply]
Question 20. How To Replace The Value Of Key?
Answer :
By using this format:
replace[key][flags][exptim][bytes][noreply]
Question 21. How To Append The Value Of Key?
Answer :
By using this format:
append[key][flags][exptim][bytes][noreply]
Question 22. How To Prepend Value Of Key?
Answer :
By using this format:
prepend[key][flags][exptim][bytes][noreply]
Question 23. How To Delete The Key?
Answer :
By using this command: delete key
Question 24. How To Show The Stats?
Answer :
By using this command:
stats
Question 25. How To Get The Versions?
Answer :
By using this command:
Version
Question 26. How To Close The Connection?
Answer :
By using this command:
Quit
Question 27. How Would You Update Memcached When Data Changes?
Answer :
There are two methods to update Memchached when data changes:
By clearing the cache proactively: You can update Memcached by clearing the cache while insertion or updation is made.
By resetting the cache: It is slightly similar to the first method but it doesn't delete the keys and wait for the next request for the data to refresh the cache, it resets the values after the insert or update.
Question 28. What Is Dogpile Effect? How Can You Prevent This Effect?
Answer :
If the cache expires, and websites are hit by multiple requests made by the client at the same time, this effect is known as Dogpile effect.
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.
Question 29. What Happens To The Data Stored In Memcached When Server Accidently Gets Shut Down?
Answer :
In Memcached, data is not permanently stored. It is not a durable data so, if the server is shut down or restarted then all the data stored in Memcached will be deleted.

Memcached Related Tutorials |
|
|---|---|
| HTML Tutorial | PHP Tutorial |
| Adv Java Tutorial | CSS Advanced Tutorial |
| Data Structure & Algorithms Tutorial | Elasticsearch Tutorial |
All rights reserved © 2020 Wisdom IT Services India Pvt. Ltd
Wisdomjobs.com is one of the best job search sites in India.