VPC Flashcards

1
Q

Q. What is Amazon Virtual Private Cloud (Amazon VPC)?

A

Amazon VPC lets you provision a logically isolated section of the Amazon Web Services (AWS) cloud where you can launch AWS resources in a virtual network that you define. You have complete control over your virtual networking environment, including selection of your own IP address range, creation of subnets, and configuration of route tables and network gateways. You can also create a hardware Virtual Private Network (VPN) connection between your corporate datacenter and your VPC and leverage the AWS cloud as an extension of your corporate datacenter.

You can easily customize the network configuration for your Amazon VPC. For example, you can create a public-facing subnet for your web servers that have access to the Internet, and place your backend systems such as databases or application servers in a private-facing subnet with no Internet access. You can leverage multiple layers of security, including security groups and network access control lists, to help control access to Amazon EC2 instances in each subnet.

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

Q. What are the components of Amazon VPC?

A

A Virtual Private Cloud (VPC), Subnet, Internet Gateway, NAT Gateway, Hardware VPN Connection, Virtual Private Gateway, Customer Gateway, Router, Peering Connection, VPC Endpoint, Egress-only Internet Gateway

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

Virtual Private Cloud (VPC)

A

A logically isolated virtual network in the AWS cloud. You define a VPC’s IP address space from a range you select.

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

Subnet

A

A segment of a VPC’s IP address range where you can place groups of isolated resources.

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

Internet Gateway

A

The Amazon VPC side of a connection to the public Internet

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

NAT Gateway

A

A highly available, managed Network Address Translation (NAT) service for your resources in a private subnet to access the Internet.

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

Hardware VPN Connection

A

A hardware-based VPN connection between your Amazon VPC and your datacenter, home network, or co-location facility.

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

Virtual Private Gateway

A

The Amazon VPC side of a VPN connection.

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

Customer Gateway

A

Your side of a VPN connection.

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

Router

A

Routers interconnect subnets and direct traffic between Internet gateways, virtual private gateways, NAT gateways, and subnets.

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

Peering Connection

A

A peering connection enables you to route traffic via private IP addresses between two peered VPCs

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

VPC Endpoint

A

Enables Amazon S3 and Amazon DynamoDB access from within your VPC without using an Internet gateway or NAT, and allows you to control the access using VPC endpoint policies.

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

Egress-only Internet Gateway

A

A stateful gateway to provide egress only access for IPv6 traffic from the VPC to the Internet

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

Q. Why should I use Amazon VPC?

A

Amazon VPC enables you to build a virtual network in the AWS cloud - no VPNs, hardware, or physical datacenters required. You can define your own network space and control how your network, and the Amazon EC2 resources inside your network, is exposed to the Internet. You can also leverage the greatly enhanced security options in Amazon VPC to provide more granular access both to and from the Amazon EC2 instances in your virtual network.

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

Q. How do I get started with Amazon VPC?

A

Your AWS resources are automatically provisioned in a ready-to-use default VPC. You can choose to create additional VPCs by going to the Amazon VPC page in the AWS Management Console and selecting “Start VPC Wizard”.

You’ll be presented with four basic options for network architectures. After selecting an option, you can modify the size and IP address range of the VPC and its subnets. If you select an option with Hardware VPN Access, you will need to specify the IP address of the VPN hardware on your network. You can modify the VPC to add more subnets or add or remove gateways at any time after the VPC has been created.

The four options are:

VPC with a Single Public Subnet Only
VPC with Public and Private Subnets
VPC with Public and Private Subnets and Hardware VPN Access
VPC with a Private Subnet Only and Hardware VPN Access

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

Q. How will I be charged and billed for my use of Amazon VPC?

A

There are no additional charges for creating and using the VPC itself. Usage charges for other Amazon Web Services, including Amazon EC2, still apply at published rates for those resources, including data transfer charges. If you connect your VPC to your corporate datacenter using the optional hardware VPN connection, pricing is per VPN connection-hour (the amount of time you have a VPN connection in the “available” state.) Partial hours are billed as full hours. Data transferred over VPN connections will be charged at standard AWS Data Transfer rates.

17
Q

Q. What defines billable VPN connection-hours?

A

