- Learn
- Computer Science & IT
- Information Technology
- Cloud Computing Fundamentals
- Cloud Storage and Databases
Cloud Storage, Databases and Data Services
BeginnerLesson 4 of 7 in Cloud Computing Fundamentals Course
What you will learn
- Explain how object, block and file storage organize and serve data, and choose the right storage type and service for a workload on AWS, Microsoft Azure and Google Cloud.
- Tell object, block and file storage apartDescribe how each storage type organizes data, how servers and applications reach it, and which workloads each one suits.
- Store and share data with object storageWork with buckets and objects in Amazon S3, Azure Blob Storage and Google Cloud Storage, including locations, names, access control, versioning and encryption.
- Choose block, file and hybrid storage servicesMatch the block, file and hybrid storage services of AWS, Azure and Google Cloud to workloads, and use snapshots to copy and protect disks.
- Tell object, block and file storage apart
- Choose storage tiers, lifecycle rules, redundancy options and backups so that data costs as little as possible while staying safe and available when it is needed.
- Compare storage tiers and their costsCompare the hot, cool, cold and archive tiers of the three providers, including minimum storage durations, retrieval delays and the total cost of a tier choice.
- Automate data aging with lifecycle rulesWrite lifecycle rules that move data to cheaper tiers and delete it on schedule, and plan for the time it takes to restore archived data.
- Explain redundancy, durability and availabilityDistinguish durability from availability, compare redundancy options within a zone, across zones and across regions, and choose the level a workload needs.
- Protect data with backups and recovery targetsSet recovery point and recovery time objectives and use the providers' backup and disaster recovery services, with isolated and tested copies.
- Compare storage tiers and their costs
- Explain what a managed database service takes over from you, and choose relational, NoSQL and in-memory databases on AWS, Azure and Google Cloud for common workloads.
- Describe relational databases and managed database servicesExplain tables, keys, SQL and transactions, compare running a database yourself with using a managed service, and describe high availability, read replicas and backups.
- Match managed relational database services across providersIdentify the managed relational services of AWS, Azure and Google Cloud and choose one for a workload by engine, compatibility, scale and licensing.
- Compare NoSQL data modelsDescribe key-value, document, wide-column, graph and in-memory databases, explain consistency choices, and decide between relational and NoSQL storage.
- Match managed NoSQL and in-memory services across providersIdentify the NoSQL and in-memory database services of AWS, Azure and Google Cloud and choose one for a workload, including its capacity and pricing model.
- Describe relational databases and managed database services
- Estimate how long a transfer will take, choose online, offline or dedicated-link transfer methods, and plan database migrations with the providers' migration tools.
- Choose online and offline data transfer methodsCalculate transfer times from data size and bandwidth, and choose among online tools, shipped storage devices and dedicated network connections.
- Migrate databases and serversDistinguish homogeneous from heterogeneous database migrations, minimize downtime with continuous replication, and choose the providers' discovery, conversion and migration tools.
- Choose online and offline data transfer methods
- Explain how organizations turn stored data into insight with data lakes, data warehouses, pipelines and dashboards, and match cloud AI and machine learning services to business tasks.
- Distinguish databases, data warehouses and data lakesCompare transactional databases, data warehouses, data lakes and lakehouses, describe the stages of a data pipeline, and explain batch and streaming processing.
- Match analytics services across providersIdentify the data warehouse, query, integration, big data, streaming and business intelligence services of AWS, Azure and Google Cloud and assemble them into a pipeline.
- Explain AI and machine learning concepts and service layersDefine AI, machine learning and generative AI, describe training and inference, and choose between pre-trained AI services, generative AI platforms and machine learning platforms responsibly.
- Match pre-trained AI services to business tasksChoose the vision, speech, language, translation, document and conversational AI services of AWS, Azure and Google Cloud for business scenarios, and estimate their usage-based cost.
- Distinguish databases, data warehouses and data lakes
Cloud Storage and Databases study guide
1Compare object, block and file storage
Applications need storage they can reach in the right way: a disk for small updates, a shared folder for several servers, or objects fetched over the web. Match those access patterns to services on AWS, Azure and Google Cloud. Location, permissions and recovery features then make the storage useful beyond a single running machine, while hybrid services connect existing file servers to cloud capacity.
1.1 Disks, shared folders and web objects
A storage service must fit the way an application reads and changes data. A database that updates a few records, a team editing shared documents and a website serving photos have different needs.
Three ways to organize data
| Type | What the application sees | Typical use |
|---|---|---|
| Block | A disk volume attached to a server | Boot disks and database files |
| File | Files in shared folders | Team drives and shared application files |
| Object | Data addressed by a key through a web API | Photos, backups and data lakes |
A block volume contains fixed-size blocks. The operating system formats it with a file system, just as it would format a physical disk. It can update a small part of a file in place. This suits a database making many small reads and writes. A volume normally serves one virtual machine; sharing one directly requires disk support and software designed for clustered access.
File storage supplies a shared folder over a network. NFS is common on Linux; SMB is common on Windows. Several clients can open the same share, and file locking coordinates access. An existing application that expects a shared path can keep that pattern without being rewritten to call an object API.
What an object contains
An object has its data, a unique key and metadata, such as its content type. In a flat-namespace bucket, invoices/2026/10/inv-1042.pdf is one complete key. The slashes group names by prefix; they do not create ordinary disk folders.
Applications commonly upload objects with PUT requests and download them with GET requests over HTTPS. General-purpose object access treats data as an object: replacing its content typically means uploading a replacement, while a block disk supports small in-place writes. Some object services add specialized append or directory features. A bucket still has a different access model from a shared file server.
Object storage can hold images, recordings, logs and backups in a collection that grows without provisioning a disk for each increase. Standard online classes serve active websites and analytics with millisecond access. Delayed retrieval belongs to particular archive classes, not to object storage as a whole.
Choose storage for an application
A web shop uses a block disk for its database server because records change frequently. Five web servers read common page templates from an NFS file share. Product photos and 2 TB of nightly backups go into object storage. The same application can use all three types.
Temporary host storage, such as AWS instance store, the Azure temporary disk and Google Cloud Local SSD, suits scratch files and caches that can be rebuilt. Host failure or VM lifecycle events can erase it. Keep the only copy of important data on persistent storage, which exists independently of a running VM.
Pricing follows the storage model. Object storage generally bills actual stored GB plus requests and transfers. Block storage bills provisioned capacity, including unused space. File storage may bill used space, as EFS does, or reserved capacity. Start a choice with the access pattern, then compare the bill for that pattern.
Key Takeaways
- Block storage supports disk access and small in-place updates.
- File storage shares folders through protocols such as NFS and SMB.
- Object storage addresses data by keys through an API.
- Temporary host storage holds data that can be rebuilt.
- Provisioned capacity can cost money even when it is empty.
1.2 Buckets, permissions and recoverable objects
Object storage separates the data from the server that uses it. A bucket or container holds the collection, while each object has its own key. Location, access and recovery settings determine how safely that collection can be used.
Match the provider's names
| Provider | Service | Organization |
|---|---|---|
| AWS | Amazon S3 | Objects inside buckets |
| Azure | Azure Blob Storage | Blobs inside containers inside a storage account |
| Google Cloud | Cloud Storage | Objects inside buckets |
An Azure storage account can also hold file shares, queues and tables. S3 general purpose bucket names, Cloud Storage bucket names and Azure storage account names use shared namespaces, so another customer's name may be unavailable. The name also forms part of the object's address. For example, an Azure blob can have the address https://shopmedia.blob.core.windows.net/images/products/lamp-01.jpg.
An S3 bucket belongs to an AWS Region. Azure storage accounts have a region and redundancy choice. Cloud Storage offers region, dual-region and multi-region locations. Location affects latency, price and data residency, meaning the area where the data is kept.
Share without exposing the collection
Keep the collection private and grant the access the application needs through identity permissions and resource policies. For a temporary download, use an S3 presigned URL, an Azure shared access signature (SAS) or a Cloud Storage signed URL. An invoice link that expires in 60 minutes gives temporary access without making the whole bucket public. Anyone holding a usable signed link can exercise its permissions during that period.
Stored objects are encrypted by default with provider-managed keys; customer-managed keys give the customer more control. HTTPS protects data during transfer. Encryption and permissions solve different problems: someone with valid read permission can still read an encrypted object through the service.
Recover, retain and upload
Versioning keeps earlier object versions so that an overwrite can be undone. Stored versions add to the bill. Azure and Google Cloud also offer soft delete, which retains deleted data for a recovery period. Immutable storage, or write once, read many (WORM), blocks changes and deletion during retention. Examples are S3 Object Lock, Azure immutable blob storage and Cloud Storage retention policies with bucket lock.
Large uploads can be split into parts, uploaded in parallel and retried individually. S3 calls this multipart upload; Azure block uploads and Google composite uploads provide related approaches. A dropped connection need not restart the whole large transfer.
Size a growing collection
One million photos averaging 3 MB occupy 3,000,000 MB, or 3,000 GB: 3 TB in decimal units. Another 20,000 photos a day add 60 GB daily. Over 365 days, that is another 21.9 TB. Object storage accommodates this growth without reserving a fixed disk in advance.
In flat namespaces, moving a folder-like prefix involves changing object keys. Hierarchical options add actual directory operations, including Azure Data Lake Storage and Cloud Storage hierarchical namespace. Check the namespace before treating a displayed folder as a directory.
Key Takeaways
- S3 and Cloud Storage use buckets; Azure uses containers within storage accounts.
- Location affects latency, price and data residency.
- Time-limited signed links share selected private data.
- Versioning supports recovery; immutable retention prevents protected changes.
- Encryption does not replace access control.
- Multipart uploads allow individual failed parts to be retried.
1.3 Managed disks, snapshots and file shares
After choosing a storage type, match its access method and performance to a service. A high-performance disk and a shared folder can both store files, but they meet different application needs.
Disks and their copies
| Provider | Block storage | Shared file services |
|---|---|---|
| AWS | Amazon EBS | EFS; the FSx family |
| Azure | Azure managed disks | Azure Files; Azure NetApp Files |
| Google Cloud | Persistent Disk; Hyperdisk | Filestore; NetApp Volumes |
Disk types offer different performance. Hard-disk-based volumes suit large sequential reads; SSDs suit frequent small operations. IOPS means input/output operations per second. Choose both capacity and performance, because a large disk is not necessarily the right disk for a busy database.
An EBS volume belongs to one Availability Zone and attaches to instances there. Azure managed disks are locally redundant by default, with a zone-redundant option. Google offers zonal disks and regional disks replicated across two zones. These location choices set the failures a disk can withstand.
A snapshot captures a volume at a point in time. EBS and Google standard snapshots are incremental: after the first copy, later snapshots store changed blocks. Azure offers full and incremental snapshots. If a volume contains 200 GB and 5 GB changes, an incremental snapshot stores about 5 GB of new blocks. Restoring that snapshot still reconstructs the complete volume, not just the changed portion. It can become a new disk in another zone; snapshots can also be copied across regions.
Shared files and compatible software
EFS is an automatically growing NFS file system for Linux servers, including servers across Availability Zones. FSx offers Windows File Server, Lustre, NetApp ONTAP and OpenZFS. FSx for Windows File Server supplies SMB and Active Directory integration; Lustre suits large, fast data sets in high-performance computing.
Azure Files offers SMB and NFS shares for compatible Windows, Linux and macOS clients. Azure NetApp Files serves demanding enterprise file workloads. Filestore supplies managed NFS on Google Cloud; NetApp Volumes provides NetApp-based shares. Match the protocol and required file-system features before comparing capacity prices.
Connect a local file server
AWS Storage Gateway is a local virtual appliance connecting familiar file, disk or tape interfaces to AWS storage. It caches frequently used data locally. Tape Gateway lets existing backup software use virtual tapes. Azure File Sync synchronizes Windows file servers with Azure Files; cloud tiering keeps hot files locally and fetches colder files when opened.
For a branch with 8 TB of shared files and a 2 TB local disk, tiering can keep the frequently used 2 TB nearby while the cloud holds the full set. Opening a cold file then depends on the network connection.
Deleting a VM does not always delete its data disks; an unattached disk can still incur charges. Snapshot protection also depends on location and account isolation. EBS and Azure snapshots remain in the source region unless copied. Google standard snapshots default to the nearest multi-region. An isolated recovery copy protects against a compromised source account.
Key Takeaways
- Choose disk performance as well as capacity.
- An incremental snapshot can restore the complete disk.
- File services must match the required NFS, SMB or specialized file system.
- Hybrid tiering keeps frequently used files nearby and the full set in the cloud.
2Balance cost, durability and recovery when storing data
A low storage rate is only one part of a useful data plan. Access frequency, restore delays and retention rules shape the bill, while the location and timing of copies determine which failures the data can survive. Compare those choices with the business targets for acceptable data loss and recovery time, then check that protected copies can actually be restored quickly enough when a failure occurs.
2.1 The full cost of hot and cold data
A storage tier changes what you pay to keep and retrieve objects. Hot tiers charge more for storage and less for access. Colder tiers lower the storage rate but can add retrieval charges, minimum durations and restore delays.
Compare classes by access needs
| Provider | Online choices | Delayed archive choices |
|---|---|---|
| S3 | Standard; Standard-IA; One Zone-IA; Glacier Instant Retrieval | Glacier Flexible Retrieval; Glacier Deep Archive |
| Azure Blob Storage | Hot; cool; cold | Archive |
| Cloud Storage | Standard; Nearline; Coldline; Archive | None of these classes requires an offline restore |
S3 Standard-IA and One Zone-IA have 30-day minimums. Glacier Instant Retrieval and Flexible Retrieval have 90-day minimums; Deep Archive has 180 days. Flexible Retrieval takes minutes to hours to restore. Deep Archive standard retrieval completes within 12 hours, bulk within 48 hours. S3 Express One Zone offers fast access within a single zone.
Azure cool has a 30-day minimum, cold 90 days and archive 180 days. Hot, cool and cold provide millisecond access. Archive must be rehydrated to an online tier, which can take up to 15 hours. A storage account sets a default online tier; individual blobs can have their own tier.
Cloud Storage Standard has no minimum; Nearline has 30 days, Coldline 90 and Archive 365. Google Archive remains online, with millisecond access and retrieval fees. The word "archive" alone does not tell you how long a read will take.
Minimum duration is a billing commitment
Deleting a cool Azure blob after 21 days leaves 9 billable days of its 30-day minimum. Deleting an archive blob after 45 days leaves 135 days of its 180-day minimum. A Cloud Storage Archive object deleted after 100 days leaves 265 days. Moving out of a class early can also trigger this charge.
Work through the total bill
Use example rates of $0.020 per GB-month for hot storage and $0.002 for archive, plus $0.02 per GB retrieved from archive. For 50,000 GB held for 12 months:
- Hot storage costs $12,000.
- Archive storage costs $1,200.
- Reading the entire archive once adds $1,000, making $2,200 total.
- Reading it every month adds $12,000, making $13,200 total.
The cheaper storage rate loses its advantage when reads are frequent. A complete estimate also includes request charges, early deletion and egress, the charge for data leaving the cloud. Internet uploads are generally free; downloads are commonly billed.
Let access patterns drive changes
S3 Intelligent-Tiering automatically moves unused objects after 30 and 90 days and returns them on access; it charges monitoring fees but no retrieval fees. Azure smart tier moves between hot, cool and cold by usage. Cloud Storage Autoclass manages classes for a bucket. For fixed aging schedules, lifecycle rules give explicit control.
Single-zone classes trade failure protection for cost or performance. S3 One Zone-IA suits secondary or rebuildable data because losing that zone can lose the data.
Key Takeaways
- Compare storage, request, retrieval, early deletion and egress charges.
- Minimum duration charges can apply even after an object leaves a tier.
- Google Cloud Storage Archive provides millisecond access.
- Azure archive and delayed S3 Glacier classes need restore time.
- Automatic tiering follows observed access patterns.
- Single-zone storage cannot protect against destruction of its zone.
2.2 Lifecycle rules and archive restores
Data often becomes less useful as it ages. A lifecycle policy applies that pattern to each new object, so people do not have to remember every move or deletion.
A rule has three parts
A filter identifies objects, such as keys starting with logs/ or objects with a particular tag. A condition states when the rule applies, such as days since creation or, in Azure, last access. An action changes the storage tier or deletes the object. The services are S3 Lifecycle, Azure Blob Storage lifecycle management and Cloud Storage Object Lifecycle Management.
For application logs needed often for one month and retained for seven years, move to an infrequent-access tier on day 30 and an archive tier on day 90. The infrequent tier holds each log for 60 days, exceeding its 30-day minimum. Set deletion after the full calendar retention period: seven years can include two leap days, so 2,557 days avoids deleting early. A simple 2,555-day rule can fall short.
Count time spent inside each tier
The age of the object and its time in a tier are different. If an object enters a 90-day-minimum tier on day 30 and leaves on day 60, its stay is only 30 days:
It leaves 60 days of the minimum unused, which can be billed. Count the interval between transitions before judging a policy's cost. Each transition also costs a request. Some colder classes have minimum billable object sizes, such as 128 KB in S3 Standard-IA, so tiny objects may save little or cost more when moved.
Versions and protected retention
Lifecycle rules can remove noncurrent versions after a chosen interval, keep a limited number of earlier versions, and clean up incomplete multipart uploads. Without those rules, versions and abandoned parts can keep consuming paid storage.
An active retention lock or legal hold prevents lifecycle deletion of protected data. For invoices kept for ten calendar years, one plan moves them to archive after one year and schedules deletion after 3,653 days, allowing for up to three leap days. A compliance-mode lock prevents early deletion even by administrators. The lifecycle rule manages aging; the lock enforces protection.
Retrieval is a separate operation
| Archive option | Retrieval time |
|---|---|
| S3 Glacier Flexible, expedited | Usually 1–5 minutes |
| S3 Glacier Flexible, standard | 3–5 hours |
| S3 Glacier Flexible, bulk | 5–12 hours |
| S3 Deep Archive, standard / bulk | Within 12 / 48 hours |
| Azure archive, standard | Up to 15 hours |
Azure high-priority rehydration usually takes under one hour for blobs below 10 GB, at a higher price. Azure lifecycle rules cannot rehydrate an archived blob; restoring it needs a separate request. Plan a restore before promising an urgent delivery from an offline archive.
Lifecycle actions run in the background, commonly within a day or two of the condition. Use the policy to apply retention consistently across the collection, and allow for that processing time when planning operations.
Key Takeaways
- Lifecycle rules combine a filter, a condition and an action.
- Minimum duration depends on time in a tier, not total object age.
- Calendar retention must account for leap days.
- Retention locks and holds prevent protected lifecycle deletions.
- An offline archive restore is separate from an aging rule.
2.3 Keeping data safe and reachable
Data can survive an outage and still be unreachable during it. Storage protection therefore has two separate measures: durability and availability.
Read the percentages correctly
Durability describes protection against data loss over a year. S3 Standard is designed for 99.999999999% durability, called eleven nines. The loss fraction is one in 100 billion per object per year. For 10 million objects, the expected annual loss is 0.0001 objects: an average of one every 10,000 years. This is a statistical design measure, not a schedule for losing an object.
Availability describes the share of time data can be reached. For a 30-day month there are 43,200 minutes. At 99.9% availability, the unavailable share is 0.1%, or 43.2 minutes. At 99.99%, it is 4.32 minutes; at 99%, 432 minutes, or 7.2 hours. S3 Standard's design availability is 99.99%. An SLA is a contractual commitment, often backed by credits; its figure can differ from the design target.
Match copies to the failure
Several copies inside one data center protect against hardware failure. Copies across Availability Zones protect against a data-center outage. Copies in a second region address a regional disaster, subject to where and how replication occurs.
Synchronous replication confirms a write after the required copies acknowledge it. Some systems require all designated copies; others use a majority, or quorum. Asynchronous replication confirms at the primary and sends changes onward afterward. If the primary is lost, changes still in transit may be lost. That replication lag must stay within the business's RPO, its maximum acceptable amount of recent data loss measured in time.
Decode Azure redundancy
| Option | Primary location | Secondary region |
|---|---|---|
| LRS | Three copies in one data center | None |
| ZRS | Synchronous copies across at least three zones | None |
| GRS | Local copies | Asynchronous copy |
| GZRS | Zone-redundant copies | Asynchronous copy |
LRS offers at least eleven nines durability, ZRS twelve and geo-redundant options sixteen. GRS has six copies in total. Ordinary GRS/GZRS secondary data is unavailable for reads until failover; RA-GRS and RA-GZRS add read access to the secondary. A replicated region is not necessarily an immediately active replacement.
Most S3 classes span at least three zones; One Zone classes do not. S3 replication can copy objects to another bucket in the same or a different Region. Cloud Storage regional buckets span zones, dual-region buckets use two chosen regions, and multi-region buckets use a wider area. Optional turbo replication targets copying new data within 15 minutes in dual-region storage.
Data residency applies to secondary copies too. For a one-country requirement, check the second region's location. Replication can also carry unwanted overwrites or deletions, depending on the service and settings. It supplies resilient copies of current state; protected versions and backups supply recovery from a bad state.
Key Takeaways
- Durability measures data-loss protection; availability measures reachability.
- Choose copies across zones or regions to match the failure being addressed.
- Asynchronous replication exposes recent writes still in transit.
- RPO is the business target against which potential loss is checked.
- Azure RA- options permit reading the secondary before failover.
- Replication and protected recovery copies serve different purposes.
2.4 Backups that meet recovery targets
A backup is a recoverable copy kept for deletion, corruption, attack or site loss. A useful backup plan starts with what the business can lose and how long it can remain offline.
Set two separate targets
| Target | Question it answers | Example |
|---|---|---|
| RPO: recovery point objective | How much recent data loss is acceptable? | At most 1 hour of orders |
| RTO: recovery time objective | How long can recovery take? | Working again within 4 hours |
A backup every 24 hours can leave almost 24 hours of changes unprotected if failure happens just before the next backup. It meets a 24-hour RPO, but not a 1-hour RPO. Hourly backups or sufficiently current continuous replication address the shorter target.
Recovery speed is independent. If restoring 3 TB takes 6 hours and the RTO is 4 hours, the plan misses the target even if the backup contains every required record. A faster restore process or a warm standby can reduce recovery time.
Apply policies across resources
AWS Backup centralizes backup policies for resources including EBS, RDS, DynamoDB, EFS, FSx and S3. Azure Backup covers resources including VMs, managed disks, Azure Files, blobs and SQL Server on VMs. Google Cloud offers Backup and DR Service. Policies set frequency, retention and copies to other regions or accounts.
Managed databases also take backups and retain transaction logs. RDS, Azure SQL Database and Cloud SQL support point-in-time restore to a selected moment within retention. RDS retention can be up to 35 days. Logs allow recovery between backup times, such as immediately before an accidental update.
Isolate a recovery copy
The 3-2-1 rule guides backup planning: three copies, on two kinds of storage, with one off-site. In the cloud, another region helps with site loss, and a separate account helps isolate access. Locked retention adds protection against an attacker deleting the backup: AWS Backup Vault Lock, Azure immutable backup vaults and Google backup vaults with enforced retention provide this control.
A daily off-site copy does not meet a four-hour RPO for a regional disaster. It can lag by almost a day even when local snapshots run every four hours.
For a 3 TB file share with a four-hour RPO and eight-hour RTO, take four-hourly snapshots for local recovery and make a recoverable cross-region copy at least every four hours. Keep recent snapshots for seven days and daily recovery history for 90 days. Test a complete restore each quarter and measure whether it finishes within eight hours.
Recovery services and archives
AWS Elastic Disaster Recovery and Azure Site Recovery replicate servers so they can start elsewhere with short recovery targets, often minutes, at extra cost. They address bringing a working system back, not just preserving old files.
An archive keeps inactive records for long-term use or retention. A backup supports recovery of a current system with rolling history. A low-cost archive can be useful storage for copies, but its retrieval delay must fit the recovery plan. Restore tests check both whether the data works and how long recovery really takes.
Key Takeaways
- RPO limits acceptable data loss; RTO limits recovery time.
- Check backup frequency and restore speed independently.
- Off-site copy frequency must meet the regional-disaster RPO.
- Isolation and locked retention protect recoverable history.
- Point-in-time restore uses backups and transaction logs.
- Measure restore time in regular recovery tests.
- Archives retain inactive records; backups recover current systems.
3Choose managed relational and NoSQL databases
Choosing a database starts with how the application stores, changes and finds its records. Related tables, flexible documents, graphs and memory caches each solve different problems. Managed services take over platform operations while leaving data and access decisions with your team. Compare the providers by engine compatibility, consistency, scaling and capacity charges so the service fits the workload.
3.1 Tables, transactions and managed operations
A relational database stores related facts in tables. A managed service runs the database platform for you, while your team remains responsible for how its data and queries work.
Read tables and keys
A table contains rows for records and columns for attributes. Its schema defines those columns and their data types. A primary key uniquely identifies a row. A foreign key refers to another table's primary key and connects records across tables.
Suppose customers contains Ana with customer ID 1 and country Brazil, and Kofi with ID 2 and country Ghana. The orders table contains orders 501 and 503 for customer 2, with totals of 80 and 45, and order 502 for customer 1, totaling 120. SQL reads and changes the data:
SELECT name FROM customers WHERE country = 'Ghana';
This returns Kofi. Joining on customer_id connects Kofi to orders 501 and 503, whose total is 125. The customer name does not have to be repeated in every order.
Keep a transaction together
A transaction groups changes into one unit. The ACID properties describe its guarantees:
- Atomicity: all steps succeed, or none do.
- Consistency: committed data obeys its defined rules.
- Isolation: concurrent transactions are kept from interfering in ways the isolation level disallows.
- Durability: a committed change survives a crash.
A transfer of 50 debits one account and credits another. If the second change fails, atomicity undoes the first too. This is why relational databases suit orders, inventory and payments: connected changes can commit together.
Choose who runs the platform
| Responsibility | Database on a VM | Managed database |
|---|---|---|
| OS and database patching | Customer | Provider |
| Backup operation | Customer | Provider service, with customer settings |
| Data, queries and permissions | Customer | Customer |
| Operating system access | Available | Generally unavailable |
A managed PostgreSQL service gives a new application automated platform maintenance. A legacy database needing an old engine version and an operating-system plug-in may need a VM. Managed service does not mean the provider chooses your schema, fixes slow queries or grants the right users access. Your team also selects size, region and availability settings.
Distinguish extra copies
A standby replica in another zone supports failover if the primary fails. Examples include RDS Multi-AZ, zone-redundant Azure SQL Database and Cloud SQL high availability. Failover can briefly interrupt service; it is not zero downtime.
A read replica spreads read traffic and may be placed in another region. It commonly receives changes asynchronously, so it can show an older value just after a write. It is not the same as a failover standby or a historical backup.
Vertical scaling adds processors or memory, often with a short interruption. Read replicas scale read traffic, while automatic storage growth adds disk capacity. Backups and transaction logs support point-in-time restore after a harmful change that replicas may already have copied.
Key Takeaways
- Primary keys identify rows; foreign keys connect tables.
- ACID transactions protect related changes as a unit.
- Managed services handle the platform; customers retain data, query and access tasks.
- Standbys support failover; read replicas spread read traffic.
- Replicas can copy bad changes, so recovery history is still needed.
3.2 Relational services and engine compatibility
Begin a database choice with the application: its engine, required features and scale. Keeping the same engine often avoids code changes. A compatible cloud engine can offer different storage and scaling behavior without being identical to the original.
Compare the main services
| Provider | Managed services | Main distinction |
|---|---|---|
| AWS | RDS; Aurora | Standard engines or AWS-built compatible engines |
| Azure | SQL Database; SQL Managed Instance; Database for PostgreSQL/MySQL | Database-level, instance-level or open-source engine services |
| Google Cloud | Cloud SQL; AlloyDB; Spanner | Standard engines, optimized PostgreSQL or global relational scale |
Amazon RDS supports MySQL, PostgreSQL, MariaDB, Oracle, SQL Server and IBM Db2. Aurora is a separate AWS engine compatible with MySQL or PostgreSQL. It stores six copies across three Availability Zones, grows storage automatically and offers Aurora Serverless for changing compute demand.
Azure SQL Database uses the SQL Server engine and offers serverless and Hyperscale options. SQL Managed Instance supports almost all instance-level SQL Server behavior, useful for existing databases that depend on features such as SQL Server Agent jobs. Azure Database for PostgreSQL and Azure Database for MySQL run their open-source engines as managed flexible servers. SQL Server on Azure Virtual Machines supplies full operating-system control, with customer-managed maintenance.
Cloud SQL runs MySQL, PostgreSQL and SQL Server. AlloyDB for PostgreSQL provides a PostgreSQL-compatible service optimized for demanding workloads, including analytical queries. Spanner distributes relational data globally, scales horizontally and keeps strong consistency across regions. Multi-region configurations offer an SLA up to 99.999% availability.
Choose by the feature that matters
A regional MySQL retailer can use RDS for MySQL, Azure Database for MySQL or Cloud SQL for MySQL. A SQL Server application depending on instance-level jobs needs an instance-compatible service, such as SQL Managed Instance; verify specific feature support for any target. A demanding PostgreSQL application may consider Aurora PostgreSQL or AlloyDB.
Global replication is not one single behavior. Aurora Global Database has one primary write Region and asynchronous secondary Regions for local reads and disaster recovery. Spanner addresses globally distributed, strongly consistent transactions. A small single-region application usually has no need for that global complexity.
If the workload is unpredictable or often idle, a serverless option can adjust capacity. If the application requires OS access, select a VM. "Managed" and "serverless" describe operational choices; they do not make every engine feature interchangeable.
Include licenses and usage in the bill
Commercial engines such as Oracle, SQL Server and Db2 require an included license or a valid bring-your-own-license arrangement, called BYOL. Azure Hybrid Benefit can reuse eligible SQL Server licenses. Open-source engines such as MySQL and PostgreSQL have no engine license fee.
Typical charges include compute, GB-months of storage, extra backup storage, data transferred out and sometimes I/O operations. Serverless charges follow capacity used over time. Compare the complete service and license arrangement, not just the hourly compute figure.
Key Takeaways
- Keep an existing engine when compatibility is the main need.
- Aurora is a distinct engine compatible with MySQL or PostgreSQL.
- SQL Managed Instance supports instance-level SQL Server needs.
- Spanner supports global strong relational consistency.
- Aurora Global Database uses one primary write Region and asynchronous secondaries.
- Include license rights and storage-related charges in comparisons.
3.3 NoSQL models, consistency and caching
NoSQL databases organize data around particular access patterns. "Not only SQL" covers several models, not one replacement for every relational database. Choose a model by the questions the application asks and the guarantees its answers need.
Match the model to the question
| Model | How it stores data | Useful question |
|---|---|---|
| Key-value | An item under a unique key | "What is in this session?" |
| Document | Fields in a JSON-like record | "What are this order's items?" |
| Wide-column | Row keys and column families | "What readings belong to this device?" |
| Graph | Nodes linked by edges | "Which accounts share this phone number?" |
A key-value store quickly retrieves cart:58213 by its known key. It has fewer ways to search arbitrary attributes. A document groups related fields, and documents can differ in shape:
{"orderId":"A-1042","customer":{"name":"Ana"},"items":[{"sku":"LAMP-01","qty":2},{"sku":"BULB-07","qty":4}]}
The application can read this order and its items together. The flexible shape does not remove structure: the application still needs usable fields and carefully chosen keys. Some services also enforce validation rules.
Wide-column stores handle huge write volumes, such as readings from millions of sensors. Graph stores make relationships explicit as edges between nodes. Tracing connections among accounts is a graph problem, while repeatedly finding one account by ID is a key lookup.
Use memory for repeated reads
An in-memory store keeps data in RAM for very fast access, often below a millisecond. A common pattern is cache-aside: check the cache; on a miss, read the database and cache a copy with an expiry time.
For a 1 ms cache lookup and a 50 ms database query, with a 90% hit rate, a hit costs 1 ms and a miss costs 51 ms. The average is:
The miss includes the failed cache lookup. Cached data may expire or be evicted, so an ordinary cache should not hold the only authoritative copy. Durable in-memory database services are a distinct choice.
Choose consistency deliberately
With strong consistency, a read returns the latest confirmed write. Eventual consistency allows a replica briefly to show an older value while updates catch up. This can support lower latency, lower cost or better availability during some failures. The required behavior depends on the task: a just-updated balance and a recommendation counter may have different needs.
DynamoDB offers eventually and strongly consistent reads for supported operations. Cosmos DB offers five consistency levels. NoSQL does not mean "no transactions": many services support transactions, though the supported scope differs.
Relational databases suit rich relationships, joins and multi-row transactions. NoSQL suits very large scale, flexible records and known access patterns. An application can keep orders in a relational store, profiles in a document store and repeated product reads in a cache.
Key Takeaways
- Choose a NoSQL model by its access pattern.
- Document flexibility still requires usable structure and keys.
- Graphs answer connection questions; wide-column stores suit large keyed write volumes.
- Cache misses include both the lookup and database read time.
- Strong and eventual consistency give different read-after-write behavior.
- Many NoSQL databases support transactions.
3.4 Managed NoSQL services and capacity
Cloud NoSQL services package different models and operating choices. First identify whether the workload needs documents, connections, wide-column data or a cache, then compare compatibility and capacity charges.
Recognize the service families
| Need | AWS | Azure | Google Cloud |
|---|---|---|---|
| Key-value or documents | DynamoDB | Cosmos DB | Firestore for documents |
| MongoDB-compatible documents | DocumentDB | Cosmos DB for MongoDB | — |
| Wide-column | Keyspaces | Cosmos DB for Apache Cassandra | Bigtable |
| Graph | Neptune | Cosmos DB for Apache Gremlin | — |
| In-memory cache | ElastiCache | Azure Managed Redis | Memorystore |
The table groups services by purpose; it does not mean they have identical APIs. DynamoDB is serverless, supports key-value and document access, and offers global tables across Regions. DocumentDB targets MongoDB compatibility. Keyspaces is Cassandra-compatible, and Neptune stores graphs.
Cosmos DB is globally distributed and offers NoSQL, MongoDB, Cassandra, Gremlin and Table APIs. An account uses one API. It also offers five consistency levels. Azure Table Storage is a separate, simple key-value service within a storage account. Sharing a Table interface does not give it all Cosmos DB's global distribution and consistency features.
Firestore is a serverless document database with real-time updates and offline device support. Bigtable handles large, low-latency wide-column workloads and supports the HBase API. Sensor histories and personalization at very large scale are common uses.
Caching and durable memory are different
ElastiCache supports Valkey, Redis OSS and Memcached. Memorystore offers Valkey, Redis and Memcached, while Azure Managed Redis provides managed Redis caching. Frequently repeated product queries can use these caches to avoid repeated database reads.
Amazon MemoryDB is designed as a durable in-memory database. An ordinary cache can evict or lose an entry; MemoryDB's durable database role is different. Decide whether the data is a replaceable copy before choosing solely by response time.
Pay for reserved or actual throughput
With provisioned capacity, reserve throughput in advance. DynamoDB uses read and write capacity units; Cosmos DB uses request units per second, or RU/s. Predictable, steady demand can make this economical. With on-demand/serverless capacity, charges follow requests and capacity adjusts to demand. Storage is billed separately.
A new shopping cart with unpredictable spikes can start with DynamoDB on-demand or Cosmos DB serverless. A mobile document app that must work offline fits Firestore's device features. A fraud team tracing links between accounts needs a graph service, not merely a faster key lookup.
The separate Cosmos DB for PostgreSQL service is being retired; it is not another account API. Microsoft directs new distributed PostgreSQL projects to Elastic Clusters in Azure Database for PostgreSQL. Match the actual service and API before assuming an existing application's compatibility.
Key Takeaways
- Match the data model before matching the product name.
- A Cosmos DB account uses one selected API.
- Firestore supports offline device use; Bigtable suits huge wide-column workloads.
- Provisioned throughput fits steady demand; on-demand fits uncertain demand.
- Ordinary caches and durable in-memory databases have different roles.
4Move data and databases into the cloud
A cloud move needs both a way to carry the data and a plan for making the destination usable. Estimate transfer time from realistic bandwidth, compare network routes with offline devices, and distinguish copying files from migrating a working database. Engine conversion, ongoing changes and the final cutover each affect how much work is needed and how long the application is unavailable to its users.
4.1 Transfer time and the right route
A large upload is a calculation before it is a tool choice. Work out how much network capacity the move can actually use, then compare that time with the complete offline transfer process.
Put size and speed in matching units
Storage uses bytes; networks use bits per second. One byte contains 8 bits. With decimal units, 1 GB is one billion bytes, 1 TB is 1,000 GB and 1 Gbps is one billion bits per second. A binary GiB is about 1.074 GB, so check which unit a tool displays.
For 100 TB over 1 Gbps, the data contains 800 trillion bits. Dividing by one billion gives 800,000 seconds, about 9.3 days. At 80% effective use, divide by 0.8 Gbps: 1,000,000 seconds, about 11.6 days. At 100 Mbps, even full use takes about 93 days. A 1 Gbps link moves at most 125 MB/s, or about 10.8 TB daily, not 1 GB/s.
Match online tools to the interface
| Provider | Tools and roles |
|---|---|
| AWS | DataSync moves files/objects; Transfer Family supplies SFTP, FTPS, FTP or AS2 endpoints |
| Azure | AzCopy copies data; Storage Explorer browses and moves it; File Sync maintains Windows file synchronization |
| Google Cloud | Storage Transfer Service moves data into Cloud Storage; gcloud storage provides command-line transfers |
DataSync includes scheduling, encryption and integrity checks and can move supported file-system or object sources into S3, EFS or FSx. Transfer Family suits partners already sending files through established transfer protocols. A one-time copy and continuing synchronization are different tasks.
Compare with offline transfer
Azure Data Box devices provide up to 120 TB or 525 TB, with Data Box Disk for smaller sets. Google Transfer Appliance also moves data on shipped hardware. Include ordering, copying, shipping and provider upload time; the full process can take one to a few weeks. Encrypt the device and verify the resulting data.
AWS Snowball Edge is closed to new customers and its commercial-Region support ends December 31, 2026. Current AWS routes include DataSync and Data Transfer Terminal, a reserved physical location where customers bring drives for high-speed uploads.
A site has a 200 Mbps link, with half available for migration. The effective rate is 100 Mbps. Moving 300 TB takes 24 million seconds, about 278 days, making an offline device attractive. Moving 2 TB takes 160,000 seconds, about 1.9 days, so shipping would add delay.
Repeated transfers need a continuing path
AWS Direct Connect, Azure ExpressRoute and Google Cloud Interconnect provide dedicated private connectivity with more consistent speed and latency. They can suit large ongoing transfers. An offline device seeds a copy but does not keep later changes synchronized.
Include transfer-service charges and later egress in the estimate. Internet ingress is generally free; cloud downloads commonly cost per GB. Use encryption in transit and checksums or equivalent integrity checks to confirm that the destination copy is complete.
Key Takeaways
- Convert bytes to bits before dividing by network speed.
- Use effective migration bandwidth after overhead and other traffic.
- Compare online time with ordering, copying, shipping and import time.
- Online tools, offline devices and dedicated connections serve different needs.
- Check transfer integrity and account for egress costs.
4.2 A migration that becomes a working database
Moving database bytes is only part of migration. The target must understand the schema, the application must work with it, and the final changes must arrive before users switch over.
Classify what changes
A homogeneous migration keeps the engine, such as PostgreSQL to managed PostgreSQL. A heterogeneous migration changes it, such as Oracle to PostgreSQL. That can require converting data types, schemas, stored procedures and application code.
| Strategy | What happens |
|---|---|
| Rehost | Move the database to a VM with little change |
| Replatform | Keep the engine and adopt a managed service |
| Refactor | Change the engine, model or application substantially |
| Retain | Keep the system where it is for now |
| Retire | Switch off a system no longer needed |
A same-engine move can still need version or feature checks. A conversion report is useful precisely because it identifies what does not transfer automatically.
Limit the downtime
An offline migration stops the application for export, transfer and import. An online migration begins with a full load while the source remains in use. Change data capture (CDC) then sends new changes to the target. The initial copy alone is already out of date if users kept writing during it.
Cutover requires a controlled sequence:
- Stop writes to the source.
- Apply the remaining captured changes and confirm the target has caught up.
- Promote the target to an independent database where required.
- Redirect the application and verify it works.
Continuous replication reduces the final window; it does not eliminate the need for that window or for tests. Keeping the old source read-only for a period can provide a fallback without allowing competing writes.
Choose discovery, conversion and migration tools
AWS DMS moves databases and supports ongoing replication. AWS SCT and DMS Schema Conversion assess and convert database structures and code. Application Discovery Service gathers server information; Application Migration Service rehosts servers. Migration Hub tracks work, and Migration Evaluator supports the business case.
Azure Migrate discovers, assesses and migrates servers, databases and web applications. Azure Database Migration Service handles supported SQL Server, PostgreSQL and MySQL moves, using online or offline methods. Data Box transports large offline data copies; it does not perform schema conversion.
Google Database Migration Service supports moves into Cloud SQL or AlloyDB, including supported continuous migrations and heterogeneous conversions to PostgreSQL. Migration Center discovers assets, assesses them and estimates costs. Select a supported source-to-target path, not merely a service with "migration" in its name.
Work through a changing-engine move
A 24/7 shop moves a 2 TB Oracle database to a PostgreSQL-compatible managed target. Assess conversion first. Create the target and convert the schema, rewrite the procedures flagged for manual work, and start full load plus CDC. Test the application while replication continues. Then perform the controlled cutover. A folder of exported files in a bucket is a useful transfer artifact, but users need a consistent, running target database.
Key Takeaways
- Homogeneous moves keep the engine; heterogeneous moves require conversion.
- Discovery, conversion and data replication are separate migration tasks.
- Full load plus CDC keeps a target current while the source remains in use.
- Cutover stops source writes, applies final changes and redirects the application.
5Describe analytics, data warehouse and AI services
Stored data becomes useful when people can analyze it or applications can learn from it. Lakes, warehouses and pipelines prepare records for reports, dashboards and models. Cloud services support each stage, from collecting live events to extracting fields from documents. Match a service to its job, follow the data through the process, and include quality checks and responsible use when turning results into decisions.
5.1 From operational records to analytical data
The system that records today's transactions has a different job from the system explaining five years of business history. Analytics combines data from many sources without making routine transactions wait behind large scans.
Recognize data shapes and workloads
Structured data has a fixed layout, such as a sales table. Semi-structured data carries labels without one fixed table shape, such as JSON or XML. Unstructured data includes images, audio and free-form documents.
OLTP, online transaction processing, handles many small reads and writes of current records. OLAP, online analytical processing, runs large queries over history. Heavy reports on a production database can slow orders and payments, so analytics commonly uses a separate copy.
Compare lake, warehouse and lakehouse
| Store | What it keeps | When structure is applied |
|---|---|---|
| Data warehouse | Cleaned, organized data for SQL analysis | Schema-on-write |
| Data lake | Raw data in many formats, usually in object storage | Schema-on-read |
| Lakehouse | Object-store files with managed analytical tables | Table management over lake files |
A warehouse combines sources into consistent tables. Its columnar storage can read only needed columns. If a 2 TB table has 100 equally sized columns and a query needs three, the approximate scan is 60 GB, not 2 TB.
A lake preserves raw files for exploration, data science and machine learning, including data whose later use is not known. Without a catalog and ownership, it becomes hard to find or trust anything: a "data swamp." Lakehouses add warehouse-like management with formats such as Apache Iceberg and Delta Lake. A lake and warehouse can coexist because they serve different stages and needs.
Follow a pipeline
A data pipeline ingests data, stores it, transforms it, analyzes it and presents or acts on results. With ETL, extraction is followed by transformation and then loading. With ELT, data is loaded first and transformed in the destination. Cloud warehouses can supply the processing capacity for ELT.
Batch processing handles a collected period, such as a night's sales load. Streaming handles events as they arrive, suitable for live dashboards, suspicious payments or sensor alerts. A historical monthly report may work well in batches; a reaction needed within seconds calls for streaming.
Keep data usable and trustworthy
Governance assigns rules and processes for access, retention, meaning and quality. A catalog records what exists and what it means. Lineage traces where data came from and which transformations changed it. Together they help a team explain a number on a dashboard.
Quality checks address completeness, accuracy, consistency, timeliness, validity and uniqueness. A missing region code hurts completeness; duplicate payments hurt uniqueness; an outdated feed hurts timeliness. Quality is useful before both analysis and AI. Open formats and interoperable tools make sharing easier and reduce isolated data silos and dependence on one vendor.
Key Takeaways
- OLTP handles operational transactions; OLAP analyzes large historical sets.
- Warehouses organize data before loading; lakes retain raw data.
- Lakehouses add analytical table management to lake files.
- ETL transforms before loading; ELT transforms after loading.
- Batch and streaming meet different timing needs.
- Catalogs, lineage and quality checks make data usable and trustworthy.
5.2 Build an analytics pipeline with cloud services
An analytics service has a specific place in the path from events to decisions. Identify that job before choosing a provider product: capturing a stream, cleaning it, querying it and displaying it are different operations.
Warehouses and queries over files
| Job | AWS | Azure | Google Cloud |
|---|---|---|---|
| Warehouse | Redshift | Fabric; Synapse Analytics | BigQuery |
| Preparation and integration | Glue | Data Factory, including Fabric Data Factory | Dataflow |
| Dashboards | Quick Sight | Power BI | Looker |
Redshift offers provisioned and serverless warehouses. BigQuery is serverless, separates storage from compute and offers scan-based or capacity-based query pricing. Microsoft Fabric combines warehouse and lakehouse features; Synapse Analytics remains available, with Fabric the direction for new development.
Athena runs serverless SQL on files in S3; it does not store the data it queries. BigQuery external tables can read Cloud Storage files, and Fabric lakehouse tables in OneLake have a SQL analytics endpoint. Querying files in place is different from loading another copy into a database.
Prepare data and handle events
AWS Glue transforms data and maintains a Data Catalog describing structure and location. Azure Data Factory builds and schedules pipelines. Google Dataflow runs both batch and streaming processing with Apache Beam.
For Spark and related big-data frameworks, use Amazon EMR, Azure Databricks or Fabric Spark, and Google's Managed Service for Apache Spark, formerly Dataproc. These supply processing frameworks, not the same role as a dashboard or a message service.
For streams, Amazon Kinesis captures and processes real-time data, and Data Firehose loads streams into destinations. Azure Event Hubs ingests events; Stream Analytics or Fabric Real-Time Intelligence analyzes them. Google Pub/Sub carries messages, and Dataflow processes them.
Follow one event to the dashboard
For a live shop dashboard, order events enter Kinesis, Event Hubs or Pub/Sub. Raw copies land in S3, Azure Data Lake Storage or Cloud Storage. Glue, Data Factory or Dataflow cleans the records. Redshift, Fabric or BigQuery supports analysis, and Quick Sight, Power BI or Looker shows the results.
Looker can define business metrics centrally so teams use the same meaning for measures such as revenue. Amazon OpenSearch Service has a different role: indexing text and logs for search and analysis.
Reduce scan-based query charges
At an example rate of $5 per TB scanned, reading 2 TB costs $10. If a columnar format such as Parquet lets the query read three of 100 equally sized columns, it reads 60 GB, or 0.06 TB, costing $0.30. If the files are also partitioned by day and the query needs only one of 30 equally sized days, the scan falls to 2 GB, costing $0.01.
The savings come from actually excluding unneeded columns and partitions. Merely storing a file in an object store does not ensure a small scan. BigQuery capacity reservations are a billing option; they do not make the customer administer warehouse servers.
Key Takeaways
- Match each service to ingestion, preparation, analysis or presentation.
- Athena queries S3 data in place.
- Kinesis, Event Hubs and Pub/Sub carry arriving events.
- Glue, Data Factory and Dataflow prepare or process data.
- Column selection and partition pruning can lower scan-based costs.
5.3 AI models and the service layer to use
Cloud AI services range from ready-made APIs to platforms for training models. The best starting layer depends on the business task, the data and the team's expertise.
Connect the main ideas
Artificial intelligence covers systems performing tasks such as recognizing images or understanding language. Machine learning is an approach within AI: a model learns patterns from data. Deep learning uses many-layered neural networks. Generative AI creates content such as text, images or code from a prompt. A foundation model is trained broadly for adaptation to many tasks; a large language model, or LLM, focuses on language.
Training produces or adjusts a model from data. Inference uses a trained model on new input. Training a small model may need only an ordinary processor; large deep-learning models often need GPUs or TPUs. Scoring a new purchase for fraud is inference, even if the model was trained months earlier.
| Learning method | Training signal | Example task |
|---|---|---|
| Supervised | Labeled examples | Classify spam; predict a numeric price |
| Unsupervised | Unlabeled data | Find groups of similar customers |
| Reinforcement | Rewards from actions | Learn which actions earn better results |
Classification predicts a category; regression predicts a number. These methods can simplify complicated rules, forecast demand, personalize recommendations and detect anomalies. Agentic AI adds planning and tool use so an agent can carry out a task, such as searching information and calling an application.
Choose a service layer
- Pre-trained APIs handle established tasks such as translation or speech recognition without building a model.
- Generative platforms provide foundation models, grounding and agent tools: Amazon Bedrock, Microsoft Foundry and Gemini Enterprise Agent Platform, formerly Vertex AI.
- ML platforms build, train and deploy custom models: SageMaker AI, Azure Machine Learning and Gemini Enterprise Agent Platform. AutoML reduces the code needed to train from your data.
- ML within data services, such as BigQuery ML and Redshift ML, lets teams work through SQL where the data already sits.
A retailer translating descriptions can use a translation API. A chat assistant answering from company manuals can use retrieval-augmented generation (RAG): retrieve relevant manual passages and provide them with each question. A demand forecast based on the retailer's own sales can use AutoML, database ML or an ML platform. Building from scratch adds effort when an existing service already fits.
Evaluate the data and outputs
Missing, outdated or biased training examples can produce poor or unfair results. Check completeness, accuracy, consistency, timeliness, validity and uniqueness. Responsible AI also requires fairness, privacy, security, transparency, explainability, human oversight and accountability.
A confident generative answer can contain a hallucination, a fluent but false claim. Ground important outputs in trusted information and review them. The provider secures its service; the customer controls supplied data, access and how outputs are used. RAG gives evidence to the model, but its presence alone does not guarantee a correct answer.
Key Takeaways
- Machine learning is part of AI; generative AI creates new content.
- Training builds a model; inference uses it.
- Supervised learning uses labels, unsupervised learning finds structure, and reinforcement learning uses rewards.
- Choose between ready APIs, generative platforms and custom ML by task and expertise.
- RAG supplies relevant retrieved evidence to a generative model.
- Data quality, output checks and customer responsibilities still matter.
5.4 Ready-made AI for images, speech and documents
Many common AI tasks already have a pre-trained service. An application sends input through an API and receives results without its developers first training a model.
Match the input and output
| Task | AWS | Azure | Google Cloud |
|---|---|---|---|
| Image analysis | Rekognition | Vision | Vision API |
| Speech to text | Transcribe | Speech | Speech-to-Text |
| Text to speech | Polly | Speech | Text-to-Speech |
| Text analysis | Comprehend | Language | Natural Language API |
| Translation | Translate | Translator | Cloud Translation |
| Structured document extraction | Textract | Document Intelligence | Document AI |
Vision finds objects, scenes and text in images; Google's Video Intelligence API handles video analysis. Speech-to-text transcribes audio, while text-to-speech generates spoken output from written text. Text analysis finds sentiment, entities, key phrases or categories. Translation changes the language of the text.
Document services preserve relationships within forms, such as which date belongs to the label "Invoice date" or which amount is a table total. General image text detection finds text but does not provide the same form understanding. An invoice workflow therefore calls for document extraction, not merely image labels.
Combine services around a business process
A contact center can transcribe recorded calls, analyze the sentiment in each transcript and display recurring unhappy topics on a dashboard. Transcription produces the words; language analysis interprets aspects of those words.
An insurer can extract names, dates and amounts from claims with a document service and send low-confidence results to a person. That review is part of the process: a detected field is a prediction, not a guarantee that the value is correct.
Amazon Lex builds voice or text chatbots and can work with Amazon Connect, a cloud contact center. Amazon Q provides generative assistance for business users and developers. Microsoft Foundry and Gemini Enterprise Agent Platform provide tools for conversational assistants and agents. Azure Vision, Speech, Language and related APIs sit within Foundry Tools, formerly Azure AI services.
Estimate use before estimating price
Services may charge per image, audio minute, page, translated character or generated token. Count the relevant unit, then apply the rate. Use an example translation rate of $15 per million characters. Two thousand descriptions with 500 characters each contain one million characters. Translating into ten languages processes ten million characters and costs $150. Counting source text only would miss the repeated processing for each language.
Pre-trained does not always mean fixed behavior. Custom transcription vocabularies can help with product names; custom image labels can recognize a company's products; custom document classifiers can sort its forms. These options can tailor a service without a complete model-building project.
Images, voices and documents may contain personal data. Supply them for a lawful purpose, obtain consent where required and control access and retention. Choose the service by its task and data needs before deciding that custom training is necessary.
Key Takeaways
- Choose an AI API by the input and result the business needs.
- Speech transcription, language analysis and speech generation are different tasks.
- Document services extract fields and tables, not just visible text.
- Usage estimates must count every target language or other repeated operation.
- Customization can improve a pre-trained service without training from scratch.
Cloud Storage and Databases examples
1Choose storage by how it is used
14 steps
- 1IntroductionStart with the application
A publishing service stores an editing database, shared templates and reader downloads. Those are all data, but the applications reach them in different ways.
Follow each access pattern to a storage type, then choose provider services and recovery settings. The central question is what the application must do with the stored bytes: update a disk, share a path or fetch an object over the web.
- 2ExplanationA server needs a disk
Block storage presents a volume to a server. The operating system formats it with a file system and can update small blocks in place. That makes it useful for boot disks and a database with many small reads and writes.
A normal block volume is not a shared folder. Several machines need special support and clustered software to use one directly; shared file access has its own storage model.
- 3ExplanationSeveral servers need one folder
File storage presents a shared folder using a protocol such as NFS or SMB. Several clients can use common paths, with file locking coordinating their access.
The publishing service's Linux renderers already read templates from an NFS path. A managed NFS share keeps that interface, so the application does not need to be rewritten around object upload and download requests.
- 4ExampleReaders fetch named objects
Reader downloads fit object storage. Each PDF has data, metadata and a key such as
issues/2026/issue-09.pdf. A web application can fetch it through an HTTPS API when it has permission.In a flat namespace, the entire string is the key. Its slashes make the name look like folders, but they do not make it a normal shared disk path. Standard object classes can serve these active downloads quickly.
- 5ChallengeChoose for three access patterns
The service now needs a persistent database disk, shared NFS templates and downloadable cover images. Assign a storage type to each.
---reveal---
Use block for the database disk, file for NFS templates and object for cover images. The decision follows the required interface. Putting everything in a cheap bucket would not supply the disk updates and shared NFS path the first two components expect.
- 6ExplanationFind the collection in each cloud
AWS calls its object service Amazon S3; Google Cloud calls it Cloud Storage. Both group objects in buckets. Azure Blob Storage groups blobs in containers within a storage account.
Choose the location when creating the resource. It affects latency, cost and data residency. Google offers region, dual-region and multi-region locations; an S3 bucket belongs to one AWS Region with its own class and replication choices.
- 7ExampleGive a visitor a short download window
The service wants a reviewer to download a private draft for 45 minutes. It can create a signed link that carries limited permission and expires after that interval.
The draft does not need public-read access. The provider names differ—S3 presigned URL, Azure SAS and Cloud Storage signed URL—but the idea is temporary delegated access. Anyone holding the usable link can use its permission until it expires.
- 8Key InsightRecovery and permission solve different problems
Versioning retains earlier contents after replacement, while immutable retention prevents protected changes during a retention period. Both can help preserve important records, but they do different jobs.
Encryption is another control: stored bytes are encrypted by default and HTTPS protects transfers. An authorized reader still receives readable content from the service, so encryption does not replace careful access permissions.
- 9ChallengeProtect a changing draft
Editors must keep changing a private draft, but they need to undo an accidental overwrite. Would a public link, versioning or a lock that blocks editing meet this need? Explain.
---reveal---
Use versioning so earlier contents remain recoverable while editing continues. A public link changes access without preserving history. A lock that blocks editing would conflict with the stated need to keep changing the draft.
- 10ExplanationChoose the matching managed service
The database disk can use EBS, Azure managed disks, or Persistent Disk/Hyperdisk. The Linux file share can use EFS, Azure Files with NFS, or Filestore. Windows SMB needs a suitable service such as FSx for Windows File Server or Azure Files.
Capacity and performance are separate choices. A database making many small operations may need high IOPS, not just more unused disk space.
- 11ExampleRestore the whole disk from an increment
A disk contains 180 GB of data when its first snapshot is taken. Before the next incremental snapshot, 7 GB of blocks change. The later snapshot stores about 7 GB of new blocks.
Restoring it reconstructs the complete later volume using both changed and unchanged information. "Incremental" describes how the copy is stored, not a restriction that allows recovery of only the 7 GB increment.
- 12ConnectionKeep active branch files nearby
A branch office has more shared data than fits on its local server, but most files are rarely opened. Azure File Sync cloud tiering or a suitable Storage Gateway file setup can retain frequently used files nearby and the full collection in the cloud.
The first access to a cold file then depends on the network. This extends an existing file workflow; it is a different job from attaching a block disk to a cloud VM.
- 13ChallengeCheck both the disk and its recovery copy
The publishing VM is zonal. The team wants a shared folder for several renderers and a disk recovery copy that survives regional loss. What two choices must it check?
---reveal---
Use a file service for the shared folder, and check the snapshot storage location for regional protection. A snapshot in the source region may not survive regional loss; account isolation also matters if compromised access is a concern.
- 14RecapA useful storage decision
Choose storage by access: block for disks, file for shared paths and object for web-addressed data. Then choose the provider service and settings that meet the location, permission and recovery needs.
For snapshots and hybrid storage, ask where the full data can be recovered and which operations still depend on a network connection.
2Check the cost and recovery plan
16 steps
Save this lesson to follow every Walkthrough step by step.
- 1IntroductionA cheap copy must still be useful
- 2ExplanationRead speed changes the tier choice
- 3ExampleCalculate the stored-data charge
- 4ExampleAdd the reads before comparing
- 5ChallengeMeet the access deadline
- 6ExplanationDescribe the lifecycle rule
- 7ExampleCount the middle stay
- 8ChallengeSeparate a lock from an aging rule
- 9ExplanationSafe data can still be unreachable
- 10Key InsightLocation determines the failure boundary
- 11ChallengeRead the lag correctly
- 12ExplanationTwo recovery targets, two tests
- 13ExampleCheck every disaster copy
- 14TipProtect a usable recovery history
- 15ChallengeA complete plan has two remaining gaps
- 16RecapEvaluate the full path to recovery
3Choose a database by its job
16 steps
Save this lesson to follow every Walkthrough step by step.
- 1IntroductionStart with the records and questions
- 2ExplanationConnect records with keys
- 3ExampleKeep the purchase changes together
- 4ChallengeChoose a copy for the problem
- 5Key InsightManaged still has a customer side
- 6ExplanationKeep the engine when it fits
- 7ConnectionCompatibility is not the same storage engine
- 8ChallengeDistinguish two global needs
- 9ExplanationChoose the shape of a NoSQL record
- 10ExampleWork out the hit and miss paths
- 11ExampleWeight each cache path
- 12ChallengeChoose consistency for the result
- 13ExplanationMatch the managed model
- 14TipReserve throughput only with a reason
- 15ChallengeCombine a model and a capacity choice
- 16RecapChoose each guarantee explicitly
4Plan the transfer and the final switch
12 steps
Save this lesson to follow every Walkthrough step by step.
- 1IntroductionTransport is only one part of the move
- 2ExplanationConvert before dividing
- 3ExampleCalculate the online duration
- 4ChallengeAccount for sharing and overhead
- 5ConnectionChoose a transport route
- 6TipCheck what arrived
- 7ExplanationDecide whether the engine changes
- 8ExampleBuild a target while the source stays live
- 9ExampleMake the last changes finite
- 10ChallengeDiagnose a premature switch
- 11ConnectionUse tools for their separate jobs
- 12RecapVerify transport and usability
5Follow data into analysis and AI
17 steps
Save this lesson to follow every Walkthrough step by step.
- 1IntroductionStart with the decision people need
- 2ExplanationSeparate transactions from large analysis
- 3ConnectionGive raw and prepared data different homes
- 4ChallengeMatch the timing to the task
- 5ExplanationAssign a service to each stage
- 6ExampleWork out a smaller scan
- 7ExampleSkip unneeded dates too
- 8ChallengeFind the missing job
- 9ExplanationKnow when the model is learning
- 10Key InsightChoose the least complicated useful layer
- 11ChallengeUse current evidence in an assistant
- 12ExplanationMatch the AI output to the workflow
- 13ExampleCount the translation work
- 14ChallengeBuild a call-analysis chain
- 15ConnectionQuality applies before both analytics and AI
- 16ChallengeConnect extraction to trustworthy analysis
- 17RecapFollow the role and the evidence
Cloud Storage and Databases practice questions
Set 1: Storage and data service decisions10 Practice Questions
Question 1 of 10
Show answerHide answer
Question 2 of 10
Show answerHide answer
Question 3 of 10
Show answerHide answer
Question 4 of 10
Show answerHide answer
Question 5 of 10
Show answerHide answer
Question 6 of 10
Show answerHide answer
Question 7 of 10
Show answerHide answer
Question 8 of 10
Show answerHide answer
Question 9 of 10
Show answerHide answer
Question 10 of 10
Show answerHide answer
Set 2: Costs, compatibility and migration choices10 Practice Questions
Save this lesson to see every answer and practice every set.
Question 1 of 10
Show answerHide answer
Save this lesson to see this answer.
Question 2 of 10
Show answerHide answer
Save this lesson to see this answer.
Question 3 of 10
Show answerHide answer
Save this lesson to see this answer.
Question 4 of 10
Show answerHide answer
Save this lesson to see this answer.
Question 5 of 10
Show answerHide answer
Save this lesson to see this answer.
Question 6 of 10
Show answerHide answer
Save this lesson to see this answer.
Question 7 of 10
Show answerHide answer
Save this lesson to see this answer.
Question 8 of 10
Show answerHide answer
Save this lesson to see this answer.
Question 9 of 10
Show answerHide answer
Save this lesson to see this answer.
Question 10 of 10
Show answerHide answer
Save this lesson to see this answer.
Set 3: Reason through storage and data behavior10 Practice Questions
Save this lesson to see every answer and practice every set.
Question 1 of 10
Show answerHide answer
Save this lesson to see this answer.
Question 2 of 10
Show answerHide answer
Save this lesson to see this answer.
Question 3 of 10
Show answerHide answer
Save this lesson to see this answer.
Question 4 of 10
Show answerHide answer
Save this lesson to see this answer.
Question 5 of 10
Show answerHide answer
Save this lesson to see this answer.
Question 6 of 10
Show answerHide answer
Save this lesson to see this answer.
Question 7 of 10
Show answerHide answer
Save this lesson to see this answer.
Question 8 of 10
Show answerHide answer
Save this lesson to see this answer.
Question 9 of 10
Show answerHide answer
Save this lesson to see this answer.
Question 10 of 10
Show answerHide answer
Save this lesson to see this answer.
Set 4: Diagnose recovery, scale and analytics plans10 Practice Questions
Save this lesson to see every answer and practice every set.
Question 1 of 10
Show answerHide answer
Save this lesson to see this answer.
Question 2 of 10
Show answerHide answer
Save this lesson to see this answer.
Question 3 of 10
Show answerHide answer
Save this lesson to see this answer.
Question 4 of 10
Show answerHide answer
Save this lesson to see this answer.
Question 5 of 10
Show answerHide answer
Save this lesson to see this answer.
Question 6 of 10
Show answerHide answer
Save this lesson to see this answer.
Question 7 of 10
Show answerHide answer
Save this lesson to see this answer.
Question 8 of 10
Show answerHide answer
Save this lesson to see this answer.
Question 9 of 10
Show answerHide answer
Save this lesson to see this answer.
Question 10 of 10
Show answerHide answer
Save this lesson to see this answer.
Set 5: Combine requirements and check the whole plan10 Practice Questions
Save this lesson to see every answer and practice every set.
Question 1 of 10
Show answerHide answer
Save this lesson to see this answer.
Question 2 of 10
Show answerHide answer
Save this lesson to see this answer.
Question 3 of 10
Show answerHide answer
Save this lesson to see this answer.
Question 4 of 10
Show answerHide answer
Save this lesson to see this answer.
Question 5 of 10
Show answerHide answer
Save this lesson to see this answer.
Question 6 of 10
Show answerHide answer
Save this lesson to see this answer.
Question 7 of 10
Show answerHide answer
Save this lesson to see this answer.
Question 8 of 10
Show answerHide answer
Save this lesson to see this answer.
Question 9 of 10
Show answerHide answer
Save this lesson to see this answer.
Question 10 of 10
Show answerHide answer
Save this lesson to see this answer.
Stuck on your own question? Homework Help
Key Terms
A
Amazon Aurora
Amazon EFS
Amazon RDS
Asynchronous replication
Athena
Atomicity
Automatic tiering
Availability
B
Backup
Backup vault lock
BigQuery
Block storage
Bucket
Business intelligence
BYOL
C
Cache-aside
CDC
Cloud tiering
Columnar storage
Cosmos DB
Custom vocabulary
Cutover
D
Data catalog
Data governance
Data lake
Data lineage
Data warehouse
DataSync
Dedicated connection
Disaster recovery
Document database
Document extraction
Durability
DynamoDB
E
Effective bandwidth
Egress
ELT
ETL
Eventual consistency
F
File storage
Firestore
Foreign key
Foundation model
G
Generative AI
GiB
Graph database
GRS
H
Hallucination
Heterogeneous migration
Homogeneous migration
I
Immutable storage
Incremental snapshot
Inference
IOPS
K
Key-value database
L
Lakehouse
Legal hold
Lifecycle filter
logs/ applies an aging rule to log objects without changing unrelated product images.Lifecycle policy
M
Machine learning
MemoryDB
Metadata
Minimum storage duration
Multipart upload
N
NFS
Noncurrent version
NoSQL
O
Object key
media/clip-17.mp4 identifies a video; its slashes can be parts of the name rather than disk folders.Object storage
Offline data transfer
OLAP
OLTP
On-demand capacity
P
Partition pruning
Point-in-time restore
Primary key
Provisioned capacity
R
RAG
Read replica
Rehydration
Relational database
Replatforming
Retrieval fee
RPO
RTO
S
Schema
Schema conversion
Sentiment analysis
Serverless database
Signed URL
SLA
SMB
Snapshot
Spanner
Speech-to-text
SQL Managed Instance
Standby replica
Storage account
Storage Gateway
Storage tier
Strong consistency
Supervised learning
Synchronous replication
T
Temporary host storage
Text-to-speech
Training
Transaction
V
Versioning
W
Wide-column database
Z
ZRS
- 1Cloud Computing Concepts
- 2Cloud Global Infrastructure
- 3Cloud Compute Options
- 4Cloud Storage and Databases
- 5Cloud Networking
- 6Cloud Security
- 7Cloud Cost Management
About this lesson
Make your own Study Materials
Turn your notes, slides and documents into Study Guides, Practice Questions, Flashcards and 6 more tools.