Google News
logo
Memcached - Quiz(MCQ)

Memcached : Free & open source, high-performance, distributed memory object caching system, generic in nature, but intended for use in speeding up dynamic web applications by alleviating database load.

Memcached is an in-memory key-value store for small chunks of arbitrary data (strings, objects) from results of database calls, API calls, or page rendering.

Memcached is simple yet powerful. Its simple design promotes quick deployment, ease of development, and solves many problems facing large data caches. Its API is available for most popular languages.

A)
May, 22, 2000
B)
May, 22, 2002
C)
May, 22, 2003
D)
May, 22, 2004

Correct Answer :   May, 22, 2003


Explanation : Memcached was first developed by Brad Fitzpatrick for his website LiveJournal, on May 22, 2003. It was originally written in Perl, then later rewritten in C by Anatoly Vorobey, then employed by LiveJournal.

A)
C
B)
C++
C)
Java
D)
Ruby

Correct Answer :   C


Explanation : Memcached is written in C language.

A)
Eric Schmidt
B)
Alan Mulally
C)
Sergey Brin
D)
Brad Fitzpatrick

Correct Answer :   Brad Fitzpatrick


Explanation : Memcached was first developed by Brad Fitzpatrick for his website LiveJournal, on May 22, 2003

A)
Centralized memory object caching system
B)
Distributed memory object caching system
C)
Both (A) and (B)
D)
None of the above

Correct Answer :   Distributed memory object caching system


Explanation : Memcached is a Distributed memory object caching system.

A)
Yes
B)
No
C)
Can Not Say
D)
None of the above

Correct Answer :   Yes


Explanation : Memcached is open-source.

A)
11311
B)
11220
C)
11211
D)
11451

Correct Answer :   11211


Explanation : Memcached default port is 11211.

A)
$ HOST PORT
B)
$telnet HOST
C)
$telnet PORT_NAME
D)
$telnet HOST PORT

Correct Answer :   $telnet HOST PORT


Explanation : The Memcached telnet command's basic syntax is: $telnet HOST PORT.

A)
Redis
B)
Couchbase
C)
Apache Ignite
D)
All of the above

Correct Answer :   All of the above


Explanation : Following are the alternatives of Memcached:

* Redis
* Couchbase
* Apache Ignite
* Varnish

A)
Twitter
B)
Facebook
C)
WordPress
D)
All of the above

Correct Answer :   All of the above


Explanation : Following companies are using Memcached :

* Twitter
* Facebook
* WordPress
* Airbnb

A)
Ver
B)
version
C)
–version
D)
Version—

Correct Answer :   version


Explanation : The version command provides you with the version of Memcached.

A)
Set
B)
Fix
C)
Setup
D)
Change

Correct Answer :   Set


Explanation : The set command in Memcached is used to assign a new value to a new or existing key.

A)
Set
B)
Add
C)
Assign
D)
Create

Correct Answer :   Add


Explanation : The add command in Memcached is used to assign a value to a new key.

A)
the output is STORED.
B)
the output is DUPLICATED
C)
the output is NOT STORED.
D)
None of the above

Correct Answer :   the output is NOT STORED.


Explanation : The add command in Memcached is used to assign a value to a new key. If the key already exists, the output is NOT STORED.

A)
2
B)
3
C)
4
D)
5

Correct Answer :   2


Explanation : There are two methods to update Memcached when data changes :

* By clearing the cache proactively
* By resetting the cache

A)
Segmentation
B)
Dogpile effect
C)
Fragmentation
D)
Sharding

Correct Answer :   Sharding


Explanation : Sharding is the method of distributing a big data set over numerous Memcached servers in a cluster.

A)
24 hours
B)
30 days
C)
60 days
D)
90 days

Correct Answer :   30 days


Explanation : The maximum TTL is 30 days.

A)
1MB
B)
2MB
C)
10MB
D)
No limit

Correct Answer :   1MB


Explanation : The maximum size of a value that can be stored in Memcached is 1 megabyte (MB).

A)
160 characters
B)
200 characters
C)
250 characters
D)
500 characters

Correct Answer :   250 characters


Explanation : The maximum length of a key in Memcached is 250 characters.

19 .
In the below syntax of add command, which of the following keyword in a syntax represent the data that needs to be stored?

add key flags exptime bytes [noreply]​
A)
Key
B)
Flags
C)
Exptime
D)
Value

Correct Answer :   Value


Explaination : Value represents the data that needs to be stored.

A)
Swap
B)
Change
C)
Replace
D)
Substitute

Correct Answer :   Replace


Explanation : The replace command in Memcached is used to replace the value of an existing key.

A)
the output is STORED.
B)
the output is DUPLICATED
C)
the output is NOT STORED.
D)
All of the above

Correct Answer :   the output is NOT STORED.


Explanation : The replace command in Memcached is used to replace the value of an existing key. If the key does not exist, the output is NOT STORED.

A)
Add
B)
Extend
C)
Prepend
D)
Append

Correct Answer :   Append


Explanation : The append command in Memcached is used to add data to an existing key.

A)
Yes
B)
No
C)
Can Not Say
D)
None of the above

Correct Answer :   Yes


Explanation : Yes, Memcached allows replication, which means that data may be replicated across numerous servers in a cluster.

A)
Yes
B)
No
C)
Can Not Say
D)
None of the above

