A voter-registration Lambda must PutItem new registrations and Query by voter ID in DynamoDB while running under the function's execution role. How should the developer implement this?
Select an answer to reveal the explanation.
Short Explanation
The Lambda role is the badge that opens DynamoDB—no stuffed-in access keys required. Use the AWS SDK for PutItem and Query, and keep the role scoped to just those actions on that table. Nightly CSV dumps and console clicks are not how an Associate developer integrates from code.
Full Explanation
Lambda obtains temporary credentials from its execution role. Application code should use the AWS SDK to call DynamoDB PutItem and Query against the registration table, with IAM permissions limited to the required actions and resources. Hardcoding IAM user keys, substituting file exports for API access, or attaching AdministratorAccess violate least privilege and standard SDK integration practice.