AWS Certified Developer - by Christophe Limpalair Flashcards
Do partition keys always have to be unique?
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.
When can DynamoDB secondary indexes be created?
Local secondary indexes must be created at table creation, while Global secondary indexes can be created on a table that already exists.
What request is required to put all parts of a file together when using multi-part upload?
The “complete” request
What three different versioning states can a bucket have?
Unversioned (the default)
Versioning-Enabled
Versioning-Suspended
Can we enable versioning for specific objects?
No, object versioning is done at the bucket level, not the object level.
How can you give your code permissions to query AWS services when running outside of the AWS environment?
Access keys (access key ID and secret access key)
What are some main differences between Local Secondary Indexes and Global Secondary Indexes?
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.
Can versioning be enabled on buckets that already have objects in them?
Yes. Those objects already in the bucket will receive a Version ID of null.
How can we set the Version ID for objects in S3?
We don’t. This is automated by S3. In fact, we can’t even edit the Version ID.
What happens if you delete a versioned object?
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.
What happens if you delete a specific version of an object with its Version ID?
That version is no longer in your bucket but you can still access the latest version without receiving a 404 Not Found error.
What are some key characteristics of local secondary indexes?
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.
What is the best way to give your code permissions to access other AWS services when running on EC2 instances?
IAM roles
In DynamoDB, what are the two different kinds of primary keys?
- 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
Each AWS accounts can own how many buckets?
100