Courseiva

CCNA Ingest and Transform Data Questions

53 questions · Ingest and Transform Data · All types, answers revealed

1
MCQmedium

When creating a Dataflow Gen2, what is the primary advantage of using a staging-enabled destination?

A.It increases the number of concurrent users
B.It reduces the cost of storage
C.It enables query folding and performance optimization
D.It automatically encrypts the data
AnswerC

Staging enables the mashup engine to push down operations to the underlying Lakehouse, facilitating query folding. This significantly boosts performance for complex transformations, as the work is executed within the high-performance Fabric compute environment rather than trying to process everything in memory on the Dataflow node.

Why this answer

Staging-enabled destinations in Dataflow Gen2 allow the mashup engine to perform intermediate data operations in the Fabric lakehouse. This improves performance by enabling query folding and reducing the data transfer load on the source system. It effectively offloads complex transformations to the cloud storage, ensuring that the final data load is optimized and consistently formatted for downstream usage in the Fabric ecosystem.

Exam trap

Candidates often incorrectly assume staging is primarily for data security or storage redundancy, missing the critical performance benefit of enabling query folding for more efficient data processing.

2
MCQeasy

Which Fabric tool would you use to perform a visual, low-code data transformation that directly results in a clean table in your Lakehouse?

A.Notebook
B.Data Pipeline
C.Dataflow Gen2
D.SQL Endpoint
AnswerC

Dataflow Gen2 is explicitly designed for low-code data preparation. It offers a familiar Power Query experience to transform data and load it into a Lakehouse. It is the most effective tool for users who want to build clean data models without writing code, offering visual lineage and easy management.

Why this answer

Dataflow Gen2 provides a highly intuitive, low-code interface for complex transformations. It uses the Power Query engine to allow users to connect, clean, and transform data visually. Once the transformations are complete, the data can be loaded directly into a Fabric Lakehouse, making it the perfect tool for non-programmers to create clean, production-ready tables without needing to manage code-based pipelines or notebooks.

Exam trap

Candidates frequently mix up Dataflow Gen2 with Data Pipelines or Notebooks, failing to realize that Dataflow Gen2 uses Power Query specifically for visual, low-code data transformations.

3
MCQmedium

You are designing a data pipeline in Microsoft Fabric using Data Factory. You need to ingest data from an on-premises SQL Server database into a Lakehouse. Which integration component must be deployed to facilitate secure connectivity between the on-premises network and Microsoft Fabric?

A.Azure Data Gateway
B.Self-hosted Integration Runtime
C.Managed Virtual Network
D.Azure ExpressRoute
AnswerB

The Self-hosted Integration Runtime is the required software component installed on an on-premises machine or a virtual machine inside a private network. It enables the Fabric Data Factory service to securely access and move data from local sources to the Lakehouse without compromising network security posture.

Why this answer

To connect Fabric to on-premises resources, the Self-hosted Integration Runtime (SHIR) acts as the bridge. It handles data transfer across the firewall without opening inbound ports on your local network. This is a critical architectural requirement for hybrid data integration scenarios, ensuring that Fabric can reach behind the perimeter to pull data securely while maintaining strict compliance with corporate security standards for data movement.

Exam trap

Candidates often confuse the Self-hosted Integration Runtime with Azure Integration Runtimes or VNet data gateways, forgetting that only the SHIR facilitates the secure bridge for on-premises connectivity.

4
MCQeasy

You are monitoring a Fabric pipeline. You need to identify which activity failed within the pipeline execution. Which tool should you use?

A.Power BI Desktop
B.Fabric Pipeline Monitoring view
C.Azure Resource Manager (ARM) templates
D.OneLake file explorer
AnswerB

The Pipeline Monitoring view is the dedicated interface for tracking and troubleshooting pipeline runs. It provides detailed execution status, allows for drilling down into the activity hierarchy, and displays error messages for any failed steps, making it the primary tool for operational monitoring.

Why this answer

The 'Pipeline Monitoring' view in the Fabric workspace provides a centralized dashboard to view the status, start time, end time, and duration of all pipeline activities. Clicking on a specific pipeline run allows you to drill down into individual activities to inspect error logs, which is essential for diagnosing failures. This visibility is crucial for maintaining operational excellence and ensuring that data pipelines meet their SLAs in a production environment.

Exam trap

Test-takers often look at workspace-level capacity metrics or general Spark monitoring pages, missing the dedicated pipeline-level monitoring view necessary for debugging individual activity failures.

5
MCQmedium

You are configuring a Fabric pipeline to perform incremental loads from a source system. Which approach is considered the best practice to track changes efficiently?

A.Truncate and reload the entire dataset every time
B.Use a watermark column for filtering
C.Compare every row using a hash function
D.Delete all data older than one month
AnswerB

Using a watermark column to track incremental changes is the most efficient and scalable approach. It allows the pipeline to only ingest records created or modified since the last successful load, which minimizes data movement and optimizes both the source and target system performance.

Why this answer

Using a watermarking column (such as a 'LastModified' timestamp or an incrementing ID) is the standard industry practice for incremental loading. By querying only rows with a value greater than the previous high-water mark, you significantly reduce the amount of data transferred and processed. This approach minimizes source system load and execution time, making it essential for building performant, cost-effective pipelines that handle large-scale data updates over time.

Exam trap

Candidates frequently choose full table overwrites or complex custom logic instead of the standard watermark pattern, failing to recognize that watermarking is the industry-standard for incremental efficiency.

6
MCQhard

You have a large Delta table that is frequently queried. You notice that queries are slow due to small file overhead. Which command should you run to optimize this table?

A.VACUUM table_name
B.ANALYZE TABLE table_name COMPUTE STATISTICS
C.OPTIMIZE table_name
D.REORG TABLE table_name APPLY
AnswerC

The OPTIMIZE command directly addresses small file fragmentation by rewriting the data into larger, more efficient files. This process reduces metadata overhead and improves overall scan speeds, making it the correct solution for tables suffering from performance degradation due to a high volume of tiny data files.

Why this answer

The OPTIMIZE command is the standard Delta Lake maintenance operation that compacts small files into larger ones, drastically improving read performance. When combined with Z-Ordering, it also organizes data physically based on column values, which further accelerates query performance for filters. This is a critical task for maintaining high-performance analytical tables in a Lakehouse environment, preventing the performance degradation caused by file fragmentation.

Exam trap

Candidates often attempt to manually delete or merge files. They overlook the built-in OPTIMIZE command, which is the standard, optimized method for compacting small files in Delta Lake.

7
MCQmedium

You are building a pipeline and need to ensure that a downstream activity only runs if a previous activity succeeds. Which pipeline feature should you use?

A.A ForEach activity
B.An 'On Success' connector
C.A Wait activity
D.A Filter activity
AnswerB

The 'On Success' connector is the explicit feature in Fabric pipelines used to define a dependency that triggers the next activity only after the successful completion of the previous activity. It is the standard way to chain activities and ensure a valid execution sequence.

Why this answer

The 'On Success' constraint on the pipeline connector links two activities in a dependency chain. This ensures that the second activity starts only if the first one finishes without errors. This is fundamental for building reliable, production-grade workflows where the order of operations and the integrity of the data processing chain are paramount for successful data delivery to the end users.

Exam trap

Candidates often confuse 'On Success' with 'On Completion' or 'On Failure'. 'On Completion' triggers regardless of success, which is not the same as ensuring a dependency only runs after success.