Correct Answer :   No


Explanation : Memcached is not a fault-tolerant tool.

A)
Enabled
B)
Disabled
C)
Can Not Say
D)
None of the above

Correct Answer :   Disabled


Explanation : In Memcached, the UDP server is Disabled by default.

A)
extstore can't keep up
B)
you're writing too quickly
C)
you've run out of Memory
D)
All of the above

Correct Answer :   All of the above


Explanation : Evictions can indicate that you've run out of Memory or that you're writing too quickly and extstore can't keep up.

A)
1024
B)
1050
C)
2000
D)
8000

Correct Answer :   1024


Explanation : The maximum number of concurrent connections is set to 1024 by default.

A)
Drop_all
B)
Delete_all
C)
Flush_all
D)
Remove_all

Correct Answer :   Flush_all


Explanation : The flush_all Memcached command deletes all data (key-value pairs) from the Memcached server.

A)
After
B)
Before
C)
Middle
D)
None of the above

Correct Answer :   After


Explanation : The append command in Memcached is used to add data to an existing key. The data is stored after the key's existing data.

A)
Add
B)
Extend
C)
Append
D)
Prepend

Correct Answer :   Prepend


Explanation : The prepend command is used to append data to the beginning of an existing Memcached value for a specific key.

A)
The prepend command will fail if the key does not exist.
B)
The prepend command will append at the end of the key if the key does not exist.
C)
The prepend command will append in the middle of any key if the key does not exist.
D)
None of the above

Correct Answer :   The prepend command will fail if the key does not exist.


Explanation : The prepend command will fail if the key does not exist.

A)
Check-And-Set
B)
Compare-And-Swap
C)
Both (A) and (B)
D)
None of the above

Correct Answer :   Both (A) and (B)


Explanation : CAS stands for Check-And-Set or Compare-And-Swap.

A)
Set
B)
CAS
C)
Recover
D)
Retrieve

Correct Answer :   CAS


Explanation : If the data hasn't been updated since the last retrieve, the Memcached CAS command is used to set it.

A)
TTL
B)
LRU
C)
Slab allocator
D)
None of the above

Correct Answer :   TTL


Explanation : TTL refers to the length of time a value is held in Memcached before being evicted.

35 .
A)
Time to load
B)
Total time left
C)
Total time live
D)
Time to live

Correct Answer :   Time to live


Explanation : TTL stands for time to live.

A)
TTL
B)
LRU
C)
Slab allocator
D)
None of the above

Correct Answer :   LRU


Explanation : Memcached use LRU to free up memory when it becomes full.

A)
Get
B)
Obtain
C)
Retrieve
D)
None of the above

Correct Answer :   Get


Explanation : The Memcached get command is used to retrieve the value stored at the key.

A)
Drop
B)
Erase
C)
Delete
D)
Remove

Correct Answer :   Delete


Explanation : The Memcached delete command is used to remove an existing key from the Memcached server.

A)
Incr
B)
Raise
C)
Increase
D)
Increment

Correct Answer :   Incr


Explanation : Incr command in Memcached is used to increase the numeric value of an existing key.

A)
Decr
B)
lower
C)
decrease
D)
Decrement

Correct Answer :   Decr


Explanation : Decr command in Memcached is used to decrease the numeric value of an existing key.

41 .
A)
Late reset utilized
B)
Least recently used
C)
Last recently used
D)
Least recently utilized

Correct Answer :   Least recently used


Explanation : LRU stands for least recently used.

A)
Restored
B)
Rolled Back
C)
Destroyed
D)
None of the above

Correct Answer :   Destroyed


Explanation : When the server is shut down or restarted, all Memcached data is destroyed.

A)
Yes
B)
No
C)
Can Not Say
D)
None of the above

Correct Answer :   No


Explanation : No, data stored in Memcached is not permanently stored. It is temporally stored data.

A)
NOT FOUND
B)
Returns Nothing
C)
CLIENT_ERROR cannot increment or decrement non-numeric value
D)
None of the above

Correct Answer :   CLIENT_ERROR cannot increment or decrement non-numeric value


Explanation : CLIENT_ERROR cannot increment or decrement non-numeric value.

A)
Yes
B)
No
C)
Can Not Say
D)
None of the above

Correct Answer :   No


Explanation : Memcached is a memory cache, not a database. It just saves transient data.

A)
Deadlock
B)
Bootloader
C)
Scheduler Locker
D)
Semaphore Lock

Correct Answer :   Semaphore Lock


Explanation : The dogpile effect can be prevented using a semaphore lock.

47 .
The ____ occurs when the cache expires and websites are attacked by many requests from the client at the same time.
A)
CAS
B)
LRU
C)
Slab allocator
D)
Dogpile effect

Correct Answer :   Dogpile effect


Explaination : The Dogpile effect occurs when the cache expires and websites are attacked by many requests from the client at the same time.

A)
One
B)
More than one
C)
Many
D)
None of the above

Correct Answer :   One


Explanation : Each Memcached has one unique key.

A)
End
B)
Close
C)
Quit
D)
Delete

Correct Answer :   Quit


Explanation : The quit command is used to close the connection.

A)
Stats
B)
Info
C)
Facts
D)
Statistics

Correct Answer :   Stats


Explanation : The Memcached stats command returns server statistics such as PID, version, connections, and so on.