Amazon Web Services AWS Certified Developer - Associate DVA-C02 Question # 104 Topic 11 Discussion

Amazon Web Services AWS Certified Developer - Associate DVA-C02 Question # 104 Topic 11 Discussion

DVA-C02 Exam Topic 11 Question 104 Discussion:
Question #: 104
Topic #: 11

An AWS Lambda function requires read access to an Amazon S3 bucket and requires read/write access to an Amazon DynamoDB table The correct 1AM 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 1AM policy to the Lambda function.


B.

Create an 1AM role for the Lambda function Attach the existing 1AM policy to the role Attach the role to the Lambda function


C.

Create an 1AM user with programmatic access Attach the existing 1AM 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


Get Premium DVA-C02 Questions

Contribute your Thoughts:


Chosen Answer:
This is a voting comment (?). It is better to Upvote an existing comment if you don't have anything to add.