Networking: Amazon Virtual Private Cloud Flashcards

1
Q

Need to identify the instances that are generating the most traffic using a NAT gateway

A

Use VPC flow logs on the NAT gateway ENI and use CloudWatch insights to filter based on source IP address

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

Latency on a NAT instance has increased, need a solution that scales with demand cost-efficiently

A

Swap with a NAT gateway

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

NAT gateway is NOT highly available across AZs, only within an AZ

A

Use multiple NAT gateways for HA across AZs

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

NAT instance deployed but not working

A

Make sure to disable source/destination checks

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

Need to enable access to S3 without the instances using public IP addresses

A

Use a NAT gateway or VPC endpoint

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

EC2 instance in private subnet cannot reach the Internet. Route table has a route to a NAT gateway with a status of “Blackhole”

A

Indicates the NAT gateway has been deleted

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

Need to connect to S3 from EC2 using private network only. Must also ensure that only the instances can access the bucket

A

Create a VPC endpoint and a bucket policy with a Condition that limits S3 actions to the VPC endpoint as the source

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

VPC endpoint setup to allow private IP address connectivity to S3 bucket, permissions configured, but instances still can’t connect

A

Make sure the subnet has a target in the route table for the VPC endpoint

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

Need to manage EC2 instances in a private subnet from an office using SSH but instances cannot have internet access

A

Add a VGW and configure routing in the VPC and establish a VPN to the office

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

Need encryption in-transit and at-rest for hybrid environment

A

Use an AWS VPN and use KMS keys for data encryption

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

Network change was made that resulted in application to DB connection issues

A

Analyze using VPC Flow Logs

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

Inbound and outbound internet connectivity required for EC2 instances

A

Need to attach an internet gateway to the VPC and add an entry in the route table for the subnet that points to the internet gateway

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

Web application has EC2 with public IPs behind an ALB. EC2 instances cannot connect to external service

A

Need to create an attach an IGW to the VPC and update the route table

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

VPC peering connection setup between two different VPCs. Instances in private subnets still can’t communicate

A

Make sure the route tables are updated

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

A company has configured a VPC peering connection between two VPCs and needs to set up connectivity between instances in private subnets

A

Configure the VPC route tables with routes pointing to the address range of the other VPC

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

Company backing up one VPC to another in different region. All data must be private and encrypted

A

Use inter-region VPC peering which encrypts across the AWS global network

17
Q

Malicious IP identified and must be blocked from all ingress and egress connectivity

A

Add a rule to a network ACL for all affected subnets

18
Q

VPC connected to data center by VPN. User pings private subnet instance from on-prem computer and fails. VPC Flow Logs show accept for inbound but reject for outbound traffic

A

Modify the network ACL to allow outbound traffic

19
Q

Malicious traffic coming from a single IP address

A

Use a NACL for the web server subnet to deny IP address

20
Q

Admin has setup instance for remote access and can SSH from internet but cannot ping

A

Most likely reason is that the instance’s security group does not have a rule allowing ICMP

21
Q

Admin connecting to EC2 instance using SSH from office but gets connection timeout from home

A

Most likely doesn’t have the home network IP range in the security group allow rule for SSH