8
MCQmedium

You need to perform a complex transformation that involves multiple joins across tables of varying sizes in Fabric. Which tool provides the best balance between performance and ease of use?

A.Microsoft Purview Data Catalog.
B.Fabric Dataflow Gen2.
C.A SQL stored procedure on an on-premises server.
D.Azure Data Factory pipeline parameters only.
AnswerB

Dataflow Gen2 offers a user-friendly Power Query interface that generates optimized Spark code for transformations. It allows for complex data cleansing, merging, and shaping without requiring deep coding expertise, making it perfect for developers who need to implement business logic across multiple disparate tables efficiently within Fabric.

Why this answer

Dataflows Gen2 are specifically designed for low-code ETL, providing a visual interface that translates into efficient Spark jobs. They handle complex joins and transformations natively, making them ideal for standard data engineering tasks. They abstract the complexity of Spark configuration while providing enough power to manage large-scale data manipulation, making them the superior choice for most transformation scenarios compared to manual coding.

Exam trap

Examinees tend to recommend writing complex PySpark scripts for every transformation, overlooking the low-code yet powerful visual capabilities of Dataflows Gen2.

9
MCQmedium

When ingesting data from an external source, what is the best practice for handling sensitive data?

A.Hardcode credentials in the pipeline JSON code.
B.Store secrets in an Azure Key Vault and reference them in the connection.
C.Pass credentials as plain text parameters to the pipeline.
D.Use the same service principal for all external sources.
AnswerB

Using Azure Key Vault is the standard, secure method for managing credentials. It centralizes secret management and allows for rotating credentials without updating the pipelines. This is the recommended approach for secure data engineering, ensuring that sensitive access keys are never exposed in the pipeline's configuration or code.

Why this answer

Sensitive data should be handled using Azure Key Vault to store secrets and connections. By referencing these keys in your Fabric pipeline, you avoid hardcoding credentials. Furthermore, you should use data masking or encryption at rest within the Lakehouse to ensure that sensitive fields remain protected even from unauthorized users who may have access to the underlying storage, fulfilling compliance and security requirements for enterprise data management.

Exam trap

Candidates often suggest hardcoding credentials or using environment variables, which are insecure practices compared to utilizing Azure Key Vault for centralized and encrypted secret management.

10
MCQeasy

What is the primary function of the 'Validate' activity in a Fabric pipeline?

A.To verify the data types of columns in a table.
B.To ensure a dataset exists before a downstream activity runs.
C.To perform a checksum verification of file integrity.
D.To compile the pipeline and check for syntax errors.
AnswerB

The primary role of the Validate activity is to confirm that a file or table is present before triggering subsequent operations. This prevents 'file not found' errors in your Copy or Notebook activities, which is a fundamental requirement for building robust, event-driven data ingestion workflows in Fabric.

Why this answer

The Validate activity is used to check the existence or completion of a dataset before proceeding to the next step. It is commonly used to ensure that upstream processes have successfully dropped files into a landing zone. This activity prevents downstream failures by ensuring the data is ready and present, providing a reliable orchestration pattern that keeps pipelines running smoothly and predictably in production.

Exam trap

Candidates often mistake the Validate activity for a data quality or content-checking tool. It is strictly for verifying file existence or completion before downstream processes trigger.

11
MCQmedium

You are building a data pipeline in Microsoft Fabric using a Copy Activity to ingest millions of small JSON files from an Azure Data Lake Storage Gen2 container into a Lakehouse table. The performance is significantly slower than expected due to high request latencies. Which optimization technique should you implement?

A.Increase the Data Integration Units (DIUs) to the maximum allowable limit of 256 for the pipeline activity.
B.Enable staging in the Copy Activity settings to temporarily buffer data before writing it to the destination.
C.Convert all source JSON files into single-line newline-delimited JSON format prior to executing the copy pipeline.
D.Switch the destination from a Delta Lake table in the Lakehouse to a raw staged folder within the Files section.
AnswerB

Staging uses an intermediary storage location to buffer and batch data payloads before executing bulk writes to the destination Lakehouse. This approach minimizes metadata overhead, reduces request latency, and optimizes network throughput when dealing with millions of small individual source files.

Why this answer

Enabling staging allows the Copy Activity to stage data in an intermediary storage account before writing to the Lakehouse, which efficiently compresses and batches requests. This drastically reduces the number of individual PUT operations against the storage endpoint, directly mitigating the throttling and latency issues commonly associated with processing massive volumes of small files in distributed analytics environments.

Exam trap

Candidates often suggest increasing the cluster size, which is an expensive and ineffective solution for the 'small file problem' caused by high request latency during ingestion.

12
MCQhard

Refer to the exhibit. You have applied these Spark configurations to your Fabric environment. What is the primary benefit of this specific combination of settings when transforming data into Delta tables?

A.It enables real-time data streaming from Kafka sources.
B.It ensures high-performance reads by optimizing file layout and format.
C.It allows the SQL Analytics Endpoint to perform write operations.
D.It automatically encrypts the data using customer-managed keys.
AnswerB

By combining V-Order with auto-compaction and optimized writes, Fabric ensures that the resulting Delta files are both internally optimized for the compute engines and externally sized correctly to minimize I/O overhead, leading to significantly faster query performance across the entire platform.

Why this answer

This configuration enables V-Order, optimized writes, and auto-compaction. Together, these settings ensure that data is not only stored in the optimized V-Order format but also that the files produced are of an ideal size, reducing the 'small file problem' and improving read performance for all downstream engines.

Exam trap

Candidates often focus on 'write speed'. While these settings improve write performance, the primary benefit for the end-user is the improved read performance achieved by optimizing the file layout.

13
Multi-Selectmedium

You are configuring a Dataflow Gen2 to perform incremental updates for a large fact table. Which TWO steps are essential to ensure the dataflow only processes new or changed records during each run?

Select 2 answers
A.Create a parameter to store the last successful refresh date.
B.Set the destination table action to 'Append'.
C.Enable 'High Concurrency' mode for the Dataflow.
D.Use the 'Remove Duplicates' transformation on the entire table.
E.Configure a 'Tumbling Window' trigger in the Lakehouse.
AnswersA, B

Parameters are used to store stateful information like timestamps. By filtering the source query using a parameter that tracks the last refresh, the Dataflow only retrieves records created or modified after that date, significantly reducing the volume of data processed during each execution.

Why this answer

Incremental loading in Dataflows Gen2 requires a mechanism to identify new data and a logic to handle how that data is integrated into the destination. This typically involves using parameters to filter source data based on a 'last modified' date and configuring the destination to append new records.

Exam trap

Candidates often miss the need for a parameter. Without a 'last refresh' parameter, the system cannot identify which records are new, leading to full reloads or duplicate data ingestion.

14
MCQmedium

You are building a Medallion architecture in Fabric. You have ingested raw CSV files into the 'Files' section of your Bronze Lakehouse. You now need to transform this data and load it into a Delta table in the Silver Lakehouse. Which method provides the best performance and scalability for this transformation?

A.Power BI Dataflows (Gen1)
B.Data Factory Pipelines with a Lookup activity
C.Fabric Notebooks using Spark
D.Direct T-SQL 'SELECT INTO' from the SQL Endpoint
AnswerC

Fabric Notebooks leverage the Spark engine to perform distributed data processing. They are ideal for transforming raw files into Silver-level Delta tables because they can handle schema enforcement, complex logic, and high-volume data efficiently. This approach ensures that the Silver layer is optimized for downstream analytical workloads.

