Welcome to ExamTopics
ExamTopics Logo
- Expert Verified, Online, Free.
exam questions

Exam AWS Certified Solutions Architect - Associate SAA-C02 All Questions

View all questions & answers for the AWS Certified Solutions Architect - Associate SAA-C02 exam

Exam AWS Certified Solutions Architect - Associate SAA-C02 topic 1 question 158 discussion

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 S3?

  • 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.
  • C. Create a security group that allows access from Amazon ECS to Amazon S3, 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.
Show Suggested Answer Hide Answer
Suggested Answer: B 🗳️

Comments

Chosen Answer:
This is a voting comment (?) , you can switch to a simple comment.
Switch to a voting comment New
Paitan
Highly Voted 3 years ago
The answer is B.
upvoted 51 times
...
Cloud_Wizard
Highly Voted 3 years ago
B taskRoleArn The short name or full Amazon Resource Name (ARN) of the AWS Identity and Access Management (IAM) role that grants containers in the task permission to call AWS APIs on your behalf.
upvoted 34 times
...
AWSStudyBuddy
Most Recent 11 months, 1 week ago
Selected Answer: B
Correct Answer B. Create an IAM role with S3 permissions, and then specify that role as the taskRoleArn in the task definition. Explanation The solutions architect can ensure that the application has permission to access Amazon S3 by following these steps: B. Create an IAM role with S3 permissions, and then specify that role as the taskRoleArn in the task definition. By creating an IAM role with the necessary permissions for accessing Amazon S3 and specifying that role as the taskRoleArn in the task definition, the ECS tasks launched by the application will assume this role and inherit the permissions. This allows the application to make the necessary Amazon S3 API calls to store the resized images. Option B is the correct solution for granting the application permission to access Amazon S3 in the context of Amazon ECS.
upvoted 1 times
...
queen101
2 years ago
BBBBBBBBBB
upvoted 1 times
...
tototo
2 years, 9 months ago
Selected Answer: B
Answer: B
upvoted 1 times
...
tony__
2 years, 11 months ago
I go with B. Resource-based policy is not working with ECS. https://docs.aws.amazon.com/IAM/latest/UserGuide/reference_aws-services-that-work-with-iam.html
upvoted 2 times
...
Cabrera
2 years, 11 months ago
It´s B. Perfect case for using IAM Role
upvoted 2 times
...
woke
2 years, 11 months ago
B. Create an IAM role with S3 permissions, and then specify that role as the taskRoleArn in the task definition.
upvoted 3 times
...
Murlidhar
2 years, 11 months ago
The short name or full Amazon Resource Name (ARN) of the AWS Identity and Access Management (IAM) role that grants containers in the task permission to call AWS APIs on your behalf. For more information, see Amazon ECS Task Role in the Amazon Elastic Container Service Developer Guide. TaskRoleArn - IAM roles for tasks on Windows require that the -EnableTaskIAMRole option is set when you launch the Amazon ECS-optimized Windows AMI. Your containers must also run some configuration code in order to take advantage of the feature. For more information, see Windows IAM roles for tasks in the Amazon Elastic Container Service Developer Guide. Link - https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-ecs-taskdefinition.html
upvoted 3 times
...
dfg5839
2 years, 11 months ago
Can someone tell what is wrong with A?
upvoted 1 times
ccsampaio
2 years, 11 months ago
Role’s permissions take effect immediately after applying. No need to restart the container.
upvoted 4 times
...
violonchelo
2 years, 11 months ago
The S3 wouldn't need a role on IAM anyway. You need access to the s3 from another aws resource so you have 2 options: - Modify the s3 policy - Add a role to the resource that needs access (ECS in this case) that grants access to s3
upvoted 3 times
...
...
syu31svc
2 years, 11 months ago
C is wrong as the qn is about permissions D is wrong as it is not recommended to create IAM user A is wrong as the qn is asking about the application not the service B is the answer https://docs.aws.amazon.com/AmazonECS/latest/developerguide/task-iam-roles.html https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-ecs-taskdefinition.html: "The short name or full Amazon Resource Name (ARN) of the AWS Identity and Access Management (IAM) role that grants containers in the task permission to call AWS APIs on your behalf."
upvoted 3 times
...
KK_uniq
2 years, 11 months ago
B for sure
upvoted 2 times
...
iura
2 years, 11 months ago
It should be B
upvoted 1 times
...
Yogi
2 years, 11 months ago
Ans = B Focus on IAM role when dealing with resource access permissions.
upvoted 3 times
...
ismai1
2 years, 11 months ago
Roles are recommand in this use case
upvoted 1 times
...
c4s1v0
2 years, 11 months ago
B for Sure
upvoted 1 times
...
myutran
2 years, 11 months ago
Answer: B
upvoted 1 times
...
Community vote distribution
A (35%)
C (25%)
B (20%)
Other
Most Voted
A voting comment increases the vote count for the chosen answer by one.

Upvoting a comment with a selected answer will also increase the vote count towards that answer by one. So if you see a comment that you already agree with, you can upvote it instead of posting a new comment.

SaveCancel
Loading ...