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

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

A developer is creating a solution to track an account's Amazon S3 buckets over time. The developer has created an AWS Lambda function that will run on a schedule. The function will list the account's S3 buckets and will store the list in an Amazon DynamoDB table. The developer receives a permissions error when the developer runs the function with the AWSLambdaBasicExecutionRole AWS managed policy.
Which combination of permissions should the developer use to resolve this error? (Choose two.)

  • A. Cross-account IAM role
  • B. Permission for the Lambda function to list buckets in Amazon S3
  • C. Permission for the Lambda function to write in DynamoDB
  • D. Permission for Amazon S3 to invoke the Lambda function
  • E. Permission for DynamoDB to invoke the Lambda function
Show Suggested Answer Hide Answer
Suggested Answer: BC 🗳️

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
sidvic
Highly Voted 2 years, 7 months ago
Selected Answer: BC
For the Answer it is BC, although the "AWSLambdaBasicExecutionRole" is the permission to write logs to CloudWatch https://docs.aws.amazon.com/lambda/latest/dg/lambda-intro-execution-role.html
upvoted 5 times
...
sumanshu
Most Recent 4 months, 1 week ago
Selected Answer: BC
Correct B & C A) Eliminated - A cross-account role is only required if the Lambda function needs to access resources in a different AWS account. There is no mention of cross-account access in the problem. D & E ) Eliminated - As Lambda function is scheduled to run independently
upvoted 1 times
...
AsmaZoheb
1 year, 3 months ago
Selected Answer: BC
permission to list S3 buckets,s3:ListAllMyBuckets and Lambda function that grants it permission to write to the DynamoDB table. You can create a custom policy that includes dynamodb:PutItem, dynamodb:UpdateItem.
upvoted 1 times
...
rcaliandro
1 year, 10 months ago
Selected Answer: BC
BC is the correct answer: we can deduce that a cloudwatch event has been created in order to invoke the lambda function once at hour. Once the function is invocated, it needs the permission to list the objects from the bucket and it needs also to insert record on DynamoDB
upvoted 1 times
...
MrTee
2 years ago
Selected Answer: BC
B. Permission for the Lambda function to list buckets in Amazon S3 C. Permission for the Lambda function to write in DynamoDB
upvoted 1 times
...
isshin
2 years, 2 months ago
Selecting D as writing specific event logs to a file is more productive
upvoted 1 times
isshin
2 years, 2 months ago
This is for Q. 26, mistakenly replied in this question.
upvoted 1 times
...
...
Krt5894
2 years, 2 months ago
Selected Answer: B
B and C
upvoted 1 times
...
braveheart22
2 years, 4 months ago
This question is a little bit confusing from my point of view, please can anyone explain briefly why the correct answers should not be C & E?
upvoted 1 times
Djow
2 years, 2 months ago
AWS Lambda function that will run on a schedule. Don't need to be invoked
upvoted 2 times
...
Pratham111
2 years, 3 months ago
According to the question, Lambda function only needs to write to the dynamodb table and dynamodb wont need to invoke the function(doesn't make sense). rather, the function needs access to the s3 list.
upvoted 2 times
...
...
mithunkundu1983
2 years, 4 months ago
Selected Answer: BC
Answer b & C
upvoted 1 times
...
ramireze
2 years, 6 months ago
the correct answer B&C
upvoted 1 times
...
sindra
2 years, 7 months ago
I beleive its B and C.. since the lambda need to read from the s3 (getlist) and write to dynamo DB
upvoted 3 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