Cloud Storage and Database Design

Design the storage and database layers of a cloud workload. Choose object storage classes and lifecycle rules, size block and file storage, control access with policies, network rules, signed URLs and shared access signatures, and pick a redundancy level and replication setup. Then select managed relational, NoSQL and caching services, scale them with read replicas and sharding, and plan file and database migrations with realistic transfer times and a safe cutover. Examples cover AWS, Microsoft Azure and Google Cloud.

IntermediateLesson 4 of 8 in Cloud Architecture and Administration Course

What you will learn

  1. Match object, block and file storage options to how often data is read, how fast it must come back and how long it is kept, then automate moves and deletions with lifecycle rules.
    • Match object storage classes to access patterns
      Compare frequent-access, infrequent-access and archive classes by storage price, retrieval fees, retrieval time, minimum storage duration and resilience, and pick a class for each data set.
    • Automate tier changes and deletion with lifecycle rules
      Write lifecycle rules that move objects to cheaper classes and delete them on schedule, including old versions and incomplete uploads, within the providers' timing limits.
    • Size block and file storage for performance
      Choose block volume types and file service tiers from the required IOPS, throughput, latency and sharing, and check by calculation whether a configuration meets the workload.
  2. Protect buckets and storage accounts with identity, resource and network rules and encryption, and share single objects safely with time-limited signed URLs and shared access signatures.
    • Lock down buckets and storage accounts
      Combine identity policies, resource policies, public-access blocks, network rules and encryption keys so that each user and application reaches only the data it needs.
    • Share objects with signed URLs and shared access signatures
      Create time-limited links for downloads and uploads, choose the right signature type for each provider, and plan how to limit and revoke them.
  3. Decide how many copies of data to keep and where, tell durability from availability, and set up replication of objects across zones, regions and accounts.
    • Choose a redundancy level for stored data
      Compare redundancy within a datacenter, across zones and across regions, with synchronous or asynchronous copies, and match the choice to recovery targets and data residency.
    • Replicate objects across buckets, accounts and regions
      Configure object replication rules with the versioning they require, know what is and is not copied and how fast, and protect against changes that replication would spread.
  4. Select relational, NoSQL and in-memory services from a workload's data model, access patterns, consistency, scale and availability needs, and configure them for performance.
    • Select and configure a managed relational database
      Compare managed relational services and deployment models, size compute and storage, keep the database available within a region and manage connections.
    • Choose a NoSQL data model and service
      Match key-value, document, wide-column and graph databases to access patterns, design partition keys, and plan capacity, consistency and multi-region use.
    • Speed up reads with caching
      Place an in-memory cache in front of a database, choose a caching strategy, expiry and eviction policy and an engine, and estimate the effect on load and latency.
  5. Scale out reads with replicas and scale out data and writes with partitioning, and manage the consistency and operational trade-offs each brings.
    • Scale reads with read replicas
      Add read replicas, route traffic to them, size them, handle replication lag, and tell them apart from high-availability standbys.
    • Partition data with sharding
      Split data across servers or partitions with a shard key, choose a sharding scheme, and plan for hot spots, cross-shard queries and resharding.
  6. Move files, objects and databases into and between clouds with a suitable transfer method, a calculated schedule and a tested cutover.
    • Choose a method to move files and objects
      Compare online transfer tools, hybrid gateways, dedicated links and offline devices, calculate transfer times, and plan a copy-sync-cutover migration.
    • Migrate databases with minimal downtime
      Choose a homogeneous or heterogeneous path, convert schemas, combine a full load with change data capture, and validate, cut over and plan a rollback.

Cloud Storage and Database Design study guide

6 chapters

1

Choose storage classes and automate their lifecycle

Storage choices affect both the monthly bill and the time a user waits for data. Match object classes to access and retention, turn that plan into lifecycle rules, and size disks and shared file systems from their actual I/O patterns. The useful comparison includes retrieval fees, object overhead, and the virtual machine limits along the storage path. A cheap capacity setting alone cannot show whether the workload will run well.

1.1 Object classes, access costs, and retrieval time

A storage class changes what you pay to keep and read each object. Azure calls it an access tier. Start with the workload: read frequency, response time, retention period, and object size. A low monthly storage price can be outweighed by retrieval and request charges.

Compare access and retention
Access needAWSAzureGoogle Cloud
Frequent readsS3 StandardHotStandard
Rare reads, immediate accessStandard-IA, One Zone-IACool, ColdNearline, Coldline
ArchiveGlacier Instant, Flexible, Deep ArchiveArchiveArchive

Standard-IA, One Zone-IA, Cool, and Nearline have 30-day minimum storage durations. Cold and Coldline use 90 days; so do Glacier Instant and Flexible Retrieval. Deep Archive and Azure Archive use 180 days, and Google Archive uses 365 days.

Archive does not always mean offline. Glacier Instant Retrieval and all Google Cloud Storage classes give millisecond access. Glacier Flexible Retrieval requires restoration: expedited takes about 1–5 minutes, standard 3–5 hours, and bulk 5–12 hours. Deep Archive standard restores take up to about 12 hours; bulk can take 48 hours. Azure Archive must be rehydrated to an online tier, taking up to 15 hours at standard priority. A record needed during an interactive support call cannot depend on an hours-long restore.

Work out the bill

With illustrative prices, 10,000 GB at $0.023 per GB-month costs $230. At $0.0125 per GB-month, storage costs $125. If 500 GB is retrieved at $0.01 per GB, retrieval adds $5, giving $130. Reading the entire data set adds $100, giving $225 before request fees. At these prices, reading about 105% of the stored volume per month erases the saving.

A minimum duration is a billing commitment, not a deletion lock. Deleting a blob after 60 days in Azure Cold leaves 30 days of charges. Deleting after 45 days in a 180-day archive leaves 135 days. Early overwrites and class changes can also trigger charges on S3 and Azure. Google lifecycle SetStorageClass moves have no early deletion fee, and time already stored counts toward the new class's minimum: 20 days in Nearline plus 60 in Coldline leaves 10 days against Coldline's 90-day minimum.

Object count matters. Standard-IA, One Zone-IA, and Glacier Instant Retrieval bill objects as at least 128 KB. Flexible Retrieval and Deep Archive add about 40 KB of metadata per object, including 8 KB charged at Standard rates. Bundling tiny logs into daily archives can reduce this overhead, although reading one log then means retrieving its bundle.

Handle uncertain access and zone loss

S3 Intelligent-Tiering moves eligible objects after 30 days without access to Infrequent Access, then after 90 days to Archive Instant Access, and moves them back when read. It has a monitoring fee and no retrieval fees; objects under 128 KB stay in the frequent tier without monitoring. Google Autoclass and Azure smart tier also automate tier selection.

Single-zone options suit replaceable data. One Zone-IA can hold regenerated thumbnails; Express One Zone offers consistent single-digit-millisecond access for demanding workloads. Neither protects against losing its zone. Keep the only copy of important records in a class whose failure coverage meets the workload.

Key Takeaways

  • Compare storage, retrieval, and request charges.
  • Check whether archive reads need a restore first.
  • Minimum duration controls billing; it does not prevent deletion.
  • Small-object overhead can erase cold-storage savings.
  • Single-zone classes suit data that can be re-created.
  • Automatic tiering helps when access patterns change.

1.2 Lifecycle filters, timing, and old versions

A lifecycle rule selects objects and schedules a move or deletion. It keeps data handling consistent as a bucket grows. The rule needs a filter, a condition, and an action: for example, objects under logs/, older than 90 days, move to an archive class.

Turn retention into a rule
  1. Group data by access pattern and required retention.
  2. Select a narrow prefix, tag, or size range for each group.
  3. Place transitions in order from warmer to colder storage.
  4. Set expiration to match how long the data must remain.
  5. Check time spent in each class and the size of each object.
  6. Try the rule on a sample prefix and review the resulting actions and charges.

Application logs read often for a week, occasionally for a month, and retained for a year can move to infrequent access at day 30, archive at day 90, and expire at day 365. Azure uses actions such as tierToCool, tierToArchive, and delete; an age condition can use daysAfterModificationGreaterThan. Keep the age basis visible when comparing policies: days since creation and days since last modification can select different objects.

Check the time inside each class

S3 lifecycle follows a waterfall toward colder classes. It cannot return archived objects to Standard; restore and copy them. Azure lifecycle also cannot rehydrate Archive blobs; use Copy Blob or Set Blob Tier.

S3 allows lifecycle transitions into Standard-IA and One Zone-IA from day 0. Their 30-day minimum storage charge still applies. For multiple transitions in one rule, respect a class's minimum residence period: a move into Glacier Instant Retrieval at day 30 requires a later move to Deep Archive no earlier than day 120. That is 90 days after entering the class, not 90 days after creation.

S3 excludes objects under 128 KB from lifecycle transitions by default. A size filter can override that behavior, but per-object transition fees may cost more than the storage saved.

Clean up the data that ordinary expiration leaves

In a versioned S3 bucket, deleting the current object adds a delete marker. Older versions still occupy storage. Set separate noncurrent-version actions, such as NoncurrentVersionExpiration 30 days after a version becomes noncurrent. That clock starts when another version replaces it. Remove expired delete markers once they no longer hide retained versions. Azure lifecycle rules also have version actions.

An incomplete multipart upload is another source of hidden storage. Its uploaded parts remain billable until the upload completes or is aborted. An AbortIncompleteMultipartUpload rule after 7 days cleans up abandoned work without expiring completed objects.

Use access conditions carefully

Azure can move a blob after 30 days without a read when last-access tracking is enabled. daysAfterLastAccessTimeGreaterThan supplies the condition; enableAutoTierToHotFromCool can return a Cool blob to Hot when read. Google lifecycle combines conditions such as age, current class, and newer-version count with SetStorageClass or Delete.

Lifecycle work is asynchronous. Evaluation is roughly daily, actions can follow later, and Azure policy changes can take up to 24 hours to take effect. A scheduled expiration does not enforce a minimum retention date against manual deletion. Object lock or an immutability policy provides that protection.

Key Takeaways

  • Select objects narrowly before scheduling actions.
  • Measure class residence from the transition date.
  • Current objects, noncurrent versions, and unfinished uploads need separate handling.
  • Lifecycle actions are asynchronous.
  • Use immutability controls to enforce retention.

1.3 Disk performance and shared file systems

Choose the storage interface before sizing its performance. A virtual machine uses block storage as a disk; several clients mount a shared file system over NFS or SMB. An object API reads and writes objects over HTTPS and does not provide ordinary in-place disk updates.

Translate workload into disk limits

IOPS means input/output operations per second. Throughput measures data moved per second, and latency measures the time one operation takes. Small random database operations often reach the IOPS limit first. Large sequential reads can reach throughput limits with relatively few operations.

throughput=IOPS×I/O size

At 3,000 IOPS and 16 KiB per operation, throughput is 48,000 KiB/s, about 46.9 MiB/s. At 256 KiB per operation, a 125 MiB/s limit supports only 500 IOPS. Binary conversion uses 1,024 KiB per MiB; network transfer calculations use decimal units when stated that way.

A database requiring 12,000 IOPS at 16 KiB needs 187.5 MiB/s. Provisioning 12,000 IOPS but leaving a 125 MiB/s limit would fail the throughput requirement. A 200 MiB/s setting clears that calculation.

Match the volume to the access pattern
Volume optionMain use
EBS gp3General-purpose SSD; IOPS and throughput can be raised independently of capacity
EBS io2 Block ExpressDemanding databases needing consistent, very low latency
EBS st1Large sequential, throughput-heavy HDD workloads
EBS sc1Infrequently read sequential HDD data

The gp3 baseline is 3,000 IOPS and 125 MiB/s. It supports up to 80,000 IOPS and 2,000 MiB/s, with at most 500 IOPS per GiB. Thus 12,000 IOPS requires at least 24 GiB, as well as enough capacity for the data itself. Increasing a gp3 volume's size alone is not the way to buy extra IOPS. The st1 and sc1 HDD options cannot be boot volumes. Azure offers Standard HDD, Standard SSD, Premium SSD, Premium SSD v2, and Ultra Disk for different performance needs.

