exam questions

Exam AWS Certified Developer Associate All Questions

View all questions & answers for the AWS Certified Developer Associate exam

Exam AWS Certified Developer Associate topic 1 question 48 discussion

Exam question from Amazon's AWS Certified Developer Associate
Question #: 48
Topic #: 1
[All AWS Certified Developer Associate Questions]

A developer tested an application locally and then deployed it to AWS Lambda. While testing the application remotely, the Lambda function fails with an access denied message.
How can this issue be addressed?

  • A. Update the Lambda function's execution role to include the missing permissions.
  • B. Update the Lambda function's resource policy to include the missing permissions.
  • C. Include an IAM policy document at the root of the deployment package and redeploy the Lambda function.
  • D. Redeploy the Lambda function using an account with access to the AdministratorAccess policy.
Show Suggested Answer Hide Answer
Suggested Answer: A 🗳️

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
RicardoD
Highly Voted 3 years, 4 months ago
A is the answer The execution role which should contain the necessary permissions so lambda can perform
upvoted 17 times
...
sumanshu
Most Recent 2 months, 1 week ago
Selected Answer: A
A) Correct - The execution role needs to have the required permissions to interact with other AWS services. If the Lambda function is trying to access services like S3, DynamoDB, or other AWS resources, the role should include the necessary IAM policies granting access to those resources.
upvoted 1 times
sumanshu
2 months, 1 week ago
B) Eliminated - Lambda functions don't have resource policies in the same way that Amazon S3
upvoted 1 times
sumanshu
2 months, 1 week ago
C) Eliminated - Including an IAM policy document in the deployment package does not affect the Lambda function’s permissions. Permissions are managed by the execution role assigned to the function, not by the deployment package
upvoted 1 times
sumanshu
2 months, 1 week ago
D) Eliminated - not a best practice to assign broad AdministratorAccess to a Lambda function
upvoted 1 times
...
...
...
...
blondy_chess
9 months, 3 weeks ago
Selected Answer: A
A is the answer
upvoted 1 times
...
51b1f29
11 months, 2 weeks ago
Question is ambiguous. I think A is answer. Resource based policy defined on your Lambda let's other resource to access/invoke your Lambda. Execution Role is for your Lambda to access other resources.
upvoted 1 times
...
Baalhammun
1 year ago
Selected Answer: B
Tricky question but i go for B, we are having an access denied while trying to access a RESOURCE, so we have to configure the access resource based policy
upvoted 1 times
...
JuanFe
2 years ago
I think the answer is tricky, because it's saying that function fails when trying to run it remotely. So it seems that there are no permissions to run it from our computer (for example). So I think it's related to resource based policies. But if We think about the question, it says that lambda function fails, so We can see that it started but during its execution, it did not have the right permissions to make any API call.
upvoted 4 times
qiaoli
1 year, 11 months ago
agree, if "Lambda function fails with an access denied message" means failed to execute the lambda, then it's about resource based role. If "Lambda function fails with an access denied message" means lambda started by failed to call other service, then it's about execution role.
upvoted 2 times
...
...
JP_PA
3 years ago
Selected Answer: A
ANS: A
upvoted 1 times
...
Juanlufr
3 years, 3 months ago
Answer A => execution role
upvoted 1 times
...
EarlBrillantes061816
3 years, 3 months ago
The answer should be BE. The application access is the one that cant invoke the lambda
upvoted 1 times
...
Huy
3 years, 3 months ago
It is B. No permission when running lambda function remotely that means the service invoking lambda is denied.
upvoted 4 times
...
Chinta
3 years, 4 months ago
A is correct
upvoted 1 times
...
JaneJ
3 years, 4 months ago
A. Update the Lambda function's execution role to include the missing permissions.
upvoted 2 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