A gaming company has a mobile application that needs to securely write game state files to an Amazon S3 bucket. Millions of players will use this application, and they must not have permanent AWS credentials embedded in the app code. Which approach should the company use to grant this access?
- ACreate a single IAM user with write permissions, generate long-term access keys, and embed them in the application code.
- BUse the AWS account root user access keys to authenticate each mobile application session directly.
- Authenticate users through a public identity provider and assume an IAM role to obtain temporary security credentials.Answer
- DRequire AWS to automatically authenticate the client-side mobile hardware under the AWS shared responsibility guidelines.
Answer
Authenticate users through a public identity provider and assume an IAM role to obtain temporary security credentials.
The correct approach is to authenticate users via a public identity provider and assume an IAM role. This leverages web identity federation, allowing mobile users to obtain temporary, limited-privilege security credentials to access Amazon S3 without embedding permanent access keys in the application binary.
Step-by-Step Solution
Key Concept
Temporary security credentials via IAM roles and web identity federation
Estimated Time:2m 0s