Notice: Due to an ongoing migration of our storage and publishing system, material requested since last month will not be uploaded for the time being, and new requests are paused. All existing notes remain available.
Question 1 of 60 · Installation of Apache HBase · Easy
Which software is required to run Apache HBase?
Not quite. Try another option.
Answer: Java Development Kit
Apache HBase is Java-based, so a compatible Java Development Kit must be installed.
Question 2 of 60 · Installation of Apache HBase · Easy
Which script is commonly used to start Apache HBase?
Not quite. Try another option.
Answer: start-hbase.sh
The start-hbase.sh script starts the HBase services configured for the installation.
Question 3 of 60 · HBase Fundamentals · Easy
What type of database is Apache HBase?
Not quite. Try another option.
Answer: Column-oriented NoSQL database
HBase is a distributed, column-oriented NoSQL database designed for large datasets.
Question 4 of 60 · HBase Fundamentals · Easy
Apache HBase is designed to provide random, real-time access to data stored mainly in which system?
Not quite. Try another option.
Answer: HDFS
HBase commonly stores its data in the Hadoop Distributed File System, or HDFS.
Question 5 of 60 · HBase Data Model · Easy
What uniquely identifies a row in an HBase table?
Not quite. Try another option.
Answer: Row key
Each row in an HBase table is uniquely identified by its row key.
Question 6 of 60 · HBase Data Model · Easy
How are related columns grouped in the HBase data model?
Not quite. Try another option.
Answer: Column families
HBase groups related columns into column families that are defined when the table is created.
Question 7 of 60 · HBase Data Model · Easy
In the HBase column name personal:name, what does name represent?
Not quite. Try another option.
Answer: Column qualifier
In personal:name, personal is the column family and name is the column qualifier.
Question 8 of 60 · HBase Data Model · Easy
What allows HBase to keep multiple versions of a cell value?
Not quite. Try another option.
Answer: Timestamp
HBase associates cell values with timestamps, allowing multiple versions to be stored.
Question 9 of 60 · HBase Architecture · Easy
Which HBase component manages administrative operations such as assigning regions?
Not quite. Try another option.
Answer: HMaster
The HMaster coordinates administrative tasks, including assigning regions to RegionServers.
Question 10 of 60 · HBase Architecture · Easy
Which HBase component handles read and write requests for table regions?
Not quite. Try another option.
Answer: RegionServer
RegionServers manage table regions and serve client read and write requests.
Question 11 of 60 · HBase Architecture · Easy
What is the primary role of Apache ZooKeeper in an HBase cluster?
Not quite. Try another option.
Answer: Cluster coordination
ZooKeeper supports coordination, service discovery, and failure monitoring within an HBase cluster.
Question 12 of 60 · General Commands in Apache HBase · Easy
Which HBase Shell command creates a new table?
Not quite. Try another option.
Answer: create
The create command creates an HBase table and defines its column families.
Question 13 of 60 · General Commands in Apache HBase · Easy
Which HBase Shell command retrieves one row using its row key?
Not quite. Try another option.
Answer: get
The get command retrieves data for a specific row key from an HBase table.
Question 14 of 60 · General Commands in Apache HBase · Easy
Which HBase Shell command displays multiple rows from a table?
Not quite. Try another option.
Answer: scan
The scan command reads a range of rows and displays their stored cells.
Question 15 of 60 · Prefix filtering in HBase · Easy
What does an HBase PrefixFilter examine?
Not quite. Try another option.
Answer: Beginning of row keys
A PrefixFilter returns rows whose row keys begin with the specified prefix.
Question 16 of 60 · Prefix filtering in HBase · Easy
Which filter would select row keys beginning with user?
Not quite. Try another option.
Answer: PrefixFilter('user')
PrefixFilter('user') matches rows with row keys that start with user.
Question 17 of 60 · Single value column filtering in HBase · Easy
What is the purpose of SingleColumnValueFilter in HBase?
Not quite. Try another option.
Answer: Filter rows by a column value
SingleColumnValueFilter includes or excludes rows by comparing a specific column's value.
Question 18 of 60 · Single value column filtering in HBase · Easy
Which information is specified when using SingleColumnValueFilter?
Not quite. Try another option.
Answer: Family, qualifier, operator, and comparator
The filter identifies a column using its family and qualifier, then applies an operator and comparator.
Question 19 of 60 · TTL for columns in HBase · Easy
What does TTL mean in Apache HBase?
Not quite. Try another option.
Answer: Time To Live
TTL means Time To Live and controls how long stored data remains valid.
Question 20 of 60 · TTL for columns in HBase · Easy
At which level is TTL commonly configured in the HBase schema?
Not quite. Try another option.
Answer: Column family level
TTL is commonly configured in seconds for a column family, causing older cells to expire.
Question 21 of 60 · Installation of Apache HBase · Medium
After installing HBase, running start-hbase.sh fails with an error indicating that Java cannot be found. Which configuration should be checked first?
Not quite. Try another option.
Answer: The JAVA_HOME setting in hbase-env.sh
HBase requires a supported Java installation. JAVA_HOME in hbase-env.sh must point to the correct Java directory.
Question 22 of 60 · Installation of Apache HBase · Medium
An administrator wants HBase to run in pseudo-distributed mode and store its data in HDFS. Which configuration is most appropriate?
Not quite. Try another option.
Answer: Set hbase.cluster.distributed to true and use an HDFS root path
Pseudo-distributed HBase uses distributed mode while running services on one machine. Its hbase.rootdir can point to an HDFS location.
Question 23 of 60 · HBase Fundamentals · Medium
A banking application must update two different HBase rows as one indivisible transaction. Which limitation must the designer consider?
Not quite. Try another option.
Answer: HBase guarantees atomicity only within a single row
HBase row mutations are atomic, but updates involving multiple rows are not automatically treated as one atomic transaction.
Question 24 of 60 · HBase Fundamentals · Medium
A table stores optional attributes, and most rows contain values for only a few columns. Why is HBase suitable for this design?
Not quite. Try another option.
Answer: It physically stores only cells that contain values
HBase is sparse. A missing column does not normally consume cell storage, making it suitable for records with many optional attributes.
Question 25 of 60 · HBase Data Model · Medium
The value of profile:email for row user42 is updated several times. What distinguishes the stored versions of this cell?
Not quite. Try another option.
Answer: A distinct timestamp
An HBase cell is identified by row key, column family, qualifier, and timestamp. Different timestamps represent different cell versions.
Question 26 of 60 · HBase Data Model · Medium
A table receives very heavy sequential writes using row keys such as 000001, 000002, and 000003. Which redesign best reduces the risk of a single-region hotspot?
Not quite. Try another option.
Answer: Add a hash or salt prefix to each row key
Sequential row keys direct new writes toward the same key range. A hash or salt prefix distributes writes across multiple regions.
Question 27 of 60 · HBase Data Model · Medium
A table has the column families info and metrics. Which item can be introduced dynamically without altering the table schema?
Not quite. Try another option.
Answer: A qualifier under info
Column families are defined in the schema, but qualifiers within a family can be created dynamically when data is written.
Question 28 of 60 · HBase Architecture · Medium
A client writes a value to HBase using normal durability. Which sequence best describes the RegionServer write path?
Not quite. Try another option.
Answer: Append to the WAL, update the MemStore, and later flush to HFiles
The WAL provides recovery information, while the MemStore holds recent writes. MemStore contents are later flushed to immutable HFiles.
Question 29 of 60 · HBase Architecture · Medium
A RegionServer fails before its MemStore has been flushed. Which component is primarily used to recover the unflushed edits?
Not quite. Try another option.
Answer: The Write-Ahead Log
The Write-Ahead Log records edits before they are acknowledged, allowing unflushed changes to be replayed after a failure.
Question 30 of 60 · HBase Architecture · Medium
A region grows beyond its configured size and is split. Which outcome is expected?
Not quite. Try another option.
Answer: The region becomes two daughter regions covering adjacent key ranges
A region split creates daughter regions with non-overlapping, adjacent row-key ranges that together cover the original range.
Question 31 of 60 · HBase Architecture · Medium
Which HBase component is mainly responsible for assigning regions to RegionServers and coordinating load balancing?
Not quite. Try another option.
Answer: HMaster
The HMaster manages region assignment, load balancing, and administrative operations. RegionServers directly handle client data requests.
Question 32 of 60 · General Commands in Apache HBase · Medium
Which HBase shell command correctly creates a table named orders with column families info and items?
Not quite. Try another option.
Answer: create 'orders', 'info', 'items'
The create command takes the table name followed by one or more column family definitions.
Question 33 of 60 · General Commands in Apache HBase · Medium
Which command correctly stores PAID in column info:status of row order101 in table orders?
Not quite. Try another option.
Answer: put 'orders', 'order101', 'info:status', 'PAID'
The put command specifies the table, row key, family and qualifier, and value in that order.
Question 34 of 60 · General Commands in Apache HBase · Medium
An administrator executes drop 'archive' while the archive table is enabled. What should be done first?
Not quite. Try another option.
Answer: Run disable 'archive'
An HBase table must be disabled before it can be dropped using the shell.
Question 35 of 60 · Prefix filtering in HBase · Medium
A table contains row keys such as cust#100, cust#205, and order#300. Which scan returns only rows whose keys begin with cust#?
SingleColumnValueFilter evaluates the value of a specified family and qualifier using a comparison operator and comparator.
Question 38 of 60 · Single value column filtering in HBase · Medium
A SingleColumnValueFilter searches for info:status = ACTIVE, but rows missing info:status must also be excluded. Which setting is required?
Not quite. Try another option.
Answer: Set filterIfMissing to true
With filterIfMissing set to true, rows that do not contain the specified column are removed from the result.
Question 39 of 60 · TTL for columns in HBase · Medium
A column family has TTL => 3600. A cell uses a timestamp from two hours ago. How should HBase treat the cell during a normal read?
Not quite. Try another option.
Answer: Treat it as expired and omit it from the result
A TTL of seconds makes a two-hour-old cell expired. Expired cells are omitted from reads and are physically removed during compaction.
Question 40 of 60 · TTL for columns in HBase · Medium
Which HBase shell command configures the events column family of table logs to retain cells for one day?
Not quite. Try another option.
Answer: alter 'logs', {NAME => 'events', TTL => 86400}
Column-family TTL is expressed in seconds. One day is seconds.
Question 41 of 60 · Installation of Apache HBase · Hard
A fully distributed HBase installation starts HMaster successfully, but RegionServers repeatedly fail because they cannot access the configured root directory. Which configuration is the most appropriate?
Not quite. Try another option.
Answer: Set hbase.rootdir to the same HDFS URI on every HBase node
In distributed mode, HMaster and all RegionServers must use one shared hbase.rootdir, normally an HDFS URI such as hdfs://namenode:8020/hbase.
Question 42 of 60 · Installation of Apache HBase · Hard
An administrator configures hbase.cluster.distributed as true and points hbase.rootdir to HDFS. HBase daemons start, but RegionServers cannot register reliably because different nodes resolve the ZooKeeper hosts differently. What is the best corrective action?
Not quite. Try another option.
Answer: Configure a consistent reachable hbase.zookeeper.quorum on every HBase node
All HBase processes must reach the same ZooKeeper ensemble using consistently resolvable hostnames. ZooKeeper coordinates active-master discovery and live RegionServer membership.
Question 43 of 60 · HBase Fundamentals · Hard
A transaction updates two qualifiers in the same row and one qualifier in another row. Which atomicity guarantee does native HBase provide?
Not quite. Try another option.
Answer: The qualifiers in one row can be updated atomically, but the second row is separate
HBase provides row-level atomicity. A mutation can atomically change multiple column families or qualifiers in one row, but native mutations do not form an atomic transaction across rows.
Question 44 of 60 · HBase Fundamentals · Hard
A client writes a row successfully and immediately performs a strongly consistent Get for that row. The MemStore has not yet been flushed to an HFile. What should the client observe?
Not quite. Try another option.
Answer: The new value, because reads consult in-memory and persisted stores
A successful write is visible before an HFile flush. Reads merge relevant data from MemStore, BlockCache, and HFiles while respecting timestamp and deletion semantics.
Question 45 of 60 · HBase Data Model · Hard
Two cells have the same row key, column family, and qualifier but timestamps of 100 and 200. Assuming no delete markers and VERSIONS => 1, which cell is returned by a normal read?
Not quite. Try another option.
Answer: The cell at timestamp 200, because it is the newest version
An HBase cell is identified by row, family, qualifier, and timestamp. With one requested version, the cell having the greatest visible timestamp is returned.
Question 46 of 60 · HBase Data Model · Hard
A table uses monotonically increasing timestamps as the leading bytes of each row key. Under heavy ingestion, one RegionServer receives nearly all writes. Which redesign most directly distributes the write load while preserving timestamp-based retrieval through controlled scans?
Not quite. Try another option.
Answer: Prefix each key with a bounded hash bucket and scan the required buckets
HBase sorts rows lexicographically, so sequential leading keys create a moving hotspot. A bounded salt or hash prefix spreads writes, while readers can issue parallel range scans across known buckets.
Question 47 of 60 · HBase Data Model · Hard
A table has column families profile and metrics. Most requests read only profile, while metrics is large and rarely accessed. Why can separating them into different families improve read behavior?
Not quite. Try another option.
Answer: Each family has separate stores and HFiles, so unrequested family data can be skipped
A region maintains a separate Store for each column family. Reading only profile can avoid accessing the HFiles associated with metrics, although both families remain in the same row and region.
Question 48 of 60 · HBase Architecture · Hard
Which sequence best represents the durable write path for a normal HBase Put before any MemStore flush occurs?
Not quite. Try another option.
Answer: RegionServer appends to the WAL, updates MemStore, and acknowledges the client
The serving RegionServer records the mutation in its WAL for recovery and applies it to MemStore. It can then acknowledge the write without waiting for an HFile flush.
Question 49 of 60 · HBase Architecture · Hard
A RegionServer crashes after acknowledging writes that remain only in its WAL and MemStores. How are those unflushed writes normally recovered?
Not quite. Try another option.
Answer: The WAL is split, and relevant edits are replayed when regions are reassigned
After a RegionServer failure, its WAL edits are separated by affected region and replayed during region recovery. ZooKeeper does not contain the cell values.
Question 50 of 60 · HBase Architecture · Hard
A client has stale region-location information because a table region recently split. What is the expected recovery behavior?
Not quite. Try another option.
Answer: The client refreshes region metadata and retries against the appropriate daughter region
Clients cache region locations. When a cached location becomes stale, the client consults HBase metadata, discovers the daughter region serving the key, and retries.
Question 51 of 60 · HBase Architecture · Hard
A Store accumulates many small HFiles, increasing read amplification. Which HBase operation most directly reduces the number of HFiles while also permanently removing eligible delete markers and expired cells?
Not quite. Try another option.
Answer: A major compaction that rewrites all Store files
A major compaction rewrites all HFiles in a Store into consolidated output and can discard data hidden by eligible tombstones or TTL expiration. A flush generally adds an HFile.
Question 52 of 60 · General Commands in Apache HBase · Hard
A table events has presplit region boundaries that must be retained while all data is removed. Which HBase shell command is designed for this operation?
Not quite. Try another option.
Answer: truncate_preserve 'events'
truncate_preserve recreates the table while preserving its existing split points. Ordinary truncate recreates the table without preserving those boundaries.
Question 53 of 60 · General Commands in Apache HBase · Hard
Rows have keys a10, a20, b10, and b20. What does the shell command scan 't', {STARTROW => 'a20', STOPROW => 'b20'} return, assuming no filters?
Not quite. Try another option.
Answer: Rows a20 and b10, because STOPROW is exclusive
A scan includes STARTROW and excludes STOPROW. In lexicographic order, a20 and b10 fall in the interval .
Question 54 of 60 · General Commands in Apache HBase · Hard
An administrator wants to remove table archive completely. Which command sequence satisfies the normal HBase shell state requirements?
Not quite. Try another option.
Answer: disable 'archive' followed by drop 'archive'
A table normally must be disabled before it can be dropped. deleteall operates on row data, while unassignment and compaction do not satisfy the table-state requirement.
Question 55 of 60 · Prefix filtering in HBase · Hard
A very large table is scanned with only PrefixFilter('acct#42#'). The matching rows occupy a narrow contiguous row-key interval. Which change most directly reduces unnecessary row traversal?
Not quite. Try another option.
Answer: Add matching start and stop row bounds while retaining the prefix filter
A prefix filter rejects nonmatching rows but does not inherently provide the most efficient scan boundaries. A calculated key range lets the scanner seek directly to the relevant interval.
Question 56 of 60 · Prefix filtering in HBase · Hard
Row keys are arbitrary byte arrays, and a desired prefix ends entirely in 0xFF bytes. Why can computing an exclusive stop row for that prefix be problematic?
Not quite. Try another option.
Answer: That prefix may have no finite lexicographic successor, so a filter may still be required
A prefix range normally ends at the smallest byte sequence greater than every key with that prefix. An all-0xFF suffix cannot be incremented normally, so an unbounded scan combined with PrefixFilter may be needed.
Question 57 of 60 · Single value column filtering in HBase · Hard
A SingleColumnValueFilter checks whether status:value equals ACTIVE. Some rows do not contain status:value, and those rows must be excluded. Which setting is essential?
Not quite. Try another option.
Answer: Set filterIfMissing to true
By default, rows missing the tested column may pass a SingleColumnValueFilter. Setting filterIfMissing to true rejects rows in which that column is absent.
Question 58 of 60 · Single value column filtering in HBase · Hard
A column has an older version equal to APPROVED and a latest version equal to REVOKED. A SingleColumnValueFilter compares against APPROVED. Which configuration allows the older matching version to make the row pass?
Not quite. Try another option.
Answer: Set latestVersionOnly to false and request enough versions
With latestVersionOnly disabled, the filter can evaluate older available versions. The scan must also expose enough versions for the older APPROVED cell to be considered.
Question 59 of 60 · TTL for columns in HBase · Hard
A column family has TTL => 3600. A client writes a cell at wall-clock time 10,000 but explicitly assigns the cell timestamp 5,000. At wall-clock time 10,100, how is TTL eligibility determined?
Not quite. Try another option.
Answer: The cell is expired because TTL is evaluated from its assigned timestamp
TTL is based on the cell timestamp, not necessarily the physical insertion time. Here the cell's age is seconds, exceeding the 3,600-second TTL.
Question 60 of 60 · TTL for columns in HBase · Hard
A column family is configured with TTL => 86400, MIN_VERSIONS => 1, and VERSIONS => 3. All versions of a qualifier are older than the TTL. What is the intended effect of MIN_VERSIONS => 1?
Not quite. Try another option.
Answer: At least one version can be retained even though all versions exceed the TTL
MIN_VERSIONS specifies a lower bound on retained versions even when TTL would otherwise expire them. It does not refresh timestamps or preserve every configured version indefinitely.
That's unit 5
Answer a few questions and your score shows up here.
Nearly through. Did unit 5 of INT312 save you a night before the exam?
LPU Notes is free. A student pays for the servers.
Did unit 5 of INT312 save you a night before the exam?
Then you can help keep it free for the next batch. Ads cover part of the server bill;
the rest comes out of a student's own pocket: the domain, the storage, and keeping
the site up through the weeks everyone needs it at once.
The payment button didn't load. An ad blocker or a filtered network is the usual reason.
to try again.