wayground logo

Free Printable Worksheets

Font size

S
M
L
XL
Worksheets

AWS Database & Networking

Total questions: 45

Worksheet time: 23mins

Name
Class
Date
1.

How many replicas does RDS Aurora support?

a)

15

b)

10

c)

5

d)

5 for Aurora Postgres, 15 for Aurora MySQL

2.

If you need to support tens of thousands of concurrent reads on a regular basis, which database engine might you choose?

a)

DynamoDB

b)

Redshift

c)

RDS Aurora

d)

Definitely not Redshift; more info is needed to decide between DynamoDB and Aurora.

3.

If you needed to support 10 million reads and writes per second with consistent low latency, what database engine might you choose?

a)

Aurora RDS

b)

DynamoDB

c)

Redshift

d)

DynamoDB, or Aurora DBS if it has enough read replicas

4.

What is the one thing that most contributes to RDS Aurora's awesome performance and features?

a)

Distributed multi-master compute nodes

b)

Easy, automated and fast failover

c)

Global databases (cross-region read replicas)

d)

Distributed logical storage tier

5.

When does RDS Aurora performance significantly out-perform standard MySQL or Postgres?

a)

High memory utilization

b)

High concurrency

c)

High availability

d)

High CPU utilization

6.

Does each DynamoDB partition key get its own, dedicated partition storage node?

a)

Yes

b)

No

7.

What is the most optimal way to populate a large data set into Amazon Redshift?

a)

Using INSERT to insert 1 row at a time

b)

Using INSERT to insert many rows at once

c)

Using COPY to load a single file from S3

d)

Using COPY to load multiple files from S3 at once

8.

A Redshift table's distribution style determines:

a)

How data is encoded (aka compressed) on disk

b)

How data is sorted on disk

c)

Which nodes data is stored on

d)

Which node acts as the leader node

9.

DynamoDB has a flexible schema, therefore I do not have to worry about my schema design?

a)

True

b)

False

10.

It is critical to understand ___________________ when designing a DynamoDB table? Select the best answer.

a)

How many hot partitions you will need

b)

The number of partitions in your table

c)

read and write patterns of your application

d)

how many users you will have

11.

How can we scale read capacity in RDS Aurora?

a)

Increase the size of our primary instance (scale up)

b)

Add read replicas (scale out)

c)

Add a cache, like Elasticache for Redis, in front of our database

d)

All of the above

12.

What are we allowed to do with one "write capacity unit" in DynamoDB? Select the best answer.

a)

Write one item per second

b)

Write one item per second, up to 1 KB per item

c)

Write one item per second, up to 400 KB per item

d)

Write one item per second, up to 4 KB per item

13.

What is a DynamoDB "Primary Key"?

a)

A partition key

b)

a distribution key

c)

a sort key, and an optional partition key

d)

A partition key, and an optional sort key

14.

What does a DynamoDB sort key do?

a)

Allows us to the UpdateItem() API without the need to update a global secondary index (GSI)

b)

Allows us to use the PutItem() API without the need to update a local secondary index (LSI)

c)

Allow us to use the Query() API to find our data faster with less searching

d)

Allow us to use the Scan() API to find our data faster with less searching

15.

Why do we use Local Secondary Indexes (LSIs) or Global Secondary Indexes (GSIs) in DynamoDB?

a)

Trick question; DynamoDB supports indexes for the query planner but does not enforce them when you write items.

b)

To let us use GetItem() or Query() APIs on different partition and/or sort keys

c)

To let us use Scan() more efficiently

d)

What's an index?

16.

Which two database engines are compatible with RDS Aurora?

a)

MySQL

b)

Microsoft SQL Server

c)

MariaDB

d)

Postgres

e)

Oracle

17.

With the DynamoDB ______________ capacity mode, you pay for capacity whether or not you use it. With ____________ capacity, you pay only for the API calls you make.

a)

provisioned, reserved

b)

