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.

Unit 4 MCQs Introduction to Apache Hive

INT312 — Big Data Fundamentals 60 questions. Pick an option to check it.

Read the notes Subjective questions

0 of 60 answered 0 right 0 wrong , 60 left

  1. Question 1 of 60 Hive installation Easy

    Which of the following is a mandatory prerequisite software framework for running Apache Hive?

  2. Question 2 of 60 Hive installation Easy

    What is the default embedded database used by Hive for its Metastore in local mode?

  3. Question 3 of 60 Hive installation Easy

    Which environment variable is typically set to point to the base directory of the Hive installation?

  4. Question 4 of 60 Hive data types Easy

    Which of the following Hive data types is used to store text or character sequences?

  5. Question 5 of 60 Hive data types Easy

    Which complex data type in Hive is used to store an unordered collection of key-value pairs?

  6. Question 6 of 60 Hive data types Easy

    Which complex data type represents an ordered collection of elements of the exact same data type?

  7. Question 7 of 60 Hive data types Easy

    Which primitive data type in Hive is used to represent true or false values?

  8. Question 8 of 60 Hive bucketing Easy

    Which clause is used in a HiveQL CREATE TABLE statement to implement bucketing?

  9. Question 9 of 60 Hive bucketing Easy

    How does Hive determine which bucket a particular record should be stored in?

  10. Question 10 of 60 Hive bucketing Easy

    What is one of the primary performance benefits of using bucketing in Hive?

  11. Question 11 of 60 Hive partitioning Easy

    How is partitioned data physically organized in the Hadoop Distributed File System (HDFS)?

  12. Question 12 of 60 Hive partitioning Easy

    Which keyword is used to create partitioned tables in Hive?

  13. Question 13 of 60 Hive partitioning Easy

    What is the main advantage of using partitioning in Hive?

  14. Question 14 of 60 Hiveql operations Easy

    Which HiveQL command is used to display a list of all existing databases?

  15. Question 15 of 60 Hiveql operations Easy

    Which command is used to permanently remove a table and its metadata from Hive?

  16. Question 16 of 60 Hiveql operations Easy

    Which command allows a user to import data from a local file system into a Hive table?

  17. Question 17 of 60 Hiveql operations Easy

    How do you define a new table structure in HiveQL?

  18. Question 18 of 60 Hive operators Easy

    Which relational operator in Hive is used to check if two values are equal?

  19. Question 19 of 60 Hive operators Easy

    Which logical operator is used to ensure both conditions in a WHERE clause evaluate to true?

  20. Question 20 of 60 Hive operators Easy

    Which Hive operator is specifically used to check if a column value is missing or undefined?

  21. Question 21 of 60 Hive installation Medium

    Which of the following is a mandatory prerequisite running service for Apache Hive to function properly, as it handles the underlying distributed storage?

  22. Question 22 of 60 Hive installation Medium

    When configuring a remote metastore for Apache Hive, which configuration file is primarily modified to set the JDBC connection parameters for the external RDBMS?

  23. Question 23 of 60 Hive data types Medium

    A developer wants to store a user's address containing fields like street (string), city (string), and zip code (integer). Which complex Hive data type is most appropriate to group these different types together?

  24. Question 24 of 60 Hive data types Medium

    How does Hive handle a cast operation when a STRING containing non-numeric alphabetic characters is explicitly cast to an INT?

  25. Question 25 of 60 Hive data types Medium

    Which of the following Hive data types allows a column to store a value that can be exactly one of several explicitly specified data types?

  26. Question 26 of 60 Hive data types Medium

    What is the default precision of the TIMESTAMP data type in Apache Hive?

  27. Question 27 of 60 Hive partitioning Medium

    Which Hive configuration property must be enabled (set to true) to allow the automatic creation of partitions based on the values of the loaded data?

  28. Question 28 of 60 Hive partitioning Medium

    If a table is partitioned by country and then by state, how will the nested directory structure be physically represented in HDFS for a record from California, USA?

  29. Question 29 of 60 Hive partitioning Medium

    What happens if a user executes an INSERT statement into a table with dynamic partitioning enabled, but the hive.exec.dynamic.partition.mode is set to strict?

  30. Question 30 of 60 Hive partitioning Medium

    Which of the following accurately describes a major operational drawback of excessive partitioning (over-partitioning) on a high-cardinality column in Hive?

  31. Question 31 of 60 Hive bucketing Medium

    How does Hive determine the correct bucket for a specific row when a table is defined with the CLUSTERED BY (col_name) INTO N BUCKETS clause?

  32. Question 32 of 60 Hive bucketing Medium

    Why is bucketing preferred over partitioning when distributing data based on a column with highly unique values, such as a user_id?

  33. Question 33 of 60 Hive bucketing Medium

    Historically, which configuration property had to be set to true to ensure standard INSERT operations populated the appropriate number of buckets correctly in Hive?

  34. Question 34 of 60 Hive bucketing Medium

    If two tables are physically bucketed and sorted by the same key, and share a proportional number of buckets, which advanced Hive query execution strategy becomes possible?

  35. Question 35 of 60 Hiveql operations Medium

    What is the physical outcome of executing DROP TABLE my_data; if my_data was defined as an EXTERNAL table?

  36. Question 36 of 60 Hiveql operations Medium

    Which specific HiveQL clause allows a user to write queries that read only a random or bucket-based subset of a table for exploratory data analysis?

  37. Question 37 of 60 Hiveql operations Medium

    How does an INSERT OVERWRITE operation differ mechanically from a standard INSERT INTO operation in HiveQL?

  38. Question 38 of 60 Hiveql operations Medium

    In HiveQL, what is the core purpose of using a LATERAL VIEW in conjunction with a UDTF (User-Defined Table-Generating Function) like explode()?

  39. Question 39 of 60 Hive operators Medium

    Which of the following operators is known as the null-safe equality operator in HiveQL, capable of returning true if both operands happen to be NULL?

  40. Question 40 of 60 Hive operators Medium

    When evaluating a WHERE clause in HiveQL, what exact functionality does the RLIKE operator provide?

  41. Question 41 of 60 Hive installation Hard

    When configuring a Hive installation for a highly concurrent production environment, which metastore configuration approach eliminates the single point of failure and allows multiple HiveServer2 instances to scale efficiently?

  42. Question 42 of 60 Hive installation Hard

    Which set of properties must be correctly configured in hive-site.xml to successfully enable HiveServer2 High Availability (HA) using Apache ZooKeeper?

  43. Question 43 of 60 Hive data types Hard

    Consider a Hive table containing a column events of type ARRAY<STRUCT<id:INT, type:STRING>>. Which of the following syntaxes correctly retrieves the type of the second element in the array?

  44. Question 44 of 60 Hive data types Hard

    In Hive, what is the behavior when a calculation involves a DECIMAL(p1, s1) and a DECIMAL(p2, s2) using multiplication, and the resulting precision exceeds the maximum allowed precision of 38?

  45. Question 45 of 60 Hive data types Hard

    Which of the following implicitly casts properly without losing precision or failing in a standard Hive aggregate function like SUM()?

  46. Question 46 of 60 Hive partitioning Hard

    A user executes an INSERT OVERWRITE statement with dynamic partitioning enabled. The configuration hive.exec.dynamic.partition.mode is set to strict. What condition MUST be met for the query to execute successfully?

  47. Question 47 of 60 Hive partitioning Hard

    When working with highly scaled tables stored on an object store (like AWS S3), why might a data engineer prefer using ALTER TABLE ADD PARTITION instead of MSCK REPAIR TABLE to register new data directories?

  48. Question 48 of 60 Hive partitioning Hard

    Assume a Hive table is partitioned by country (STRING) and year (INT). If data is inserted for country='US' and year=2023, what is the exact default directory structure created in HDFS?

  49. Question 49 of 60 Hive bucketing Hard

    How does Hive determine the exact bucket number for a given row based on its bucketing column col and the total number of buckets B?

  50. Question 50 of 60 Hive bucketing Hard

    To perform a Sort-Merge-Bucket (SMB) Join optimally without shuffling data, what must be true about the two participating tables?

  51. Question 51 of 60 Hive bucketing Hard

    Consider a table sales bucketed into 32 buckets by customer_id. A user executes: SELECT * FROM sales TABLESAMPLE(BUCKET 3 OUT OF 8 ON customer_id);. How many buckets are actually scanned by this query?

  52. Question 52 of 60 Hiveql operations Hard

    When using LATERAL VIEW explode(array_col) tbl AS val, what happens to rows in the base table where array_col is empty or NULL?

  53. Question 53 of 60 Hiveql operations Hard

    Which of the following table property combinations is strictly REQUIRED to create an ACID transactional table in Hive 3.x?

  54. Question 54 of 60 Hiveql operations Hard

    What is the primary operational difference between ORDER BY and SORT BY in HiveQL?

  55. Question 55 of 60 Hiveql operations Hard

    In a HiveQL query, what is the effect of using CLUSTER BY col_name?

  56. Question 56 of 60 Hive operators Hard

    Which Hive operator should be used to safely compare two columns for equality where both columns might contain NULL values, ensuring it returns TRUE if both are NULL?

  57. Question 57 of 60 Hive operators Hard

    Evaluate the following Hive logical operation: SELECT NULL AND FALSE;. What is the result returned by Hive?

  58. Question 58 of 60 Hive operators Hard

    If a user applies the bitwise NOT operator ~ on a TINYINT column containing the value 1, what is the resulting integer value?

  59. Question 59 of 60 Hive operators Hard

    Which of the following correctly describes the behavior of the RLIKE operator in Hive?

  60. Question 60 of 60 Hiveql operations Hard

    In a complex HiveQL query utilizing window functions, how does the frame specification ROWS BETWEEN 1 PRECEDING AND 1 FOLLOWING handle the first row of a partition?

That's unit 4

Answer a few questions and your score shows up here.