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 417 discussion

An engineering team is developing and deploying AWS Lambda functions. The team needs to create roles and manage policies in AWS IAM to configure the permissions of the Lambda functions.
How should the permissions for the team be configured so they also adhere to the concept of least privilege?

  • A. Create an IAM role with a managed policy attached. Allow the engineering team and the Lambda functions to assume this role.
  • B. Create an IAM group for the engineering team with an IAMFullAccess policy attached. Add all the users from the team to this IAM group.
  • C. Create an execution role for the Lambda functions. Attach a managed policy that has permission boundaries specific to these Lambda functions.
  • D. Create an IAM role with a managed policy attached that has permission boundaries specific to the Lambda functions. Allow the engineering team to assume this role.
Show Suggested Answer Hide Answer
Suggested Answer: D 🗳️

Comments

Chosen Answer:
This is a voting comment (?). It is better to Upvote an existing comment if you don't have anything to add.
Switch to a voting comment New
dmscountera
Highly Voted 3 years, 7 months ago
D. Create an IAM role with a managed policy attached that has permission boundaries specific to the Lambda functions. Allow the engineering team to assume this role.
upvoted 69 times
...
Vizz5585
Highly Voted 3 years, 6 months ago
A. Lambda function will not assume any role. This is a role for the team. B. To much permissions. Doesn;t follow least privilege. C. Execution Roles are for Lambda. Not relevant. D. (Correct Answer) Create an IAM role with a managed policy attached that has permission boundaries specific to the Lambda functions. Allow the engineering team to assume this role.
upvoted 34 times
...
BECAUSE
Most Recent 1 year, 11 months ago
Selected Answer: D
D is the answer
upvoted 1 times
...
Jobair
2 years, 6 months ago
Selected Answer: A
C & D are talking about permission boundaries. I think A is right. "When you first create an IAM role for your Lambda function during the development phase, you might sometimes grant permissions beyond what is required." https://docs.aws.amazon.com/lambda/latest/dg/lambda-intro-execution-role.html Not sure what I am missing here
upvoted 2 times
...
Rick_May
2 years, 8 months ago
"A Lambda function's execution role is an AWS Identity and Access Management (IAM) role that grants the function permission to access AWS services and resources. You provide this role when you create a function, and Lambda assumes the role when your function is invoked. You can create an execution role for development that has permission to send logs to Amazon CloudWatch and to upload trace data to AWS X-Ray." https://docs.aws.amazon.com/lambda/latest/dg/lambda-intro-execution-role.html
upvoted 1 times
Rick_May
2 years, 8 months ago
So, C is right.
upvoted 1 times
...
...
queen101
2 years, 9 months ago
ddddddddd
upvoted 1 times
...
queen101
2 years, 9 months ago
dddddddddddd
upvoted 1 times
...
hou0220
2 years, 9 months ago
Selected Answer: C
The engineering team is the one who build the Lambda function and the IAM role for this Lambda function. So the IAM role is about the rights to execute the Lambda function (not change or delete, etc).
upvoted 1 times
...
Janan
2 years, 9 months ago
Selected Answer: D
D - IAM role and engg team assuming it is correct
upvoted 2 times
...
amabdelmongy
2 years, 9 months ago
Selected Answer: D
Create an IAM role with a managed policy attached that has permission
upvoted 2 times
...
Aniketh
2 years, 10 months ago
Selected Answer: D
D seems to suit the situation
upvoted 2 times
...
cen007
2 years, 11 months ago
Selected Answer: D
This is clearly D
upvoted 2 times
...
bighedgedog
2 years, 11 months ago
Selected Answer: D
"The team must build roles and administer policies in AWS IAM in order to set the Lambda functions' rights." The problem to solve is to allow the engineering team to do this, C doesn't help the engineering team. D is the correct one.
upvoted 2 times
...
terencechan
2 years, 11 months ago
Selected Answer: D
A: Wrong. Lambda Functions don't assume an IAM role. It assumes execution role B. Wrong. Full Access is wrong C. Wrong. Is about team's permission. The managed policy is for team's permission, not for lambda execution role. D. Correct. AWS Managed Policy = Identity Policy = Permission Policy. Attach this policy to IAM role. The team assume this role
upvoted 2 times
...
phloot
3 years ago
Keywords are "in order to set the Lambda functions' rights." which is about Lambda's rights on execution and not the user/teams' rights on triggering the lambda. Only C. talks about Lambda assuming the role with permission boundaries. Whereas D. talks about only users assuming the role with permission boundaries, This doesnt help if the Lambda itself has more permissions. So C. is the right answer.
upvoted 2 times
...
iambunchester
3 years ago
Selected Answer: D
D fo sho
upvoted 1 times
...
Mohamed_Mamdouh
3 years ago
Selected Answer: D
i go for D
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 ...
exam
Someone Bought Contributor Access for:
SY0-701
London, 1 minute ago