Unit 3: Database Services - Practice Quiz

CSC301 — Introduction To Cloud Computing 60 Questions
0 Correct 0 Wrong 60 Left
0/60

1 In a relational database, data is primarily organized into which of the following structures?

Introduction Relational Databases Easy
A. Key-value pairs only
B. Nested JSON documents
C. Graph nodes and edges
D. Tables with rows and columns

2 Which language is most commonly used to query and manage relational databases?

Introduction Relational Databases Easy
A. SQL
B. XML
C. YAML
D. HTML

3 What does the AWS service name 'Amazon RDS' stand for?

Amazon Relational Database Easy
A. Amazon Rapid Deployment System
B. Amazon Reliable Data Service
C. Amazon Relational Database Service
D. Amazon Remote Data Storage

4 Which of the following tasks does Amazon RDS automate for the user?

Amazon Relational Database Easy
A. Patching, backups, and provisioning of the database
B. Designing the application user interface
C. Writing all SQL queries for the application
D. Creating business logic for the app

5 Which of the following is a database engine supported by Amazon RDS?

Database Engines Easy
A. Cassandra
B. Neo4j
C. MySQL
D. MongoDB

6 Which database engine is AWS's own cloud-native relational engine available on Amazon RDS?

Database Engines Easy
A. Microsoft SQL Server
B. Oracle Database
C. MariaDB
D. Amazon Aurora

7 What does the 'License Included' model in Amazon RDS mean?

Licensing Consideration Easy
A. The license cost is bundled into the hourly RDS price
B. You must buy the license separately from the vendor
C. No license is ever required for any engine
D. The license is only valid for on-premises use

8 Which licensing model lets you use a license you already own on Amazon RDS?

Licensing Consideration Easy
A. Free Tier License
B. Bring Your Own License (BYOL)
C. License Included
D. Open Source License

9 What is the main purpose of a Database Option Group in Amazon RDS?

Database Option groups Easy
A. To enable and configure additional features for a database engine
B. To set the billing currency for the account
C. To store the actual database table data
D. To manage IAM user passwords

10 What does a DB instance class in Amazon RDS primarily determine?

Database Instance classes Easy
A. The programming language of the application
B. The geographic region of the account
C. The number of users allowed to log in
D. The compute and memory capacity of the database instance

11 Which DB instance class category is designed for workloads that require a balance of compute, memory, and network resources?

Database Instance classes Easy
A. Standard (general-purpose) classes
B. Memory-only classes
C. Network-only classes
D. Storage-only classes

12 Which storage type in Amazon RDS is recommended for I/O-intensive workloads needing consistent, high performance?

Storage Easy
A. Magnetic storage
B. General Purpose SSD
C. Provisioned IOPS SSD
D. Cold HDD

13 What does the Amazon RDS storage autoscaling feature do?

Storage Easy
A. Automatically changes the database engine
B. Automatically increases storage when the database is running low on space
C. Automatically deletes old tables to save space
D. Automatically reduces the instance CPU

14 What is the primary purpose of a Read Replica in Amazon RDS?

Read Replicas Easy
A. To automatically delete unused data
B. To act as the write master for all transactions
C. To encrypt the primary database
D. To offload read traffic and improve read performance

15 Data from the primary database is copied to a Read Replica using which type of replication?

Read Replicas Easy
A. Synchronous replication
B. No replication at all
C. Asynchronous replication
D. Manual file copy

16 Which Amazon RDS feature provides high availability by maintaining a standby copy in a different Availability Zone?

High Availability Easy
A. Parameter Group
B. Multi-AZ deployment
C. Option Group
D. Read Replica

17 In a Multi-AZ RDS deployment, what happens automatically if the primary database instance fails?

High Availability Easy
A. The region is changed automatically
B. RDS fails over to the standby instance
C. All data is lost immediately
D. The database is permanently deleted

18 In a single-master database architecture, how many nodes can accept write operations?

Single Master Easy
A. Every node in the cluster
B. No nodes can write
C. Only one node
D. Exactly three nodes

19 What is the key characteristic of a multi-master database configuration?

Multi Master service Easy
A. Only one node ever accepts writes
B. Multiple nodes can accept write operations simultaneously
C. Data cannot be read from any node
D. Writes are disabled entirely

20 Amazon Redshift is best described as which type of service?

Amazon Redshift Easy
A. A content delivery network
B. A simple key-value cache
C. A fully managed data warehouse service
D. A serverless function runtime

