AWS Certified Developer - by Christophe Limpalair Flashcards

1
Q

Do partition keys always have to be unique?

A

Only for simple primary keys (when we only have a partition key and no sort key). If we have a composite key (partition + sort key), then the partition key does not have to be unique as long as the sort key is.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
2
Q

When can DynamoDB secondary indexes be created?

A

Local secondary indexes must be created at table creation, while Global secondary indexes can be created on a table that already exists.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
3
Q

What request is required to put all parts of a file together when using multi-part upload?

A

The “complete” request

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
4
Q

What three different versioning states can a bucket have?

A

Unversioned (the default)
Versioning-Enabled
Versioning-Suspended

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
5
Q

Can we enable versioning for specific objects?

A

No, object versioning is done at the bucket level, not the object level.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
6
Q

How can you give your code permissions to query AWS services when running outside of the AWS environment?

A

Access keys (access key ID and secret access key)

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
7
Q

What are some main differences between Local Secondary Indexes and Global Secondary Indexes?

A

LSIs share read/write capacity with the parent table. They also use the same partition key, but give the ability to have different sort keys. LSIs support strongly consistent reads.

GSIs have separate read/write capacity than the parent table. They provide the ability to have different partition keys AND sort keys. GSIs do not support strongly consistent reads, only eventually consistent.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
8
Q

Can versioning be enabled on buckets that already have objects in them?

A

Yes. Those objects already in the bucket will receive a Version ID of null.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
9
Q

How can we set the Version ID for objects in S3?

A

We don’t. This is automated by S3. In fact, we can’t even edit the Version ID.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
10
Q

What happens if you delete a versioned object?

A

You will get a 404 Not Found error if you try to retrieve it, but you can still specify an existing Version ID to retrieve specific versions.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
11
Q

What happens if you delete a specific version of an object with its Version ID?

A

That version is no longer in your bucket but you can still access the latest version without receiving a 404 Not Found error.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
12
Q

What are some key characteristics of local secondary indexes?

A

Local secondary indexes have the same partition key as the parent table, but different sort keys. LSIs share read/write capacity units with the parent table.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
13
Q

What is the best way to give your code permissions to access other AWS services when running on EC2 instances?

A

IAM roles

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
14
Q

In DynamoDB, what are the two different kinds of primary keys?

A
  • Partition key (Simple primary key)
  • ## Partition key and sort key (Composite key)Previously known as (but could still be on the exam):
  • Hash key
  • Hash key and range key
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
15
Q

Each AWS accounts can own how many buckets?

A

100

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
16
Q

To enable encryption at rest on Amazon S3, we must use keys created and managed by AWS.

A

False. We also have the option to create and manage our own keys.

17
Q

At what size file should you use multi-part upload?

A

100mb

18
Q

What is true about DynamoDB?

A

DynamoDB uses optimistic concurrency control, and DynamoDB uses conditional writes for consistency.

19
Q

Can you completely disable versioning once it’s enabled?

A

No, you can only suspend versioning. This will make it so that any newly uploaded object will receive a Version ID of null. Other versions will remain in the bucket.

20
Q

What are some key characteristics of global secondary indexes?

A

Global secondary indexes can be created on tables that already exist. They can have different partition keys and sort keys. GSIs have separate read/write capacity units.