Data Pipelines Questions with Answers

6 practice questions on Data Pipelines (Big Data (Hadoop & Spark)) with answers and step-by-step solutions. Try 6 samples below, then practise all 6 free in the AptiNest app.

Sample questions

Question 1Easy

Apache Sqoop was mainly used to

  1. Transfer bulk data between relational databases and Hadoop
  2. Stream logs in real time as events arrive in a stream from many sources
  3. Schedule workflows
  4. 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

  1. Source: RDBMS.
  2. Target: HDFS/Hive.
  3. 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

  1. The CPU usage of nodes and which machine each stage of the pipeline ran on
  2. Only the file size
  3. Where data came from and which transformations produced it
  4. 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

  1. Track each source.
  2. Track each step.
  3. 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?

  1. Keeping history by adding a new row each time an attribute changes
  2. Overwriting the old value so only the most recent value of the attribute is kept
  3. Deleting the dimension
  4. 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

  1. Attribute changes.
  2. Insert new row with dates.
  3. 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

  1. A single SQL query that runs once and is not repeated on a schedule
  2. A DAG of tasks with dependencies and schedules
  3. A cyclic graph of tasks
  4. 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

  1. Tasks as nodes.
  2. Dependencies as edges.
  3. 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

  1. Runs only once ever and writes its output a single time without retries
  2. Always uses streaming
  3. Gives the same final result even if it is run more than once
  4. 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

  1. Failures cause reruns.
  2. Rerun must not duplicate rows.
  3. 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

  1. Dimension table with descriptive text that stores the descriptions of customers and products
  2. Fact table, holding measures and foreign keys to dimension tables
  3. Staging table
  4. 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

  1. Fact in the middle.
  2. Dimensions around it.
  3. 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 →

Related topics

See all Big Data (Hadoop & Spark) topics · All topics