Skip to content
Ameen Abozaid
ARC-016

Database architecture

  • 6 Lessons
  • 3.5 h practice (estimate)
On this page 9 topics

Overview

Topics

  • Managed SQL
  • NoSQL
  • caching
  • replication
  • DR

Learn first

3.5 h of practice (estimate)

Learning outcomes

  1. Select managed relational, NoSQL, cache, and search services per workload.
  2. Design replication, read scaling, and failover for each data store.
  3. Define backup, point-in-time recovery, and disaster recovery for data stores.
  4. Plan data migration from on-premises databases.

Lessons

  1. 01Managed databases: what you still own
  2. 02Selecting stores by workload
  3. 03Replication, read scaling, failover
  4. 04Backup, PITR, and DR for data
  5. 05Migrating databases to the cloud
  6. 06Demo: Larkspur's data stores and their failover design

Lab and exercises

Lab

ARC-016-LAB1 · Larkspur data platform

Outcomes: 1–4 · Time: ~3.5 h

  1. List Larkspur data workloads and their access patterns and consistency needs.
  2. Choose a data store per workload and name the source of truth.
  3. Design replication, read scaling, and failover per store.
  4. Define backup, PITR window, RPO, and RTO per store and compare with requirements.
  5. Write the migration approach for the current web shop database (method, cutover plan, rollback).

Acceptance: each store's RPO/RTO meets requirements or the gap is flagged.

Exercises (case-based; six exercises)

IDOutcomeTask
ARC-016-EX011Choose a store for carts, orders, product search, and a catalog read cache; justify each.
ARC-016-EX021List what Larkspur still owns after adopting a managed relational database.
ARC-016-EX032The reporting queries slow the order database. Propose a design and its staleness trade-off.
ARC-016-EX042Explain the difference between a multi-AZ standby and a read replica, with an example failure of each.
ARC-016-EX053A developer deleted rows at 14:05. Describe how to recover and what RPO the design gives.
ARC-016-EX064Outline a migration plan for the web shop database with 200 GB, a nightly low-traffic window, and a four-hour downtime limit.
Show solutions
  • EX01 Carts: key-value/document (simple, fast); orders: relational (transactions); search: managed search fed from the catalog; cache: in-memory cache, source of truth stays relational.
  • EX02 Schema, indexes and queries, sizing, access and encryption, monitoring, restore testing, upgrade planning, cost.
  • EX03 Add a read replica for reporting; accept replication lag of seconds to minutes; reports must tolerate stale data.
  • EX04 Standby: survives zone failure with automatic failover, no extra read capacity. Replica: serves reads, may lag, promotion is a manual or scripted step.
  • EX05 PITR to 14:04 into a new instance, copy back the rows, or switch with care; RPO is minutes, bounded by the log retention and backup configuration.
  • EX06 Replicate continuously from on-premises, validate, rehearse, freeze writes in the window, final sync, switch connection, keep the old database read-only as the rollback; downtime minutes, within four hours.

Workplace evidence: a data platform design you led to production.

Outcome coverage: all outcomes covered by exercises and the lab.

Quiz

Outcomes: O1 select stores · O2 replication and failover · O3 backup, PITR, DR · O4 migration.

A self-check for you: nothing is graded, saved or sent anywhere. Choose an answer, then check it. You can try again as often as you like.

  1. 1With a managed relational database, the customer still owns:O1
  2. 2Which is a source of truth?O1
  3. 3One database for every workload is:O1
  4. 4A multi-AZ synchronous standby mainly provides:O2
  5. 5Read replicas may:O2
  6. 6After failover, applications should:O2
  7. 7PITR lets you:O3
  8. 8RPO describes:O3
  9. 9Replication-based migration is chosen mainly for:O4
  10. 10Before cutover you should have:O4

Practical part

Design review of the ARC-016-LAB1 data platform plus exercises ARC-016-EX01 to EX06. Pass: quiz at least 8/10, at least five of six exercises correct, and each store's RPO/RTO either meeting requirements or flagged as a gap.

Common mistakes

One database for everything; assuming managed means automatic DR.

Assessment

Design review.

Workplace evidence

A data platform design you led to production.

Career relevance

Data architecture (ARC-023).

Type to search levels, phases, modules and lessons.