auto-scaling, provisioned

c)

provisioned, on-demand

d)

on-demand, provisioned

18.

What are the Amazon DynamoDB read and write limits for a single partition?

a)

100 WCU / 300 WCU

b)

1,000 WCU / 3,000 RCU

c)

3,000 WCU / 10,000 RCU

d)

10,000 RCU / 10,000 WCU

19.

What does DynamoDB Accelerator (DAX) allow you to do?

a)

It's a write-through cache, so you can scale past 1,000 WCUs / partition and achieve microsecond write latency

b)

It's an in-memory cache, so you can scale past 3,000 RCUs / partition and achieve microsecond read latency

20.

Can you model relational data in an Amazon DynamoDB table?

a)

No

b)

Yes, but you should never do this

c)

Yes, but this may or may not be the right fit

21.

Which of the following are examples of "write sharding"? (Select two)

a)

Using one database for 2018 data and another database for 2019 data

b)

Appending a year suffix to a partition key to force items to different partitions, e.g. "customer1_2018" and "customer1_2019"

c)

Creating one or more read replicas to scale write throughput

d)

Distributing writes across two (or more) concurrent connections to the same database

22.

An RDS Aurora replica may also act as a failover target

a)

true

b)

false

23.

An RDS Postgres (non-Aurora) replica can act as a failover target?

a)

true

b)

false

24.

What is a recovery time objective (RTO)?

a)

How much data you lose during a failure

b)

How long before you can use your database after a failure

c)

A made-up phrase

25.

If using a multi-AZ deployment, which database has a recovery point objective (RPO) of zero?

a)

Redshift

b)

DynamoDB

c)

RDS MySQL

d)

Aurora MySQL

e)

Elasticache for Redis

26.

What benefits does encoding (aka compression) typically give us with Amazon Redshift? (select three)

a)

Encryption at rest

b)

Less storage needed

c)

faster performance

d)

Lower cost

27.

Amazon Redshift is simply a re-branded Postgres database

a)

True

b)

False; it was based on Postgres but backend is completely redesigned to give awesome performance at a low cost

28.

The AWS SDK for Python is named "Boto3". Where does "boto" come from?

a)

Boto was the last name of the engineer largely behind the SDK's creation.

b)

Boto is a type of dolphin that swims in the Amazon river

c)

Boto means "vote" in Fillipino, as in "we vote for AWS!"

d)

The original vote was for "BoatyMcBoatFace", but the SDK team abbreviated it "boto" because AWS Marketing gave BoatyMcBoatFace a hard no

29.

Aurora MySQL is up to _______ faster than standard MySQL, and Aurora Postgres is up to _____ faster than standard Postgres.

a)

5X / 3X

b)

3X / 5X

c)

100% / 300%

d)

3,000% / %5,000

30.

Aurora Global Databases are?

a)

multi-region, read replicas

b)

multi-region, multi-master

c)

multi-AZ, read replicas

d)

multi-AZ, multi-master

31.

DynamoDB Global Tables are?

a)

multi-region, multi-master

b)

multi-region, read replicas

c)

multi-AZ, multi-master

d)

multi-AZ, read-replicas

32.

Because of Redshift's columnar storage, would Redshift typically be faster or slower than Aurora when retrieving a single row with many columns? Why?

a)

Faster, because the entire row is stored together at the same place on disk due to the superior compression you get with columnar storage.

b)

Slower, because columns are stored at separate places on disk and retrieving many columns at once means you have to pull data from many places on disk.

33.

What do we need to periodically do in Postgres (or Redshift) to remove deleted rows from storage and sort new data?

a)

RE-INDEX

b)

ANALYZE

c)

RE-PARTITION

d)

VACUUM

e)

ENCODE

34.

Which database supports the highest throughput and concurrency?

a)

Redshift

b)

Aurora

c)

DynamoDB

d)

RDS (non-Aurora)

e)

Oracle

35.

