Grokking the Advanced System Design Interview
Ask Author
Back to course home

0% completed

Vote For New Content
Quiz I
Table of Contents

Contents are not accessible

Contents are not accessible

Contents are not accessible

Contents are not accessible

Contents are not accessible

Test your knowledge of different systems that you have learned in this course by completing this quiz.

A cache is primarily used to improve:
Choose all correct options
Latency
Concurrency
Fault tolerance
Cost
In a distributed environment, a network partition can cause which of the following problems? Select all that apply.
Choose all correct options
Split-brain
Each of the two servers might think that the other one is dead.
Messages might be sent to the wrong server.
Message or data loss.
What is the benefit of using Piggybacked acknowledgments?
Choose all correct options
It delays the acknowledgment response.
It efficiently uses the available channel bandwidth, thus improving the efficiency of the system.
It decreases the system complexity.
It is an efficient way for the sender to acknowledge the receipt of an acknowledgment.
The CAP theorem tells us that:
Choose all correct options
A distributed system can only have two out of three. Consistency, atomicity, and partition tolerance.
A distributed transaction must have to choose two out the three. Consistency, isolation, and durability.
Any distributed system which is highly-available will have problems with consistency.
In distributed systems, durability and lower latency can only come at the cost of lower consistency.
Following is the property of the Write-ahead Log (WAL). Select all that apply.
Choose all correct options
Data is always sequentially appended to the WAL.
Each log entry in the WAL has a unique identifier.
WAL does not allow updating the data once written.
WAL reduces the read latency by providing a cache containing recent transactions.
As opposed to locks, leases:
Choose all correct options
Have expiration times.
Are long-term while locks are short-term
Can be shared between multiple clients
Are coarse-grained locks
What advantage does it give to a system to have separate read and write locks?
Choose all correct options
Enables concurrent reading of a resource by multiple entities
Enables concurrent writing to a resource by multiple entities
Enables entities to get 'execute' access on a resource if they acquire both read and write locks at the same time
None of the above
For GFS, what are the benefits of a large chunk size? Select all that apply.
Choose all correct options
A small file can all be stored in just one chunk.
Large chunk size provides highly efficient sequential reads and appends of large amounts of data.
A large chunk size simplifies ChunkServer management.
A large chunk size reduces the size of the metadata stored on the master.
Consistent hashing ensures that:
Choose all correct options
Data will be stored on the servers reliably.
If a server is removed, its data will be distributed to all other nodes in the cluster.
Only a small set of keys move when servers are added or removed.
The data will be distributed equally among the servers.
Dynamo uses virtual nodes for which of the following reasons? Select all that apply.
Choose all correct options
To avoid hotspots
To spread the load more evenly across the physical nodes on the cluster by dividing the hash ranges into smaller subranges
To enable the use of virtual machines and virtual memory
To better maintain a cluster containing heterogeneous machines
Of the following options, which is not a characteristic of Amazon's Dynamo?
Choose all correct options
Partition-tolerant
Highly available
Strongly Consistent
Highly reliable
Unlike BigTable, with Amazon Dynamo:
Choose all correct options
Keys are sorted alphabetically to support iteration.
An object is identified by exactly one key.
Two processes may write conflicting updates.
All requests pass through a coordinator.
Virtual nodes in Amazon Dynamo are designed to:
Choose all correct options
Improve fault tolerance due to the replication of nodes
Increase the requests the system can handle since many virtual nodes can be managed by one physical node
Improve load distribution when adding or removing nodes
Create an overlay network that arranges nodes into a logical ring
Which of the following are in-memory structures where Cassandra buffers write?
Choose all correct options
SSTables
NetTables
LinkTables
Memtables
What are the disadvantages of using Tombstones in Cassandra? Select all that apply.
Choose all correct options
Slower reads
Deleted data takes more storage until Tombstones are completely removed during compaction.
Slower writes
Faster writes

.....

.....

.....

Like the course? Get enrolled and start learning!

Table of Contents

Contents are not accessible

Contents are not accessible

Contents are not accessible

Contents are not accessible

Contents are not accessible