[DEVELOPER] Advanced Networking and Content Delivery Flashcards

(26 cards)

1
Q

What is the primary function of an Interface VPC Endpoint (powered by PrivateLink)?

A

Allows you to connect to an AWS service using private IP addresses in your VPC via an ENI, without using an Internet Gateway or NAT Gateway.

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

What is a Gateway VPC Endpoint?

A

A target you specify in your route tables to privately access Amazon S3 and DynamoDB from your VPC. It is not an ENI and does not use PrivateLink.

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

When connecting to a service via PrivateLink, does the traffic flow ever touch the public internet?

A

It stays entirely within the AWS network backbone, never touching the public internet.

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

What is the key developer benefit of AWS Global Accelerator over CloudFront?

A

It improves performance for non-HTTP/HTTPS applications (like gaming, IoT, or VoIP) and provides two static, Anycast IP addresses as a fixed entry point.

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

At what layer does Global Accelerator primarily operate?

A

Layer 4 (TCP/UDP), which is why it’s suitable for non-HTTP traffic.

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

What is the primary role of AWS App Mesh in a microservices architecture?

A

It is a service mesh that enables consistent traffic control, monitoring, and logging across services running on EC2, ECS, or EKS using the Envoy proxy

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

What is a service mesh?

A

A microservice abstraction that handles all of the interactions of your microservices with each other, leaving the microservices to just handle their business logic

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

Which two deployment strategies does App Mesh facilitate?

A
  1. Canary Deployment (slow rollout of a new version)
  2. A/B Testing by controlling the percentage of traffic routed to each service version.
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
9
Q

What is AWS Cloud Map?

A

An API-based service discovery tool that lets your applications find and connect to services by using custom names, eliminating the need to hardcode service locations.

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

How does Cloud Map integrate with Route 53?

A

Cloud Map can create and update Route 53 records automatically for newly deployed services

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

In what key ways is service discovery different from DNS?

A

Both answer “where is my dependency?”

Service discovery is better equipped to handle dependencies that are more ephemeral (e.g. likely to move / scale vs. static webpages)

It does that by actively pushing a services location to the resolver (vs. DNS just uses TTL)

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

How can a developer temporarily restrict access to specific files in a CloudFront distribution?

A

Use Signed URLs or Signed Cookies

They include an expiration time and a policy to define what the user can access.

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

What does OAC stand for?

A

Origin Access Control

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

What is the modern, preferred way to restrict access to an S3 bucket so that users can only access files via CloudFront?

A

Origin Access Control (OAC), which is an improvement over the legacy OAI (Origin Access Identity).

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

A backend service is under maintenance. How can an ALB be configured to communicate this to the client without hitting any of the downstream targets?

A

Use the Fixed Response Action in the listener rule to immediately return a custom response code (e.g.503 Service Unavailable) and a custom message.

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

In an ALB, how can you route requests based on data in the request body?

A

You can’t.

ALBs only perform routing based on data in the request headers, path, query strings, or source IP address.

17
Q

What is the use case for an ALB Fixed Response Action?

A

It is an ALB Listener action that returns a specified HTTP status code and body to the client without forwarding the request downstream to any target group

18
Q

In the context of Geoproximity Routing

What is a bias?

A

It changes the effective distance between client and server for geoproximity routing

19
Q

How does an OAC grant CloudFront permission to access a private S3 bucket?

A

By assigning an IAM Service Principal to the CloudFront distribution and updating the S3 Bucket Policy to trust that principal.

20
Q

What is the required AWS region for an AWS Certificate Manager (ACM) certificate used with a CloudFront distribution?

A

It must be created in the us-east-1 (N. Virginia) region, as CloudFront is a global service.

21
Q

What happens if you try to use an ACM certificate that is NOT in the us-east-1 region for a CloudFront distribution?

A

CloudFront will not allow the certificate to be selected for the distribution.

22
Q

What is the recommended practice for securing the connection between the viewer (client) and CloudFront?

A

Use HTTPS/TLS (requiring an ACM certificate).

23
Q

If something in a private subnet needs to communicate with S3 or DynamoDB outside the VPC, what should be used?

A

Gateway Endpoint

24
Q

If something in a private subnet needs to communicate with an AWS service OTHER THAN S3 or DynamoDB outside the VPC, what should be used?

A

Interface Endpoint

25
If something in a private subnet needs to communicate with a 3rd party service outside of AWS and the VPC, and communication does **not** need to be bidirectional, what should be used?
NAT Gateway
26
If something in a private subnet needs to communicate with a 3rd party service outside of AWS and the VPC, and communication needs to be bidirectional, what should be used?
Internet Gateway