Explain it simpler
When your program talks to AWS, it has to show an ID card, called credentials, on every request. The SDK (a code library for AWS) looks for that ID card in a fixed order of places, like checking your coat pocket, then your wallet, then your bag, and uses the first one it finds. If an old, powerful card is sitting in your coat pocket, it gets used even though you meant to use the one in your bag. Many AWS answers also come in pages, like search results; you ask for the next page with a bookmark token. Waiters are helpers that keep checking until something is ready, like refreshing a delivery tracker until it says arrived.
Marisol at Tidewater Analytics gets a security ticket on Tuesday morning: a reporting script on an EC2 instance just deleted objects from a bucket it was never supposed to touch. The instance profile only allows read access, so how did the delete succeed? Digging in, she finds that months ago someone exported an administrator's access keys as environment variables on that machine to test something, and never removed them. The same script also quietly processes only the first thousand objects in a bucket that holds fifty thousand. Two bugs, one root cause: not knowing how the SDK actually decides who you are and how much data comes back.
Every call your code makes to AWS is an HTTPS request to a service API, whether it goes through an AWS software development kit (SDK), such as Boto3 for Python or the AWS SDK for JavaScript v3, or through the AWS Command Line Interface (CLI). Each request is signed with Signature Version 4 (SigV4) using credentials, so the service can authenticate the caller and AWS Identity and Access Management (IAM) can authorize the action. Knowing where those credentials come from, how to handle multi-page results, how to wait for long operations and how to handle errors is core developer knowledge on the DVA-C02 exam.
Keep reading for free
Create a free StudyToCert account to read the rest of this lesson: 8 more sections, 6 key terms, a real-world example, an exam tip and self-check questions. Every lesson, lab and practice test is free with an account.