Lesson 22 of 36 · see all lessons
  1. Start here: cloud concepts (domain 1, 24%)

    1. 1. Start here: the exam, the plan and what you already know
    2. 2. What the cloud is: benefits, service models and deployment models
    3. 3. AWS global infrastructure: Regions, Availability Zones and edge locations
    4. 4. Cloud economics: what you pay for on-premises vs in the cloud
    5. 5. The AWS Well-Architected Framework: six pillars
    6. 6. Moving to AWS: the Cloud Adoption Framework and migration strategies
  2. Security and identity (domain 2, 30%)

    1. 7. The shared responsibility model: who secures what
    2. 8. IAM basics: users, groups, roles and policies
    3. 9. Protecting the root user, MFA and credentials
    4. 10. Identity at scale: IAM Identity Center, federation and cross-account access
    5. 11. Encryption and keys: protecting data at rest and in transit
    6. 12. Threat protection: Shield, WAF, GuardDuty, Inspector and Security Hub
  3. Governance, ways of working and compute (domains 2 and 3)

    1. 13. Logging, auditing and compliance: CloudWatch, CloudTrail, Config and Artifact
    2. 14. Governing many accounts: Organizations, Control Tower and Service Catalog
    3. 15. Ways to use AWS: console, CLI, SDKs and infrastructure as code
    4. 16. Amazon EC2: virtual servers and instance types
    5. 17. Elasticity: Auto Scaling and Elastic Load Balancing
    6. 18. Containers and serverless: ECS, EKS, Fargate, Lambda and more
  4. Storage, databases and networking (domain 3, 34%)

    1. 19. Block and file storage: EBS, instance store, EFS and FSx
    2. 20. Amazon S3: buckets, storage classes and lifecycle policies
    3. 21. Hybrid storage, backup and disaster recovery
    4. 22. Databases: RDS, Aurora, DynamoDB, ElastiCache and more
    5. 23. Networking: VPCs, subnets, gateways and security layers
    6. 24. Connecting and delivering: Route 53, CloudFront, VPN and Direct Connect
  5. Analytics, AI, integration and more (domain 3)

    1. 25. Analytics services: Athena, Glue, Kinesis, Redshift and Quick
    2. 26. AI and machine learning services: SageMaker AI, Lex, Rekognition and Amazon Q
    3. 27. App integration and business apps: SQS, SNS, EventBridge, Connect and SES
    4. 28. Developer tools, end-user computing, Amplify and IoT
  6. Billing, pricing and support, then exam practice (domain 4, 12%)

    1. 29. Pricing models: On-Demand, Savings Plans, Reserved, Spot and Dedicated
    2. 30. Billing and cost tools: Budgets, Cost Explorer, Pricing Calculator and tags
    3. 31. AWS Support plans, Trusted Advisor and where to get help
    4. 32. Final review and exam day: every decision on one page
    5. 33. Mock exam 1
    6. 34. Mock exam 2 Exam Pack · $12
  7. Extra practice: mock exams 3 and 4

    1. 35. Mock exam 3 Exam Pack · $12
    2. 36. Mock exam 4 Exam Pack · $12
See the leaderboard

20 min

Databases: RDS, Aurora, DynamoDB, ElastiCache and more

Choose a relational, NoSQL, in-memory, document or graph database, and decide between a managed service and a database you run on EC2.

By the end of this lesson you can

  • Decide between a managed database and one you run on Amazon EC2
  • Tell Amazon RDS and Amazon Aurora apart from Amazon DynamoDB
  • Match ElastiCache, DocumentDB and Neptune to the workloads they fit
  • Spot the word in a question that picks the database

From earlier lessons · 1 of 2

Cedar Lane Books wants its store servers to keep using local file shares while the files are stored in Amazon S3, with recent files cached on site. Which AWS service meets this requirement?

Pick one answer.

From earlier lessons · 2 of 2

A company runs its own software on Amazon EC2 instances. Under the shared responsibility model, who patches the guest operating system?

Pick one answer.

Cedar Lane Books' orders database is MySQL on one tired server in the back office. Someone patches it when they remember. Backups go to a USB drive. On Black Friday, thousands of shoppers check stock at once and the database slows to a crawl. Moving it to AWS is easy. Picking which of eight database services to move it to is the real question.

[4]

Managed database or a database on EC2

Exam depth: know it cold.

A managed database is one where AWS runs the database software for you. You can also install a database yourself on an EC2 instance, a virtual server you control.

TaskDatabase on EC2Amazon RDS (managed)
Power, cooling, hardware.AWS.AWS.
OS install and patching.You.AWS.
Database install and patching.You.AWS.
Backups.You.AWS.
High availability.You.AWS.
Scaling.You.AWS.
Your data, access and query tuning.You.You.

AWS recommends RDS as the default for most relational databases. Choose EC2 only when you need something RDS can't give you. Examples are full control of the operating system, or an engine or version RDS doesn't offer.