Why this answer

In a Medallion architecture, the transition from Bronze to Silver typically involves cleaning, filtering, and converting data into the Delta format. Spark Notebooks are the preferred tool for this stage because they offer massive parallel processing capabilities and deep integration with the Delta Lake API, which is essential for maintaining performance as data volumes grow.

Exam trap

Candidates often choose 'Dataflow Gen2' for all transformations. While Dataflows work, Spark Notebooks are specifically preferred for complex, large-scale transformations in a Medallion architecture due to superior processing power.

15
MCQhard

Your organization wants to implement near real-time data ingestion from an Azure SQL Database into Fabric for reporting. You must minimize the impact on the source database's performance and avoid manual pipeline scheduling. Which solution should you implement?

A.A Pipeline with a Copy Activity using a 'Tumbling Window' trigger.
B.A Dataflow Gen2 with incremental refresh enabled.
C.Fabric Mirroring for Azure SQL Database.
D.A Spark Notebook using the 'JDBC' connector in a loop.
AnswerC

Mirroring automatically replicates data from Azure SQL Database to Fabric OneLake in near real-time. It leverages the underlying transaction logs to sync changes, ensuring minimal performance impact on the source system while providing an always-up-to-date replica for analytical workloads without manual scheduling.

Why this answer

Mirroring in Fabric provides a low-latency, continuous synchronization path from supported databases. It uses the source database's transaction log to capture changes (CDC), which is much more efficient than traditional polling and does not require the user to manage complex schedules or orchestration pipelines to keep data synchronized.

Exam trap

Candidates often suggest standard Data Factory pipelines because they are familiar, overlooking the 'Mirroring' feature specifically designed for low-latency, non-intrusive synchronization from Azure SQL databases.

16
Multi-Selecthard

You need to automate the ingestion of files from an Azure Blob Storage container into a Fabric Lakehouse. Which THREE components are required to build this automated pipeline? (Choose three)

Select 3 answers
A.A Trigger to define the execution schedule
B.A Linked Service to define the source connection
C.A Copy Activity to perform the data movement
D.A Managed VNet configuration
E.A SQL Server Integration Services (SSIS) project
AnswersA, B, C

A trigger is necessary to automate the pipeline execution. Whether it is a scheduled time-based trigger or a tumbling window trigger, it initiates the ingestion process, allowing the pipeline to run without manual intervention, which is critical for consistent data availability in the Lakehouse.

Why this answer

An automated pipeline requires a trigger to start the process, a Linked Service to connect to the source storage, and the Copy Activity to perform the actual movement. These three components form the core backbone of any Fabric data pipeline. Mastery of these components is essential for orchestrating repeatable and scalable data workflows that can handle modern data engineering requirements across complex enterprise environments.

Exam trap

Candidates often select dataset-level options or transformation steps, confusing the structural plumbing (triggers, linked services, copy activities) required for orchestration with actual data transformation tasks.

17
MCQhard

Refer to the exhibit. Given the retry policy configuration, what happens if the source SQL database is temporarily unavailable during the first attempt?

A.The pipeline fails immediately.
B.The pipeline retries 3 times with 60-second intervals.
C.The pipeline retries indefinitely.
D.The pipeline executes the next activity immediately.
AnswerB

The 'count' parameter of 3 indicates that the pipeline will perform up to 3 retry attempts if the initial operation fails. The 'interval_seconds' of 60 ensures a pause of one minute between each attempt, giving the source system time to recover from the transient error.

Why this answer

The retry policy defined in the activity configuration instructs the Fabric pipeline to automatically attempt the copy operation again after the specified interval. This is a critical feature for building resilient pipelines that can gracefully handle transient network errors or brief service outages without failing the entire job. It ensures higher pipeline success rates and reduces the need for manual monitoring and intervention in complex, real-world cloud environments.

Exam trap

Candidates often misinterpret retry policies by assuming the first attempt counts as a retry, or they confuse the retry count with the total number of attempts made by the pipeline.

18
MCQmedium

You have a Lakehouse with several Delta tables. You need to provide a SQL-based interface for data analysts to query this data using their existing SQL tools, but you want to ensure they do not accidentally modify the underlying files. What should you use?

A.A Fabric Warehouse.
B.The SQL Analytics Endpoint.
C.A Spark Notebook with SQL cells.
D.A Shortcut to a SQL Server database.
AnswerB

The SQL Analytics Endpoint is automatically created for every Lakehouse in Fabric. It provides a read-only T-SQL interface that allows analysts to query Delta tables using standard tools like SSMS or Power BI without the risk of modifying or deleting the source data files.

Why this answer

The SQL Analytics Endpoint is a read-only gateway to the Delta tables in a Lakehouse. It automatically surfaces Delta tables as SQL tables, allowing users to use T-SQL for analysis while the underlying storage remains immutable through this specific interface, ensuring data integrity for analytical workloads.

Exam trap

Candidates often select 'Lakehouse' or 'Warehouse' as the interface. While these contain the data, the SQL Analytics Endpoint is the specific, read-only gateway designed for SQL tools to query data safely.

19
MCQmedium

You are building a Dataflow Gen2 to ingest a 50 GB CSV file from an Azure Storage account into a Fabric Lakehouse. You want to ensure the ingestion uses the 'Fast Copy' feature. What must you do?

A.Enable the 'Allow Schema Evolution' setting in the destination.
B.Ensure no transformations are used in the Power Query steps.
C.Use a Managed Private Endpoint for the connection.
D.Set the destination to 'Append' instead of 'Replace'.
AnswerB

Fast Copy requires a simple 'straight-through' data movement. While basic column renaming is sometimes allowed, applying complex transformations like merges or custom functions forces the Dataflow to use the standard Mashup Engine instead of the optimized Spark-based backend required for the high-performance Fast Copy path.

Why this answer

Fast Copy in Dataflows Gen2 allows for high-throughput data movement by bypassing the Power Query mashup engine for the data movement phase. It requires that the source connector supports it and that no complex transformations are applied within the Power Query steps that would force the engine to process rows individually.

Exam trap

Many candidates believe applying Power Query transformations enhances data readiness, forgetting that any transformations force row-by-row processing and disable the Fast Copy optimization.

20
MCQmedium

You are ingesting thousands of small JSON files into a Fabric Lakehouse. You notice that query performance on the resulting Delta table is very poor. Which ingestion strategy should you implement to resolve the 'small files problem'?

A.Use the Copy Activity with the 'Preserve Hierarchy' setting.
B.Run a Spark Notebook with the OPTIMIZE command on the table.
C.Convert the JSON files to Avro format before ingestion.
D.Increase the number of partitions in the Spark DataFrame.
AnswerB

The OPTIMIZE command in Delta Lake is specifically designed to handle the small files problem. It compacts small Parquet files into larger ones (typically aiming for 1GB). This reduces metadata overhead and significantly improves the speed of read operations for all engines that access the Delta table in Fabric.

Why this answer

The 'small files problem' occurs when a large number of tiny files create excessive metadata overhead for the Spark engine. In Fabric, you can resolve this by using the 'Optimize' command or by configuring the Spark engine to compact files during the write process. This combines the small files into larger, more efficient Parquet files.

Exam trap

Candidates often suggest partitioning or indexing rather than file compaction, ignoring that small files create metadata bloat that requires a Spark OPTIMIZE command.

