Permissions and schema changes
Govern storage and schema together
A medallion design separates raw bronze, validated silver and consumption-ready gold. Access rights and schema contracts must be explicit at each stage. In this lab, synthetic SourceContact is restricted to bronze; silver omits it and gold publishes only region and revenue. Removing a field from a downstream projection does not erase it from the raw source, retained copies or history.
Schema enforcement and evolution
Delta normally validates schema during writes. An intentional nullable column addition can be compatible for existing readers, but downstream schemas, SQL endpoint synchronization, Power Query steps and semantic models still need verification. For example, a Spark Delta append can use incoming.write.format("delta").mode("append").option("mergeSchema", "true").saveAsTable("sales_silver") for an approved additive append; this is illustrative native NOT RUN, and would be wrong for the correction batch because S02 must be replaced, not appended. Use a validated keyed upsert and explicit schema migration instead. Do not enable unrestricted schema evolution to silence a contract failure.
Worked example 1 — safe and breaking change
Bronze S04 has invalid cents and is quarantined, so v0 has three accepted rows. The corrections replace S02 from 8000 to 9000 and add S05 for 3000. Add nullable Channel, leaving older rows null; final four rows total 29000 cents (N=20000, S=9000). A replay yields the same logical rows. Changing RevenueCents from long to string is a breaking contract for this model: block publication until transformation, metric and refresh regression tests pass. Unknown rejected revenue is not zero.
Worked example 2 — permission matrix
For the simplified same-tenant internal shortcut case, the lab requires authorized path, target and outbound route. Approved viewer passes; path-only, target-only and outbound-blocked cases fail. In actual Fabric evaluate the relevant OneLake security roles, item permissions, compute engine and identity. External shortcuts can use delegated credentials and have additional item-read requirements for Spark/API access; the internal rule is not a universal permission algorithm. Test least-privileged consumers and direct access to bronze separately.
Release gate and cleanup
Before enabling a new schema, capture table version, row/key counts, accepted/rejected records, totals, data classification, lineage and reader compatibility. Keep the last approved gold result if tests fail. Real tenant exercises need explicit approval, isolated data, bounded costs and cleanup of only learner-created references/items, never their target. Confirm outbound policy and actual region support. Recheck Power BI refresh and Direct Lake framing with the actual model; offline success proves neither.
Practice and references
Complete the worksheet with four access decisions, a schema-change approval plan and classification map. Compare source and published totals, identify who owns each gate and preserve denied cases. Read medallion architecture, schema evolution, shortcut security, security scope and outbound protection. Next: Lakehouses, warehouses and analytical SQL.