Amazon DynamoDB | VPC endpoints Flashcards

1
Q

How does encryption at rest work with DynamoDB Global Tables?

VPC endpoints

Amazon DynamoDB | Database

A

You can enable encryption at rest on your Global Table replicas. Note that Global Tables uses DynamoDB Streams, which does not yet support Encryption at Rest. As a result, replicated data on DynamoDB Streams will not be encrypted at rest.

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

What are VPC endpoints for Amazon DynamoDB?

VPC endpoints

Amazon DynamoDB | Database

A

Amazon Virtual Private Cloud (VPC) is an AWS service that provides users a virtual private cloud, by provisioning a logically isolated section of the AWS Cloud. VPC endpoints for Amazon DynamoDB are logical entities within a VPC that create a private connection between a VPC and DynamoDB without requiring access over the internet, through a network address translation (NAT) device, or a VPN connection. For more information about VPC endpoints, see VPC Endpoints.

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

Why should I use VPC endpoints for DynamoDB?

VPC endpoints

Amazon DynamoDB | Database

A

In the past, the main way of accessing Amazon DynamoDB from within a VPC was to traverse the internet, which may have required complex configurations such as firewalls and VPNs. VPC endpoints for DynamoDB improve privacy and security for customers, especially those dealing with sensitive workloads with compliance and audit requirements, by enabling private access to DynamoDB from within a VPC without the need for an internet gateway or NAT gateway. In addition, VPC endpoints for DynamoDB support AWS Identity and Access Management (IAM) policies to simplify DynamoDB access control. You can now easily restrict access to your DynamoDB tables to a specific VPC endpoint.

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

How do I get started using VPC endpoints for DynamoDB?

VPC endpoints

Amazon DynamoDB | Database

A

You can create VPC endpoints for Amazon DynamoDB by using the AWS Management Console, AWS SDK, or AWS Command Line Interface (CLI). You must specify the VPC and existing route tables in the VPC, and describe the IAM policy to attach to the endpoint. A route is automatically added to each of the specified VPC’s route tables.

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

Do VPC endpoints for DynamoDB ensure that traffic will not be routed outside of the Amazon network?

VPC endpoints

Amazon DynamoDB | Database

A

Yes, when using VPC endpoints for Amazon DynamoDB, data packets between DynamoDB and your VPC will remain in the Amazon network.

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

Can I connect to a DynamoDB table in an AWS Region different from my VPC using VPC endpoints for DynamoDB?

VPC endpoints

Amazon DynamoDB | Database

A

No, VPC endpoints can be created only for Amazon DynamoDB tables in the same AWS Region as the VPC.

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

Do VPC endpoints for DynamoDB limit throughput to DynamoDB?

VPC endpoints

Amazon DynamoDB | Database

A

No, you will continue to get the same throughput to Amazon DynamoDB as you do today from an instance with a public IP within your VPC.

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

What is the price of using VPC endpoints for DynamoDB?

VPC endpoints

Amazon DynamoDB | Database

A

There is no additional cost for using VPC endpoints for Amazon DynamoDB.

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

Can I access DynamoDB Streams using VPC endpoints for DynamoDB?

VPC endpoints

Amazon DynamoDB | Database

A

Currently, you cannot access Amazon DynamoDB Streams using VPC endpoints for Amazon DynamoDB.

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

I currently use an internet gateway and a NAT gateway to send requests to DynamoDB. Do I need to change my application code when I use a VPC endpoint?

VPC endpoints

Amazon DynamoDB | Database

A

Your application code does not need to change. Simply create a VPC endpoint, update your route table to point Amazon DynamoDB traffic at the DynamoDB VPC endpoint, and access DynamoDB directly. You can continue using the same code and same DNS names to access DynamoDB.

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

Can I use one VPC endpoint for both DynamoDB and another AWS service?

VPC endpoints

Amazon DynamoDB | Database

A

No, each VPC endpoint supports one service. You can create one for Amazon DynamoDB and another for the other AWS service and use both of them in a route table.

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

Can I have multiple VPC endpoints in a single VPC?

VPC endpoints

Amazon DynamoDB | Database

A

Yes, you can have multiple VPC endpoints in a single VPC. For example, you can have one VPC endpoint for Amazon S3 and one VPC endpoint for Amazon DynamoDB.

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

Can I have multiple VPC endpoints for DynamoDB in a single VPC?

VPC endpoints

Amazon DynamoDB | Database

A

Yes, you can have multiple VPC endpoints for Amazon DynamoDB in a single VPC. Individual VPC endpoints can have different VPC endpoint policies. For example, you could have a VPC endpoint that is read-only and one that is read/write. However, a single route table in a VPC can only be associated with a single VPC endpoint for DynamoDB, because that route table will route all traffic to DynamoDB through the specified VPC endpoint.

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

What are the differences between VPC endpoints for S3 and VCP endpoints for DynamoDB?

VPC endpoints

Amazon DynamoDB | Database

A

The main difference is that these two VPC endpoints support different services – Amazon S3 and Amazon DynamoDB.

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

What IP address will I see in AWS CloudTrail logs for traffic coming from the VPC endpoint for DynamoDB?

VPC endpoints

Amazon DynamoDB | Database

A

AWS CloudTrail logs for Amazon DynamoDB will contain the private IP address of the Amazon EC2 instance in the VPC, and the VPC endpoint identifier (for example, sourceIpAddress=10.89.76.54, VpcEndpointId=vpce-12345678).

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

How can I manage VPC endpoints using the AWS Command Line Interface (CLI)?

VPC endpoints

Amazon DynamoDB | Database

A

You can use the following CLI commands to manage VPC endpoints: create-vpc-endpoint, modify-vpc-endpoint, describe-vpc-endpoint, delete-vpc-endpoint, and describe-vpc-endpoint-services. You should specify the Amazon DynamoDB service name specific to your VPC and DynamoDB Region (for example, com.amazon.us.east-1.DynamoDB). For more information, see create-vpc-endpoint.

17
Q

Do VPC endpoints for DynamoDB require customers to know and manage the public IP address ranges of DynamoDB?

VPC endpoints

Amazon DynamoDB | Database

A

No, customers don’t need to know or manage the public IP address ranges for Amazon DynamoDB in order to use this feature. A prefix list will be provided to use in route tables and security groups. AWS maintains the address ranges in the list. The prefix list name is: com.amazonaws..DynamoDB (for example, com.amazonaws.us-east-1.DynamoDB).

18
Q

Can I use AWS IAM policies on a VPC endpoint for DynamoDB?

VPC endpoints

Amazon DynamoDB | Database

A

Yes. You can attach an AWS IAM policy to your VPC endpoint and this policy will apply to all traffic through this endpoint. For example, a VPC endpoint using this policy allows only describe* API calls:

{

“Statement”: [

{

“Sid”: “Stmt1415116195105”,

“Action”: “dynamodb:describe*”,

“Effect”: “Allow”,

“Resource”: “arn:aws:dynamodb:region:account-id:table/table-name”,

“Principal”: “*”

}

]

}

19
Q

Can I limit access to my DynamoDB table from a VPC endpoint?

VPC endpoints

Amazon DynamoDB | Database

A

Yes, you can create an AWS IAM policy to restrict an IAM user, group, or role to a particular VPC endpoint for DynamoDB tables.

This can be done by setting the IAM policy’s Resource element to a DynamoDB table and the Condition element’s key to aws:sourceVpce. For more details, see the IAM JSON Policy Elements Reference.

For example, the following IAM policy restricts access to DynamoDB tables unless sourceVpce matches “vpce-111bbb22”

{

“Statement”: [

{

“Sid”: “Stmt1415116195105”,

“Action”: “dynamodb:*”,

“Effect”: “Deny”,

“Resource”: “arn:aws:dynamodb:region:account-id:*”,

“Condition”: { “StringNotEquals” : { “aws:sourceVpce”: “vpce-111bbb22” } }

}

]

}

20
Q

Do VPC endpoints for DynamoDB support IAM policy conditions for fine-grained access control?

VPC endpoints

Amazon DynamoDB | Database

A

Yes. VPC endpoints for DynamoDB support all fine-grained access control access keys. You can use AWS IAM policy conditions for fine-grained access control to control access to individual data items and attributes. For more information about fine-grained access control, see Using IAM Policy Conditions for Fine-Grained Access Control.

21
Q

Can I use the AWS Policy Generator to create VPC endpoint policies for DynamoDB?

VPC endpoints

Amazon DynamoDB | Database

A

Yes, you can use the AWS Policy Generator to create VPC endpoint policies.