21 A development team wants to migrate a self-managed MySQL database to a fully managed service that handles patching, backups, and failover automatically. Which AWS service best fits this requirement?

Amazon Relational Database Medium
A. Amazon S3
B. Amazon Redshift
C. Amazon RDS
D. Amazon DynamoDB

22 Which of the following is not a database engine supported by Amazon RDS?

Database Engines Medium
A. PostgreSQL
B. Oracle
C. Cassandra
D. MariaDB

23 A company wants to run Oracle on RDS without purchasing separate Oracle licenses, instead paying for the license as part of the hourly instance cost. Which licensing model should they choose?

Licensing Consideration Medium
A. Reserved License
B. Open Source License
C. License Included
D. Bring Your Own License (BYOL)

24 An application experiences heavy read traffic that is slowing down the primary database. Which RDS feature most directly addresses this by offloading read queries?

Read Replicas Medium
A. Multi-AZ deployment
B. Option groups
C. Read Replicas
D. Automated backups

25 In an RDS Multi-AZ deployment, what is the primary purpose of the standby instance in a different Availability Zone?

High Availability Medium
A. Serve read traffic to reduce latency
B. Provide automatic failover for high availability
C. Run analytical queries on historical data
D. Store long-term archived backups

26 A workload needs high memory-to-vCPU ratio for an in-memory caching database running on RDS. Which category of RDS instance class is most appropriate?

Database Instance classes Medium
A. General purpose (M class)
B. Storage optimized
C. Burstable (T class)
D. Memory optimized

27 An RDS database has unpredictable but occasionally high I/O demands and the team wants consistent, provisioned IOPS performance. Which storage type should they select?

Storage Medium
A. General Purpose SSD (gp2)
B. Throughput optimized HDD
C. Magnetic storage
D. Provisioned IOPS SSD (io1)

28 A developer needs single-digit millisecond latency for key-value lookups at any scale, with no server management. Which AWS database service is the best fit?

DynamoDB Medium
A. Amazon Redshift
B. Amazon DynamoDB
C. Amazon Aurora
D. Amazon RDS for MySQL

29 A business intelligence team needs to run complex analytical queries across petabytes of structured data. Which AWS service is purpose-built for this data warehousing workload?

Amazon Redshift Medium
A. Amazon DynamoDB
B. Amazon Redshift
C. Amazon RDS
D. Amazon ElastiCache

30 Which characteristic best distinguishes a non-relational (NoSQL) database from a relational database?

Nonrelation Database Medium
A. Strict normalization into related tables
B. Required SQL joins for all queries
C. Mandatory use of foreign keys
D. Flexible schema with no fixed table structure

31 An RDS Oracle database needs the Oracle Enterprise Manager and additional advanced features enabled. Which RDS construct is used to enable such engine-specific optional features?

Database Option groups Medium
A. Parameter groups
B. Subnet groups
C. Security groups
D. Option groups

32 In an Amazon Aurora Multi-Master cluster, what is the key capability that differentiates it from a single-master configuration?

Multi Master service Medium
A. Reads must go to the primary node
B. All nodes can accept read and write operations
C. Only one node can perform writes
D. Writes are disabled during failover

33 In a standard single-master RDS deployment with read replicas, where must all write operations be directed?

Single Master Medium
A. A randomly chosen replica
B. The primary (master) instance only
C. The standby instance in Multi-AZ
D. Any available read replica

34 Which property of relational database transactions guarantees that a transaction either completes entirely or has no effect at all?

Introduction Relational Databases Medium
A. Isolation
B. Durability
C. Atomicity
D. Consistency

35 A team notices that data queried from an RDS read replica is slightly behind the primary. What is the most likely cause?

Read Replicas Medium
A. Asynchronous replication lag
B. Insufficient provisioned IOPS on the client
C. Synchronous commit failure
D. Option group misconfiguration

36 What is the main difference between RDS Multi-AZ and Read Replicas regarding their primary purpose?

High Availability Medium
A. Both only reduce storage costs
B. Both are only for backup retention
C. Multi-AZ is for availability; Read Replicas are for read scaling
D. Multi-AZ is for read scaling; Read Replicas are for availability

37 In DynamoDB, which component uniquely identifies an item and determines how data is partitioned across storage?

DynamoDB Medium
A. Provisioned throughput value
B. Secondary index name
C. Table region
D. Partition (hash) key

38 Why does Amazon Redshift use columnar storage rather than row-based storage for analytical workloads?