Check the entire path

The VM has its own aggregate disk IOPS and throughput limits. A disk provisioned for 200 MiB/s still delivers no more than the VM can carry. Compare workload demand with both limits, then measure latency under realistic load. Striping several disks with RAID 0 can add performance, but any member's failure threatens the striped data.

Ordinary block volumes are attached to one VM at a time. Shared disks and EBS Multi-Attach are exceptions that require a cluster-aware file system; attaching a normal file system to several writers is unsafe.

Supply files to many clients

Amazon EFS provides elastic NFS storage, including a multi-zone option, with Standard, Infrequent Access, and Archive classes and Elastic throughput. Azure Files offers SMB and NFS shares on standard HDD or premium SSD storage. Google Filestore provides managed NFS. FSx supplies Windows File Server, Lustre for high-performance computing, NetApp ONTAP, and OpenZFS systems.

For a fleet of servers editing the same directory tree, choose a shared file service with the required protocol and throughput. For one database VM's data files, choose block storage and size it using that database's I/O pattern.

Key Takeaways

  • Check IOPS, throughput, and latency separately.
  • Use actual operation size to calculate throughput.
  • A VM limit can hold back a fast disk.
  • gp3 performance can be provisioned independently of capacity.
  • Use a shared file service for ordinary multi-client file access.
2

Control access to stored data

Access depends on who is asking, what action they need, which resource they reach, and how the request arrives. Combine identity and storage policies with private network paths and encryption-key controls. Then delegate short-lived access with a signed URL or SAS when a recipient has no cloud identity. The design needs a revocation path as well as a way to issue the link, because anyone who obtains that bearer link can use its authority.

2.1 Permissions, private paths, and encryption keys

Storage security combines identity, resource rules, network access, and encryption. Each layer answers a different question. A private route determines how a request arrives; permissions determine what it may do; encryption controls how stored bytes and keys are protected.

Give each identity only the access it needs

Least privilege means limiting actions and resources together. A reporting process may need s3:GetObject under finance/ without upload or delete rights. Management-plane permission to configure a storage account is separate from data-plane permission to read its contents.

S3 evaluates IAM identity policies, bucket policies, Block Public Access, and other applicable controls together. Requests begin denied. An explicit Deny overrides an Allow. Within one account, an applicable identity or bucket Allow can grant access when no control denies it. Cross-account access requires permission from both the requesting account's identity policy and the resource's bucket policy.

