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

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

An AWS Lambda function requires read access to an Amazon S3 bucket and requires read/write access to an Amazon DynamoDB table. The correct IAM policy already exists.

What is the MOST secure way to grant the Lambda function access to the S3 bucket and the DynamoDB table?

  • A. Attach the existing IAM policy to the Lambda function.
  • B. Create an IAM role for the Lambda function. Attach the existing IAM policy to the role. Attach the role to the Lambda function.
  • C. Create an IAM user with programmatic access. Attach the existing IAM policy to the user. Add the user access key ID and secret access key as environment variables in the Lambda function.
  • D. Add the AWS account root user access key ID and secret access key as encrypted environment variables in the Lambda function.
Show Suggested Answer Hide Answer
Suggested Answer: B 🗳️

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
a15ce96
1 year, 3 months ago
Selected Answer: B
We have a policy, but we still need a role to be attached to Lamda.
upvoted 1 times
...
k1kavi1
2 years, 7 months ago
Selected Answer: B
Going with B
upvoted 3 times
...
kapil206001
2 years, 7 months ago
Selected Answer: B
always use role & attach bucket policy to role .
upvoted 1 times
...
michaldavid
2 years, 7 months ago
Selected Answer: B
Defo B
upvoted 1 times
...
DrCloud
2 years, 7 months ago
Ans: B You can also manage machine identities for external parties who need access. To give access to machine identities, you can use IAM roles. https://docs.aws.amazon.com/IAM/latest/UserGuide/best-practices.html
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 ...