Section 6: Virtual Private Cloud (VPC) Flashcards

1
Q

What is a VPC

A

A Virtual Private Cloud is a logically isolated portion of the AWS cloud within a region where you can launch AWS resources (e.g. EC2 instances) in a virtual network that you define.

https://digitalcloud.training/amazon-vpc/

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

What is a Region

A

A Region is a physical location in the world. E.g. us-eat-1, eu-west-1, ap-southeast-2

Each region consists of multiple availability zones which sit inside each region.

https://aws.amazon.com/about-aws/global-infrastructure/

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

Availability Zones

A

An Availability Zone sits inside a Region.

An Availability Zone can consist of both a Public subnet and a Private subnet

Amazon encourages you to deploy your application into more than 1 availability zone for resilience.

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

AWS CloudFront

A

AWS CloudFront is a CDN

CloudFront is a good choice for distributing frequently access static data content from edge delivery (geographically closer to users). Regional Edge Cache -> Edge Location -> User.

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

IPv4 address

A

IPv4 address is the address which the server can use to read a web address.

E.g. example.com –> 192.168.0.1

Network ID = 192.168.0 (first 3 octets)
Host ID = 1 (last octet)

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

Regions and VPC’s

A

Each Region allows up to 5 VPC’s inside a region.

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

VPC CIDR block and subnet planning

A

Use tool https://www.site24x7.com/tools/ipv4-subnetcalculator.html

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

Network Access Control (Network ACL)

A

Network Access Control Lists get applied at the subnet level.

NACL’s apply only to traffic entering/exiting the subnet, filtering the traffic entering/existing

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

Security Group vs Network Access Control List

A

Security Group = statefull firewall. Allows return traffic automatically. Meaning only need to define the inbound rule, as the outbound will accept it.

Network Access Control List = stateless firewall, you have to explicitly define both outbound and inbound rule.

Rules are defined using port range, IP address or subnet group ID

Rules are processed in order, bare in mind how that impacts rules being applied

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

What is Virtual Private Cloud Peering?

A

VPC (Virtual Private Cloud) Peering is a network connection betwn two VPC’s that enable you to route traffic between them using privde IPv4 or IPv6 addresses.

CIDR blocks (10.1.0.0/16 for example) can not overlap between VPC’s.

https://docs.aws.amazon.com/vpc/latest/peering/what-is-vpc-peering.html

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

VPC interface endpoint

A

VPC interface endpoint is an Elastic Network Interface (ENI). Using this you can connect your private IP address (subnet) to other AWS services like ELB, CloudFormation, SNS, S3 etc.

https://digitalcloud.training/vpc-interface-endpoint-vs-gateway-endpoint-in-aws/

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

Elastic Network Interface (ENI) vs Gateway Endpoint

A

Interface endpoint is done from within subnet/security group. Gateway endpoint is from within VPC (higher up) and uses the route table.

Interface Endpoint (Elastic Network Interface) - Interface Endpoints are powered by AWS PrivateLink, which creates a secure and private network connection between your VPC and the AWS service.

Gateway Endpoint - Gateway endpoints are route table entries that route your traffic directly from the subnet where traffic is originating to the service.

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

AWS Client VPN

A

AWS Client VPN is a managed client-based VPN service that enables you to securely access your AWS resources and resources in your on-premises network. With Client VPN, you can access your resources from any location using an OpenVPN-based VPN client.

Meaning you can allow another non-AWS servers/computers to connect securely to your AWS services

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

AWS Direct Connect (DX)

A

AWS Direct Connect makes it easy to establish a dedicated connection from an on-premises network to one or more VPCs.

AWS Direct Connect can reduce network costs, increase bandwidth throughput, and provide a more consistent network experience than internet-based connections.

Note: connections are NOT encrypted.

https://digitalcloud.training/aws-direct-connect/

https://docs.aws.amazon.com/whitepapers/latest/aws-vpc-connectivity-options/aws-direct-connect.html

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

AWS Direct Connect Gateway

A

Use AWS Direct Connect Gateway when you want to connect multiple AWS regions together with an on-prem service / another provider. This is more cost effective than just using AWS Direct Connect.

https://docs.aws.amazon.com/directconnect/latest/UserGuide/direct-connect-gateways-intro.html

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

AWS Transit Gateway

A

AWS Transit Gateway provides a hub and spoke design for connecting VPCs and on-premises networks as a fully managed service without requiring you to provision virtual appliances like the Cisco CSRs. No VPN overlay is required, and AWS manages high availability and scalability.

https://docs.aws.amazon.com/whitepapers/latest/building-scalable-secure-multi-vpc-network-infrastructure/transit-gateway.html

17
Q

What are VPC flow logs?

A

VPC Flow Logs is a feature that enables you to capture information about the IP traffic going to and from network interfaces in your VPC

https://docs.aws.amazon.com/vpc/latest/userguide/flow-logs.html

18
Q

Lots of info….

A

Subnet - a segment of a VPC’s IP address range where you can place groups of isolated resources (maps to a single AZ)

Internet Gateway - a highly available, managed Network Address Translation (NAT) service for your resources in a provide subnet to access the internet.

Router: routers inerconnect subnets and direct traffice between Internet Gateways, virtual private gateways, NAT gateways and subnets

Peering Connection - a peering connection enables you to route traffic via private IP addresses between two peered VPCs.

VPC Endpoints - enables private connectivity to services hosted in AWS

Virtual Private Gateway - The Amazon VPC side of the VPC connection

Egress-only Internet Gateway - a staeful gateway to provide egress only access for IPv6 traffice from the VPC to the internet

Hardware VPN Connection: a hardware-based VPN connection between your Amazon VPC and your datacenter, home network or co-location facility

19
Q

What is the scope of a Virtual Private Cloud (VPC)?

A

VPCs are regional. You create VPCs in each region separately.

20
Q

You need to apply a firewall to a group of EC2 instances launched in multiple subnets. Which option should be used?

A

Security Group: A Security Group can be applied to the group of EC2 instances. You can specify what ports and protocols are allowed to reach the instances and from what sources.

21
Q

An organization needs a private, high-bandwidth, low-latency connection to the AWS Cloud in order to establish hybrid cloud configuration with their on-premises cloud. What type of connection should they use?

A

AWS Direct Connect: AWS Direct Connect uses private network connections into the AWS Cloud and is high-bandwidth and low-latency. This is good for establishing hybrid cloud configurations.

22
Q

Can subnets span multiple AZ?

A

Can subnets span multiple AZ?

No

23
Q

How should subnets be used for fault tolerance?

A

Q: How should subnets be used for fault tolerance?

A: Launch EC2 instances into subnets created in different availability zones

24
Q

Your organization has a pre-production VPC and production VPC. You need to be able to setup routing between these VPCs using private IP addresses. How can this be done?

A

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

25
Q

At which level do you attach an Internet gateway?

A

VPC: Internet Gateways are attached to the VPC. You then need to add entries to the route tables for your public subnets to point to the IGW.