312-40 practice question 6 of 25
Rebecca Mader has been working as a cloud security engineer in an IT company located in Detroit, Michigan. Her organization uses AWS cloud-based…
Full set: 147 questionsThe use of an IAM role attached to an EC2 instance is the recommended AWS security best practice for applications that need to make API requests. The role supplies temporary permissions that the application can use. This method eliminates the need for the developer to manage or embed long-term access keys within the application or on the instance. The trust policy grants the EC2 service permission to assume the role, not the developer. Therefore, the developer does not manage credentials, and the administrator does not need to grant the developer direct permissions to the S3 bucket for the application to function.
A. The admin does not grant permission directly to the developer; the permission is granted to the EC2 instance via the role.
B. The core benefit of using an IAM role is to avoid having the developer share or manage long-term credentials.
C. This option is incorrect on both points; IAM roles for EC2 are designed to prevent credential management and direct user permissions.
1. AWS Identity and Access Management (IAM) Documentation. (2023). IAM roles for Amazon EC2. AWS. Retrieved from https://docs.aws.amazon.com/AWSEC2/latest/UserGuide/iam-roles-for-amazon-ec2.html. (See the "Overview of IAM roles for EC2" section).
2. AWS Identity and Access Management (IAM) Documentation. (2023). IAM best practices. AWS. Retrieved from https://docs.aws.amazon.com/IAM/latest/UserGuide/best-practices.html. (See the section "Grant least privilege" and "Use temporary credentials with IAM roles").
Keep practicing
Take the free 312-40 practice test
Ten exam-style questions with answers and explanations, plus the exam facts and study guides.
More questions
Other 312-40 practice questions
- Question 1Chris Noth has recently joined CloudAppSec Private Ltd. as a cloud security engineer. Owi…
- Question 2A large e-commerce company named ShopZone uses GCP to host its online store. Recently, th…
- Question 3Jordon Bridges works as a cloud security engineer in a multinational company. His organiz…
- Question 4Chris Noth has been working as a senior cloud security engineer in CloudAppSec Private Lt…
- Question 5The e-commerce platform www.evoucher.com observes overspending 15% to 30% due to unawaren…
- Question 7Karen Gillan has recently joined an IT company as a cloud security engineer. Her organiza…
