Sample questions
Question 1Easy
Apache Sqoop was mainly used to
- Transfer bulk data between relational databases and Hadoop
- Stream logs in real time as events arrive in a stream from many sources
- Schedule workflows
- Run SQL on streams
Answer: A. Transfer bulk data between relational databases and Hadoop
Explanation
Sqoop imports tables to HDFS or Hive and exports results back.
Step-by-step solution
- Source: RDBMS.
- Target: HDFS/Hive.
- Bulk parallel transfer.
Why the other options are wrong
- B. That is Flume or Kafka.
- C. That is Oozie or Airflow.
- D. Not its role.
Question 2Medium
Data lineage in a data platform tells you
- The CPU usage of nodes and which machine each stage of the pipeline ran on
- Only the file size
- Where data came from and which transformations produced it
- Which users are online
Answer: C. Where data came from and which transformations produced it
Explanation
Lineage helps debugging, auditing and impact analysis when a source changes.
Step-by-step solution
- Track each source.
- Track each step.
- Trace results back.
Why the other options are wrong
- A. That is monitoring.
- B. Not lineage.
- D. Unrelated.
Question 3Medium
What is a slowly changing dimension (Type 2) in data warehousing?
- Keeping history by adding a new row each time an attribute changes
- Overwriting the old value so only the most recent value of the attribute is kept
- Deleting the dimension
- Adding a column for the previous value only
Answer: A. Keeping history by adding a new row each time an attribute changes
Explanation
Type 2 rows carry validity dates or a current flag so past facts link to the attribute values at that time.
Step-by-step solution
- Attribute changes.
- Insert new row with dates.
- History preserved.
Why the other options are wrong
- B. That is Type 1.
- C. Not Type 2.
- D. That is Type 3.
Question 4Medium
A workflow orchestrator like Apache Airflow models a pipeline as
- A single SQL query that runs once and is not repeated on a schedule
- A DAG of tasks with dependencies and schedules
- A cyclic graph of tasks
- A key-value store
Answer: B. A DAG of tasks with dependencies and schedules
Explanation
Tasks run in dependency order, with retries and scheduling.
Step-by-step solution
- Tasks as nodes.
- Dependencies as edges.
- No cycles allowed.
Why the other options are wrong
- A. It coordinates many tasks.
- C. Cycles are not allowed, so it is a DAG.
- D. Not a data model for it.
Question 5Medium
An idempotent pipeline task is one that
- Runs only once ever and writes its output a single time without retries
- Always uses streaming
- Gives the same final result even if it is run more than once
- Never writes data
Answer: C. Gives the same final result even if it is run more than once
Explanation
Idempotence makes retries safe, for example by overwriting a partition instead of appending.
Step-by-step solution
- Failures cause reruns.
- Rerun must not duplicate rows.
- Overwrite rather than append.
Why the other options are wrong
- A. Idempotent means safe to rerun.
- B. Unrelated.
- D. It may write; reruns just do not duplicate.
Question 6Hard
In a star schema, the central table is the
- Dimension table with descriptive text that stores the descriptions of customers and products
- Fact table, holding measures and foreign keys to dimension tables
- Staging table
- Lookup of null values
Answer: B. Fact table, holding measures and foreign keys to dimension tables
Explanation
Fact tables record events such as sales; dimensions describe who, what, where and when.
Step-by-step solution
- Fact in the middle.
- Dimensions around it.
- Joins use foreign keys.
Why the other options are wrong
- A. Dimensions surround the fact table.
- C. Staging is a temporary load area.
- D. Not a schema component.
Practise all 6 questions free
The full question bank with timed practice, progress tracking and Vidya, your AI tutor. Free, no ads.
Open this topic in the app →