Networking Flashcards

1
Q

Networking has 2 types of IPs. Name them

A

IPv4 and IPv6

IPv4 is still the most common format used online
IPv4 allows for 3.7 billion different addresses in the public space
IPv4: [0-255].[0-255].[0-255].[0-255]
IPV6 is newer and solves problems for IoT devices

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

What is a placement group?

A

A placement group in AWS is a logical grouping of instances within the same Availability Zone to achieve specific performance or architectural goals.

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

What are the types of placement groups?

A

Cluster, Spread, and Partition

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

What is a Cluster placement group?

A

This type is designed for applications that benefit from low network latency, high network throughput, or both. Instances within a cluster placement group are placed in close physical proximity to each other, within a single Availability Zone.

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

What is a Spread placement group?

A

In this type, instances are spread across distinct underlying hardware to reduce the risk of simultaneous failure. It’s suitable for applications that have a small number of critical instances that must be kept separate.

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

What is a Partition placement group?

A

This type enables you to spread instances across partitions to ensure that each partition maintains its performance attributes while benefiting from the aggregate network bandwidth and aggregate IOPS available to the group.

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

What is an ENI?

A

Elastic Network Interfaces

It is a logical component in a VPC that represents a virtual network card

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

What are the important attributes of an ENI?

A

Primary private IPv4, one or more secondary IPv4
One Elastic IP (IPv4) per private IPv4
One Public IPv4
One or more security groups
A MAC address

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

ENI can be created independently and attach them on the fly on EC2 instances for failover. True or False?

A

True

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

ENI can be bound to multiple AZs. True or False?

A

False

ENI can be bound to a specific availability zone

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

What happens to public IP address when you restart a running EC2 instance?

A

A new public IPv4 address is allocated to the EC2 instance after restart

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

You are using ssh to login to the EC2 instance using the security key. A little while later, you restart the instance after which you are no longer able to connect to the EC2 instance. Why? and how do you fix the issue?

A

After a restart you are unable to ssh to the EC2 instance because a new public IPv4 address is allocated which prevents you from connecting. The solution is to create an Elastic IP. It is not free and you get charged

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

You have launched an EC2 instance that will host a NodeJS application. After installing all the required software and configured your application, you noted down the EC2 instance public IPv4 so you can access it. Then, you stopped and then started your EC2 instance to complete the application configuration. After restart, you can’t access the EC2 instance, and you found that the EC2 instance public IPv4 has been changed. What should you do to assign a fixed public IPv4 to your EC2 instance?

A

Allocate an Elastic IP and assign it to your EC2 Instance

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

Spot Fleet is a set of Spot Instances and optionally

a) Reserved Instances

b) On-Demand Instances

c) Dedicated Hosts

d) Dedicated Instances

A

b) On-Demand Instances

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

You have an application performing big data analysis hosted on a fleet of EC2 instances. You want to ensure your EC2 instances have the highest networking performance while communicating with each other. Which EC2 Placement Group should you choose?

A

Cluster Placement Groups place your EC2 instances next to each other which gives you high-performance computing and networking.

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

You have a critical application hosted on a fleet of EC2 instances in which you want to achieve maximum availability when there’s an AZ failure. Which EC2 Placement Group should you choose?

A

Spread Placement Group places your EC2 instances on different physical hardware across different AZs.

17
Q

Elastic Network Interface (ENI) can be attached to EC2 instances in another AZ. True or False?

A

False
Elastic Network Interfaces (ENIs) are bounded to a specific AZ. You can not attach an ENI to an EC2 instance in a different AZ.

18
Q

The following are true regarding EC2 Hibernate, EXCEPT:

a) EC2 Instance Root Volume must be an Instance Store Volume

b) Supports On-Demand and Reserved Instances

c) EC2 Instance RAM must be less than 150 GB

d) EC2 Instance Root Volume type must be an EBS volume

A

a)

To enable EC2 Hibernate, the EC2 Instance Root Volume type must be an EBS volume and must be encrypted to ensure the protection of sensitive content.