Memcached Interview Question-Answer

Q.1 What is the default memory pool of memached

       A. 64M

       B. 256M

       C. 10M

       D. 128M

Ans : 64M

Q.2 Which of these is not valid memcached memory allocation component

       A. Units

       B. Pages

       C. Chunks

       D. Slabs

Ans : Units

Q.3 Which of the following property defines memcached operations the best?

       A. Consistent

       B. Reliable

       C. Durable

       D. Atomic

Ans : Atomic

Q.4 Can we run multiple memcached processes in single instance.

       A. True

       B. False

Ans : True

Q.5 Memcached and memacache are same

       A. True

       B. False

Ans : False

Q.6 Division function is used to identify the server by the memcached client

       A. True

       B. False

Ans : False

Q.7 Which of these is a full form of CAS operation

       A. Save and Compare

       B. Compare and Save

       C. Compare and Swap

       D. Check and Compare

Ans : Compare and Swap

Q.8 Which of these is not a valid memcached operation?

       A. Multi-Set

       B. Mult-Get

       C. Get

       D. Gets

Ans : Multi-Set

Q.9 Which operation is a client-only operation?

       A. Multi-Set

       B. Mult-Get

       C. Get

       D. Gets

Ans : Mult-Get

Q.10 Which of these is not a metric in stats command

       A. total_items

       B. threads

       C. curr_items

       D. Hit Rate

Ans : Hit Rate

Q.11 Evictions implies which of the following?

       A. Removing of unused objects from memory pool

       B. Forceful removal of least recently used objects

       C. Removal of long objects

       D. Removal of large objects

Ans : Forceful removal of least recently used objects

Q.12 Which parameter is used for setting replication instance?

       A. -x

       B. -p

       C. -u

       D. -d

Ans : -x

Q.13 Does memcached-top comes by default with memcached

       A. True

       B. False

Ans : False

Q.14 Whats the maximum limit on Key size?

       A. 250 chars

       B. 1000 chars

       C. 50 chars

       D. 10 chars

Ans : 250 chars

Q.15 what is the extra parameter returned when using gets compared get?

       A. Server IP

       B. View Count

       C. Unique CAS Token

       D. Timestamp

Ans : Unique CAS Token

Q.16 Who decides which memcached server to connect?

       A. Memcached master

       B. Memcached Client

       C. API

       D. Application

Ans : Memcached Client

Q.17 Which file contains the configuration of memached

       A. hosts.conf

       B. Memcached.conf

       C. mc.conf

       D. cachce.conf

Ans : Memcached.conf

Q.18 What status will be returned if the add statement issued twice

       A. EXISTS

       B. ERROR

       C. STORED

       D. NOT FOUND


Q.19 Which of the memcached operation takes into account of order?

       A. Append

       B. Set

       C. Replace

       D. Get

Ans : Append

Q.20 If evictions are high but connection yields are low, they denote?

       A. Too less large objects are cached

       B. Too Many small objects are cached

Ans : Too Many small objects are cached

Q.21 Can Race condition happen in monolithic Memcached

       A. True

       B. False

Ans : False

Q.22 If you have simple operations with very high frequently changing data what is a good choice?

       A. Memcached

       B. Redis

Ans : Memcached

Q.23 What does flush_all 90 do?

       A. Clears all object greater than 90KB

       B. Clears all objects after 90 seconds

       C. Clears first 90 objects

       D. Clears 90 LRU objects

Ans : Clears all objects after 90 seconds

Q.24 Which of the command is used for collecting stats using CLI?

       A. report

       B. stats

       C. metrics

       D. Statistics

Ans : stats

Q.25 which command can be used to keep the object top in LRU list?

       A. replace

       B. Gets

       C. touch

       D. get

Ans : touch

Q.26 Which of the following is not a configuration parmeter

       A. -p

       B. -s

       C. -d

       D. -m

Ans : -s

Q.27 Which algorithm is used by memcached for evictions

       A. First Come First Served (FCFS)

       B. Least Recently Used(LRU)

       C. Round Robin

       D. Most Recently Used(MRU)

Ans : Least Recently Used(LRU)

Q.28 LRU Stand for _________.

       A. Least Recently Used(LRU)

       B. Last Recently Used(LRU)

       C. Late Recently Used(LRU)

Ans : Least Recently Used(LRU)

Q.29 Which of the following is not a property of memcached

       A. Object Store

       B. In-Memory

       C. Free

       D. Persistence Storage

Ans : Persistence Storage

Q.30 Memcached follows which of the following?

       A. Multi-State Clustering

       B. Single Slate Clustering

Ans : Multi-State Clustering

Leave a Comment