passdrill

RDS, DynamoDB & Databases

24 cards · AWS SAA-C03 · answer each one, then read the explanation. Your score tallies below.

0 / 24 answered · 0 correct

AWS SAA-C03 · RDS, DynamoDB & Databases · Card 001/024 easy

A solutions architect needs an RDS deployment that automatically fails over to a synchronized standby in a different Availability Zone within about 1-2 minutes if the primary database instance becomes unavailable, with no application-level read scaling requirement. Which RDS feature should be enabled?

  1. Multi-AZ deployment
  2. A read replica in the same Availability Zone
  3. A read replica promoted to a standalone instance
  4. RDS Proxy configured with a single endpoint
AWS SAA-C03 · RDS, DynamoDB & Databases · Card 002/024 medium

A DynamoDB table storing IoT sensor readings uses the sensor's model number as the partition key, and there are only six distinct model numbers across millions of devices. Under heavy write load, requests to the table are frequently throttled even though the table's overall provisioned throughput is far from the account limit. What is the most likely cause?

  1. The table is missing a global secondary index
  2. The low-cardinality partition key concentrates traffic onto a small number of partitions, creating hot partitions
  3. DynamoDB Streams is enabled and consuming write capacity
  4. The items exceed the 400 KB item size limit
AWS SAA-C03 · RDS, DynamoDB & Databases · Card 003/024 easy

A team wants to restore an RDS database to its exact state as of a specific timestamp 40 minutes ago, before a bad deployment script ran. The database has automated backups enabled with a 7-day retention period. What should they do?

  1. Restore the most recent daily snapshot and manually replay the last 40 minutes of transactions
  2. Reboot the DB instance with the "restore" option enabled
  3. Use the point-in-time recovery feature to restore to the desired timestamp, which creates a new DB instance
  4. Enable Multi-AZ and promote the standby, which reverts to the last snapshot
AWS SAA-C03 · RDS, DynamoDB & Databases · Card 004/024 medium

An application serving users on three continents needs a DynamoDB table where writes made in any region are automatically propagated to the table's replicas in the other regions, with every region able to accept both reads and writes. Which feature provides this?

  1. Cross-region read replicas configured through RDS
  2. A single-region table accessed over AWS Global Accelerator
  3. DynamoDB Accelerator (DAX) with a shared cluster across regions
  4. DynamoDB global tables, which replicate a table across regions in a multi-active configuration
AWS SAA-C03 · RDS, DynamoDB & Databases · Card 005/024 medium

A serverless application uses AWS Lambda functions that each open a new connection to an RDS MySQL database on every invocation, and during traffic spikes the database frequently runs out of available connections. Which change addresses this without redesigning the application's connection logic?

  1. Place Amazon RDS Proxy in front of the database and have the functions connect through it
  2. Increase the Lambda function's memory allocation
  3. Switch the database from RDS to DynamoDB on-demand mode
  4. Enable RDS storage autoscaling on the DB instance
AWS SAA-C03 · RDS, DynamoDB & Databases · Card 006/024 easy

A startup's DynamoDB table serves a workload with highly unpredictable traffic spikes tied to viral social media mentions, and the team does not want to forecast capacity or manage scaling policies. Which DynamoDB capacity mode best fits this workload?

  1. Provisioned capacity with no auto scaling configured
  2. On-demand capacity mode, which bills per request and adapts instantly to traffic changes
  3. Provisioned capacity fixed at the account's maximum throughput
  4. Reserved capacity purchased for a one-year term
AWS SAA-C03 · RDS, DynamoDB & Databases · Card 007/024 easy

An RDS DB instance's allocated storage keeps approaching capacity as data grows, and the team wants AWS to increase the storage automatically without any downtime or manual intervention, up to a limit they define. Which RDS feature should they enable?

  1. Multi-AZ deployment
  2. A larger DB instance class
  3. RDS storage autoscaling, which increases allocated storage when free space drops to a low threshold
  4. Manual storage modification triggered by a CloudWatch alarm
AWS SAA-C03 · RDS, DynamoDB & Databases · Card 008/024 hard

