Nielsen Interview Questions
Apache Airflow orchestrates pipelines as DAGs (Directed Acyclic Graphs) — Python files defining tasks and their execution order. Key patterns I use: Adv...
How have you orchestrated workflows in Apache Airflow?
Apache Airflow orchestrates pipelines as DAGs (Directed Acyclic Graphs) — Python files defining tasks and their execution order. Key patterns I use: Advanced patterns: ExternalTaskSensor — wait for upstream DAG to complete BranchPythonOperator — conditional branching based on data conditions TaskGroup — logical grouping for complex DAGs Dynamic task mapping with expand() for variable fan out XComs for passing metadata between tasks Production best practices: Set catchup=False , configure on fail
What is the difference between HDFS (Hadoop Distributed File System) and Google Cloud Storage (GCS)?
Both store large scale distributed data, but they differ fundamentally in architecture and operational model: Feature HDFS GCS Architecture Tightly coupled compute+storage Decoupled (object storage) Scalability Scale by adding nodes Infinitely scalable, managed by Google Compute dependency Jobs must run on HDFS cluster Any compute can access GCS Consistency Strong consistency Strong consistency (since 2021) Cost model CapEx (hardware) + OpEx (ops) Pay per GB stored + per request fees Metadata Na
Explain Google Cloud Dataproc — why it is used, when to use it, and how it works.
Google Cloud Dataproc is a fully managed service for running Apache Spark, Hadoop, Hive, and Pig workloads on GCP. Why use Dataproc: Managed cluster lifecycle — create, scale, and delete clusters via API/CLI Pay only for cluster uptime — spin up for a job, then delete (no idle costs) Integrates natively with GCS, BigQuery, Bigtable, Pub/Sub Pre installed Spark, Hadoop, and ecosystem tools How it works: 1. You create a cluster specifying master + worker node types and count 2. Dataproc provisions
What is the architecture of Pub/Sub and how does message flow between publisher and subscriber?
Google Cloud Pub/Sub is a fully managed asynchronous messaging service for event driven architectures. Core concepts: Topic: Named resource to which publishers send messages Subscription: Named resource attached to a topic; subscribers pull from it Publisher: Sends messages to a topic Subscriber: Pulls messages from a subscription (or receives push deliveries) Message: Data (up to 10 MB) + optional attributes (key value pairs) Message flow: 1. Publisher sends a message to a topic 2. Pub/Sub dura
What is a Materialized View in Business Analytics, and how is it different from a normal view?
Normal View: A stored SQL query — no data is physically stored. Every time you query the view, the underlying query re executes against the base tables. Materialized View: The query result is physically stored (cached on disk). The stored result is served on query, avoiding re execution. Feature Normal View Materialized View Data storage None — query only Physical table like storage Query performance Slow for complex queries Fast — reads pre computed result Data freshness Always current Stale un
What are External Tables and how do they work internally?
An External Table (also called Foreign Table) is a table definition that points to data stored outside the database — in cloud storage, another database, or a file system — without loading the data into the database itself. How they work: The database stores only the table metadata (schema, location, format) When you query the external table, the database's query engine reads data directly from the external location at query time No data is copied or stored in the database BigQuery External Tabl
How is a data pipeline created and managed in GCP?
GCP offers multiple services for building and managing data pipelines: Batch pipelines: 1. Cloud Composer (managed Airflow) — orchestrate multi step batch ETL 2. Dataproc — run PySpark/Hadoop batch jobs 3. BigQuery Scheduled Queries / dbt — SQL based transformations 4. Dataflow (Apache Beam) — batch or streaming unified model Streaming pipelines: 1. Pub/Sub → Dataflow → BigQuery : standard real time ingestion 2. Pub/Sub → Spark Structured Streaming on Dataproc → GCS/BigQuery 3. BigQuery Streamin
How is a data pipeline created and managed in Apache Airflow?
Apache Airflow manages pipelines through DAG files — Python scripts placed in the dags/ folder. Creating a pipeline: Managing pipelines: Monitoring: Airflow UI shows DAG run history, task durations, retry counts Alerts: on failure callback for Slack/PagerDuty notifications Scaling: CeleryExecutor or KubernetesExecutor for parallel task execution Variables/Connections: Store credentials and config in Airflow's encrypted store Versioning: DAG files in Git; CI/CD deploys to dags/ folder Testing: Us