VPCs Flashcards

1
Q

What does a VPC allow you to do?

A

Amazon VPC (Virtual Private Cloud) lets you provision a logically isolated section of the AWS Cloud where you can launch AWS resources in a virtual network that you define.

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

In a VPC Subnet how many addresses are reserved by AWS?

A

AWS reserves 5 addresses per subnet:

.0: Network address.

.1: Reserved by AWS for the VPC router.

.2: Reserved by AWS. The IP address of the DNS server is always the base of the VPC network range plus two; however, we also reserve the base of each subnet range plus two. For VPCs with multiple CIDR blocks, the IP address of the DNS server is located in the primary CIDR. For more information, see Amazon DNS Server.

.3: Reserved by AWS for future use.

.255: Network broadcast address. We do not support broadcast in a VPC, therefore we reserve this address.

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

What is a NAT instance?

A

A network address translation (NAT) instance is an EC2 instance in a public subnet in your VPC that can enable instances in the private subnet to initiate outbound IPv4 traffic to the Internet or other AWS services, but prevent the instances from receiving inbound traffic initiated by someone on the Internet. (Internet Proxy)

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

What is the availability model of NAT Gateway?

A

NAT Gateways in each Availability Zone are built with redundancy, but only exist in a single Availability Zone. NAT Gateways must be built in multiple Availability Zones to avoid interruption if an Availability Zone goes down.

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

What setting will allow a NAT Instance to forward traffic for another EC2 Instance?

A

In order for a NAT Instance to forward traffic for other instances you need to disable the Source/Destination Check on the NAT Instance.

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

How many network ACLs can a subnet be associated with?

A

A subnet can only be associated with a single ACL.

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

What are the default settings for a private Network Access Control List?

A

The default settings for a private NACL are to deny all inbound and outbound traffic.

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

In what order are ACL rules evaluated?

A

Rules are evaluated in numerical order by the rule number.

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

What is the difference in the default permissions between the default Network ACL and a custom Network ACL?

A

The default Network ACL allows all traffic inbound and outbound by default. Custom Network ACLs deny all traffic inbound and outbound by default.

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

How can a subnet be associated with a Network ACL?

A

Every subnet must be associated with an ACL. When a subnet is created it will automatically be associated with the default ACL of of your VPC. An ACL can be associated with multiple subnets but a subnet can only be associated with a single ACL. Similarly an ACL can span multiple Availability Zones but a subnet can only reside in a single Availability Zone.

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

What mechanism do you have to use to block access to or from a specific IP address?

A

Blocking IP addresses can only be done using ACLs, this cannot be done using Security Groups.

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

What is the requirement of the VPC used when provisioning an Elastic Load Balancer?

A

When provisioning an ELB your VPC must have subnets in at least two Availability Zones and those subnets must be Internet accessible (provisioned with Internet Gateway).

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

At what levels can you create a VPC Flow Log?

A

Flow Logs can be created at the following levels:

  • VPC
  • subnet
  • network interface
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
14
Q

What is the purpose of a VPC Endpoint?

A

A VPC endpoint allows EC2 instances in a private VPC to connect to AWS resources without needing access to the internet.

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

How many VPC’s are allowed in each AWS Region by default?

A

5

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

You are a solutions architect working for a large oil and gas company. Your company runs their production environment on AWS and has a custom VPC. The VPC contains 3 subnets, 1 of which is public and the other 2 are private. Inside the public subnet is a fleet of EC2 instances which are the result of an autoscaling group. All EC2 instances are in the same security group. Your company has created a new custom application which connects to mobile devices using a custom port. This application has been rolled out to production and you need to open this port globally to the internet. What steps should you take to do this, and how quickly will the change occur?

A

Open the port on the existing security group. Your EC2 instances will be able to communicate over this port immediately