21
MCQeasy

You are using a Copy Activity in Microsoft Fabric Data Factory. You need to ensure that the data is encrypted both in transit and at rest. Which setting should you verify?

A.Enable 'Force TLS 1.2' on the source server
B.Check the 'Use Encrypted Connection' property in the Linked Service
C.Manually encrypt the files using a PGP key
D.Configure an Azure Key Vault secret for the data
AnswerB

In the Linked Service configuration for most connectors, there is an option to enforce encrypted connections. Checking this ensures that the data movement activity mandates a secure channel during the extraction process, satisfying security requirements for sensitive data movement between the external source and the Fabric environment.

Why this answer

Microsoft Fabric automatically handles encryption at rest for all data stored in OneLake. For data in transit, you must ensure that your connections use encrypted protocols like HTTPS or TLS. By default, Fabric connectors are configured to use secure channels, but verifying these settings ensures compliance with corporate security mandates regarding data in transit protection during ingestion from external sources into your Fabric environment.

Exam trap

Candidates often assume encryption is handled automatically at the pipeline level without checking the Linked Service settings, which is where the encryption-in-transit protocol must be explicitly verified.

22
MCQmedium

Which Fabric feature allows you to monitor the status and history of your data pipeline runs?

A.Power BI Desktop.
B.Fabric Monitoring Hub.
C.Microsoft Purview.
D.Data Warehouse SQL Query Editor.
AnswerB

The Monitoring Hub is the dedicated control center in Fabric for tracking the execution of all items, including pipelines. It provides comprehensive visibility into run history, success/failure status, and detailed logs, which are essential for debugging and performance tuning of your automated data integration processes.

Why this answer

The Monitoring Hub in Fabric provides a centralized view of all pipeline runs, including status, duration, and error logs. It is the primary tool for administrators and engineers to troubleshoot failed jobs, monitor performance, and track the history of data movement. Having this visibility is crucial for maintaining a reliable data platform, as it allows for proactive detection and quick resolution of pipeline failures or performance bottlenecks in your environment.

Exam trap

Candidates often confuse the Monitoring Hub with individual workspace settings or pipeline canvas logs, failing to realize the Hub provides the centralized, cross-pipeline view required for monitoring.

23
MCQmedium

Which file format should you choose for a Lakehouse to ensure the best support for ACID transactions and high-performance analytical queries?

A.CSV
B.Delta
C.JSON
D.Avro
AnswerB

Delta Lake is the optimized format for Fabric, providing essential ACID features and high performance. It supports time travel, schema evolution, and efficient data versioning. By using Delta, you enable the Lakehouse to perform at the speed of a data warehouse while maintaining the flexibility of a data lake.

Why this answer

Delta Lake is the open-source storage layer that brings reliability and performance to the data lake. It is the native format for Fabric Lakehouses, providing ACID transactions, schema enforcement, and time travel capabilities. Using Delta format allows Fabric to optimize file access, leverage metadata, and significantly improve query performance for BI and data science workloads, making it the industry standard for modern data lake architectures.

Exam trap

Candidates often choose standard Parquet or CSV formats, forgetting that Delta format is mandatory for unlocking native ACID transactions and time travel in Fabric Lakehouses.

24
MCQeasy

Which Fabric feature allows you to orchestrate complex data ingestion and transformation workflows using a drag-and-drop interface?

A.KQL Queryset
B.Data Pipeline
C.Power BI Report
D.Mirroring
AnswerB

Data Pipeline is the primary orchestration service in Microsoft Fabric. It offers a visual canvas to build data-driven workflows, manage dependencies, and monitor execution. It is specifically designed to handle the orchestration of complex ingestion and transformation tasks across diverse data sources and destinations.

Why this answer

Data Factory pipelines in Fabric provide a powerful, low-code interface for orchestrating end-to-end data integration. By dragging and dropping activities such as Copy, Notebook, and Dataflow, engineers can build robust, repeatable workflows. This feature is fundamental for simplifying the management of complex data pipelines, allowing teams to focus on logic and flow rather than writing extensive custom code for orchestration and scheduling.

Exam trap

Candidates confuse Data Pipelines with Dataflows or Notebooks, missing that orchestration of multiple end-to-end tasks via a drag-and-drop interface is specifically handled by Data Pipelines.

25
MCQmedium

You are performing a large-scale data migration into a Fabric Lakehouse using a Spark Notebook. You notice that the job is failing with an 'Out of Memory' error. What is the most effective way to address this while utilizing PySpark?

A.Increase the cluster node count significantly
B.Use df.repartition() to redistribute data
C.Convert the data to JSON format before loading
D.Disable the Spark broadcast join optimization
AnswerB

Repartitioning the DataFrame increases the number of partitions, which reduces the size of each partition. This ensures that each Spark executor processes a smaller, more manageable chunk of data, which effectively prevents the OOM error by staying within the memory limits of the individual executor nodes.

Why this answer

Out of Memory (OOM) errors in Spark often result from unbalanced partitions or attempting to load too much data into a single executor. By increasing the number of partitions (repartitioning) or adjusting the cluster configuration, you redistribute the workload across the Spark executors. This is a fundamental skill for data engineers to master, as it allows for processing massive datasets efficiently without requiring constant hardware upgrades or job failures.

Exam trap

Candidates often suggest increasing the driver or executor memory as the first step, ignoring that OOM errors are frequently caused by data skew or unbalanced partitions that repartitioning resolves.

26
MCQhard

You are processing a large dataset in a Notebook and encounter frequent 'Shuffle' operations that slow down the job. What is the most likely cause?

A.The cluster has too much memory.
B.The job is performing wide transformations on large datasets.
C.The data is already partitioned correctly.
D.The file format is set to Delta.
AnswerB

Wide transformations like joins and aggregations trigger shuffles because they require data to be reorganized across all executor nodes. When datasets are large, this network-intensive process becomes a significant bottleneck. Optimizing these operations, such as by broadcasting small tables, is the most direct way to reduce shuffle impact.

Why this answer

Frequent shuffles are almost always caused by operations that redistribute data across the cluster, such as wide transformations like group-by, join, or distinct. When these operations are performed on large datasets, the cost of moving data over the network becomes the primary bottleneck. Reducing the need for these operations or optimizing the join strategy is critical for improving performance in distributed Spark processing environments.

Exam trap

Candidates often incorrectly attribute slow performance to insufficient cluster memory or network bandwidth rather than identifying the fundamental design flaw of performing wide transformations on massive, unpartitioned datasets.

27
MCQeasy

When writing data to a Lakehouse table using a Spark Notebook in Microsoft Fabric, which optimization is enabled by default to ensure maximum compatibility and performance across all Fabric engines?

A.Z-Order indexing.
B.Bloom Filters.
C.V-Order.
D.GZIP Compression.
AnswerC

V-Order is the default write optimization in Fabric. It applies specialized sorting and compression logic to Parquet files, making them 'engine-ready' so that the SQL Analytics Endpoint, Power BI, and Spark can read the data with significantly higher efficiency and performance.

Why this answer

V-Order is a proprietary optimization in Microsoft Fabric that enhances the Parquet file format used by Delta Lake. It is enabled by default for all write operations in Fabric to ensure that data is stored in a way that is highly optimized for the platform's diverse compute engines.

Exam trap

Candidates often guess 'Z-Ordering' or 'Partitioning'. While these are performance optimizations, they are not enabled automatically by default; V-Order is the proprietary Fabric feature enabled by default for all writes.