A table's access pattern requires querying items by an alternate sort key while still filtering within the same partition key as the base table, and the team wants the option to request strongly consistent reads on that query. The table has already been in production for a year. Which type of DynamoDB secondary index can satisfy this, and why?

  1. A global secondary index, because only global secondary indexes support strongly consistent reads
  2. A local secondary index, but only if it is created before any items are written to the table
  3. A global secondary index, because it can be added at any time after table creation and its own provisioned throughput is separate from the base table's
  4. Neither index type applies retroactively; a local secondary index must be defined at table creation time, so a strongly consistent alternate-sort-key query on an existing table cannot be added this way
AWS SAA-C03 · RDS, DynamoDB & Databases · Card 009/024 hard

A company runs an Aurora database supporting a global application and needs the ability to fail over to a secondary AWS region within about a minute of a regional disaster, with typical replication lag measured in low single-digit seconds rather than the minutes-long lag of logical replication. Which Aurora feature is designed for this?

  1. Aurora Global Database, which replicates at the storage layer across regions with typical lag of about one second and managed failover in about a minute
  2. A cross-region read replica created through standard binlog-based MySQL replication
  3. Multi-AZ deployment extended across two AWS regions
  4. Aurora Serverless v2 configured with a minimum capacity of 0
AWS SAA-C03 · RDS, DynamoDB & Databases · Card 010/024 medium

A team wants to automatically send a notification whenever a new order item is inserted into a DynamoDB table, without polling the table on a schedule. The change should be captured and processed within seconds of the write, and it is acceptable if very old, unprocessed changes eventually become unavailable. Which approach fits?

  1. Query the table every few seconds using a scheduled EventBridge rule and diff the results
  2. Enable DynamoDB Streams on the table and configure a Lambda function as a trigger to process each stream record
  3. Enable RDS event notifications on the table
  4. Use a DynamoDB global secondary index and subscribe to it via SNS
AWS SAA-C03 · RDS, DynamoDB & Databases · Card 011/024 easy

A database administrator wants to enable the native backup and restore feature for a SQL Server RDS instance, which is an add-on capability provided by the engine rather than a core configuration setting like memory allocation. Which RDS construct is used to enable engine-specific add-on features like this?

  1. A DB subnet group
  2. A parameter group
  3. An option group, which enables optional, engine-specific features such as native backup and restore
  4. A read replica
AWS SAA-C03 · RDS, DynamoDB & Databases · Card 012/024 hard

Two application processes read the same DynamoDB item at nearly the same time, each intending to update a different attribute, and the team wants to guarantee that neither process silently overwrites a change made by the other between the read and the write. Which mechanism should the application implement?

  1. Enable DynamoDB Streams so each process can see the other's writes after the fact
  2. Use a global secondary index so each process writes to a different index
  3. Increase the table's provisioned write capacity so both writes always succeed
  4. Include a ConditionExpression that checks a version attribute matches the value read, so a concurrent write causes the losing process's request to fail with a conditional check failure
AWS SAA-C03 · RDS, DynamoDB & Databases · Card 013/024 easy

A company's disaster recovery plan requires that a copy of its RDS database snapshots exist in a second, geographically distant AWS region, but RDS automated backups and manual snapshots are stored only in the region where the DB instance runs. What should the team do to meet this requirement?

  1. Manually copy the RDS snapshot to the second region, which creates an independent snapshot there that can be used to restore a new DB instance in that region
  2. Enable Multi-AZ, which automatically stores a duplicate snapshot in a second region
  3. Rely on the default automated backup behavior, which already replicates snapshots cross-region
  4. Convert the DB instance to Aurora, since only Aurora snapshots can be copied across regions
AWS SAA-C03 · RDS, DynamoDB & Databases · Card 014/024 easy

A reporting team needs to run ad hoc SQL queries that join a customer table with an orders table and aggregate totals by region, and the schema and relationships are expected to evolve as new reports are requested. Which database is the more natural fit for this workload?

  1. DynamoDB, because it scales writes better under any workload
  2. Amazon RDS, because its relational engine supports ad hoc SQL joins and aggregations across normalized tables
  3. DynamoDB, because global secondary indexes can replace SQL joins for any query pattern
  4. Amazon RDS, but only if DynamoDB Accelerator (DAX) is attached to it
AWS SAA-C03 · RDS, DynamoDB & Databases · Card 015/024 easy