VPN connection-hours are billed for any time your VPN connections are in the “available” state. You can determine the state of a VPN connection via the AWS Management Console, CLI, or API. If you no longer wish to use your VPN connection, you simply terminate the VPN connection to avoid being billed for additional VPN connection-hours.

18
Q

Q. What usage charges will I incur if I use other AWS services, such as Amazon S3, from Amazon EC2 instances in my VPC?

A

Usage charges for other Amazon Web Services, including Amazon EC2, still apply at published rates for those resources. Data transfer charges are not incurred when accessing Amazon Web Services, such as Amazon S3, via your VPC’s Internet gateway.

If you access AWS resources via your VPN connection, you will incur Internet data transfer charges.

19
Q

Q. What are the connectivity options for my VPC?

A

You may connect your VPC to:

The Internet (via an Internet gateway)
Your corporate data center using a Hardware VPN connection (via the virtual private gateway)
Both the Internet and your corporate data center (utilizing both an Internet gateway and a virtual private gateway)
Other AWS services (via Internet gateway, NAT, virtual private gateway, or VPC endpoints)
Other VPCs (via VPC peering connections)

20
Q

Q. How do I connect my VPC to the Internet?

A

Amazon VPC supports the creation of an Internet gateway. This gateway enables Amazon EC2 instances in the VPC to directly access the Internet.

21
Q

Q. Are there any bandwidth limitations for Internet gateways? Do I need to be concerned about its availability? Can it be a single point of failure?

A

No. An Internet gateway is horizontally-scaled, redundant, and highly available. It imposes no bandwidth constraints.

22
Q

Q. How do instances in a VPC access the Internet?

A

You can use public IP addresses, including Elastic IP addresses (EIPs), to give instances in the VPC the ability to both directly communicate outbound to the Internet and to receive unsolicited inbound traffic from the Internet (e.g., web servers). You can also use the solutions in the next question.

23
Q

Q. How do instances without public IP addresses access the Internet?

A

Instances without public IP addresses can access the Internet in one of two ways:

Instances without public IP addresses can route their traffic through a NAT gateway or a NAT instance to access the Internet. These instances use the public IP address of the NAT gateway or NAT instance to traverse the Internet. The NAT gateway or NAT instance allows outbound communication but doesn’t allow machines on the Internet to initiate a connection to the privately addressed instances.

For VPCs with a hardware VPN connection or Direct Connect connection, instances can route their Internet traffic down the virtual private gateway to your existing datacenter. From there, it can access the Internet via your existing egress points and network security/monitoring devices.

24
Q

Q. Can I connect to my VPC using a software VPN?

A

Yes. You may use a third-party software VPN to create a site to site or remote access VPN connection with your VPC via the Internet gateway.

25
Q

Q. How does a hardware VPN connection work with Amazon VPC?

A

A hardware VPN connection connects your VPC to your datacenter. Amazon supports Internet Protocol security (IPsec) VPN connections. Data transferred between your VPC and datacenter routes over an encrypted VPN connection to help maintain the confidentiality and integrity of data in transit. An Internet gateway is not required to establish a hardware VPN connection.

26
Q

Q. What is IPsec?

A

IPsec is a protocol suite for securing Internet Protocol (IP) communications by authenticating and encrypting each IP packet of a data stream.

27
Q

Q. Which customer gateway devices can I use to connect to Amazon VPC?

A

There are two types of VPN connections that you can create: statically-routed VPN connections and dynamically-routed VPN connections. Customer gateway devices supporting statically-routed VPN connections must be able to:

Establish IKE Security Association using Pre-Shared Keys
Establish IPsec Security Associations in Tunnel mode
Utilize the AES 128-bit or 256-bit encryption function
Utilize the SHA-1 or SHA-2 (256) hashing function
Utilize Diffie-Hellman (DH) Perfect Forward Secrecy in “Group 2” mode, or one of the additional DH groups we support
Perform packet fragmentation prior to encryption

In addition to the above capabilities, devices supporting dynamically-routed VPN connections must be able to:

Establish Border Gateway Protocol (BGP) peerings
Bind tunnels to logical interfaces (route-based VPN)
Utilize IPsec Dead Peer Detection