Amazon Redshift Medium
A. It enforces stronger foreign key constraints
B. It reduces I/O by reading only the columns needed for a query
C. It eliminates the need for any compression
D. It guarantees single-digit millisecond writes

39 An RDS instance using General Purpose SSD (gp2) storage occasionally runs out of burst I/O credits. What primarily determines the baseline IOPS for gp2 volumes?

Storage Medium
A. The number of read replicas
B. The allocated storage size
C. The instance class memory
D. The option group settings

40 A company already owns valid Microsoft SQL Server licenses and wants to reuse them on RDS to reduce costs. Which licensing approach supports this?

Licensing Consideration Medium
A. Spot Licensing
B. License Included
C. Bring Your Own License (BYOL)
D. Open Source License

41 A team runs Amazon RDS for PostgreSQL in a single AZ. They enable automated backups with a 7-day retention and set the backup window to overlap peak traffic. Which statement most accurately describes the I/O behavior during the backup on a Single-AZ instance?

Amazon Relational Database Hard
A. The instance is fully offline for the duration of the entire backup window
B. No I/O impact occurs because RDS always takes backups from a standby replica
C. A brief I/O suspension or elevated latency may occur because the snapshot is taken directly from the instance's storage volume
D. I/O is unaffected because backups only read from the transaction log, never the data volume

42 An application uses one RDS for MySQL primary with 5 read replicas. The team notices a replica consistently serves stale data by several minutes under heavy write load. What is the most likely root cause?

Read Replicas Hard
A. Read replicas use synchronous replication and the network ACK was dropped
B. Asynchronous replication combined with single-threaded replica apply causing replication lag
C. The replica was promoted automatically, breaking the replication chain
D. Multi-AZ failover redirected writes to the replica causing conflicts

43 In an RDS Multi-AZ (single standby) deployment, which of the following does the standby instance NOT provide?

High Availability Hard
A. Serving read traffic to offload the primary
B. Reduced downtime during system maintenance
C. Automatic failover target during an AZ outage
D. A synchronous copy of data in a second Availability Zone

44 An architect evaluates Amazon Aurora Multi-Master to allow writes to multiple nodes. Which consequence must they design around?

Multi Master service Hard
A. Each node maintains an independent copy of storage, doubling storage cost per node
B. Reads become eventually consistent across all nodes with no way to get strong consistency
C. Write-write conflicts between nodes must be detected and resolved, as conflicting commits can be rolled back
D. All writes are serialized through a single hidden coordinator node, eliminating conflicts entirely

45 A DynamoDB table uses a partition key userId. During a flash sale, one userId receives 10x the traffic of others and gets throttled despite low overall provisioned capacity usage. What is the correct diagnosis?

DynamoDB Hard
A. The table ran out of total provisioned WCUs across all partitions simultaneously
B. Global secondary indexes always throttle the base table under load
C. A hot partition: traffic concentrated on one partition key exceeds that partition's throughput share
D. DynamoDB disabled the table because a single item exceeded 400 KB

46 You need a query returning items where status = 'ACTIVE' and createdAt > X, but status is not the table's partition key. The most efficient DynamoDB design is to:

DynamoDB Hard
A. Add a Local Secondary Index on status after the table is created
B. Run a full table Scan with a filter expression on status and createdAt
C. Create a Global Secondary Index with status as partition key and createdAt as sort key
D. Use the BatchGetItem API with all possible status values

47 A read of a DynamoDB item immediately after a write sometimes returns the old value. The client used the default read setting. Which change guarantees the latest committed data on reads?

DynamoDB Hard
A. Increase the provisioned read capacity units on the table
B. Enable DynamoDB Accelerator (DAX) in front of the table
C. Switch the table to on-demand capacity mode
D. Set ConsistentRead = true to request a strongly consistent read

48 A Redshift table joined frequently on customer_id and filtered by order_date performs poorly with heavy data redistribution during joins. Which distribution and sort choice best addresses this?

Amazon Redshift Hard
A. DISTKEY on order_date and SORTKEY on customer_id
B. DISTSTYLE ALL on the fact table and no sort key
C. DISTKEY on customer_id and SORTKEY on order_date
D. DISTSTYLE EVEN with a compound sort key on both columns

49 Which statement best explains why Amazon Redshift outperforms a traditional row-store RDBMS for large analytical aggregations?

Amazon Redshift Hard
A. It enforces strict row-level locking that speeds up scans
B. It keeps the entire dataset in a single node's RAM for every query
C. It converts all queries into DynamoDB-style key lookups
D. Columnar storage with compression reads only needed columns, reducing I/O for aggregations