28
MCQhard

You are using Dataflow Gen2 to ingest data from multiple sources. You need to perform a complex transformation that involves merging data from a SQL database and a flat file based on a common key. Which step should you take to achieve this efficiently?

A.Write a custom Python script
B.Use the Merge transformation
C.Create a temporary SQL view
D.Export both to CSV first
AnswerB

The Merge transformation is the native tool in Power Query for performing joins. It is specifically optimized to combine data from disparate sources based on a common key, providing a visual and intuitive way to manage relationships and ensure data consistency without requiring manual coding or external script management.

Why this answer

In Dataflow Gen2, the 'Merge' transformation allows users to join tables from different sources within the Power Query interface. By selecting the common key, you can combine datasets into a single model for downstream processing. This approach is highly efficient as it leverages the underlying mashup engine to perform the heavy lifting, ensuring the transformation is processed in a unified, maintainable data pipeline.

Exam trap

Candidates might choose complex SQL scripts or Spark notebooks for basic relational joins that can be handled natively and efficiently inside Dataflow Gen2.

29
MCQmedium

Refer to the exhibit. The Copy activity fails to infer the schema correctly from the source files. What is the most likely cause?

A.The recursive flag is set to true, causing the sink to attempt to merge multiple schemas.
B.The sink type is set to DeltaSink, which requires a pre-defined schema mapping for autoCreate.
C.AzureBlobFSReadSettings does not support schema inference from delimited files.
D.The Copy activity requires an Execute Pipeline activity to initialize the sink.
AnswerB

Delta tables are strongly typed. When autoCreate is enabled in a copy activity, the engine needs an explicit schema definition to map the source file columns to appropriate Delta data types. Failing to provide this mapping prevents the creation of the underlying table with correct data types.

Why this answer

The exhibit shows a standard copy activity without a defined dataset mapping or schema definition. When using 'autoCreate' for a Delta sink, Fabric requires a schema definition or an existing mapping to determine column types correctly. Without it, the sink assumes all data is string-based, which often leads to errors when writing to strictly typed Delta tables or results in poor query performance.

Exam trap

Candidates often assume the Copy activity automatically detects schemas for all sinks. They fail to realize that DeltaSink specifically requires explicit schema mapping or pre-defined definitions to avoid data type defaults.

30
Multi-Selectmedium

You are configuring a Fabric Pipeline. Which TWO activities can be used to perform conditional logic within your data ingestion workflow?

Select 2 answers
A.If-Condition activity
B.Switch activity
C.Lookup activity
D.Stored Procedure activity
E.Wait activity
AnswersA, B

The If-Condition activity allows developers to execute different sets of activities based on a logical true/false evaluation of an expression. This is the primary mechanism for implementing binary decision paths within a pipeline, such as checking if a source file exists before starting an ingestion task.

Why this answer

Conditional logic is essential for building resilient data pipelines. The If-Condition activity allows for simple branching based on Boolean expressions, while the Switch activity enables multi-way branching based on discrete values. These activities allow engineers to build sophisticated workflows that react to data quality results, source availability, or specific environmental flags, ensuring that the pipeline behaves appropriately under various conditions without manual oversight.

Exam trap

Candidates often attempt to use complex scripts or external code for basic pipeline branching. They ignore the native If-Condition and Switch activities designed for this exact purpose.

31
MCQmedium

You are monitoring a Data Factory pipeline. What is the best way to be notified when a pipeline fails during an execution?

A.Manually refresh the monitor tab
B.Use the alerts in the monitoring hub
C.Check the SQL database logs
D.Run a daily Notebook to check status
AnswerB

The monitoring hub in Fabric provides built-in capabilities to set up alerts. By configuring these, you can receive notifications immediately upon failure. This proactive approach is the standard recommended practice for maintaining pipeline reliability and operational excellence in Microsoft Fabric, ensuring you stay informed without needing constant manual oversight.

Why this answer

Fabric pipeline monitoring can be enhanced using alerts configured within the monitoring hub or by utilizing Microsoft Fabric's integration with Azure Monitor/Log Analytics. By setting up alert rules based on pipeline status, you ensure proactive notification, allowing for rapid response and troubleshooting. This is a critical operational practice for maintaining high-reliability data systems, as it reduces downtime and ensures data quality standards are consistently met.

Exam trap

Candidates often incorrectly select Azure Monitor or Log Analytics as the primary method, failing to realize that Fabric’s built-in monitoring hub is the native, direct solution for pipeline failure notifications.

32
MCQmedium

You are designing a data pipeline in Microsoft Fabric to ingest incremental data from an on-premises SQL Server. You need to ensure that only records modified since the last pipeline run are ingested. Which approach should you implement to maintain optimal performance and minimal data redundancy?

A.Execute a full truncate and load operation using a Lookup activity before the Copy activity.
B.Configure the Copy activity to use a dynamic query with a watermark column from a control table.
C.Use a Dataflow Gen2 to perform a full join between the source and the existing lakehouse table.
D.Enable Change Data Capture (CDC) on the source SQL Server and ingest all logs into a CSV file.
AnswerB

Using a dynamic query with a watermark column allows the Copy activity to fetch only new or updated records based on the last ingestion time. This methodology minimizes network overhead and storage costs, providing a robust pattern for incremental data integration that scales effectively as your source data volume grows over time.

Why this answer

Implementing a watermark column strategy is the standard practice for incremental loading in Fabric data pipelines. By storing the last processed timestamp or incremental ID in a control table, the pipeline can dynamically filter incoming data. This approach significantly reduces compute costs and ingestion time compared to full table loads, ensuring that only delta changes are processed while maintaining data consistency across the lakehouse destination.

Exam trap

Candidates often select full table reloads or static partitioning strategies, neglecting the requirement to dynamically track incremental changes using a watermark column.

33
MCQeasy

A data engineer needs to provide access to data stored in an external Azure Data Lake Storage (ADLS) Gen2 account without moving the data into the Fabric Lakehouse. Which feature of Microsoft Fabric should be used?

A.Data Factory Mirroring
B.Shortcuts
C.Pipeline Copy Activity
D.Eventstreams
AnswerB

Shortcuts are the primary mechanism in Fabric for data virtualization. They allow you to map external folders from ADLS Gen2, S3, or other Fabric workspaces into your Lakehouse. The data remains in the source location, but it is treated as a local table or file within the Fabric environment.

Why this answer

Shortcuts in Microsoft Fabric allow users to virtualize data by creating a pointer to an external storage location. This enables the data to appear as if it is stored locally in the Lakehouse, allowing Spark and SQL engines to query it directly. This minimizes data duplication, reduces storage costs, and simplifies data management across different environments.

Exam trap

Candidates often suggest creating a new Dataflow or using an external connector, failing to recognize that 'Shortcuts' is the purpose-built Fabric feature for virtualizing external data access.

34
MCQmedium

Refer to the exhibit. You are reviewing a JSON snippet from a Fabric Data Factory pipeline. What is the result of executing this activity if the target table already exists?

A.The activity will append new rows to the existing table data.
B.The existing data in the table will be replaced by the source data.
C.The pipeline will fail because the table already exists.
D.A new table with a timestamp suffix will be created.
AnswerB

Setting the tableAction to Overwrite triggers a process where the existing data in the destination table is cleared before the new data from the S3 source is written. This ensures that the table reflects only the most recent ingestion cycle and prevents data duplication issues.

Why this answer

The JSON configuration specifies a Copy Activity that pulls data from an Amazon S3 source and writes it to a Lakehouse table. The tableAction property is set to Overwrite, which instructs the engine to drop the existing data in the target table and replace it with the new incoming dataset. This is a common pattern for full-load ingestion.

Exam trap

Test-takers often assume table actions like 'Append' or 'Fail' are defaults for existing targets, overlooking explicit JSON property settings such as tableAction set to Overwrite.

35
Multi-Selectmedium

You are optimizing a Spark Notebook in Fabric that processes large Parquet files. Which TWO actions will improve the performance of data transformations?

Select 2 answers
A.Enable V-Order on the Delta tables.
B.Increase the 'isSequential' property to True.
C.Apply partitioning to the data based on frequently filtered columns.
D.Convert all files to the Avro format for faster reads.
E.Disable the Spark 'High Concurrency' mode.
AnswersA, C

V-Order is a write-time optimization that applies special sorting, row group distribution, and compression to Delta files. This allows Fabric compute engines, including Spark and the SQL Analytics Endpoint, to read the data significantly faster by reducing the amount of data scanned during query execution.

Why this answer

Optimizing Spark performance in Fabric involves managing how data is distributed across the cluster and how it is physically stored. Using V-Order ensures that files are optimized for Fabric's compute engines, while proper partitioning prevents data skew and allows for efficient parallel processing across the available Spark nodes in the workspace.

Exam trap

Candidates often choose manual file compression or generic partitioning methods without realizing that Fabric specifically relies on native V-Order and well-defined column partitioning to accelerate Spark engine performance on Delta tables.

36
Multi-Selecthard

You are configuring a Data Factory Pipeline to perform an incremental load from an Azure SQL Database to a Fabric Warehouse. Which THREE components or features are essential for implementing a watermark-based incremental load? (Choose THREE)

Select 3 answers
A.A Lookup activity to retrieve the last stored watermark value.
B.A Script activity to update the watermark table after a successful load.
C.A Copy activity with a parameterized source query.
D.A Shortcut to the Azure SQL Database.
E.Mirroring for Azure SQL Database.
AnswersA, B, C

The Lookup activity is essential for reading the previous high-watermark value from a configuration table. This value is then passed as a parameter to the source query in the subsequent Copy activity, ensuring that only records created or modified after this value are selected for the current ingestion.

Why this answer

Incremental loading requires tracking the last processed record to avoid re-processing the entire dataset. A watermark-based approach uses a value (like a timestamp or ID) to identify new data. This necessitates a way to store the last watermark, a way to retrieve the new maximum watermark, and a way to filter the source query accordingly.

Exam trap

Candidates often omit the step to update the watermark table after execution, focusing only on retrieval and filtering while forgetting that watermark states must persist for future runs.

37
MCQeasy

You need to ingest data from an on-premises SQL Server database into a Fabric Lakehouse. What must be installed and configured on a local server to facilitate this connection?

A.Azure Data Factory Integration Runtime.
B.SQL Server Integration Services (SSIS).
C.On-premises Data Gateway.
D.Microsoft Entra Connect.
AnswerC

The On-premises Data Gateway is the essential software required to connect Fabric services like Dataflows and Pipelines to local data sources. It handles the secure communication tunnel and encryption necessary to extract data from a local SQL Server and move it into OneLake.

Why this answer