Which database(s) support ACID-compliant transcations?

a)

RDS (non-Aurora)

b)

RDS Aurora

c)

Redshift

d)

DynamoDB

36.

Your customer uses a single Aurora RDS database for both transactional and analytics workloads. They ask you whether they should move their analytics to Redshift. Is this a good idea?

a)

Yes! They should not do analytics in a transactional database like Aurora

b)

Trick question; you can't do analytics workloads in a transactional database like Aurora

c)

Maybe! why are they asking? Are they running into problems with Aurora?

d)

Stranger Things season 3 was better than season 2

37.

When would you use a bastion host?

a)

When I want a private EC2 instance to pull updates from the internet, but I do not want the internet to send unsolicited requests to my EC2.

b)

When a private EC2 instance needs to send data out to the public internet but I do not want the internet to talk back to my instance.

c)

When I want to securely connect to my public EC2 instance from the internet.

d)

When I want to securely connect to my private EC2 instance from the internet.

38.

What does a NAT Gateway (managed by AWS) or a NAT instance (managed by customer on EC2) allow?

a)

Allows you to securely connect to your private EC2 instance

b)

Allows your private EC2 instance to make requests from the internet, but does not allow the internet to make requests to your instance

c)

Allows the internet to make requests to your private EC2 instance, but does not allow your EC2 instance to send sensitive data out to the internet

d)

It allows two-way communication between your public and private subnets (assuming your security groups, NACLs, and OS firewalls allow it)

39.

Your customer wants to make frequent (20 times per day) SQL queries against a large (~1 TB) dataset in S3. They've been loading the data into Redshift, which works fine, but they don't want to deal with deploying and managing a database if they don't have to. They just learned about Amazon Athena, they are super excited, and they want to know if they should use it to directly query data in S3 instead of Redshift. Can they do this?

a)

No, Athena does not support SQL; Athena can only use PySpark; Athena would be better, but they would have to convert to Spark.

b)

No, Athena does not perform well on large data sets (> 500 GB). It would work but it would be too slow to be practical.

c)

Yes, Athena can run SQL queries directly on S3. This is a fast, simple solution and better than Redshift.

d)

Yes, they can use use Athena and it would be easier than maintaining a Redshift cluster... but their use case might make Athena too expensive since it charges $5 / TB scanned (20 x 1 TB x $5 = $100 per day or ~$3000 / month!!!!)

40.

How much data can a single Aurora database hold?

a)

16 TB

b)

16 TB, or more if using read replicas

c)

64 TB

d)

64 TB, or more if using read replicas

41.

How much data can a single Redshift cluster hold?

a)

2 Petabytes

b)

2 Petabytes, or Exabytes if using S3 + Redshift Spectrum

c)

2 Petabytes per node, up to 128 nodes (256 PB)

d)

200 Terabytes, or Exabytes if using S3 + Redshift Spectrum

42.

How much data can a single DynamoDB table hold?

a)

400 KB

b)

400 TB

c)

4 PB

d)

There is no practical limit on a table's size

43.

Which of these is NOT a private IP CIDR range according to the RFC1918 standard?

a)

10.0.0.0/16

b)

172.20.0/16

c)

192.168.1.0/24

d)

200.0.1.0/16

44.

RFC 1918 defines which IP ranges should be used for private-only networks. Is it possible to use other IPs (aka public IPs) as private IP addresses?

a)

No, hardware (switches, hubs, routers, etc.) will not allow this.

b)

No, modern operating systems (Linux, Windows, etc.) will not allow this.

c)

Yes; RFC 1918 is a recommendation but often isn't followed and there is low risk of a problem.

d)

Yes, but its not recommended; you might run into unexpected results or errors since those IPs might already be assigned and used by other public websites or networks.

45.

How fast does Aurora typically complete a failover?

a)

less than 5 minutes

b)

less than 1 minute

c)

less than 30 seconds

d)

immediately, it's RPO is zero