[244]

[244]

A company is moving a PostgreSQL database to AWS. It wants AWS to handle operating system patching, database patching and backups. Which option has the LEAST operational overhead?

Pick one answer.

[244]

Relational or NoSQL, in plain words

Exam depth: know it cold.

A relational database stores data in tables with fixed columns, like linked spreadsheets. You ask questions in SQL and join tables together, for example orders joined to customers. Cedar Lane Books' MySQL orders database is relational.

A NoSQL database is anything that isn't tables-and-joins. Three common types: key-value looks up one item by its key, like a cart ID. Document stores each record as a JSON document. Graph stores things and the links between them. NoSQL trades joins for speed and scale.

Rule: "SQL", "tables", "joins" or an engine name like MySQL means relational. "Key-value", "flexible schema" or "millions of requests per second" means NoSQL.

[244][251]

Amazon RDS: managed relational databases

Exam depth: know it cold.

Amazon RDS (Relational Database Service) runs six engines for you: MySQL, PostgreSQL, MariaDB, Oracle Database, Microsoft SQL Server and IBM Db2. Three features matter for the exam.

  • Multi-AZ deployment: RDS keeps a standby copy in a second Availability Zone and copies every write to it at once (synchronously). If the primary fails, RDS fails over to the standby. This is for high availability.
  • Read replica: a read-only copy that gets changes a moment later (asynchronously). Send read-heavy queries to it, such as reports or stock lookups. This is for read scaling.
  • Automated backups: daily snapshots plus change logs. You can restore to any point in time within the retention period you set.

[244][245][246][247]

Rendering diagram…
Multi-AZ standby is for failover. A read replica is for spreading read traffic.

[245][246]

[245]

Cedar Lane Books moved its orders database to Amazon RDS for MySQL. Nightly sales reports now slow down the website because they run heavy read queries on the same database. Which RDS feature should the company use?

Pick one answer.

[245][246]

Amazon Aurora: AWS's own relational engine

Exam depth: know it cold.

Amazon Aurora is a fully managed relational engine that AWS built. It's compatible with MySQL and PostgreSQL, so existing apps and tools work with it. It's part of Amazon RDS.

What sets it apart:

  • Speed: AWS quotes up to six times the throughput of standard MySQL or PostgreSQL on similar hardware.
  • Storage: every write goes to six storage nodes spread across three Availability Zones. Storage grows on its own, up to 256 TiB.
  • Aurora Serverless (recognize it): capacity scales up and down with demand, and you pay only for what you use. Good for spiky or unpredictable workloads.

Rule: "MySQL- or PostgreSQL-compatible" plus "higher performance" or "six copies across three AZs" means Aurora.

[248][249][250]

Amazon DynamoDB: serverless NoSQL

Exam depth: know it cold.

Amazon DynamoDB is a serverless, fully managed NoSQL database. It stores key-value and document data with single-digit millisecond performance at any scale.

Serverless here means no servers to choose, patch or size. DynamoDB has no versions and no maintenance windows. In on-demand mode it scales by itself, and you pay per read and write.

AWS's own example is a shopping cart: the same speed for 10 users or 100 million. DynamoDB doesn't do SQL joins, so it isn't a drop-in home for a relational database.

Global tables (recognize it) copy a table to several AWS Regions. Every copy accepts reads and writes, for global apps.

[251][252]

Cedar Lane Books is building a shopping cart service. Each cart is looked up by its cart ID. Traffic jumps 50 times on Black Friday. The team wants no servers to manage and consistent millisecond response times. Which AWS service meets these requirements?

Pick one answer.

[251]

Multi-AZ standby: always ready, never helps with the reads. Read replica: does the reading, doesn't take over on its own. Picture: Movie-poster parody in bold retro action-film style.

ElastiCache, DocumentDB and Neptune

Exam depth: recognize it.

Give ElastiCache a little extra care: the exam guide names it as the memory-based database.

Amazon ElastiCache is a managed in-memory data store and cache. In-memory means data sits in RAM, which is far faster than reading from disk. It runs the Valkey, Redis OSS or Memcached engines. You put it in front of a database so popular reads, like the bestseller list, skip the database.

ServiceData modelThe question says
Amazon ElastiCacheIn-memory key-value cache."cache", "in-memory", "session store", "leaderboard".
Amazon DocumentDBJSON documents, MongoDB-compatible."MongoDB", "JSON documents".
Amazon NeptuneGraph: items and the links between them."relationships", "fraud detection", "recommendations", "knowledge graph".
Amazon RedshiftData warehouse."analytics", "warehouse", "business reports" (lesson 25).

[253][254][255][256][257]

Match

Match each Cedar Lane Books need to the database service that fits it

Pick an item on the left, then its match on the right.

[254][255][257]

Getting the data there: DMS and SCT