50 A company wants Oracle on RDS but prefers not to purchase separate Oracle licenses. Which RDS licensing model fits, and what is its key constraint?

Licensing Consideration Hard
A. License Included, which permits any Oracle edition and feature without restriction
B. Bring Your Own License, which bundles the license into the instance price
C. License Included, where cost is bundled into the hourly rate but limited to editions AWS offers under that model
D. Bring Your Own License, which lets AWS supply the license automatically at no cost

51 A DBA needs Oracle TDE and Oracle APEX enabled on an RDS instance. Which RDS construct is used to enable these engine-specific features, and how is it applied?

Database Option groups Hard
A. A parameter group where each feature is a key-value parameter
B. An option group containing the options, associated with the DB instance
C. A security group rule allowing the feature's port
D. A subnet group spanning the AZs where the feature runs

52 An RDS workload is memory-bound with a large buffer cache but modest CPU usage. Which instance class family is the most appropriate choice?

Database Instance classes Hard
A. Burstable (T-family) instance classes
B. Compute-optimized (C-family) instance classes
C. Memory-optimized (R-family) instance classes
D. Storage-optimized (I-family) instance classes

53 An RDS instance on General Purpose (gp2) SSD intermittently hits an I/O ceiling during batch jobs despite low average load. What best explains this and the appropriate fix?

Storage Hard
A. gp2 burst I/O credits are exhausted during bursts; move to Provisioned IOPS (io1/io2) for sustained high I/O
B. The storage auto-scaled down; the fix is to disable storage autoscaling
C. Magnetic storage caps throughput; the fix is to enable Multi-AZ
D. Backups consumed all IOPS; the fix is to shorten the retention period

54 A team wants a MySQL-compatible engine that provides storage auto-scaling to 128 TB, 6-way replication across 3 AZs, and faster recovery than standard RDS MySQL. Which engine should they choose?

Database Engines Hard
A. Amazon DynamoDB with the MySQL adapter
B. Amazon RDS for MySQL with Multi-AZ
C. Amazon RDS for MariaDB
D. Amazon Aurora MySQL-Compatible Edition

55 In a relational database enforcing ACID, a transaction transfers funds between two accounts. A crash occurs after debiting account A but before crediting account B. Which ACID property ensures the system does not persist a half-completed transfer?

Introduction Relational Databases Hard
A. Consistency
B. Isolation
C. Atomicity
D. Durability

56 An application stores flexible, schema-varying JSON documents and needs horizontal scalability without complex multi-table joins. Why is a NoSQL store generally preferable to a relational schema here?

Nonrelation Database Hard
A. NoSQL requires a fixed schema defined upfront, which speeds up JSON writes
B. NoSQL guarantees full ACID transactions across all nodes by default, unlike relational systems
C. NoSQL enforces stricter normalization than relational databases, reducing redundancy
D. NoSQL stores denormalized, schema-flexible data and scales horizontally via partitioning without join-heavy normalization

57 In a single-master RDS deployment with read replicas, an application mistakenly sends UPDATE statements to a read replica endpoint. What happens?

Single Master Hard
A. The write is queued and applied once the replica syncs with the master
B. The replica is automatically promoted to master to accept the write
C. The write fails because read replicas are read-only; only the master accepts writes
D. The write succeeds on the replica and is reverse-replicated to the master

58 During an RDS Multi-AZ failover, the application reconnects quickly without changing its connection string. What mechanism makes this possible?

High Availability Hard
A. The client library caches both AZ IPs and switches manually
B. The security group reroutes TCP packets to the standby node
C. The DNS CNAME of the DB endpoint is repointed to the promoted standby
D. The standby inherits the primary's private IP address instantly

59 A company needs to migrate an RDS MySQL database to a different region with minimal downtime and also offload analytics reads there. Which read replica capability supports this?

Read Replicas Hard
A. Cross-region read replicas, which can be promoted to a standalone instance for the final cutover
B. Multi-AZ standbys, which can be relocated to any region on demand
C. DynamoDB global tables bridging MySQL across regions
D. Local secondary indexes replicated to the target region automatically

60 A DynamoDB application must process every item change in near real time to update a search index. Which approach is the intended, scalable solution?

DynamoDB Hard
A. Enable strongly consistent reads so changes trigger callbacks
B. Enable DynamoDB Streams and process change records with AWS Lambda
C. Add a GSI and query it on a fixed interval for new items
D. Poll the table with repeated full Scan operations every few seconds