AWS Lambda | Security and access control Flashcards

1
Q

What resources can I configure as a dead letter queue for a Lambda function?

Security and access control

AWS Lambda | Compute

A

You can configure an Amazon SQS queue or an Amazon SNS topic as your dead letter queue.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
2
Q

How do I allow my AWS Lambda function access to other AWS resources?

Security and access control

AWS Lambda | Compute

A

You grant permissions to your Lambda function to access other resources using an IAM role. AWS Lambda assumes the role while executing your Lambda function, so you always retain full, secure control of exactly which AWS resources it can use. Visit Setting up AWS Lambda to learn more about roles.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
3
Q

How do I control which Amazon S3 buckets can call which AWS Lambda functions?

Security and access control

AWS Lambda | Compute

A

When you configure an Amazon S3 bucket to send messages to an AWS Lambda function a resource policy rule will a be created that grants access. Visit the Lambda Developer’s Guide to learn more about resource policies and access controls for Lambda functions.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
4
Q

How do I control which Amazon DynamoDB table or Amazon Kinesis stream an AWS Lambda function can poll?

Security and access control

AWS Lambda | Compute

A

Access controls are managed through the Lambda function’s role. The role you assign to your Lambda function also determines which resource(s) AWS Lambda can poll on its behalf. Visit the Lambda Developer’s Guide to learn more.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
5
Q

Can I access resources behind Amazon VPC with my AWS Lambda function?

Security and access control

AWS Lambda | Compute

A

Yes. You can access resources behind Amazon VPC.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
6
Q

How do I enable and disable the VPC support for my Lambda function?

Security and access control

AWS Lambda | Compute

A

To enable VPC support, you need to specify one or more subnets in a single VPC and a security group as part of your function configuration. To disable VPC support, you need to update the function configuration and specify an empty list for the subnet and security group. You can change these settings using the AWS APIs, CLI, or AWS Lambda Management Console.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
7
Q

Can a single Lambda function have access to multiple VPCs?

Security and access control

AWS Lambda | Compute

A

No. Lambda functions provide access only to a single VPC. If multiple subnets are specified, they must all be in the same VPC. You can connect to other VPCs by peering your VPCs.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly