Exit SCS-C02 AWS Certified Security - Specialty (SCS-C02)
Question 4 of 5
0% complete
Q4 Single choice

You are creating a Lambda function which will be triggered by a Cloudwatch Event. The data from these events needs to be stored in a DynamoDB table.

How should the Lambda function be given access to the DynamoDB table?

  • A

    Put the IAM Access keys in the Lambda function since the Lambda function by default is secure

  • B

    Use an IAM role which has permissions to the DynamoDB table and attach it to the Lambda function.

  • C

    Use the IAM Access keys which has access to DynamoDB and then place it in an S3 bucket.

  • D

    Create a VPC endpoint for the DynamoDB table. Access the VPC endpoint from the Lambda function.