The On-premises Data Gateway acts as a bridge, providing quick and secure data transfer between on-premises data (data that isn't in the cloud) and Microsoft cloud services like Fabric. It is a requirement for accessing local data sources that are not publicly accessible over the internet.

Exam trap

Candidates frequently select cloud connectors or direct network routing, forgetting that local firewall-protected databases require a dedicated gateway installed on-premises.

38
MCQeasy

Refer to the exhibit. You are attempting to publish a Dataflow Gen2 that loads data into a Fabric Warehouse. Based on the error message, what action must you take to successfully publish the dataflow?

A.Enable the 'Staging' option for the dataflow queries.
B.Change the destination from Warehouse to a Lakehouse.
C.Increase the Fabric Capacity units (SKU) for the workspace.
D.Remove all transformations and perform a direct load.
AnswerA

The error explicitly states that staging is required for the destination. In Dataflow Gen2, you can enable staging by right-clicking on the query and selecting 'Enable staging'. This allows the dataflow to use the internal Fabric staging storage to process the data before it is finally committed to the Warehouse.

Why this answer

Dataflow Gen2 often requires a staging area to perform complex transformations and to optimize the loading process into destinations like the Fabric Warehouse. Staging allows the engine to write data to a temporary Lakehouse before moving it to the final destination, ensuring better performance and reliability during the ingestion and transformation phases.

Exam trap

Candidates often attempt to alter destination warehouse permissions or write direct queries, ignoring that Dataflow Gen2 explicitly requires a staging area.

39
MCQmedium

Refer to the exhibit. You are running a Fabric Notebook. What is the most likely cause of the error shown?

A.The Python code has a syntax error
B.The Spark session has timed out
C.The notebook is missing a library
D.The Lakehouse path is incorrect
AnswerB

The session error specifically indicates that the connection to the Spark compute resource was lost or expired. This is a common occurrence in shared environments where compute resources are managed dynamically. Verifying cluster availability and active session limits will typically reveal why the notebook could not initialize.

Why this answer

The 'SESSION_NOT_FOUND' error occurs when the Spark session assigned to the notebook has timed out or been terminated while the job was waiting to execute. This is common if there is a long wait time for resource allocation or if the cluster was idle for too long. Checking the cluster availability and workspace capacity settings is essential to ensure resources are available for the Spark job.

Exam trap

Candidates often assume the error indicates a code bug or a missing library, failing to recognize the session management lifecycle that frequently causes timeouts in idle notebooks.

40
MCQmedium

You are designing a Fabric pipeline to copy data from an on-premises SQL Server to a OneLake Lakehouse. Which integration runtime configuration ensures the highest throughput for large datasets?

A.Use the default Azure Integration Runtime without a staging account.
B.Deploy a Self-hosted Integration Runtime on a virtual machine in the same region as the Lakehouse.
C.Configure a Self-hosted Integration Runtime and enable the Staged Copy feature using an Azure Blob storage account.
D.Increase the Data Integration Unit (DIU) setting to the maximum value in the Copy Activity.
AnswerC

Staged copy allows the ingestion process to buffer data in intermediate storage, which significantly boosts throughput. By offloading the data to an intermediary storage layer, the source system is freed up faster, and the Fabric pipeline can ingest the data in parallel, effectively scaling the throughput for large-scale operations.

Why this answer

Self-hosted integration runtimes are required for on-premises data sources. To maximize throughput for large volumes, you must enable staged copy, which allows the data to be temporarily cached in an Azure Blob storage account before landing in the Lakehouse. This approach optimizes performance by decoupling the read and write operations, reducing latency and avoiding bottlenecks on the on-premises gateway during heavy transformation or ingestion tasks.

Exam trap

Candidates often select only the self-hosted runtime, failing to include the Staged Copy feature. Staged copy is essential for decoupling read/write operations to maximize throughput for large volumes.

41
MCQmedium

Refer to the exhibit. You are configuring a Dataflow Gen2 to move data. Based on the JSON configuration, what happens if the incoming data contains an extra column not defined in the destination schema?

A.The extra column is automatically dropped.
B.The extra column is added to the destination schema.
C.The ingestion process fails.
D.The extra column is logged as a warning.
AnswerC

The 'strict' schema validation setting requires the input data schema to be an exact match with the target sink. If an additional column is detected, the validation check fails, and the pipeline stops execution to prevent loading malformed or unexpected data into the Lakehouse storage.

Why this answer

With schema validation set to 'strict', Dataflow Gen2 enforces a rigid mapping between source and sink schemas. If the incoming data does not match the defined schema exactly, the ingestion process will fail. This configuration is critical for maintaining high data quality and preventing 'schema drift' in downstream analytical tables, ensuring that automated processes do not break due to unexpected changes in the upstream data structure.

Exam trap

Candidates often assume that Dataflow Gen2 will automatically ignore or append unexpected columns, failing to recognize that 'strict' schema validation is a binary pass-or-fail mechanism that prevents any schema deviation.

42
MCQhard

You need to ingest data from an Azure SQL Database that is protected by a firewall and does not allow public network access. Which Fabric feature should you use to establish a secure connection without opening the firewall to all Azure services?

A.On-premises Data Gateway.
B.Managed Private Endpoint.
C.Service Principal Authentication.
D.OneLake Shortcut.
AnswerB

Managed Private Endpoints allow Fabric to connect to Azure services securely by creating a private link. This avoids exposing the source database to the public internet and allows the database administrator to grant access specifically to the Fabric workspace through a private IP address.

Why this answer

Managed Private Endpoints in Microsoft Fabric allow for secure, private connectivity to data sources that are behind firewalls or restricted to private networks. They ensure that data traffic remains within the Microsoft network backbone and provide a specific, secure path for ingestion activities like Dataflows and Pipelines.

Exam trap

Test-takers frequently confuse VNet Data Gateways or public endpoint IP whitelisting with Managed Private Endpoints, forgetting that secure intra-cloud connectivity behind strict firewalls requires private endpoints.

43
MCQmedium

You are designing a data lakehouse architecture. Which file format is recommended for optimal performance in Fabric?

A.CSV
B.Delta Lake
C.JSON
D.Avro
AnswerB

Delta Lake is the optimized format for Fabric, providing ACID compliance, time travel, and schema evolution. Its native integration with the Spark engine allows for fast data reads and writes, making it the recommended choice for building scalable, high-performance data platforms in the Microsoft Fabric ecosystem.

Why this answer

Delta Lake is the gold standard format for Fabric. It is an open-source storage layer that brings ACID transactions to data lakes. It enables high-performance querying and supports time travel, schema evolution, and efficient metadata management.

Because Fabric is built on the foundation of Delta Lake, using this format allows you to take advantage of native optimizations, providing superior performance compared to traditional formats like CSV or Parquet alone.

Exam trap

Candidates often suggest traditional formats like Parquet or CSV, forgetting that Delta Lake is the native, optimized format for Fabric that enables ACID transactions and time travel.

44
Multi-Selectmedium

You are optimizing the ingestion of a large dataset into a Microsoft Fabric Lakehouse using a Spark Notebook. To ensure optimal query performance for downstream consumers, you want to apply the V-Order optimization and partition the data. Which TWO actions should you take to achieve this?

Select 2 answers
A.Set the spark.sql.parquet.vorder.enabled configuration to true.
B.Use the partitionBy method when writing the DataFrame to the Lakehouse.
C.Create a shortcut to the data in an Azure Data Lake Storage Gen2 account.
D.Convert the files to CSV format before ingestion to reduce overhead.
E.Apply a Z-Order index on the primary key column during the write operation.
AnswersA, B

Enabling V-Order at the Spark session level ensures that all Parquet files written by the Spark engine are optimized for the Fabric compute engines. This optimization is specific to Microsoft Fabric and enhances the compression and sorting of data, making subsequent reads faster for both Power BI and SQL endpoints.

Why this answer

Optimizing data in a Fabric Lakehouse involves both physical file organization and metadata enhancements. V-Order is a Microsoft proprietary optimization that improves read performance for Delta tables by reordering data within Parquet files. Partitioning organizes data into folders based on specific columns, which allows the Spark engine to prune unnecessary data during query execution, significantly reducing I/O.

Exam trap

Candidates often try to configure V-Order via notebook magic commands or external UI menus rather than utilizing the required Spark configuration property and dataframe write methods.

45
MCQeasy

You need to access data from an external Azure Data Lake Storage (ADLS) Gen2 account in a Fabric Lakehouse without duplicating the physical data. Which feature should you use?

A.Dataflow Gen2
B.Copy Activity
C.Shortcut
D.Mirroring
AnswerC

Shortcuts allow OneLake to virtualize data from external sources such as ADLS Gen2, Amazon S3, or Google Cloud Storage. They eliminate the latency associated with traditional ETL processes by providing immediate access to the files as if they were natively stored within the Fabric Lakehouse file system.

Why this answer

Shortcuts provide a way to reference data stored in external locations without the need for data movement or replication. This approach reduces storage costs and ensures that the Fabric environment always sees the most current version of the source data. It is a fundamental concept in OneLake for maintaining a single source of truth across different cloud providers.

Exam trap

Candidates often choose 'Copy Activity' or 'Dataflow'. While these move data, they create duplicates. The question specifically asks to avoid physical data duplication, which mandates the use of Shortcuts.

46
Multi-Selectmedium

You are designing a data transformation layer using Spark in Microsoft Fabric. Which THREE of the following are primary benefits of using Delta Lake format over traditional Parquet files? (Choose three)

Select 3 answers
A.ACID transaction support
B.Schema evolution and enforcement
C.Time travel for historical data analysis
D.Smaller storage footprint than Parquet
E.Faster cold-start execution for Spark clusters
AnswersA, B, C

Delta Lake ensures ACID properties, guaranteeing that reads and writes are consistent and reliable. This prevents issues like partial data ingestion or corrupted files, which can occur in traditional systems when multiple processes attempt to write to the same location simultaneously.

Why this answer

Delta Lake adds a transaction log (the Delta Log) to the Parquet file format. This enables ACID transactions, preventing data corruption and partial writes. It also supports schema evolution, allowing the data structure to change over time without breaking downstream applications.

Finally, 'Time Travel' allows users to query previous versions of data, which is invaluable for auditing, debugging, and reproducing analytical results. These features are critical for modern, reliable data platforms.

Exam trap

Candidates might select generic storage capabilities like compression or indexing, failing to recognize that Delta Lake's core architectural advantages stem from ACID transactions, schema management, and time travel.

47
Multi-Selectmedium

You are optimizing a Spark job in Fabric. Which TWO of the following techniques will help reduce the execution time? (Choose two)

Select 2 answers
A.Cache frequently used DataFrames
B.Always set the number of partitions to 1
C.Enable adaptive query execution
D.Convert all data to JSON
E.Increase the idle timeout
AnswersA, C

Caching intermediate results in memory prevents recomputing them from scratch when they are reused in subsequent transformations. This is a highly effective optimization technique for complex Spark jobs that perform multiple actions on the same dataset, reducing overall execution time and freeing up compute resources for other tasks.

Why this answer

Reducing execution time in Spark requires efficient resource utilization and minimizing unnecessary data processing. Caching DataFrames that are reused multiple times prevents redundant computations, while enabling adaptive query execution allows Spark to dynamically optimize the physical plan based on runtime statistics. Together, these strategies significantly lower latency and resource consumption, leading to a much faster and more cost-effective data transformation process within the Fabric Notebook environment.

Exam trap

Candidates often select 'Partitioning' or 'Broadcasting' as the primary answer. While useful, they are not listed as the standard performance-tuning techniques compared to caching and adaptive query execution in this context.

48
MCQmedium

You need to ingest data from an API into a Fabric Lakehouse. The API requires a token-based authentication refreshed every hour. What is the most efficient way to handle this?

A.Hardcode the token in the Copy activity connection string.
B.Use a Web activity to fetch the token, then pass it to the Copy activity.
C.Create a new connection every hour manually.
D.Configure the API to never expire its tokens.
AnswerB

This approach automates the credential lifecycle. By dynamically fetching a fresh token via a Web activity, the pipeline ensures that every run is authenticated properly. Storing the output of the Web activity as a variable allows it to be injected into the Copy activity headers securely.

Why this answer

Using a Web activity in a Fabric Pipeline to call the authentication endpoint, followed by storing the token in a secure Azure Key Vault or variable, is the standard pattern. This allows the subsequent Copy activity to dynamically retrieve and use the token. This pattern ensures secure credential management while maintaining the automation required for hourly refreshes in a production data environment.

Exam trap

Candidates often try to hardcode credentials or use overly complex custom scripts. They overlook the standard, modular pattern of using a Web activity for token retrieval within the pipeline itself.

49
Multi-Selecthard

You are configuring a Copy Activity in Fabric Data Factory to ingest data from an external REST API. Which TWO configuration settings are required to ensure data is handled correctly? (Choose two)

Select 2 answers
A.Pagination rules
B.A valid Base URL
C.An on-premises data gateway
D.A self-hosted integration runtime
E.A JSON schema definition
AnswersA, B

Pagination rules are essential for APIs that return paginated content. Without them, the Copy Activity will only ingest the first page of results, leading to incomplete datasets. Configuring these rules allows the activity to iterate through the API response until the entire dataset is successfully ingested into the destination.

Why this answer

When working with REST APIs, you must define the base URL and the pagination rules to capture the full dataset. Many APIs limit the number of records per request; therefore, setting up pagination ensures the pipeline automatically requests subsequent pages until all data is retrieved. Correct configuration of these properties is vital for robust, scalable data ingestion that avoids incomplete data loads in your lakehouse.

Exam trap

Candidates frequently select 'Linked Service' or 'Credential' settings. While necessary for connectivity, they are not specific to the REST API data handling requirements like pagination and base URL definition.

50
MCQhard

Refer to the exhibit. You are loading this file into a Lakehouse. You notice that the column headers contain special characters, and the data is failing to load correctly. What should you do?

A.Change the file encoding to ASCII
B.Disable the 'first_row_as_header' setting and use custom schema mapping
C.Increase the pipeline retry count
D.Convert the CSV to binary format
AnswerB

By disabling the header auto-detection, you can explicitly define the mapping in the Copy activity. This allows you to map the data from the CSV into properly named, valid columns in the target table, bypassing the invalid characters present in the raw source file headers.

Why this answer

When dealing with CSV files, column headers must be compatible with the destination system's naming conventions. Often, special characters in source headers are invalid for column names in the target Lakehouse tables. By sanitizing headers or choosing to skip them and using custom column names, you ensure the load completes successfully.

This is a common real-world challenge when integrating data from disparate source systems into a unified analytical Lakehouse.

Exam trap

Candidates often try to rename columns within the source file manually, which is inefficient, instead of using Fabric's built-in schema mapping to handle invalid characters during ingestion.

51
Multi-Selecthard

You are configuring a medallion architecture in Microsoft Fabric using Lakehouse Delta tables. You need to implement an incremental data load pattern from a bronze table to a silver table using a PySpark notebook. Which TWO actions must you perform to ensure idempotency and high performance? Choose exactly two.

Select 2 answers
A.Use the Delta Lake merge operation based on a unique business surrogate key to handle both inserts and updates idempotently.
B.Overwrite the entire silver table partition dynamically on every execution without checking for existing record identifiers.
C.Read only the newly arrived files or records using streaming queries or explicit watermarking filters based on ingestion timestamps.
D.Disable Delta Lake transaction logs during the write phase to accelerate the throughput of incremental insert operations.
E.Cache the entire bronze table into the Spark driver memory before executing the join and transformation logic.
AnswersA, C

The Delta Lake merge command allows conditional matching based on primary or business keys, enabling seamless upserts. This ensures that rerun pipelines do not duplicate records, maintaining strict idempotency across incremental processing cycles in the silver layer.

Why this answer

Implementing merge operations with watermarking and schema evolution enables incremental updates while maintaining table consistency. Idempotency guarantees that running the pipeline multiple times for the same time window yields identical results without data duplication, which is critical for robust enterprise data engineering pipelines in Microsoft Fabric.

Exam trap

Candidates often select 'full overwrite' as an option, which destroys idempotency, or forget to mention the business surrogate key, which is essential for correctly merging data updates.

52
Multi-Selecthard

You are developing a Notebook in Microsoft Fabric to process high-volume sensor data. You need to optimize performance using Delta Lake features. Which TWO actions should you perform? (Choose two)

Select 2 answers
A.Enable Z-Ordering on frequently filtered columns
B.Execute the OPTIMIZE command on the target table
C.Manually delete old Parquet files from the file system
D.Convert the table to CSV format
E.Increase the number of partitions to equal total file count
AnswersA, B

Z-Ordering is a technique to map multidimensional data to one dimension while preserving locality. By co-locating data in the same set of files, Spark can skip entire files during query execution, which dramatically reduces the amount of data read for range-based or point-lookup queries in large datasets.

Why this answer

Optimizing Delta Lake tables involves managing file sizes and data distribution. Z-Ordering optimizes multi-column queries by co-locating related data, significantly reducing read amplification. Compaction (using OPTIMIZE) merges small files into larger, more efficient files, which directly improves scan performance.

Implementing these features is essential for maintaining query speed as data grows in the Lakehouse, ensuring that the Spark engine spends less time scanning unnecessary file blocks during execution.

Exam trap

Candidates often choose only one of the two options (Optimize or Z-Ordering), failing to realize that both are required to address small file issues and data skipping simultaneously.

53
MCQhard

Refer to the exhibit. You are using Structured Streaming to ingest data into a Delta table. Why is the checkpoint path required?

A.It is used to store the schema definition.
B.It stores the offset and state information for fault tolerance.
C.It increases the throughput of the write operation.
D.It is required for overwriting existing tables.
AnswerB

The checkpoint path tracks exactly which data has been processed by the streaming job. This allows Spark to recover from failures by re-reading only the missed data, ensuring exactly-once processing semantics which are critical for data consistency in real-time or near-real-time ingestion scenarios.

Why this answer

Checkpointing is essential in Structured Streaming for fault tolerance and exactly-once processing guarantees. It stores the state of the stream, including the offsets of the data processed so far. If a job fails, the checkpoint allows the stream to resume exactly where it left off, preventing data loss or duplication.

This is a mandatory component for building reliable streaming pipelines in a production Fabric Lakehouse environment.

Exam trap

Candidates often think the checkpoint path is for temporary file storage or performance logging, failing to realize it is the fundamental mechanism for maintaining state and offsets for exactly-once processing.

Ready to test yourself?

Try a timed practice session using only Ingest and Transform Data questions.