A team's RDS for PostgreSQL primary instance is saturated by a growing volume of read-only reporting queries from a BI tool, and write latency on the primary is starting to suffer as a result. The team wants to offload the read-only reporting traffic to a separate, asynchronously updated copy of the database without changing the primary's high-availability configuration. Which RDS feature should they add?

  1. A Multi-AZ standby instance, since standby instances in a Multi-AZ deployment can directly serve read queries from a BI tool
  2. One or more RDS read replicas, which use asynchronous, engine-native replication and can be queried directly to offload read traffic from the primary
  3. A second Multi-AZ deployment in a different Availability Zone pointed at the same storage volume as the primary
  4. AWS Database Migration Service configured to continuously replicate the primary's tables into a new RDS instance for one-time reporting
AWS SAA-C03 · RDS, DynamoDB & Databases · Card 016/024 medium

An application needs a caching layer in front of its database to store frequently accessed data as sorted leaderboard entries that must survive a node reboot, and the team also wants built-in replication so a replica can take over if the primary cache node fails. Which ElastiCache engine and configuration fits, and why?

  1. ElastiCache for Memcached, because its multi-threaded architecture uses multiple CPU cores to serve leaderboard reads faster than a single-threaded engine
  2. ElastiCache for Memcached with automatic node recovery enabled, since Memcached automatically re-elects a replica as primary when a node fails
  3. ElastiCache for Redis, because it supports native sorted-set data structures for leaderboards, disk snapshots for persistence, and primary-replica replication for failover
  4. ElastiCache for Redis configured as a single node with no replicas, since Redis snapshots alone are sufficient to fail over between nodes automatically
AWS SAA-C03 · RDS, DynamoDB & Databases · Card 017/024 easy

A trading application performs the same handful of DynamoDB reads for popular instruments repeatedly, and the team needs to cut typical read response times from single-digit milliseconds down to microseconds without rewriting the application's DynamoDB API calls or accepting reduced read throughput. Which solution fits, and what tradeoff does it require?

  1. DynamoDB Accelerator (DAX), an API-compatible in-memory cache that serves eventually consistent reads at microsecond latency, at the cost of not supporting strongly consistent reads through the cache
  2. ElastiCache for Redis placed in front of DynamoDB, since Redis is API-compatible with DynamoDB's SDK calls and requires no changes to application code
  3. Increasing the table's provisioned read capacity units until latency drops to microseconds
  4. Enabling DynamoDB point-in-time recovery, which caches recent reads in memory for faster access
AWS SAA-C03 · RDS, DynamoDB & Databases · Card 018/024 easy

A DynamoDB table stores session records that should be automatically removed roughly a day after they expire, without the application running a scheduled job to scan and delete old items, and without consuming any write capacity for the expiring items. Which feature should the team configure, and what must the expiration attribute contain?

  1. DynamoDB Streams, configured to trigger a Lambda function that deletes each item once its session attribute indicates expiry
  2. A global secondary index on a session-expiry attribute, combined with a scheduled Scan that deletes items older than the cutoff
  3. On-demand backups scheduled daily, restoring only the non-expired items into a new table each day
  4. Time to Live (TTL), pointed at an attribute holding the expiration time as a Number in Unix epoch seconds; DynamoDB deletes expired items automatically, typically within a few days, without consuming write throughput
AWS SAA-C03 · RDS, DynamoDB & Databases · Card 019/024 medium

An order-processing workflow must decrement an inventory item's stock count and create a new order record in the same DynamoDB table as a single all-or-nothing operation, so that a failure partway through never leaves stock decremented without a corresponding order, or vice versa. Which DynamoDB capability provides this, and what is the cost implication of using it?

  1. BatchWriteItem, which guarantees that either every action in the batch succeeds or none of them do
  2. TransactWriteItems, which groups the actions into a single all-or-nothing operation with atomicity, consistency, isolation and durability guarantees, at roughly double the write capacity of the equivalent non-transactional writes
  3. DynamoDB Streams combined with a Lambda function that rolls back the stock decrement if the order record fails to write
  4. Global tables, which apply writes across regions atomically so that either both actions succeed everywhere or neither does
AWS SAA-C03 · RDS, DynamoDB & Databases · Card 020/024 easy

