ExamGecko
Question list
Search
Search

List of questions

Search

Related questions











Question 457 - SAA-C03 discussion

Report
Export

A company runs an application using Amazon ECS. The application creates resized versions of an original image and then makes Amazon S3 API calls to store the resized images in Amazon S3.

How can a solutions architect ensure that the application has permission to access Amazon $3?

A.
Update the S3 role in AWS IAM to allow read/write access from Amazon ECS, and then relaunch the container.
Answers
A.
Update the S3 role in AWS IAM to allow read/write access from Amazon ECS, and then relaunch the container.
B.
Create an IAM role with S3 permissions, and then specify that role as the taskRoleArn in the task definition.
Answers
B.
Create an IAM role with S3 permissions, and then specify that role as the taskRoleArn in the task definition.
C.
Create a security group that allows access from Amazon ECS to Amazon $3, and update the launch configuration used by the ECS cluster.
Answers
C.
Create a security group that allows access from Amazon ECS to Amazon $3, and update the launch configuration used by the ECS cluster.
D.
Create an IAM user with S3 permissions, and then relaunch the Amazon EC2 instances for the ECS cluster while logged in as this account.
Answers
D.
Create an IAM user with S3 permissions, and then relaunch the Amazon EC2 instances for the ECS cluster while logged in as this account.
Suggested answer: B

Explanation:

This answer is correct because it allows the application to access Amazon S3 by using an IAM role that is associated with the ECS task. The task role grants permissions to the containers running in the task, and can be used to make AWS API calls from the application code. The taskRoleArn is a parameter in the task definition that specifies the IAM role to use for the task.

https://docs.aws.amazon.com/AmazonECS/latest/developerguide/task-iam-roles.html

https://docs.aws.amazon.com/AmazonECS/latest/APIReference/API_TaskDefinition.html

asked 16/09/2024
ANDREA SIMONELLI
37 questions
User
Your answer:
0 comments
Sorted by

Leave a comment first