Choose the authoritative store and its derived views
Build a governed lakehouse, scale transactional readers and protect freshness across cache and analytical views.
Task 1.5 · Choose the authoritative store and its derived views
One sale appears twice
A chain publishes live sales and a next-day corrected report. Late receipts arrive for a previous day. A partner may see totals only. The checkout must immediately read its committed receipt. Which copy is authoritative at each point?
Compare your design with the worked answer
Keep checkout confirmation on a consistent transactional path. Use stable sale IDs in streaming and batch processing. Reconcile event-time partitions into versioned analytical snapshots and record the snapshot used for each report. Apply fine-grained catalog grants internally and approved aggregate analyses for partners. An authorized public catalog view may use a bounded cache; a post-commit receipt has stricter freshness.
If an Aurora reader becomes the writer, check its instance capacity and promotion tier. Extra report readers can increase read throughput without guaranteeing enough write capacity after failure.
1.5.1 · Give a lake transactional tables
Keep durable objects in S3, define metadata in the Glue Data Catalog, and govern access with Lake Formation. Iceberg adds table snapshots, schema evolution and atomic table commits for supported engines. Set compaction and snapshot expiration with retention and concurrency in mind. An object prefix alone has no table transaction boundary.
1.5.2 · Align batch and streaming results
Use streaming for bounded alert delay, and batch to reconcile late events into settled daily aggregates. Define event time, watermarks, duplicate identities and a correction policy. Publish provisional and final outputs distinctly so replay does not double count. Watch consumer lag and record rejection rates.
1.5.3 · Start with access patterns and invariants
Document the busiest reads and writes, required joins, transaction scope, consistency after writes and key distribution. Aurora suits relational integrity and SQL features. DynamoDB fits well-distributed keyed access. Neptune supports graph traversals; a search index can remain a derived view. Verify a real query under skewed traffic.
1.5.4 · Separate read capacity from failover capacity
Aurora readers can serve read traffic and eligible readers can become the writer. Choose promotion tiers and capacity so the promoted instance meets write demand after a failure. Route consistency-sensitive work appropriately. For key-value designs, check partition heat and Region-level consistency before selecting replicas.
1.5.5 · Benchmark the storage interface
S3 provides objects, EBS zonal blocks, EFS shared NFS semantics, and the FSx families support specialized shared filesystems. Measure steady IOPS, request size, throughput, metadata work and client limits. Include restore and first-read behavior in the benchmark when a cross-AZ recovery is required.
1.5.6 · Set a freshness and reuse boundary
Use a cache where tolerated staleness, repetition and miss handling are explicit. Choose a key including authorization-relevant attributes. Set TTL or invalidate after updates, bound concurrent refills, and size the origin for cold starts. Reads immediately following sensitive writes may need the authoritative store.
1.5.7 · Share a query result at the right granularity
Use catalog permissions and Lake Formation grants for approved tables, rows or columns across accounts. For collaborators allowed to see only aggregate results under agreed rules, consider AWS Clean Rooms analysis rules and output restrictions. Document which party owns the source, query permission, output and audit trail.
Apply the video example
The Aurora chapter distinguishes writer and reader roles. Assign an insert, immediate confirmation and delayed report to endpoints. Then take the writer away and size the surviving path before accepting the design.
freeCodeCamp · 39:34:22 in Aurora
Official SAP-C03 task 1.5 · AWS Clean Rooms analysis controls
Choose the authoritative store and its derived views quiz
Answer 7 questions. Check each answer for an explanation.