A finance team needs to run BI queries that aggregate billions of rows of historical transaction data across many columns for quarterly reporting, and the workload is analytical, scanning and aggregating large columns, rather than transactional reads and writes of individual records. Which AWS database service is purpose-built for this workload, and why?

  1. Amazon RDS for PostgreSQL, because its row-based storage engine is optimized for scanning and aggregating large historical datasets
  2. Amazon DynamoDB, because its single-digit-millisecond key-based lookups make full-table aggregation queries fast at any scale
  3. Amazon Redshift, a petabyte-scale data warehouse using columnar storage and massively parallel processing to make large-scale analytical aggregation queries fast
  4. Amazon Aurora Serverless v2, because its automatic compute scaling makes ad hoc analytical queries over billions of rows fast without any dedicated warehouse
AWS SAA-C03 · RDS, DynamoDB & Databases · Card 021/024 medium

A retailer's Aurora database experiences heavy load only during periodic flash sales and is otherwise nearly idle, and the team wants compute capacity to scale up and down automatically in fine-grained increments within seconds, without manually resizing the DB instance class before and after each sale. Which approach fits, and how does capacity scale?

  1. Aurora Serverless v2, which measures capacity in Aurora Capacity Units and scales a writer or reader up or down in increments as small as 0.5 ACUs, without dropping existing connections during most scaling events
  2. A provisioned Aurora DB cluster with auto scaling enabled on the writer instance class, which swaps to a larger instance class within seconds of a load spike
  3. Aurora Serverless v2 configured with a single fixed ACU value equal to the peak flash-sale capacity, so no further scaling logic is needed
  4. RDS Proxy placed in front of the writer instance, which absorbs traffic spikes by pooling connections so the underlying instance class never needs to change
AWS SAA-C03 · RDS, DynamoDB & Databases · Card 022/024 hard

A company is migrating from a self-managed on-premises Oracle database to Aurora PostgreSQL and needs the cutover to happen with only a few minutes of downtime, even though the full data copy will take many hours. The schema also needs to be converted from Oracle's dialect to PostgreSQL before any data loads. Which combination of AWS services and migration technique fits?

  1. AWS DMS alone, performing a one-time full load of the data; schema conversion between different database engines is handled automatically by DMS during the full load
  2. AWS Backup to create a snapshot of the on-premises database, then restore that snapshot directly into a new Aurora PostgreSQL cluster
  3. AWS DMS Fleet Advisor, which converts the Oracle schema to PostgreSQL and performs the full data load and ongoing replication in a single step
  4. The AWS Schema Conversion Tool (or DMS Schema Conversion) to convert the Oracle schema to PostgreSQL first, then AWS DMS to perform the full load followed by change data capture (CDC) that replicates ongoing changes until a brief final cutover
AWS SAA-C03 · RDS, DynamoDB & Databases · Card 023/024 easy

A team needs the ability to restore a DynamoDB table to its exact state as of any specific second within roughly the last five weeks, in case a bug silently corrupts data and isn't noticed for several days. The feature must be turned on explicitly per table before it is needed. Which feature should they enable, and how does a restore work?

  1. DynamoDB Streams, which retains a rolling window of item-level changes that can be replayed in place to reconstruct the table's state as of any past second
  2. Point-in-time recovery (PITR), which continuously backs up the table for a fixed 35-day window and restores the chosen second's state into a new table, since restores can't be applied in place
  3. On-demand backups taken manually every hour, restored in place over the existing table to roll it back to the desired hour
  4. Global tables, since replica tables in other regions retain older versions of items that can be queried directly for any past point in time
AWS SAA-C03 · RDS, DynamoDB & Databases · Card 024/024 hard

A social platform needs to model and query millions of user connections, likes, and follows to power a friend-of-friend recommendation feature, running queries like 'find people two connections away who share three or more mutual friends' with millisecond latency. Which AWS database service and query approach fits this best, and why?

  1. Amazon DynamoDB with a single global secondary index on the connection type, since key-value lookups are the fastest way to traverse multi-hop relationships
  2. Amazon Redshift, using SQL joins across a normalized schema of users and connections, since columnar storage and massively parallel processing make deep multi-hop joins fast at any depth
  3. Amazon Neptune, a purpose-built graph database supporting the Gremlin and openCypher property-graph query languages, optimized for traversing highly connected data with millisecond latency
  4. Amazon Aurora PostgreSQL, using recursive common table expressions (CTEs) over a foreign-key-linked users/connections schema to walk each hop of the friendship graph