AWS Certified Developer Associate (#112)

A Developer is testing a Docker-based application that uses the AWS SDK to interact with Amazon DynamoDB. In the local development environment, the application has used IAM access keys. The application is now ready for deployment onto an ECS cluster. How should the application authenticate with AWS services in production?

Configure an ECS task IAM role for the application to use
Refactor the application to call AWS STS AssumeRole based on an instance role
Configure AWS access key/secret access key environment variables with new credentials
Configure the credentials file with a new access key/secret access key