A software developer needs to access Amazon S3 buckets using the AWS Command Line Interface (CLI) from their local development workstation. According to AWS security best practices, which method should the developer use to authenticate and run these commands?
- Use AWS IAM Identity Center to authenticate the session and obtain short-lived, temporary credentials.Answer
- BGenerate a long-lived Access Key ID and Secret Access Key for the AWS account root user to avoid session timeouts.
- CConfigure the AWS CLI to assume an IAM role directly without any primary identity or credential authentication.
- DContact AWS Support to manage the security configurations and validate commands executed on the local workstation.
Answer
Use AWS IAM Identity Center to authenticate the session and obtain short-lived, temporary credentials.
Using AWS IAM Identity Center allows human users to authenticate and receive short-lived, temporary credentials for command-line access. This aligns with the security best practice of avoiding long-lived access keys, which are prone to accidental exposure.
Step-by-Step Solution
Key Concept
IAM Credential Management and Best Practices
Estimated Time:1m 0s