Exam depth: recognize it. Lesson 6 introduced these two.

  • AWS Database Migration Service (AWS DMS) moves the data. It can do a one-time copy, or keep copying ongoing changes so the old database stays usable during the move.
  • AWS Schema Conversion Tool (AWS SCT) converts the schema, the table design and database code, from one engine to another. An example is Oracle to Aurora PostgreSQL. DMS also has a built-in option called DMS Schema Conversion.

Rule: same engine to same engine (MySQL to RDS for MySQL) needs DMS only. Different engines need SCT for the schema, then DMS for the data.

[258][259]

The decision table

The question saysPick
"relational", "SQL", an engine name, "managed".Amazon RDS.
"MySQL- or PostgreSQL-compatible", "higher performance", "six copies".Amazon Aurora.
"key-value", "serverless NoSQL", "millisecond at any scale".Amazon DynamoDB.
"cache", "in-memory", "reduce database load".Amazon ElastiCache.
"MongoDB", "JSON documents".Amazon DocumentDB.
"graph", "relationships", "fraud".Amazon Neptune.
"full OS access", "engine RDS doesn't support".Database on Amazon EC2.
"migrate a database", "convert schema".AWS DMS, plus AWS SCT.

Decision rule: read the data shape first (tables, keys, documents, graph), then the management word (managed, serverless, full control).

[244][248][251][253]

Rendering diagram…
Data shape first, then how much you want to manage.

[244][251]

[7]

Exam-style practice

An online ticket seller's database is overloaded by the same few event pages being read millions of times. The company wants to cut database load and speed up those reads. Which AWS service should it add?

Pick one answer.

[254]

A company runs a database engine that Amazon RDS doesn't support. Its admins also need full access to the operating system to install monitoring agents. Where should the company run this database on AWS?

Pick one answer.

[244]

A company wants to move an on-premises Oracle database to Amazon Aurora PostgreSQL. First it must convert the tables and stored procedures to the new engine. Which AWS tool converts the schema?

Pick one answer.

[258][259]

FlashcardsIndex cardsFlashcards ⚡

Card 1 of 17

[244][245][246][249][251][253][257][259]

Worth keeping

  1. Managed databases hand AWS the OS, patching, backups and failover. EC2 means you do all of it.
  2. Multi-AZ is for surviving failures. Read replicas are for spreading reads.
  3. Relational: RDS, or Aurora for AWS-built speed and six copies across three AZs.
  4. Key-value at any scale with no servers: DynamoDB. Cache: ElastiCache. MongoDB: DocumentDB. Graph: Neptune.
  5. Same engine: DMS. Different engines: SCT for the schema, then DMS.

On the job

Here's how Cedar Lane Books sorts it out. The MySQL orders database moves to Amazon RDS for MySQL with DMS, because the engine stays the same. Multi-AZ keeps orders flowing if one AZ fails, and a read replica serves the stock reports. The new shopping cart goes to DynamoDB, and ElastiCache holds the bestseller list.

A finance or sales colleague doesn't need the engine details. They need one line: "we pay AWS to run the database, so nobody patches servers on weekends." That sentence is often what wins the budget.

The orders database now sits in a private part of AWS that no shopper should reach directly. But what makes a part of AWS "private" in the first place? Next lesson: VPCs, subnets, gateways and the two firewalls that guard them.

Leaderboard

Loading…

50 XP for each lesson you finish, 10 for each right answer. Names show only for learners who turn on Show me on leaderboards.

Embed this practice on your site

Free for classrooms, blogs and study groups. Paste this into any page that accepts HTML.

Report a copyright problem with this lesson

Sources for this lesson (18)

Each fact in the lesson is marked with the number of the page it comes from.

  1. [4]AWS: CLF-C02 Content Domain 3: Cloud Technology and Services
  2. [7]AWS: CLF-C02 Out-of-Scope AWS Services
  3. [244]AWS: What is Amazon Relational Database Service (Amazon RDS)?
  4. [245]AWS: Multi-AZ DB instance deployments for Amazon RDS
  5. [246]AWS: Working with DB instance read replicas
  6. [247]AWS: Introduction to backups
  7. [248]AWS: What is Amazon Aurora?
  8. [249]AWS: High availability for Amazon Aurora
  9. [250]AWS: Using Aurora serverless
  10. [251]AWS: What is Amazon DynamoDB?
  11. [252]AWS: Global tables - multi-active, multi-Region replication
  12. [253]AWS: What is Amazon ElastiCache?
  13. [254]AWS: Common ElastiCache Use Cases and How ElastiCache Can Help
  14. [255]AWS: What is Amazon DocumentDB (with MongoDB compatibility)
  15. [256]AWS: What is a document database?
  16. [257]AWS: What Is Amazon Neptune?
  17. [258]AWS: What is AWS Database Migration Service?
  18. [259]AWS: What is the AWS Schema Conversion Tool?