All activities you have access to, across workspaces
Filter
By item type, status, time range, submitter, location (workspace)
Status
Running, Succeeded, Failed, Cancelled
Details
Drill into individual run details, stages, errors; cancel in-progress runs
Historical
View past 30 days of activity
Monitoring Tools Beyond the Hub
Tool
What it gives you
Retention
Workspace monitoring(preview)
Logs & metrics from supported items (e.g., ItemJobEventLogs, Eventhouse, semantic models, warehouse, mirrored DBs) streamed into a read-only Eventhouse KQL database you query with KQL, dashboards, or alerts
30 days by default (editable retention/caching policies)
Fabric Capacity Metrics app
CU consumption per item/operation, smoothing, throttling, storage
Workspace monitoring is enabled by a workspace admin (tenant setting “Workspace admins can turn on monitoring for their workspaces” required); it doesn’t backfill earlier activity and consumes capacity
Need cross-run trends, KQL, or alerts on failures across many items? → workspace monitoring. Need one run’s details? → Monitoring hub
Stage the query, split heavy steps into referenced queries, reduce data volume
“Require Fast Copy” failure
Query marked Require fast copy but source/transforms aren’t Fast Copy–compatible
Remove incompatible steps (stage first) or clear Require fast copy
Gateway error
On-premises data gateway offline or outdated
Restart/update the gateway, check the connection
Duplicate column names
Column name collision after join/merge
Rename columns before merge
Exam Caveat ⚠️: For heavy or memory-bound Dataflow Gen2 work, stage the data (staging is enabled per query, landing in the auto-created staging Lakehouse/Warehouse) and transform from the staged query — an ELT pattern. Fast Copy, the Modern Evaluator, and partitioned compute are the other levers.
Notebook Errors
Error
Cause
Resolution
OutOfMemoryError
Data too large for driver/executor memory
Increase node size, repartition data, use broadcast joins carefully
AnalysisException: Table not found
Wrong table name or path
Verify table exists, check Lakehouse attachment
Py4JJavaError
Java/Spark internal error
Check Spark UI logs, review stack trace
Session timeout
Idle session expired
Re-run notebook, adjust session timeout settings
Library not found
Missing pip/conda package
Add library to Environment or %pip install
FileNotFoundException
File path incorrect or file deleted
Verify path, check if VACUUM removed the file
Eventhouse Errors
Error
Cause
Resolution
Ingestion failure
Schema mismatch, format error
Check ingestion mapping, validate source schema
Query timeout
Query too complex or data too large
Optimize KQL query, add filters, reduce time range
Capacity exceeded
Eventhouse CU limit
Scale capacity, optimize ingestion rate
Streaming ingestion errors
Batch size too large, throttling
Reduce batch size, check event schema
Eventstream Errors
Error
Cause
Resolution
Source connection failure
Event Hub unavailable or auth failed
Check connection string, SAS policy
Deserialization error
Event format doesn’t match schema
Fix event schema, check serialization format
Destination write failure
Target unavailable or permission denied
Check destination status and permissions
Backlog growing
Processing slower than ingestion rate
Scale processing, simplify transforms
T-SQL Errors
Error
Cause
Resolution
Insufficient permissions
User lacks required role
Grant appropriate permissions (db_datareader, etc.)
Object does not exist
Table/view not found
Check schema name, verify object exists
Query cancelled: timeout
Query exceeded timeout
Optimize query, add indexes, reduce data scanned
Data type conversion
Implicit conversion failure
Explicit CAST/CONVERT in query
Distributed query failed
Cross-database query issue
Check permissions on all referenced databases
OneLake Shortcut Errors
Error
Cause
Resolution
Shortcut target unavailable
External source down or moved
Verify source path, check source connectivity
Access denied
Source credentials expired or permissions changed
Update connection credentials, check source IAM
Schema mismatch
Source data format changed
Update shortcut or schema mapping
Performance degradation
High latency on external shortcuts
Consider mirroring, or enable query acceleration (RTI)
🚀 3.3 Optimize Performance
Optimize a Lakehouse Table
flowchart TD
START([Lakehouse Performance Issue]) --> Q1{Small files\nproblem?}
Q1 -->|Yes| OPTIMIZE["⚡ OPTIMIZE\n(Compact small files)"]
Q1 -->|No| Q2{Old files\naccumulating?}
Q2 -->|Yes| VACUUM["🧹 VACUUM\n(Remove old files)"]
Q2 -->|No| Q3{Slow filtered\nqueries?}
Q3 -->|Yes| ZORDER["📊 Z-ORDER BY\n(Co-locate related data)"]
Q3 -->|No| Q4{Read by Power BI\nDirect Lake / SQL?}
Q4 -->|Yes| VORDER["⚡ V-Order\n(readHeavyForPBI profile\nor OPTIMIZE ... VORDER)"]
Key optimization commands:
Command
Purpose
Syntax
OPTIMIZE
Compact small files into larger ones
OPTIMIZE table_name
OPTIMIZE + Z-ORDER
Compact + co-locate data by columns
OPTIMIZE table_name ZORDER BY (col1, col2)
OPTIMIZE + V-Order
Compact and rewrite with V-Order
OPTIMIZE table_name VORDER (combinable with ZORDER BY)
VACUUM
Remove old files beyond retention
VACUUM table_name RETAIN 168 HOURS
V-Order (session)
Write new files with V-Order
Off by default in new workspaces; spark.conf.set("spark.sql.parquet.vorder.default", "true")
V-Order (table)
Default V-Order for one table
ALTER TABLE t SET TBLPROPERTIES ("delta.parquet.vorder.enabled" = "true")
You can also run OPTIMIZE / V-Order / VACUUM without code from the Lakehouse Table maintenance option, or the pipeline Lakehouse maintenance activity.
Write-time layout options:
Option
What it does
When
Optimize Write
Bin-packs data before writing → fewer, larger files (adds a shuffle)
Partitioned tables, many small writes
Auto compaction
Compacts small files after writes
Frequent small ingestion batches
Adaptive target file size
Auto-picks the ideal file size per table
Most workloads (recommended, not default)
1
2
3
4
5
6
7
8
9
10
11
-- Optimize a Delta table (SQL syntax)OPTIMIZElakehouse1.gold_sales;-- Optimize with Z-Order for common filter columnsOPTIMIZElakehouse1.gold_salesZORDERBY(region,product_category);-- Clean up old files (default 7-day retention)VACUUMlakehouse1.gold_sales;-- Clean up with custom retention (e.g., 3 days)VACUUMlakehouse1.gold_salesRETAIN72HOURS;
Exam Caveat ⚠️:
V-Order is disabled by default in new workspaces (writeHeavy profile). It’s a write-time Parquet layout optimization: big gains for Power BI Direct Lake (~40–60% on cold cache), ~10% for SQL, no inherent benefit for Spark reads and slower writes
Z-ORDER is complementary to V-Order — it co-locates data across files based on specified columns (best for frequently filtered columns)
In Runtime 1.3+, the old spark.sql.parquet.vorder.enabled setting is removed — use spark.sql.parquet.vorder.default
OPTIMIZE and VACUUM are Spark commands — not supported from the SQL analytics endpoint or Warehouse editor
VACUUM does NOT compact files — use OPTIMIZE for that. VACUUM only deletes old, unreferenced files
Running VACUUM with retention < 7 days can break time travel queries
Optimize a Pipeline
Optimization
Description
Parallelism
Use ForEach with parallel batches for independent operations
Copy activity tuning
Adjust intelligent throughput optimization (Fabric’s equivalent of ADF DIUs) and degree of copy parallelism; use partitioned reads for large source tables
Staging
Enable staging for large cross-region copies
Selective columns
Only copy needed columns, not entire tables
Incremental copy
Use watermark/CDC (or a Copy job) instead of full copy each run
Pipeline structure
Minimize sequential dependencies; parallelize where possible
Right tool
Move pure data movement into a Copy job; push heavy transforms to Spark or the Warehouse rather than chaining many Dataflow steps
Optimize a Data Warehouse
Optimization
Description
Statistics
Auto-created and auto-updated for the query optimizer; can also be created manually (single-column)
CTAS / INSERT…SELECT
Set-based loads instead of row-by-row or singleton inserts (avoid many small transactions → small files)
Data clustering(preview)
Co-locate rows on frequently filtered columns at table creation → better file/rowgroup skipping
Data types
Use the smallest appropriate types (e.g., varchar(n) not varchar(max))
Avoid SELECT *
Select only needed columns — reduces I/O
Result set caching
On by default for Warehouses and SQL endpoints; disable per item (ALTER DATABASE … SET RESULT_SET_CACHING OFF) or per query (OPTION (USE HINT ('DISABLE_RESULT_SET_CACHE')))
Cold cache awareness
First run after idle may read from OneLake (data_scanned_remote_storage_mb in Query Insights) — benchmark warm runs
Exam Caveat ⚠️: Fabric Warehouse does not support materialized views, user-defined indexes, or table partitioning — use data clustering, statistics, and result-set caching instead. (Materialized views do exist in Eventhouse/KQL — see below.)
Key DMVs for Warehouse monitoring:
DMV
Purpose
sys.dm_exec_requests
Currently running queries
sys.dm_exec_sessions
Active sessions
queryinsights.exec_requests_history
Historical query performance
queryinsights.long_running_queries
Queries exceeding duration threshold
queryinsights.frequently_run_queries
Most frequently executed queries
1
2
3
4
5
6
7
8
9
10
11
12
-- Find long-running queries in Fabric WarehouseSELECT*FROMqueryinsights.long_running_queriesORDERBYstart_timeDESC;-- Find top resource-consuming queriesSELECTcommand,total_elapsed_time_ms,data_processed_mbFROMqueryinsights.exec_requests_historyORDERBYtotal_elapsed_time_msDESC;
Optimize Eventstream and Eventhouse
Eventstream optimization:
Optimization
Description
Partition key
Choose a good partition key for parallel processing
Batch size
Tune ingestion batch size for throughput vs latency
Schema
Keep events lean — avoid unnecessary fields
Eventhouse optimization:
Optimization
Description
Retention policy
Set appropriate data retention to manage storage
Caching policy
Configure hot cache duration for frequently queried data
Materialized views
Pre-aggregate frequently queried patterns
Update policy
Transform data on ingestion (ETL at ingest time)
Partitioning
Partition by time for time-series workloads
// Check table size and extents
.show table SensorReadings extents
| summarize ExtentCount = count(), TotalRows = sum(RowCount), TotalSize = sum(OriginalSize)
// Set hot cache to 30 days
.alter table SensorReadings policy caching hot = 30d
// Set retention to 365 days
.alter table SensorReadings policy retention softdelete = 365d
// Create a materialized view for hourly aggregates
.create materialized-view HourlySensorAgg on table SensorReadings {
SensorReadings
| summarize AvgTemp = avg(Temperature), MaxTemp = max(Temperature)
by bin(Timestamp, 1h), DeviceId
}
Optimize Spark Performance
flowchart TD
SLOW["🐌 Slow Spark Job"] --> DIAG{Diagnose in\nSpark UI}
DIAG -->|"Shuffle too high"| SHUFFLE["📦 Reduce Shuffle\n• Broadcast small tables\n• Coalesce instead of repartition\n• Avoid unnecessary groupBy"]
DIAG -->|"Data skew"| SKEW["⚖️ Fix Data Skew\n• Salt skewed keys\n• Use adaptive query execution\n• Repartition by key"]
DIAG -->|"Small files"| SMALL["📁 Small File Problem\n• OPTIMIZE Delta tables\n• Coalesce before write\n• Auto-optimize settings"]
DIAG -->|"Spill to disk"| SPILL["💾 Spill to Disk\n• Increase executor memory\n• Reduce partition count\n• Broadcast small tables"]
DIAG -->|"Slow scan"| SCAN["🔍 Slow Table Scan\n• Partition pruning\n• Z-ORDER on filter cols\n• Predicate pushdown"]
Key Spark optimizations:
Optimization
How
When
Broadcast join
broadcast(small_df)
Small table < 100MB joined with large table
Adaptive Query Execution (AQE)
Enabled by default in Fabric
Automatic optimization at runtime
Predicate pushdown
Filter early in the query
Always — reduces data scanned
Partition pruning
Partition data by frequently filtered columns
Date-based queries on time-partitioned tables
Coalesce
df.coalesce(n) before write
Reduce output file count without full shuffle
Cache
df.cache() or df.persist()
Reuse intermediate results multiple times
Native execution engine
Enable in workspace Spark settings
Supported operations get up to 4x speedup
Dynamic allocation
Auto-scale executors based on workload
Variable workloads, avoid over-provisioning
1
2
3
4
5
6
7
8
9
10
11
12
# Broadcast join for small dimension table
frompyspark.sql.functionsimportbroadcastdf_result=df_large.join(broadcast(df_small),"customer_id")# Coalesce to reduce output files
df_result.coalesce(10).write.format("delta").mode("overwrite").saveAsTable("output_table")# Cache for repeated use
df_intermediate=df.filter(col("year")==2026).cache()count1=df_intermediate.count()count2=df_intermediate.filter(col("region")=="EU").count()
Exam Caveat ⚠️:
AQE (Adaptive Query Execution) is enabled by default in Fabric — it handles skew joins, coalescing shuffle partitions, and converting sort-merge joins to broadcast automatically
coalesce() vs repartition(): coalesce reduces partitions without a full shuffle (faster); repartition does a full shuffle (use when you need even distribution)
Broadcast join fails with OOM if the “small” table is too large — keep it under ~100MB
Optimize Query Performance
General query optimization principles:
Principle
Description
Filter early
Push WHERE clauses as early as possible
Select only needed columns
Avoid SELECT * — reduces I/O
Use appropriate joins
Broadcast small tables, hash join for large-large
Leverage partitioning
Query only relevant partitions
Use statistics
Ensure up-to-date table statistics (auto in Fabric Warehouse)