A bucket Allow for finance/* does not remove a role's broader IAM Allow. Remove that broader grant or add an appropriate explicit Deny to enforce the boundary. By contrast, a Deny when aws:SecureTransport is false forces HTTPS, including for otherwise authorized users. A Deny tied to aws:SourceVpce can require requests through a chosen VPC endpoint.

Keep public-access protection enabled. New S3 buckets block public access and disable ACLs with bucket-owner-enforced ownership. New Azure accounts disallow anonymous blob access by default. A CDN with controlled origin access can deliver public assets while the bucket stays private.

Prefer roles over account secrets

On Azure, use Microsoft Entra ID and data roles such as Storage Blob Data Reader at the smallest useful scope. A container-level assignment is narrower than an account-level one. Account access keys grant broad access; store them in Key Vault and rotate one at a time. Move applications to key 2, regenerate key 1, migrate back, then regenerate key 2. Disable Shared Key authorization when applications no longer require it.

Azure Files over SMB combines share-level Azure RBAC with Windows file and folder ACLs. Both layers must allow the operation. Supported identity paths include Active Directory Domain Services, Microsoft Entra Domain Services, and Microsoft Entra Kerberos.

Separate network reachability from authorization

An Azure firewall with default Deny admits selected networks, IP ranges, and configured service exceptions. A service endpoint uses the Azure backbone but still addresses the storage account's public endpoint. A private endpoint supplies a private IP in the virtual network, allowing public network access to be turned off. S3 VPC endpoints provide a private route on AWS. Correct routing does not replace data permissions.

Control and audit keys

S3 encrypts new objects with SSE-S3 by default; Azure uses Microsoft-managed keys. Customer-managed keys in AWS KMS, Azure Key Vault, or Google Cloud give the organization control over key permissions and rotation. Disabling a key can cut off decryption, with timing affected by service key caching.

With S3 Bucket Keys, later object requests can reuse a bucket-level key without another KMS request or key-policy evaluation. KMS logs then identify the bucket. Use storage access logs for individual data requests. Encryption at rest does not block a reader whom the storage policies authorize.

Key Takeaways

  • An explicit Deny overrides an Allow.
  • A narrow Allow does not cancel a broader grant.
  • Assign data-plane roles at the smallest useful scope.
  • Private networking and identity permissions are separate controls.
  • Rotate account keys one at a time.
  • Audit object requests with storage access logs.

A signed URL delegates one storage operation for a limited time. The recipient does not need a cloud identity. The link contains the resource address plus signed parameters, so anyone holding it can use its authority. Treat it as a bearer token.

Delegate one operation

For a browser upload, first authenticate the user in the application. The backend checks that user's right to upload, chooses one object key, and issues a short-lived signed PUT URL. The browser uploads directly to storage. Afterwards, validate the uploaded file: permission to upload says nothing about its contents.

S3 presigned URLs inherit the signing principal's permissions. With Signature Version 4 and long-term IAM user credentials, they can last up to 7 days; the console offers 1 minute to 12 hours. Temporary credentials impose an earlier ceiling: when the signing role session expires, its URL fails even if the requested URL expiry is later. A valid signature also does not bypass an explicit bucket Deny or network restriction.

Choose an Azure SAS type
SAS typeSigned withTypical scope
User delegationA delegation key obtained through Entra IDDelegated resource access without an account key
ServiceAn account access keyResources in one storage service
AccountAn account access keyOne or more services and service-level operations

Microsoft recommends user delegation SAS. Its authority is bounded by the signer's permissions, and its lifetime is at most 7 days. For any SAS, restrict permissions, resource, and time together. sp=r grants read, st and se set times, spr=https requires HTTPS, sip can restrict client IPs, and sig carries the signature. A link for one document should not grant write and delete on its container.

Plan revocation before sharing

A service SAS associated with a stored access policy can be revoked by changing or deleting the policy. A container holds up to five stored access policies. Account SAS and user delegation SAS do not support this mechanism.

An ad hoc service or account SAS has no individual server-side policy to remove. Regenerating its signing account key invalidates it and all applications or SAS tokens using that key. Disabling Shared Key access blocks key-signed blob access. For a user delegation SAS, revoke delegation keys or remove the signer's relevant role; permission changes can take time to propagate. Short expiry keeps exposure small while revocation takes effect.

Read expiry as a request boundary

Google Cloud Storage V4 signed URLs also allow at most 7 days. A link issued at 14:00 with a 900-second lifetime expires at 14:15. S3 checks expiry when a request starts: a download begun at 14:14 can finish, but a fresh retry at 14:16 fails. Do not interpret expiry as a command to interrupt a response already in progress.

Use roles for ongoing staff and application access. Use storage signed URLs for temporary direct sharing, and CDN signed URLs or cookies for protected delivery through a CDN. Keep signing credentials on the backend and send bearer links only over HTTPS; forwarding the link forwards its access.

Key Takeaways

  • Signed URLs are bearer tokens.
  • A link cannot outlive temporary credentials that signed it.
  • Prefer user delegation SAS when it meets the sharing need.
  • Stored access policies revoke associated service SAS tokens.
  • Key rotation can revoke many clients at once.
  • S3 checks expiry when a request begins.
3

Design redundancy and replication for stored data

Copies protect against different failures depending on where they live and how writes reach them. Choose the zones and regions that match residency and recovery needs, then separate account redundancy from selected-object replication. The important questions are what a successful write confirms, how far a distant copy can lag, and which harmful changes reach every copy. Version protection and deliberate deletion behavior address risks that geography alone leaves open.

3.1 Failure coverage and recovery targets

A storage design must say which failures it survives and how quickly users regain service. Durability concerns stored data remaining intact over a year. Availability concerns whether reads and writes work when needed. Durable data can still be unreachable during an outage.

Match copies to the failure

Copies within a datacenter protect against device, server, and rack failures. Copies across zones also protect against losing a zone. Copies across regions protect against a regional disaster, but the distant copy commonly lags. Specify data residency before choosing where that copy may live.

Azure optionPrimary protectionSecondary region
LRSCopies in one datacenterNone
ZRSSynchronous copies across at least three zonesNone
GRSLRS primaryAsynchronous, LRS secondary
GZRSZRS primaryAsynchronous, LRS secondary
RA-GRS / RA-GZRSAs aboveSecondary also readable before failover

Azure's durability design figures are at least 11 nines for LRS, 12 for ZRS, and 16 for geo-redundant options. These are durability figures, not the percentage of time an application is online. The -secondary endpoint lets applications read an RA secondary, which may contain older data.

S3 Standard, Standard-IA, Intelligent-Tiering, and Glacier classes store across at least three zones. One Zone-IA and Express One Zone use one zone. Cross-region copies need replication. Google buckets can be regional, dual-region, or multi-region; dual-region turbo replication targets new-object copying within 15 minutes.

Understand what a successful write confirms

Synchronous replication waits for the required copies before acknowledging success. Some systems require all available copies; others require a majority quorum. It adds waiting time to each write, so it is commonly used within a region. Asynchronous replication acknowledges first and copies later, allowing lower write latency across distance but leaving recent writes exposed if the source is lost.

RPO, the recovery point objective, is the largest acceptable data-loss interval. RTO, the recovery time objective, is the longest acceptable service interruption. A 10-minute RPO does not mean a 10-minute recovery: detection, decision, DNS changes, and application recovery all consume time. Azure geo priority replication targets an RPO of 15 minutes or less for block blobs.

With GRS or GZRS, the secondary takes writes only after account failover. Failover changes DNS so the existing endpoint names lead to the new primary. Writes not copied before the outage can be lost.

Make a constrained choice

Regenerable thumbnails can use LRS or One Zone-IA. Customer documents that must remain in one region and survive a zone outage fit ZRS or S3 Standard without cross-region replication. Records that must survive regional loss and remain readable fit RA-GZRS, or S3 with an accessible cross-region replica. Azure Archive supports LRS, GRS, and RA-GRS; it does not combine with every redundancy choice.

Redundancy copies apply harmful changes too. Versioning, soft delete, object lock, immutability, and separate backups protect against different forms of deletion or corruption. A wider geographic spread does not recover yesterday's content after today's bad overwrite.

Key Takeaways

  • Durability and availability measure different outcomes.
  • Choose the failure scope before selecting redundancy.
  • Synchronous acknowledgments wait for required copies.
  • RPO limits data loss; RTO limits interruption.
  • Read-access geo options expose the secondary before failover.
  • Redundancy does not preserve a history of good data.

3.2 Object replication rules and version protection

Object replication creates an asynchronous copy in another bucket or account. It can place data near users, separate administrative control, or maintain a regional recovery copy. Unlike account redundancy, it lets you select particular objects and a destination.

Prepare S3 replication

Cross-Region Replication, or CRR, crosses regions. Same-Region Replication, or SRR, can separate accounts without moving data out of the region. Enable versioning on both buckets. Give S3 an IAM role that can read the source and write the destination; a destination in another account also needs a bucket policy allowing that access. Replicating KMS-encrypted data requires the corresponding key permissions. A source using Object Lock requires Object Lock at the destination.

A live replication rule handles new eligible objects. Use S3 Batch Replication for objects that already existed before the rule. An object received as a replica is not automatically copied onward by another live rule. Plan each required destination instead of assuming a chain.

Delete markers replicate only when enabled; permanently deleting a particular version does not replicate. Lifecycle actions also do not replicate. A source expiration and a destination expiration therefore need separate policies.

Allow for lag and cost

Ordinary replication often finishes in minutes, but a large object can take hours. S3 Replication Time Control, a paid option, is designed to replicate 99.99% of new objects within 15 minutes and supplies delay metrics and notifications. It is not a guarantee that every object arrives by that instant. Azure object priority replication targets 99.0% within 15 minutes when both accounts are on the same continent.

Budget for destination storage, replication requests, and cross-region transfer. For 2 TB of new product originals each month, a second-region copy adds about 2 TB of cross-region traffic before counting retries or other activity.

Configure Azure object replication

Azure replicates block blobs between accounts. Enable blob versioning on both accounts and the change feed on the source. A policy can contain up to 1,000 container-pair rules with optional prefix filters. New blobs are included by default; explicitly include existing blobs when needed. Archive-tier blobs are not replicated, and the destination container rejects writes while replication is active.

GRS and GZRS copy an account to its paired region. Object replication uses a separate destination account and selected containers or prefixes. That difference matters when an organization needs a chosen region or separate administrative ownership.

Retain useful versions

An overwrite creates a new version while versioning retains the previous content. Azure blob and container soft delete can retain deleted data for 1–365 days; Azure Files also supports soft delete and share snapshots. Retained versions cost storage, so expire old versions on a deliberate schedule.

For a product-image design, replicate originals/ to a separate-account bucket in a second region. Keep delete marker replication off if production deletes should not hide the destination copy. Set its own lifecycle rule to expire noncurrent versions after 90 days. Restrict the source administrators' rights at the destination: a separate account helps only when its permissions maintain that separation.

Key Takeaways

  • Enable required versioning and replication permissions before copying.
  • Existing objects need explicit inclusion or batch replication.
  • Decide deletion behavior separately from new-object copying.
  • Lifecycle rules are local to each bucket.
  • Monitor lag and budget for each replica.
  • Retain old versions deliberately, with a lifecycle cost plan.
4

Choose managed database services for each workload

A database service should match the application's queries, transactions, freshness needs, and load. Compare managed SQL engines with keyed and document-oriented services, then consider which repeated reads belong in a cache. Capacity choices include compute, storage, connections, and request units. Managed operation removes server work, while the team still designs queries, keys, permissions, and the rules that keep cached results current.

4.1 SQL engines, capacity, and availability

A managed relational database supplies a SQL engine while the provider operates the underlying service. It suits related tables, joins, and ACID transactions. The application team still owns schema design, queries, indexes, users, permissions, and capacity choices.

Start from compatibility
ProviderManaged choices and their roles
AWSRDS runs engines including PostgreSQL, MySQL, MariaDB, Oracle, SQL Server, and Db2; Aurora is MySQL- or PostgreSQL-compatible with distributed storage
AzureSQL Database serves single databases or elastic pools; SQL Managed Instance supports SQL Server lift-and-shift; flexible servers run PostgreSQL or MySQL
Google CloudCloud SQL runs familiar SQL engines; AlloyDB is PostgreSQL-compatible; Spanner supplies horizontally scalable, distributed relational storage

Check drivers, stored procedures, extensions, licensing, and team skills. SQL Server to PostgreSQL changes engines and requires schema and code conversion. A database on a VM gives operating-system control and responsibility for patching and operation; choose that control when the workload needs it.

Size the resource that is busy

Choose CPU and memory from measured workload demand, then storage capacity and IOPS. RDS uses instance classes; Azure SQL can use vCores or the older DTU bundle of compute and I/O. Storage autoscaling grows capacity when free space runs low; it does not repair an inefficient query. Inspect slow queries and missing indexes before buying more compute.

Variable workloads can use Aurora Serverless v2 or Azure SQL Database serverless. Azure SQL serverless can pause when idle. Many small databases whose peaks occur at different times can share an elastic pool. If 20 databases each peak at 4 vCores but together never exceed 16, a 16-vCore pool can serve that combined demand instead of allocating 80 vCores as independent peaks. The overlap between peaks is the important input.

Separate standby capacity from read capacity

An RDS Multi-AZ DB instance has a synchronous standby in another zone and automatic failover, typically within 60–120 seconds. Its standby does not serve application reads. An RDS Multi-AZ DB cluster has two readable standbys. Aurora stores six data copies across three zones and can promote a reader if the writer fails. Azure SQL offers zone-redundant configurations, and Cloud SQL HA uses a second-zone standby.

These options reduce infrastructure interruption; the application still needs connection recovery. Use the service endpoint name so the service can move the database behind it. Handle transient errors with retries appropriate to the transaction.

Keep connections within capacity

Each open connection consumes database memory. A burst of application workers can exhaust connections even when individual queries are short. A connection proxy such as RDS Proxy pools and reuses connections and can reduce disruption during failover.

For an intermittently busy API, examine CPU, memory, storage latency, query execution, and connection count separately. Serverless compute addresses changing compute demand. A proxy addresses connection storms. Better indexes address avoidable query work. Their effects are different, so select the change that matches the measured bottleneck.

Key Takeaways

  • Choose an engine from compatibility and workload needs.
  • Managed operation leaves queries and permissions with your team.
  • Pool databases when their combined peak is smaller than separate peaks.
  • A Multi-AZ instance standby does not serve reads.
  • Use endpoints, retries, and connection pooling for connection resilience.

4.2 NoSQL models, keys, capacity, and consistency

NoSQL services use nonrelational data models. They often spread data across machines and answer known queries quickly. A document store can allow different fields in each document; a Cassandra-style wide-column service still declares tables and column types.

Choose the model from the queries
ModelUseful access patternExamples
Key-valueGet a cart by customer keyDynamoDB, Redis
DocumentRead a nested JSON recordCosmos DB for NoSQL, DocumentDB, Firestore
Wide-columnRead large keyed rangesBigtable, Keyspaces
GraphTraverse relationshipsNeptune, Cosmos DB for Gremlin

Start by listing requests such as "Get a customer's orders, newest first." A DynamoDB partition key of customer ID plus an order-time sort key supports this query. A global secondary index, or GSI, can support a different lookup. Ad hoc joins across many entities usually fit a relational engine better. NoSQL services can still offer transactions within their documented limits.

Spread traffic as well as data

A good partition key has many values with reasonably balanced traffic. A status field with three values concentrates requests. One very busy customer can also overload a partition even when the table has many customers. Automatic partition splitting does not make every logical key evenly busy.

A DynamoDB partition supports about 3,000 RCU and 1,000 WCU per second. Table-wide spare capacity cannot rescue a request concentrated beyond a partition's capacity. Prefer high-cardinality keys used in the main queries; avoid full scans as the normal lookup path.

Calculate capacity with size rounding

One RCU supports one strongly consistent read per second of an item up to 4 KB, or two eventually consistent reads. One WCU supports one write per second up to 1 KB. Round each item's size up before multiplying by requests. Transactions cost twice the ordinary units, and an item can be at most 400 KB.

For 500 strongly consistent reads per second of 6 KB items, each read needs two units, giving 1,000 RCU. Eventual reads need 500 RCU. For 200 writes per second of 2.5 KB items, each write needs three units, giving 600 WCU. Provisioned mode suits planned steady demand, with auto scaling available. On-demand mode bills requests and handles unpredictable demand without choosing provisioned throughput.

Cosmos DB uses request units per second. A point read of a 1 KB item by ID and partition key costs 1 RU with session, consistent-prefix, or eventual consistency; strong and bounded-staleness reads cost twice as much.

Select freshness and indexes together

Strong reads return the latest committed write; eventual reads may be older. DynamoDB defaults to eventual reads. Cosmos DB offers strong, bounded staleness, session, consistent prefix, and eventual consistency. Session consistency lets a client read its own writes within its session.

A DynamoDB GSI has its own keys and capacity and updates asynchronously, so its reads are eventual. A local secondary index shares the table's partition key, must be created with the table, and can serve strong reads. Index writes cost capacity when an indexed or projected entry changes; an update to an attribute absent from the index does not change that index.

DynamoDB global tables and Cosmos DB multi-region writes support local writes in multiple regions. Most configurations replicate asynchronously and resolve conflicts, commonly using last writer wins. A local success therefore need not be visible immediately in another region.

Key Takeaways

  • Design keys from access patterns.
  • Balance traffic across key values, not just row counts.
  • Round item sizes before calculating RCU and WCU.
  • Strong and eventual reads have different freshness and cost.
  • A GSI is asynchronous and cannot serve strongly consistent reads.
  • Indexes add cost when their entries change.
  • Multi-region writes require a consistency and conflict plan.

4.3 Cache strategies and their effect on database load

A cache holds frequently used data in memory. It can reduce database reads and response time, but the application must decide how entries stay fresh and what happens when the cache is unavailable. Cache only data whose reads repeat often enough to justify the extra component.

Follow a read through cache-aside

With cache-aside, the application checks the cache first. A hit returns the stored value. On a miss, the application reads the database, fills the cache, and returns the value. Only requested data is cached, but the first read is slower. A cache outage can fall back to database reads when the application supports that path and the database can carry the load.

Write strategySequenceMain cost or risk
Write-throughWrite the database and update the cache as part of the write pathExtra write latency; unused entries may fill memory
Write-behindAcknowledge a cache write, persist to the database laterA cache failure can lose unpersisted writes

For authoritative payment decisions, read current database state or use a carefully invalidated path. A cache copy should not silently become the only record of important data.

Estimate load and latency

Suppose an application receives 10,000 reads per second. Cache lookup takes 1 ms and a database query takes 20 ms. At a 90% hit ratio, 1,000 reads per second reach the database. Hits take 1 ms, while misses take 21 ms because they include both operations.

0.9×1+0.1×21=3.0

At 95% hits, database load falls to 500 reads per second and average latency to 2.0 ms. This simple average treats the stated operation times as fixed; measure real latency distributions and the miss path under load.

Expire and invalidate entries

A time to live, or TTL, sets how long a cached value remains eligible to be served. A 60-second TTL for product data limits its cache lifetime, while a slowly changing reference list can use a longer one. Delete or update the cached key when its source changes if stale results are unacceptable.

Add small random variation, called jitter, to TTLs so many entries do not expire together. Otherwise a popular batch can send a burst of misses to the database. When memory fills, an eviction policy chooses entries to remove. Least recently used, or LRU, favors items accessed recently. Rising evictions combined with falling hit ratio can show that the active working set no longer fits.

Choose the cache service and engine

Amazon ElastiCache supports Valkey, Redis OSS, and Memcached. Azure Managed Redis replaces Azure Cache for Redis; Google Memorystore offers managed cache engines. DAX caches DynamoDB requests. Memcached is a simple multithreaded key-value cache without replication or persistence. Redis and Valkey add data structures, replication, failover, optional persistence, and clustering, making them useful for session stores, rate limits, and leaderboards.

A CDN caches files near users. A read replica holds a full database copy and executes queries. An in-memory cache holds selected values; these layers reduce different kinds of repeated work.

Key Takeaways

  • Cache-aside fills entries on demand.
  • Include the cache lookup in miss latency.
  • Write-behind risks losing writes not yet persisted.
  • Use TTLs and write-driven invalidation to manage freshness.
  • TTL jitter spreads bursts of expiry.
  • Size memory for the working set and watch evictions.
5

Scale databases for growing reads and data

Growing reads and growing writes create different scaling problems. Use replicas to move eligible reads away from the writer, allowing for lag and the loss of a reader. Use sharding when data and write load must span servers, choosing keys that keep common operations local. Each design needs a routing plan: where a request goes, how it finds its data, and what happens when capacity changes. More nodes only help when they relieve the measured bottleneck.

5.1 Read routing, replica sizing, and promotion

A read replica is a database copy used to serve reads away from the writer. It reduces read load on the primary and can isolate long reports. It does not divide the stream of application writes: the primary still accepts those writes and replicas must apply them.

Route by freshness need

Use the writer endpoint for writes and reads that must see current state. Send lag-tolerant searches, reports, and dashboards to readers. An application that writes a profile and immediately reads a lagging replica may display the old profile. Keep that session on the writer briefly after a write, or wait for the required replica position.

Replication lag measures how far a reader trails the writer. Monitor lag alongside CPU, connections, and query load. A small replica can be overwhelmed by applying the primary's changes even if it serves few application queries.

Calculate enough capacity

A service receives 2,000 queries per second, 80% of them reads. That gives 1,600 reads and 400 writes per second. If one replica handles 600 reads per second, two provide only 1,200; three provide 1,800 and meet normal demand. A fourth keeps enough capacity when one reader fails. The writer still needs capacity for all 400 writes, plus any reads routed there for freshness.

Measure per-replica capacity with realistic queries. A figure from small indexed lookups does not describe a reporting workload that scans large tables. The sizing calculation is useful only when its throughput input matches the intended traffic.

Know the service's routing behavior

RDS offers read replicas in the same or another region for several SQL engines. Applications use separate reader and writer connection strings or a driver or proxy that splits requests. Ordinary RDS read replicas are planned and adjusted explicitly; RDS does not add them automatically.

Aurora supports up to 15 readers sharing the cluster storage. Its reader endpoint distributes connections, and Aurora Auto Scaling can change reader count using demand metrics. Azure SQL provides read scale-out in Premium, Business Critical, and Hyperscale tiers; active geo-replication supports up to four readable geo-secondaries. Cloud SQL also provides read replicas.

Distinguish failover from independent promotion

An RDS Multi-AZ DB instance standby is synchronous, automatic-failover capacity and serves no reads. Its role differs from an asynchronous read replica. A Multi-AZ DB cluster has readable standbys, so include the deployment type when discussing these features.

Promoting an ordinary RDS read replica makes it a standalone writable database and ends replication from the old primary. If a cross-region reader is promoted during an outage, writes still in transit can be lost. An Aurora failover changes a reader into the writer inside the same cluster and retains the cluster's other readers.

A replica that may take over should have enough compute for the writer's workload. Use endpoint names instead of fixed IP addresses so routing can follow service changes. Adding more readers is useful when reads are the bottleneck; slow writes call for query, resource, or data-distribution changes.

Key Takeaways

  • Route current-state reads to the writer.
  • Round replica count up and plan failure headroom.
  • Read replicas do not add application write capacity.
  • Monitor lag, especially on smaller readers.
  • RDS promotion ends the old replication relationship.

5.2 Shard keys, hot spots, and adding capacity

Sharding splits data across database servers so storage and writes can grow beyond one server. It also changes routing, queries, and operations. Tune queries, consider caching and replicas, and use available vertical capacity before taking on that complexity.

Pick a key that matches the work

A shard key determines where each row lives. It should have many values, distribute traffic, and appear in frequent queries. Tenant ID often keeps a tenant's records and transactions together. However, one very large tenant may still dominate one shard. Count requests per key as well as rows per key.

Vertical scaling moves to a larger instance and has a ceiling. Horizontal partitioning divides rows; it becomes sharding when those parts are placed on separate servers. Monthly table partitions within one PostgreSQL server can improve pruning and make old data easy to drop, but they do not add another server's CPU or storage bandwidth.

Compare three routing schemes
SchemeHow placement worksMain trade-off
RangeKey intervals map to shardsEfficient range reads; new sequential keys can crowd the last shard
HashA hash of the key determines the shardEven distribution across keys; range queries scatter
DirectoryA lookup table maps a key to its shardFlexible placement; the directory must stay fast and available

Range-sharding on an increasing timestamp puts all new writes in the newest range. Hashing timestamps can distribute writes, but a time-range query then needs several shards. Choose using the dominant requests, not just a desire for even disk usage.

Plan for the next shard

Simple modulo routing computes the hash modulo the shard count. Changing from four shards to five changes the mapping for about 80% of keys. Moving that much data while writes continue is a substantial migration.

Consistent hashing places keys and shards on a ring. Adding a similarly weighted fifth shard moves roughly one fifth of keys instead. Many virtual positions per shard help balance placement. The exact moved fraction depends on the layout; the method reduces redistribution instead of promising no movement.

Keep operations local when possible

A request without the shard key may need scatter-gather: ask every shard and merge results. Cross-shard joins and transactions can be slower or unsupported. Independent auto-increment counters can also produce duplicate identifiers, so use a global identifier scheme such as UUIDs when records must be unique across shards.

A hot logical key can be split with a calculated or random suffix, called write sharding. That spreads writes but means reads may need to fetch and combine several suffixes. Caching can help a read-heavy hot key; it does not distribute a heavy stream of new writes.

Understand the managed boundary

DynamoDB and Cosmos DB automatically manage physical partitions, but designers still choose logical partition keys. Spanner splits ranges automatically. Aurora Limitless Database distributes Aurora PostgreSQL data, and Azure Database for PostgreSQL elastic clusters use a distribution column through Citus. Managed movement reduces operational work; queries still pay for poor locality and uneven keys.

Key Takeaways

  • Shard keys must spread load and support common queries.
  • Range and hash placement trade range locality for distribution.
  • Modulo resharding can move most keys.
  • Consistent hashing reduces movement when adding shards.
  • Cross-shard queries and transactions add work.
  • One-server table partitions do not add server capacity.
6

Plan and carry out data migrations

Migration planning connects transfer capacity with the moment applications change where they read and write. Estimate file-copy time from sustained bandwidth, choose online or offline tools, and keep a live source synchronized until the final switch. Database moves add schema compatibility and transaction-log changes. Validation and rollback depend on a clear write boundary, especially after the target begins accepting changes that the old source has never seen.

6.1 Transfer schedules and file-share cutover

Choose a transfer method from volume, file count, change rate, bandwidth, and the time available. The size alone is not enough: millions of small files can take much longer than a few large objects holding the same number of bytes.

Estimate using effective bandwidth
time=data size in bitseffective bits per second

Use decimal KB, MB, GB, and TB for these examples. Multiply bytes by 8 to get bits. An 80 TB copy contains 640,000 gigabits. At 80% of a 1 Gbps link, divide by 0.8 Gbps to get 800,000 seconds, about 9.3 days. A 500 TB copy takes about 58 days on that path. Plan for the sustained rate after competing traffic, not the link's nameplate speed.

Select a tool and transport

AWS DataSync provides scheduled transfers from file systems and object stores to S3, EFS, or FSx, with encryption, integrity checks, and bandwidth limits. AzCopy provides command-line transfer to and between Azure Blob Storage and Azure Files; Storage Explorer supplies a graphical interface. Google Storage Transfer Service moves data from other clouds, URL lists, and on-premises file systems into Cloud Storage.

For an AWS folder copy, aws s3 sync ./data s3://example-archive/data sends new or changed content. On Windows Command Prompt, an Azure upload can use:

azcopy copy "C:\data" "https://myaccount.blob.core.windows.net/archive?<SAS>" --recursive

Use a real authorized destination and SAS at execution time, or authenticate with Entra ID through azcopy login. A later azcopy sync can transfer changes before cutover.

A private dedicated connection—Direct Connect, ExpressRoute, or Cloud Interconnect—provides predictable capacity for repeated large moves, but installation can take weeks. A site-to-site VPN is quicker to arrange and encrypted over the internet, with less predictable throughput.

When an online transfer takes too long, compare an offline device's full shipping-and-ingestion schedule. Azure Data Box and Google Transfer Appliance carry locally copied data to the provider. Snowball Edge is restricted to existing AWS customers; new AWS customers can use DataSync, Data Transfer Terminal, or partner paths. Data Transfer Terminal means bringing your storage to an AWS transfer location.

Move a live file share without splitting writes
  1. Inventory size, file count, permissions, and daily changes.
  2. Prepare destination access, encryption, and lifecycle settings.
  3. Run a full first copy while users keep working.
  4. Repeat incremental syncs to reduce the remaining changes.
  5. Freeze source writes, perform the final sync, and verify counts and checksums.
  6. Switch users and applications, keeping the old location read-only while checking the new one.

A source left writable after cutover creates two diverging locations. A one-time copy also misses changes made while the copy was running.

For gradual hybrid use, S3 File Gateway exposes an NFS or SMB share backed by S3 with a local cache. Storage Gateway also has Volume and Tape Gateway modes. Azure File Sync caches Azure file shares on Windows servers and tiers rarely used files to the cloud. These maintain a working hybrid access path beyond the initial bulk move.

Key Takeaways

  • Convert bytes to bits before dividing by network rate.
  • Measure sustained bandwidth and file count.
  • Compare online time with the complete offline schedule.
  • Use repeated syncs followed by a write freeze and verification.
  • Keep the old source read-only after cutover.

6.2 Full load, change capture, and a safe switch

A database migration moves both data and the behavior applications depend on. Keeping the engine makes the move homogeneous; changing engines makes it heterogeneous. SQL Server to PostgreSQL requires testing converted types, queries, procedures, and triggers as well as copied rows.

Choose how the copy stays current

A dump-and-restore path using tools such as pg_dump, pg_restore, or mysqldump is straightforward for an offline move. In that pattern, writes remain stopped during the copy and restore. Native replication can keep a same-engine target current. Managed migration services on AWS, Azure, and Google support full loads and ongoing changes for supported engine combinations.

For minimal downtime, create the target schema, copy existing rows with a full load, and capture new committed changes from the source transaction log. Change data capture, or CDC, applies those changes to the target. The bulk copy can then run while the application stays online; downtime is reserved for the final write freeze and switch.

Prepare schema and secondary objects

AWS DMS Schema Conversion assesses and converts supported schema objects and reports manual work. For example, Oracle NUMBER needs a suitable PostgreSQL numeric type, while SQL Server identity generation needs a PostgreSQL identity configuration. Test application behavior after conversion; type names alone do not establish compatibility.

DMS primarily creates migration-required objects such as tables and primary keys. Supply secondary indexes, users, jobs, permissions, and other dependencies through conversion or scripts. For a full-load-plus-CDC task, create required secondary indexes after full load and before applying cached changes. Keep target triggers disabled while replicated changes arrive: source-trigger effects have already entered the change stream. Handle foreign keys according to the tested engine and task sequence; they can often be restored after cached changes are applied. Enable required target behavior before application writes begin.

Check the schedule and readiness

Moving 2 TB across a 1 Gbps link at 80% utilization takes 20,000 seconds, about 5.6 hours, even before engine processing. A shop allowing under 15 minutes of interruption cannot stop writes for that entire load. Use full load plus CDC, then measure whether the apply rate keeps up with new changes. A growing lag cannot be repaired merely by waiting for a calendar cutover time.

Compare row counts, checksums, and representative queries. Run application tests, verify logins and jobs, and test performance at realistic load. Equal row counts alone can hide incorrect values or broken procedures.

Control the write boundary

Freeze schema changes, prepare endpoint updates, lower DNS TTLs in advance when DNS is part of the switch, and name the go/no-go owner. Stop source writes, wait for final changes to apply, verify the target, and switch applications. Record which system may accept writes at each stage.

An unchanged source is a rollback path only until the target accepts new writes. Afterwards it is missing those writes. Switching back safely needs tested reverse replication or reconciliation, or an explicit decision to accept the loss. Keeping the source online by itself does not make rollback lossless.

Key Takeaways

  • Same-engine and changed-engine migrations need different conversion work.
  • Full load plus CDC moves most work outside the outage.
  • Create secondary objects in the tested migration sequence.
  • Validate values, application behavior, and realistic performance.
  • Drain final changes after freezing source writes.
  • Rollback after target writes needs a way to carry them back.

Cloud Storage and Database Design examples

6 Walkthroughs

1

Choose storage for an image-processing service

14 steps
Work from access requirements to object tiers, lifecycle ages, and a disk configuration that meets both operation and throughput limits.
  1. 1
    IntroductionStart with three workload needs

    An image-processing service stores originals for two years, retains temporary working images for 14 days, and uses a database disk for processing status. Originals are read occasionally but must open immediately. Temporary images can be regenerated.

    These requirements lead to three decisions: choose an object class, automate the age-based handling, and calculate disk performance. Start with the response time and retention; the lowest storage rate is only one input.

  2. 2
    ExplanationCheck access before comparing prices

    An infrequent-access class can suit originals that are rarely read but must open immediately. An archive class requiring hours of restoration cannot meet that response time.

    Archive names alone do not decide the issue: Google Archive and Glacier Instant Retrieval remain online. Then compare minimum duration and per-read costs. The service keeps originals for two years, so their retention can accommodate a long minimum; a 14-day working image has a very different billing profile.

  3. 3
    ExampleCalculate the storage and retrieval parts

    Suppose the originals occupy 2,000 GB. Illustrative monthly rates are $0.022/GB in a warm class or $0.013/GB in an online cool class, plus $0.01/GB retrieved. The service retrieves 100 GB monthly.

    Warm storage is $44. Cool storage is $26 plus $1 retrieval, giving $27 before request and other fees. The $17 difference is useful only because both candidates meet the immediate-access requirement.

  4. 4
    ChallengeChoose for short-lived working images

    A proposed cold class has a 90-day minimum. The service deletes its regenerable working images after 14 days. What billing issue must be included before choosing it?

    ---reveal---

    Deletion would leave 76 days of minimum-duration charges. The data can be removed, but short retention does not cancel the billing commitment. A warmer class or a suitable short-lived single-zone option may fit better after the complete charges are compared.

  5. 5
    ExplanationKeep lifecycle groups separate

    Use separate prefixes such as originals/ and working/. A rule for working/ can expire its objects at day 14 without selecting originals needed for two years.

    Each rule combines a filter, a condition, and an action. Check whether its age means time since creation, modification, or last access. A broad bucket-wide expiration can be syntactically valid while selecting the wrong business records.

  6. 6
    ExampleMeasure time from the class entry

    Consider eligible originals moved into Glacier Instant Retrieval at day 60, followed by Deep Archive later. That first class has a 90-day minimum residence for transitions within the same rule.

    Add 90 to the entry day: the next move can be scheduled for day 150 or later. Scheduling it at object age 90 would provide only 30 days in the class. This residence calculation is separate from the decision to keep the object for two years.

  7. 7
    TipInclude storage beyond the current version

    If versioning is enabled, a replacement keeps earlier content. A current-object expiration rule can leave those older bytes stored, so add a deliberate noncurrent-version schedule.

    Also abort old incomplete multipart uploads. Their uploaded parts remain billable even when no completed image appears in the ordinary object list. These rules address different populations: current objects, earlier versions, and unfinished upload parts.

  8. 8
    ChallengeFind the earliest second move

    A different prefix enters Glacier Instant Retrieval at day 75. What is the earliest Deep Archive age for a transition in that same rule, and can an expiry rule prevent a user from deleting the object early?

    ---reveal---

    The next transition is day 165 or later, allowing 90 days in the first class. An expiry rule schedules cleanup but does not block early manual deletion. Object lock or an immutability policy enforces that retention boundary.

  9. 9
    ExplanationTranslate the database I/O pattern

    The status database needs 8,000 disk operations per second, each 16 KiB. Multiply the operation count by the operation size before choosing throughput.

    8,000×16=128,000

    That is 128,000 KiB/s. Dividing by 1,024 gives 125 MiB/s. Provisioned IOPS and throughput must both meet the workload; having enough operations per second alone does not establish that the disk can move their combined data.

  10. 10
    ExampleCheck disk size and the VM path

    At 500 IOPS per GiB, provisioning 8,000 gp3 IOPS requires at least 16 GiB, plus whatever capacity the actual database occupies. Its calculated throughput requirement is 125 MiB/s.

    A VM capped at 100 MiB/s cannot carry that workload even with a suitable volume. Choose a VM storage path above the requirement and leave operational headroom in both settings. A larger volume behind the same VM cap does not remove that cap.

  11. 11
    ConnectionUse the interface the workers share

    Several image workers also need a common directory of intermediate assets. A managed file service supplies NFS or SMB sharing with the required client permissions and throughput.

    The database's ordinary block disk is not that shared directory. EFS, Azure Files, Filestore, and the appropriate FSx system provide file interfaces; object storage is useful for completed images accessed through object APIs. Choose each interface from how the application updates and shares its data.

  12. 12
    ChallengeRecheck a larger I/O size

    The database later needs 8,000 operations/s at 32 KiB. Its disk and VM both allow 200 MiB/s. Is that throughput sufficient?

    ---reveal---

    No. The new demand is 256,000 KiB/s, or 250 MiB/s. Both the disk and VM limits must cover that rate. The operation count stayed the same, but doubling operation size doubled throughput demand; increasing only the IOPS setting would not address the shortage.

  13. 13
    ChallengeCombine lifecycle with retrieval needs

    An administrator proposes Deep Archive at day 150 for originals that still must open immediately for the whole two years. Does passing the 90-day residence check make the proposal suitable?

    ---reveal---

    No. The timing can be valid while the retrieval behavior fails the application requirement. Keep those originals in an online class as long as immediate access is needed. A lifecycle transition must satisfy both class timing rules and the workload's continuing use.

  14. 14
    RecapReview the design in dependency order

    Check response time and retention first. Compare the full object cost, then apply narrowly filtered lifecycle rules. For disks, calculate operations and bytes moved, check class-specific sizing, and check the VM path. For shared edits, select the needed file protocol.

2

Give a contractor limited document access

11 steps
Combine policy boundaries, private networking, and a short-lived upload link without handing out account-wide credentials.

Save this lesson to follow every Walkthrough step by step.

  1. 1
    IntroductionDefine the contractor task
  2. 2
    ExplanationAssign data permissions at the right scope
  3. 3
    ExampleEvaluate an explicit transport Deny
  4. 4
    ConnectionKeep private routing distinct from authority
  5. 5
    ChallengeDiagnose a blocked read
  6. 6
    ExplanationIssue a one-object upload link
  7. 7
    ExampleApply the earlier expiry
  8. 8
    TipChoose a revocation boundary
  9. 9
    ChallengeRevoke a project group
  10. 10
    ChallengeCheck the whole upload route
  11. 11
    RecapTrace the request before sharing
3

Keep documents available and copy selected originals

11 steps
Choose failure coverage, then build an independent object-replication path with deliberate backfill, deletion, and version behavior.

Save this lesson to follow every Walkthrough step by step.

  1. 1
    IntroductionSeparate the two copy requirements
  2. 2
    ExplanationChoose the primary failure coverage
  3. 3
    Key InsightRead durability and availability separately
  4. 4
    ExampleTranslate recovery requirements
  5. 5
    ChallengeHandle a tighter residency rule
  6. 6
    ExplanationPrepare a separate-account S3 destination
  7. 7
    ExampleCopy old and new documents
  8. 8
    TipGive the destination its own retention
  9. 9
    ChallengeFind the missing Azure settings
  10. 10
    ChallengeTest regional copying against a bad overwrite
  11. 11
    RecapRecord what each copy provides
4

Choose a data service for a booking platform

15 steps
Select SQL for transactions, design a keyed activity store, and estimate the effect and freshness cost of a cache.

Save this lesson to follow every Walkthrough step by step.

  1. 1
    IntroductionFollow three kinds of data
  2. 2
    ExplanationChoose SQL for related transactions
  3. 3
    ExamplePool capacity when peaks differ
  4. 4
    ChallengeFix the measured connection problem
  5. 5
    ExplanationDesign the event lookup first
  6. 6
    ExampleRound each event before multiplying
  7. 7
    ExampleChoose freshness at the access path
  8. 8
    ChallengeDiagnose a throttled event store
  9. 9
    ExplanationCache descriptions with cache-aside
  10. 10
    ExampleEstimate database reads after caching
  11. 11
    ExampleAverage the hit and miss paths
  12. 12
    TipAvoid synchronized expiry
  13. 13
    ChallengeCompare a risky write path
  14. 14
    ChallengeMatch the three access needs
  15. 15
    RecapDocument each service boundary
5

Scale a growing tenant database

11 steps
Calculate read capacity with failure headroom, preserve fresh reads, and evaluate shard placement when write growth exceeds one server.

Save this lesson to follow every Walkthrough step by step.

  1. 1
    IntroductionIdentify what is growing
  2. 2
    ExampleSeparate reads from writes
  3. 3
    ExampleAdd the failure case
  4. 4
    ExplanationKeep a recent writer on the primary
  5. 5
    ChallengeRecalculate with freshness routing
  6. 6
    ConnectionRecognize when readers stop helping
  7. 7
    ExplanationKeep tenant operations together
  8. 8
    ExampleCompare adding a fifth shard
  9. 9
    ChallengeHandle one very busy tenant
  10. 10
    ChallengeChoose the next change from the evidence
  11. 11
    RecapReview both capacity and routing
6

Move a live file service and its database

13 steps
Estimate the bulk transfer, keep changes synchronized, and define the write boundary for cutover and rollback.

Save this lesson to follow every Walkthrough step by step.

  1. 1
    IntroductionSet the migration constraints
  2. 2
    ExampleConvert the file volume to bits
  3. 3
    ExplanationChoose the transfer path
  4. 4
    TipPrepare the destination before copying
  5. 5
    ChallengeStop files from diverging
  6. 6
    ExampleSee why an offline database copy is too long
  7. 7
    ExplanationPrepare behavior as well as tables
  8. 8
    ExampleCalculate whether CDC can catch up
  9. 9
    ChallengeDiagnose growing lag
  10. 10
    ExplanationValidate before opening target writes
  11. 11
    ChallengeCheck the rollback boundary
  12. 12
    ChallengeMake a combined go or no-go decision
  13. 13
    RecapRecord the handover evidence

Cloud Storage and Database Design practice questions

50 Practice Questions in 5 sets

Set 1: Apply access, replication, and migration choices10 Practice Questions

Question 1 of 10

An API performs 6,000 cache-aside reads/s at an 85% hit ratio. How many reads/s reach its database?
  1. 5,100 reads/s.
  2. 1,100 reads/s.
  3. 6,000 reads/s.
  4. 900 reads/s.
Show answerHide answer
Answer: D
The 15% miss fraction reaches the database, giving 900 reads/s. The 5,100 hits are served from cache and do not each issue a database read. Using the hit fraction as database load reverses the meaning of the hit ratio and hides the benefit of repeated cached reads.

Question 2 of 10

An Azure Cold blob with a 90-day minimum storage duration is deleted 37 days after entering Cold. How many additional days are billed?
  1. 37 days.
  2. 90 days.
  3. 53 days.
  4. 127 days.
Show answerHide answer
Answer: C
The remaining minimum-duration charge covers 53 days, the difference between 90 and 37. The blob can be deleted before day 90; the minimum is a billing rule. Charging another full 90 days would count time already paid for a second time.

Question 3 of 10

A volume supports 400 MiB/s, but its VM has an aggregate disk limit of 160 MiB/s. The application needs 220 MiB/s and has adequate IOPS. What change addresses the stated limit?
  1. Choose a VM with more disk throughput.
  2. Raise the volume cap to 500 MiB/s.
  3. Increase volume capacity at the same caps.
  4. Attach a second volume to the same VM.
Show answerHide answer
Answer: A
The VM can carry only 160 MiB/s across its disks, below the 220 MiB/s requirement. Choose a VM whose storage path can carry the workload. Increasing volume performance or adding a disk behind the same aggregate VM limit leaves that 160 MiB/s bottleneck in place.

Question 4 of 10

A reporting role has an IAM Allow for every object in a bucket. A new bucket-policy Allow names only reports/*. No Deny applies. What can the role still read?
  1. Only objects under the reports prefix.
  2. Only objects written after the policy.
  3. No objects until both policies match.
  4. Every object covered by its IAM Allow.
Show answerHide answer
Answer: D
The narrower bucket Allow adds permission without removing the broader IAM grant. Within the account, that IAM Allow can still authorize every covered object when nothing denies access. To enforce a prefix boundary, remove the wider grant or add an appropriate explicit Deny.

Question 5 of 10

A recovery plan allows losing up to six minutes of changes. Which objective does that requirement describe?
  1. The recovery time objective.
  2. The recovery point objective.
  3. The annual durability objective.
  4. The monthly availability objective.
Show answerHide answer
Answer: B
RPO measures the largest acceptable data-loss interval, so six minutes of changes is an RPO requirement. RTO measures the time allowed to restore service. A six-minute loss allowance says nothing by itself about how quickly the application must become available again.

Question 6 of 10

An S3 CRR rule is enabled today. Yesterday's eligible objects are still missing at the destination. What additional operation is needed for them?
  1. Wait for the live rule to scan all old keys.
  2. Run S3 Batch Replication for existing objects.
  3. Disable source versioning for the old keys.
  4. Enable delete marker replication on the rule.
Show answerHide answer
Answer: B
Live S3 replication rules handle eligible new writes after the rule is active. S3 Batch Replication can backfill objects that already existed. Waiting longer does not turn the live rule into a backfill job, and disabling versioning removes a required replication setting.

Question 7 of 10

A DynamoDB workload performs 720 strongly consistent reads/s of 9 KB items. It can switch to eventual reads. What RCU demand does that produce before and after the switch?
  1. 2,160 RCU before; 1,080 after.
  2. 1,620 RCU before; 810 after.
  3. 2,160 RCU before; 540 after.
  4. 720 RCU before; 360 after.
Show answerHide answer
Answer: A
Each 9 KB item occupies three 4 KB read units after rounding up. Strong demand is 720 times three, or 2,160 RCU; eventual demand is half, or 1,080. Using 9 divided by 4 without rounding produces 1,620 and understates the per-item charge.

Question 8 of 10

A range-sharded event table uses an always-increasing timestamp as its shard key. Where are new writes likely to concentrate?
  1. Equally on all shards holding old ranges.
  2. On whichever shard has the fewest rows.
  3. On the shard holding the newest range.
  4. On the shard nearest each client region.
Show answerHide answer
Answer: C
Increasing keys all enter the latest timestamp range, so that shard receives the new writes. Range placement follows key intervals, not current row counts or client location. Evenly distributed historical data therefore does not establish that incoming write load is balanced.

Question 9 of 10

Staff keep editing a file share during its first migration copy. What sequence avoids losing those edits at cutover?
  1. First-copy verification, switch, write freeze, incremental syncs.
  2. Incremental syncs, write freeze, final sync, verification, switch.
  3. Write freeze, switch, reopen both shares, run a final copy.
  4. First full copy, switch clients, leave both shares writable.
Show answerHide answer
Answer: B
Incremental syncs collect changes made during the first copy, and the final write freeze creates a stable point for verification and switching. A completed first copy can still be missing later edits. Keeping both locations writable after the switch lets their contents diverge again.

Question 10 of 10

A migration has 90 GB of unapplied changes. CDC applies 30 MB/s while source writes add 10 MB/s. How long will catching up take while writes continue, and what follows if the source stops adding changes?
  1. 50 minutes while live; 50 minutes if stopped now.
  2. 75 minutes while live; 150 minutes if stopped now.
  3. 75 minutes while live; 50 minutes if stopped now.
  4. 150 minutes while live; 75 minutes if stopped now.
Show answerHide answer
Answer: C
The live backlog shrinks at 20 MB/s, so 90,000 MB takes 4,500 seconds, or 75 minutes. With writes stopped now, all 30 MB/s drains it in 3,000 seconds, or 50 minutes. Dividing by the apply rate while ignoring continuing writes gives an unrealistically short live catch-up estimate.
Set 2: Storage and data design foundations10 Practice Questions

Save this lesson to see every answer and practice every set.

Question 1 of 10

A team stores rarely read records but must return any record within milliseconds. What property must its chosen archive class have?
  1. An expedited restore measured in minutes.
  2. Online access without a restore step.
  3. A low monthly storage charge per GB.
  4. A minimum storage duration of 90 days.
Show answerHide answer

Save this lesson to see this answer.

Question 2 of 10

A versioned S3 bucket expires current objects, but its stored bytes keep growing because earlier versions remain. What lifecycle action addresses those bytes?
  1. Abort incomplete multipart uploads.
  2. Expire current objects more frequently.
  3. Remove newly created delete markers.
  4. Expire noncurrent object versions.
Show answerHide answer

Save this lesson to see this answer.

Question 3 of 10

A disk must deliver 4,000 operations per second, each 32 KiB. Its throughput cap is 100 MiB/s. How much throughput does the workload require?
  1. 125 MiB/s, exceeding the cap.
  2. 100 MiB/s, exactly at the cap.
  3. 128 MiB/s, exceeding the cap.
  4. 31.25 MiB/s, below the cap.
Show answerHide answer

Save this lesson to see this answer.

Question 4 of 10

An S3 role has an Allow for an object, but the bucket policy explicitly denies that same request. How is the request handled?
  1. It is allowed by the identity policy.
  2. It is allowed if the object is encrypted.
  3. It is denied by the explicit Deny.
  4. It is denied only for another account.
Show answerHide answer

Save this lesson to see this answer.

Question 5 of 10

At 10:00, a role session signs an S3 URL with a requested lifetime of four hours. The session expires at 11:00. Until when can the URL authorize a new request?
  1. Until 14:00, when the URL timer ends.
  2. For seven days, the V4 maximum lifetime.
  3. Until 11:00, when the session expires.
  4. Until 22:00, the console maximum.
Show answerHide answer

Save this lesson to see this answer.

Question 6 of 10

An organization needs Azure blobs to remain writable through a zone outage and requires all copies to remain in one region. What redundancy option fits?
  1. ZRS within the selected region.
  2. LRS within one primary datacenter.
  3. GRS with a paired secondary region.
  4. RA-GRS with a readable secondary.
Show answerHide answer

Save this lesson to see this answer.

Question 7 of 10

Who remains responsible for the application's indexes and queries after moving to a managed relational database?
  1. The provider takes over all query and index tuning.
  2. The team owns queries only; the provider designs indexes.
  3. The team owns indexes only; the provider rewrites queries.
  4. The application team retains query and index tuning.
Show answerHide answer

Save this lesson to see this answer.

Question 8 of 10

A DynamoDB table receives 120 ordinary writes per second of 2.2 KB items. How many WCU does it require?
  1. 264 WCU.
  2. 360 WCU.
  3. 240 WCU.
  4. 120 WCU.
Show answerHide answer

Save this lesson to see this answer.

Question 9 of 10

A service issues 3,000 queries/s, 70% reads. All reads can use replicas. A replica supports 800 reads/s. What is the smallest replica count that still meets read demand after one replica fails, and how many writes/s remain on the primary?
  1. Three replicas; 900 writes/s.
  2. Four replicas; 750 writes/s.
  3. Five replicas; 600 writes/s.
  4. Four replicas; 900 writes/s.
Show answerHide answer

Save this lesson to see this answer.

Question 10 of 10

A 12 TB file collection moves over a link sustaining 0.5 Gbps. Ignoring per-file overhead, how long does the copy take?
  1. 192,000 seconds, about 53.3 hours.
  2. 24,000 seconds, about 6.7 hours.
  3. 96,000 seconds, about 26.7 hours.
  4. 384,000 seconds, about 106.7 hours.
Show answerHide answer

Save this lesson to see this answer.

Set 3: Work through capacity and consistency trade-offs10 Practice Questions

Save this lesson to see every answer and practice every set.

Question 1 of 10

An S3 rule moves objects into Glacier Instant Retrieval on day 45. What is the earliest day for a Deep Archive transition in that same rule?
  1. Day 90.
  2. Day 120.
  3. Day 225.
  4. Day 135.
Show answerHide answer

Save this lesson to see this answer.

Question 2 of 10

A VM disk workload needs 18,000 IOPS at 16 KiB. The proposed gp3 disk has 32 GiB and 250 MiB/s; the VM supports 300 MiB/s. What minimum disk changes satisfy both gp3 sizing and throughput, with capacity rounded to whole GiB and throughput to whole MiB/s?
  1. 36 GiB and 250 MiB/s.
  2. 36 GiB and 282 MiB/s.
  3. 32 GiB and 282 MiB/s.
  4. 36 GiB and 300 MiB/s.
Show answerHide answer

Save this lesson to see this answer.

Question 3 of 10

A team must revoke one group of service SAS links without rotating an account key used by other applications. How should those links be issued?
  1. Associate them with a stored access policy.
  2. Issue account SAS links with an IP filter.
  3. Issue ad hoc service SAS links with HTTPS.
  4. Sign all service SAS links with the same key.
Show answerHide answer

Save this lesson to see this answer.

Question 4 of 10

An ordinary GET at a destination S3 bucket must keep returning its current replica when source deletion adds a delete marker. What replication setting supports this behavior?
  1. Turn off versioning at the destination.
  2. Apply the source expiration schedule at the destination.
  3. Leave delete marker replication disabled.
  4. Enable delete marker replication while retaining versions.
Show answerHide answer

Save this lesson to see this answer.

Question 5 of 10

Eight databases each peak at 6 vCores at different times. Their measured combined peak is 14 vCores. A tested 16-vCore pool meets their other limits. Why can that pool serve them?
  1. Each database receives 16 dedicated vCores.
  2. The shared capacity exceeds their combined peak.
  3. Their summed separate peaks are 14 vCores.
  4. An elastic pool removes all per-database limits.
Show answerHide answer

Save this lesson to see this answer.

Question 6 of 10

A DynamoDB lookup must read through a global secondary index. Can that lookup request a strongly consistent result?
  1. Yes; all indexes inherit table consistency.
  2. Yes; choosing provisioned mode enables it.
  3. No; GSI reads are eventually consistent.
  4. No; DynamoDB tables never support it.
Show answerHide answer

Save this lesson to see this answer.

Question 7 of 10

A service performs 8,000 cache-aside reads/s. Hits take 2 ms; misses perform that lookup and a 30 ms database query. The database can accept 1,000 reads/s. What minimum hit ratio meets that cap, and what average latency occurs at that ratio?
  1. 87.5% hits and 5.75 ms.
  2. 87.5% hits and 5.50 ms.
  3. 80% hits and 8.00 ms.
  4. 90% hits and 5.00 ms.
Show answerHide answer

Save this lesson to see this answer.

Question 8 of 10

A customer changes a delivery address and immediately refreshes the page. Reads normally go to a lagging replica. What routing change makes the refresh see the committed address?
  1. Add a replica with the same replication mode.
  2. Send that customer's write to a read replica.
  3. Lower the database connection timeout.
  4. Route that customer's recent reads to the writer.
Show answerHide answer

Save this lesson to see this answer.

Question 9 of 10

A monthly partitioned PostgreSQL table saturates its single server's CPU. What placement change adds database-server capacity beyond that machine?
  1. Distribute row groups across separate database servers.
  2. Create weekly partitions on the same database server.
  3. Move each partition into a separate schema on that server.
  4. Add another tablespace without changing the database server.
Show answerHide answer

Save this lesson to see this answer.

Question 10 of 10

A migration target already contains new customer writes made after cutover. The source has remained untouched, and no reverse replication or reconciliation exists. What must be resolved before returning traffic to the source without data loss?
  1. Wait until forward CDC reports zero source lag.
  2. Carry the target-only writes back and validate them.
  3. Lower DNS TTL and reconnect every application.
  4. Compare row counts and reuse the old source.
Show answerHide answer

Save this lesson to see this answer.

Set 4: Resolve competing design requirements10 Practice Questions

Save this lesson to see every answer and practice every set.

Question 1 of 10

A service stores 4,000 GB. Illustrative monthly rates are $0.024/GB for warm storage and $0.014/GB plus $0.02/GB retrieved for cool storage. It retrieves 60% of stored volume monthly. Ignoring other charges, what is the cheaper choice and saving?
  1. Warm storage saves $8 per month.
  2. Cool storage saves $8 per month.
  3. Warm storage saves $40 per month.
  4. Cool storage saves $40 per month.
Show answerHide answer

Save this lesson to see this answer.

Question 2 of 10

A team needs records to resist manual deletion before a retention date. It has a lifecycle expiration rule for that date. What additional control provides the required protection?
  1. A class with a long minimum storage duration.
  2. A second current-version expiration rule.
  3. An object lock or immutability policy.
  4. An additional object replication destination.
Show answerHide answer

Save this lesson to see this answer.

Question 3 of 10

An external-account role has identity permission to read a bucket, and the bucket permits that role. The bucket also denies reads outside endpoint vpce-7. A presigned read URL from the role is opened through the public internet. What permits a successful request under these controls?
  1. Extend URL expiry while keeping the public internet path.
  2. Use a path through vpce-7 while the signer remains authorized.
  3. Add another role Allow while keeping the public internet path.
  4. Encrypt the object with SSE-S3 and reuse the public path.
Show answerHide answer

Save this lesson to see this answer.

Question 4 of 10

A recipient forwards a still-valid signed download link to another person. What authority does the second person receive if the link has no client restriction?
  1. The signer's full cloud account rights.
  2. Permission to overwrite the same object.
  3. No access without the recipient's login.
  4. The same delegated download operation.
Show answerHide answer

Save this lesson to see this answer.

Question 5 of 10

An Azure RA-GRS secondary is readable during a primary outage but does not accept writes. What step changes it into the writable primary?
  1. Use a write-scoped SAS token.
  2. Perform an account failover.
  3. Use the secondary account key.
  4. Enable blob versioning first.
Show answerHide answer

Save this lesson to see this answer.

Question 6 of 10

An S3 bucket uses versioning and KMS encryption. A separate-account destination must receive existing and future raw/ objects across regions. Versioning and permissions on both sides are ready. The source also has a lifecycle rule. What completes the copying and retention design?
  1. Enable CRR, wait for backfill, and inherit source lifecycle.
  2. Enable SRR, batch existing objects, and inherit source lifecycle.
  3. Enable CRR, batch existing objects, and set destination lifecycle.
  4. Enable CRR, copy future objects, and omit destination lifecycle.
Show answerHide answer

Save this lesson to see this answer.

Question 7 of 10

A serverless application exhausts database connections during bursts, but measured query time and CPU remain acceptable. What change directly addresses the stated problem?
  1. Add readers without changing existing client routing.
  2. Enable storage autoscaling at the same compute size.
  3. Raise worker concurrency without changing connections.
  4. Add a connection proxy that pools connections.
Show answerHide answer

Save this lesson to see this answer.

Question 8 of 10

A catalog refresh fills thousands of cache entries together. Their equal TTLs later expire together, causing a database spike. What change directly spreads that expiry load?
  1. Add small random jitter to each entry's TTL.
  2. Set one identical longer TTL for every entry.
  3. Remove TTLs and keep the same refill process.
  4. Use one shared eviction time for every entry.
Show answerHide answer

Save this lesson to see this answer.

Question 9 of 10

A four-shard tenant store has 120 million tenant keys. A fifth equally weighted shard is needed. Common requests must stay within one tenant and data movement must be limited. What placement plan best fits, and approximately how many keys move?
  1. Keep tenant keys; modulo five; about 24 million move.
  2. Keep tenant keys; consistent hashing; about 96 million move.
  3. Keep tenant keys; consistent hashing; about 24 million move.
  4. Split each tenant across random shards; about 24 million move.
Show answerHide answer

Save this lesson to see this answer.

Question 10 of 10

During full-load-plus-CDC migration, source triggers already write derived rows that enter the change stream. Why should equivalent target triggers remain disabled while those changes are applied?
  1. They would stop CDC from capturing new source writes.
  2. They are needed only to create missing secondary indexes.
  3. They would force a full table reload for every source update.
  4. They could repeat effects already performed at the source.
Show answerHide answer

Save this lesson to see this answer.

Set 5: Integrate capacity, freshness, and cutover planning10 Practice Questions

Save this lesson to see every answer and practice every set.

Question 1 of 10

Several Windows servers need one shared SMB directory. Their combined workload is 4,096 operations/s at 32 KiB per operation. Assuming adequate IOPS, what design supplies the interface and enough throughput?
  1. A managed SMB share capped at 100 MiB/s.
  2. A single-attached block disk capped at 160 MiB/s.
  3. A managed SMB share capped at 160 MiB/s.
  4. An object bucket accessed only by HTTPS at 160 MiB/s.
Show answerHide answer

Save this lesson to see this answer.

Question 2 of 10

An Azure Files user has share-level RBAC permission but a folder ACL denies the requested write. What is the result?
  1. The write succeeds because share access is enough.
  2. The write succeeds if the share uses encryption.
  3. The write fails only when the file already exists.
  4. The write fails at the folder permission check.
Show answerHide answer

Save this lesson to see this answer.

Question 3 of 10

A design must keep an Azure block-blob account writable through a zone failure, survive regional loss, and expose a secondary read endpoint before failover. The team also proposes Azure Archive in that account. What correction meets the resilience requirements?
  1. Use RA-GRS and retain Archive for every blob.
  2. Use RA-GZRS and keep the blobs in supported online tiers.
  3. Use ZRS and retain Archive for every blob.
  4. Use GZRS and read its secondary before failover.
Show answerHide answer

Save this lesson to see this answer.

Question 4 of 10

A DynamoDB table receives 180 ordinary writes/s of 2.2 KB items. It has spare total capacity but throttles on one busy partition key. Updates also change an unneeded GSI projection. What base-table WCU demand and two changes address these requirements?
  1. 540 WCU; spread the hot key; remove the unneeded projection.
  2. 396 WCU; spread the hot key; remove the unneeded projection.
  3. 540 WCU; raise total capacity only; remove the projection.
  4. 540 WCU; spread the hot key; retain the unneeded projection.
Show answerHide answer

Save this lesson to see this answer.

Question 5 of 10

An API handles 12,000 cache-aside reads/s with 92% hits. Cache lookup takes 1 ms; a database read adds 25 ms. Its database has spare capacity for 700 reads/s. Would this cache keep misses within that spare capacity, and what is average latency?
  1. Yes; 700 database reads/s and 3.0 ms.
  2. No; 960 database reads/s and 2.92 ms.
  3. No; 960 database reads/s and 3.0 ms.
  4. Yes; 600 database reads/s and 2.0 ms.
Show answerHide answer

Save this lesson to see this answer.

Question 6 of 10

An RDS read replica is promoted for an application to use as an independent writable database. What happens to its replication relationship with the former primary?
  1. It automatically reverses direction.
  2. It remains a read-only follower.
  3. It becomes an Aurora shared-storage reader.
  4. The replication relationship ends.
Show answerHide answer

Save this lesson to see this answer.

Question 7 of 10

A service has 5,000 queries/s, 90% reads. One third of the reads must stay on the writer. Each reader handles 1,100 reads/s. What smallest reader count survives one reader failure, and what total query rate remains on the writer?
  1. Five readers; 500 queries/s on the writer.
  2. Four readers; 2,000 queries/s on the writer.
  3. Three readers; 2,000 queries/s on the writer.
  4. Four readers; 1,500 queries/s on the writer.
Show answerHide answer

Save this lesson to see this answer.

Question 8 of 10

A tenant database places each tenant on one shard. A report requests records across all tenants and provides no tenant ID. How must the database obtain the report's complete data?
  1. Query the shards and merge the relevant results.
  2. Query one shard and use its read replica for the rest.
  3. Query the newest shard and infer earlier tenant records.
  4. Query one random shard using a higher capacity limit.
Show answerHide answer

Save this lesson to see this answer.

Question 9 of 10

A 30 TB file set must move in four days. The available 1 Gbps link sustains 75% utilization. An available offline transfer path, including shipping and ingestion, takes six days. What minimum sustained network rate meets the deadline, and which plan meets it as stated?
  1. About 0.868 Gbps; the current online path meets it.
  2. About 0.694 Gbps; the current online path meets it.
  3. About 0.694 Gbps; only the offline path meets it.
  4. About 0.868 Gbps; neither stated path meets it.
Show answerHide answer

Save this lesson to see this answer.

Question 10 of 10

A heterogeneous migration has equal source and target row counts. What additional validation directly checks whether changed-engine behavior works for the application?
  1. Run application and representative query tests on the target.
  2. Confirm matching table and column names without running queries.
  3. Compare storage volume and index counts without behavior tests.
  4. Check load completion and replication lag without query tests.
Show answerHide answer

Save this lesson to see this answer.

Stuck on your own question? Homework Help

Key Terms

85 Key Terms, each with its definition

A

Account failover
An account failover promotes an Azure geo-secondary storage location to primary and changes DNS so the account endpoints reach it.
The team allows secondary writes only after account failover, accepting that uncopied recent writes may be lost.
Account SAS
An account SAS is an account-key-signed Azure token that can authorize access across services and certain service-level operations.
A narrow one-blob download normally does not need the wider service-level scope available through an account SAS.
Asynchronous replication
Asynchronous replication acknowledges a write before copying it elsewhere, leaving a delay in which the destination may lack recent changes.
An account's paired-region copy can be readable but still miss writes made just before the primary outage.
Automatic tiering
Automatic tiering adjusts eligible objects' access tiers from observed usage to balance storage and retrieval-related costs over time.
An unpredictable document library can use automatic tiering as some objects become popular and others go quiet.
Availability
Availability describes the proportion of time a service can successfully provide the reads or writes that its availability measure covers.
A zone-resilient storage choice helps an application continue using data while one zone is unavailable.

B

Bearer token
A bearer token grants its authority to whoever presents it, so possession of the token is sufficient within its remaining restrictions.
Forwarding an unrestricted signed download link also forwards the ability to use that delegated download.
Block storage
Block storage presents addressable disk blocks to a machine, allowing an operating system or database to read and change parts of its disk data.
A database VM uses an attached block volume for data files that it updates through disk operations.

C

Cache-aside
Cache-aside is a read pattern in which an application checks a cache and, on a miss, reads the database and stores the result in the cache.
The first product lookup fills the cache, allowing later requests for that same product to avoid a database read.
Change data capture
Change data capture, or CDC, reads source database changes, commonly from transaction logs, and applies them to keep a migration target current.
A migration monitors CDC lag and waits for final changes after freezing source writes before switching clients.
Checksum
A checksum is a value computed from data that can be compared across copies to help detect transfer corruption or mismatched content.
The migration team compares checksums as well as file counts before switching users to the new share.
Connection proxy
A connection proxy sits between application clients and a database, pooling and reusing connections to reduce connection-management pressure.
A burst of short-lived application workers uses a proxy instead of opening a new database connection per worker.
Consistent hashing
Consistent hashing places keys and servers on a hash ring so adding or removing servers changes only a limited part of the key assignment.
Adding a similarly weighted fifth shard moves roughly one fifth of keys instead of most modulo-routed keys.
Cross-Region Replication
Cross-Region Replication, or CRR, asynchronously copies eligible S3 objects from a source bucket to a destination in another region.
A product-image service copies new originals to a separate-account bucket in a second region.
Customer-managed key
A customer-managed key is an encryption key whose use, permissions, and rotation are controlled by the customer through a key service.
An organization selects a Key Vault key when it needs its own control over storage encryption-key access.
Cutover
A cutover is the controlled switch of application access from the source to the validated target after the required final synchronization.
The operator freezes source writes, drains changes, checks the target, and updates application connections.

D

Data plane
The data plane contains the operations that read or change stored content, separate from management operations that configure the service.
A storage administrator can be given configuration duties without receiving a data role to download documents.
Delete marker
A delete marker is a versioned S3 entry that hides an object's ordinary current read without itself containing the earlier object's data.
Removing old data versions and cleaning expired delete markers are separate lifecycle operations.
Directory sharding
Directory sharding locates records through a mapping service that assigns keys to shards, allowing flexible placement with an extra lookup.
A tenant directory can move one large tenant to another shard without changing every tenant's routing rule.
Durability
Durability describes how reliably stored data is preserved against loss over time, commonly expressed as an annual design percentage.
A durable object can remain intact during an outage even while its endpoint is temporarily unreachable.

E

Effective bandwidth
Effective bandwidth is the sustained data-transfer rate available after competing traffic and overhead, used to estimate a realistic copy schedule.
A 1 Gbps connection used at 80% contributes 0.8 Gbps to the migration-time calculation.
Elastic pool
An elastic pool lets several Azure SQL databases share provisioned compute capacity while their combined load stays within the pool's limits.
Databases with peaks at different times can share less compute than the sum of their individually sized peaks.
Eviction policy
An eviction policy chooses which cache entries to remove when memory is needed, using rules such as least recently used access.
Useful keys may be evicted frequently when the working set grows beyond the cache's available memory.
Expiration
Expiration is a lifecycle action that removes eligible objects or versions after their age or another configured condition is reached.
Current-object expiration in a versioned S3 bucket can add a delete marker while earlier versions remain.
Explicit Deny
An explicit Deny is a policy statement that rejects a matching request even when another applicable policy grants the same action.
An HTTPS-only bucket Deny blocks an HTTP read despite the caller's otherwise valid object-read permission.

F

File storage
File storage provides a shared hierarchy of files and folders that clients access using file-system protocols such as NFS or SMB.
Several application servers mount the same managed file share to work on a common directory tree.
Full load
A full load copies the existing data population into the target database before or alongside the application of ongoing changes.
The initial table copy runs while CDC records and applies new source changes needed to keep the destination current.

G

Global secondary index
A global secondary index, or GSI, supplies an alternative DynamoDB key structure with its own capacity and asynchronous updates from the table.
An order table can add a GSI for status-based lookup while accepting that the index can briefly lag.

H

Hash sharding
Hash sharding maps a hash of each key to a shard to distribute keys, while range reads may have to query several shards.
Hashing device IDs can spread records but makes a cross-device time-range report visit many shards.
Heterogeneous migration
A heterogeneous migration changes database engines, requiring conversion and testing of schema, types, and engine-dependent application behavior.
A SQL Server to PostgreSQL move checks identity generation and stored procedures as well as copied rows.
High-availability standby
A high-availability standby is a maintained database copy intended to take over after a primary failure under the service's failover process.
The synchronous standby of an RDS Multi-AZ DB instance supports recovery but does not serve application reads.
Hit ratio
The hit ratio is the fraction of cache requests answered by entries already present and usable, leaving the remaining requests as misses.
At an 80% hit ratio, one fifth of cache-aside reads proceed to the database after their cache lookup.
Homogeneous migration
A homogeneous migration moves a database while keeping the same engine, reducing the schema and code changes associated with engine conversion.
A MySQL application moves from its local server to managed MySQL while still needing compatibility and behavior tests.
Hot partition
A hot partition receives more traffic than its individual capacity can serve, causing throttling even when the whole table has spare capacity.
Many requests for one popular key can overwhelm its partition despite a high-cardinality table overall.
Hybrid storage gateway
A hybrid storage gateway provides a local access interface backed by cloud storage, commonly using a local cache for active data.
S3 File Gateway keeps an NFS or SMB interface available to on-premises applications while their files live in S3.

I

Identity-based policy
An identity-based policy assigns permissions to an identity such as an IAM role, describing which actions it may take on which resources.
A role's broad IAM read grant still applies after a bucket policy adds a narrower prefix-level Allow.
Incomplete multipart upload
An incomplete multipart upload is a partly transferred object whose uploaded parts remain stored until completion or explicit abortion.
An upload interrupted after several parts can keep generating storage charges until a cleanup rule aborts it.
Incremental sync
An incremental sync copies new or changed files since an earlier pass so a destination can catch up while the source remains in use.
Repeated syncs reduce the changes left to copy after staff stop editing the old file share.
IOPS
IOPS measures the number of input/output operations a storage system performs each second at the workload's operation size.
A database doing many small random reads can reach its IOPS limit while moving relatively few MiB per second.

L

Latency
Latency is the elapsed time for an individual operation, including the waiting and processing needed before its result returns.
An interactive database may need low operation latency even when its overall data-transfer rate is modest.
Least privilege
Least privilege grants an identity only the actions and resources it needs for its work, with permissions scoped as narrowly as practical.
A reporting role receives object-read access to one prefix without permission to overwrite or delete its reports.
Lifecycle filter
A lifecycle filter selects the objects a rule applies to, using properties such as a key prefix, tags, or an object-size range.
A filter for audit/ keeps an expiration rule from selecting active objects stored under another prefix.
Lifecycle policy
A lifecycle policy is a collection of rules that automatically transitions or deletes selected storage objects when specified conditions are met.
A logs prefix has a lifecycle policy that moves older objects to cheaper storage and later expires them.

M

Managed relational database
A managed relational database supplies an operated SQL engine while the customer retains responsibility for schema, queries, permissions, and sizing.
The provider patches the engine while the application team diagnoses a query that needs a better index.
Minimum storage duration
A minimum storage duration is a billing period charged for stored data even when the object is removed before that period ends.
Deleting an Azure Cold blob 50 days after entry can leave charges for the remaining 40 days of its minimum.

N

Noncurrent version
A noncurrent version is an earlier retained object version that is no longer the current version after a replacement or versioned deletion.
A version overwritten today begins its noncurrent-age clock today, even if the original object is much older.
NoSQL database
A NoSQL database uses a nonrelational data model such as key-value, document, wide-column, or graph, with schema rules defined by its service.
A cart service can fetch a user's document by key without building a join across multiple relational tables.

O

Offline transfer
An offline transfer moves data using a physical device carried to the provider, with copying, shipping, and ingestion in the total schedule.
A Data Box transfer is compared with the network's full copy time before the team chooses its migration path.

P

Partition key
A partition key selects the logical grouping used to place records and route requests in a partitioned database service.
Customer ID can group orders for a customer while a status field with few values can concentrate traffic.
Private endpoint
A private endpoint supplies a private IP for reaching a supported cloud service from a virtual network through private connectivity.
An Azure storage account can use a private endpoint while its public network access is turned off.
Provisioned IOPS
Provisioned IOPS is an explicitly selected storage-operation capacity that is sized for a workload within the service's volume and size limits.
The team raises a gp3 volume's provisioned IOPS after confirming that its throughput and VM path can keep up.

R

Range sharding
Range sharding assigns intervals of key values to shards, helping nearby-key queries but risking uneven traffic in a busy range.
Increasing event times send incoming writes to the shard holding the newest interval.
Read capacity unit
A read capacity unit, or RCU, supports one ordinary strong read per second of up to 4 KB in DynamoDB, or two eventual reads of that size.
A 6 KB item rounds up to two read units before its strong-read request rate is multiplied.
Read replica
A read replica is a database copy serving read queries away from the primary, with replicated changes that can lag behind the writer.
A reporting dashboard uses a reader while writes and immediately current account checks stay on the primary.
Reader endpoint
A reader endpoint directs database connections to available read replicas according to the service's routing behavior.
An Aurora application separates its writer connection string from the reader endpoint used for eligible queries.
Recovery point objective
A recovery point objective, or RPO, is the largest acceptable data-loss interval after a disruption, measured backward from the failure.
An RPO of five minutes permits losing at most the changes from that five-minute interval.
Recovery time objective
A recovery time objective, or RTO, is the longest acceptable service interruption, including detection, recovery decisions, and restoring use.
A recovery plan includes the outage-detection delay as part of the time before users regain service.
Rehydration
Rehydration moves an Azure Archive blob into an online tier so its contents become accessible through ordinary reads again.
A support process allows hours for rehydration before requesting the archived document's download.
Replica promotion
Replica promotion makes an ordinary RDS read replica an independent writable database and ends replication from its former primary.
A promoted cross-region replica can lack the last writes that had not reached it before the source outage.
Replication lag
Replication lag measures how far a replicated copy trails the source's committed changes, often reported as a time delay.
A user may refresh an old profile value from a replica immediately after successfully updating it on the writer.
Resource-based policy
A resource-based policy is attached to a resource and identifies the principals and conditions under which its actions are allowed or denied.
An S3 bucket policy can deny reads that do not arrive through the approved private VPC endpoint.
Restoration
A restoration makes an offline archived S3 object's data temporarily available for reading through a supported retrieval process.
An urgent request cannot depend on a standard Deep Archive restoration completing within a few minutes.
Retrieval fee
A retrieval fee is a charge for reading data from a storage class, commonly based on the volume retrieved in addition to request costs.
A team includes monthly bytes read when comparing a cool class with the higher storage price of a hot class.
Rollback
A rollback returns service to the previous system, requiring a plan for changes accepted only by the target after the switch.
An untouched source is insufficient for lossless rollback once the target has received new customer writes.

S

S3 Batch Replication
S3 Batch Replication copies an explicitly selected population of existing objects that ordinary live replication does not automatically backfill.
A team runs Batch Replication for the images written before it enabled its new live replication rule.
Same-Region Replication
Same-Region Replication, or SRR, copies eligible S3 objects between buckets in the same region, including buckets in separate accounts.
An organization separates administrative ownership of logs while keeping every copy in the selected region.
Serverless database compute
Serverless database compute adjusts database compute resources with workload demand within the chosen service's scaling behavior and limits.
An intermittent API can use a serverless tier whose compute changes as its query activity rises and falls.
Service SAS
A service SAS is an account-key-signed Azure token granting specified access within one storage service and optionally using a stored access policy.
A group of service SAS links can share a policy that an administrator later removes to revoke their access.
Shard key
A shard key is the record value used to select its shard, shaping load distribution and whether common operations remain on one server.
Tenant ID is useful when most requests contain it, but a disproportionately busy tenant can still overload its shard.
Sharding
Sharding distributes horizontal groups of records across separate database servers, allowing data and processing capacity to scale across machines.
A large tenant store places different tenants on different servers while keeping each tenant's common work local.
Signed URL
A signed URL delegates a defined operation on a resource through signed query parameters, letting a holder use it for a limited time.
A browser receives a short-lived signed upload URL after the backend checks its right to the chosen object.
Single-zone storage
Single-zone storage keeps data within one availability zone, protecting against device failures while remaining exposed to loss of that zone.
A service places regenerated preview images in a single-zone class while retaining originals across zones.
Soft delete
Soft delete retains deleted data for a configured period so it can be recovered before permanent removal from the service.
Azure blob soft delete keeps a mistakenly removed object recoverable within the selected retention window.
Sort key
A sort key orders items sharing a DynamoDB partition key and allows queries over that group's ordered values or ranges.
Order time as a sort key lets an application request one customer's newest orders efficiently.
Storage class
A storage class is an object's storage setting that determines its storage price, access charges, retrieval behavior, and related limits.
Frequently read customer documents can stay in S3 Standard while seldom-read records use a cooler class.
Stored access policy
A stored access policy holds shared constraints on an Azure resource container that associated service SAS tokens inherit and can be revoked through.
Deleting a container's stored access policy revokes its associated service SAS links without rotating an account key.
Strong consistency
Strong consistency makes a supported read return the latest committed write, avoiding the older value an eventual read may return.
A critical current-state check requests a supported strong read instead of querying an asynchronously updated GSI.
Synchronous replication
Synchronous replication records a write on the required copies before acknowledging success, adding their response time to the write path.
A multi-zone service can acknowledge a write after the required zone copies or quorum have recorded it.

T

Throughput
Throughput is the volume of data transferred per unit of time, limited by both the storage device and the rest of the access path.
A sequential scan can reach the VM's disk-throughput cap even when the volume has spare operations per second.
Time to live
A time to live, or TTL, sets how long a cache entry remains eligible to be served before it expires and needs replacement.
A short product-data TTL reduces how long an unchanged cache entry can continue showing an old value.
TTL jitter
TTL jitter adds small random variation to entry expiry times so many cached values do not expire together and create a burst of misses.
A batch refresh assigns slightly different TTLs to its keys to spread later refill work over time.

U

User delegation SAS
A user delegation SAS is an Azure access signature secured with an Entra-derived delegation key and constrained by the signer's permissions.
A backend shares one blob without using the storage account's broadly privileged access keys.

V

Versioning
Versioning retains distinct object versions after changes so an overwrite can preserve earlier content for later access or recovery.
A corrected document becomes current while the earlier version continues to occupy billable storage.

W

Write capacity unit
A write capacity unit, or WCU, supports one ordinary DynamoDB write per second for an item up to 1 KB, with larger sizes rounded upward.
An ordinary 2.5 KB item write needs three write units before transactional or index costs are considered.
Write-behind
Write-behind acknowledges a write in the cache before persisting it to the database later, creating a risk of losing unpersisted changes.
A cache failure can remove a recent acknowledged update that the database has not yet received.
Write-through
Write-through updates the database and cache in the write path to keep cached values current, adding work to each write operation.
A price update changes the database record and the corresponding cached value before the write path completes.

About this lesson

By StudeliReport a mistake

Make your own Study Materials

Turn your notes, slides and documents into Study Guides, Practice Questions, Flashcards and 6 more tools.

Get Started