A startup is configuring access permissions for a newly deployed multi-tier application. An Amazon EC2 instance needs to retrieve configuration files from an Amazon S3 bucket, while an external systems administrator requires temporary access to troubleshoot EC2 configurations. Which two of the following options represent AWS-recommended practices for securing these access requirements?
- Attach an IAM role with S3 read-only permissions to the EC2 instance to grant the application temporary access credentials.Cevap
- Configure an IAM role with EC2 administrative permissions for the external administrator to assume for a limited duration.Cevap
- CUse the AWS Account Root User access keys directly in the EC2 instance configuration to ensure the application has constant access.
- DCreate a permanent IAM user for the EC2 instance and hardcode its access key ID and secret access key into the application code.
- ERely on AWS to automatically configure and manage the guest operating system's firewall rules and local user accounts on the EC2 instance.
Cevap
The correct practices are to attach an IAM role with S3 read-only permissions to the EC2 instance and to configure an IAM role with EC2 administrative permissions for the external administrator to assume for a limited duration.
Attaching an IAM role with S3 permissions to the EC2 instance ensures the application dynamically acquires temporary credentials, avoiding hardcoded secrets. Additionally, setting up an IAM role with EC2 administrative permissions that the external administrator can assume ensures they only have administrative access for a limited, controlled duration.
Adım Adım Çözüm
Anahtar Kavram
Securing applications and users using IAM roles to provide temporary credentials and adhering to the Shared Responsibility Model.
Tahmini Süre:1m 30s