AWS Cloud Developer: Kubernetes for production Flashcards

1
Q

Kubernetes configuration for reducing cost

A

reduce number of replicas

reduce and tune resources

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

Kubernetes configuration for security

A

Configure who has access to the Kubernetes pods and services.

Secure traffic for least-privilege

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

What are some additional considerations for production ready applications

A

Restrict Access
Follow properties of least-privilege to secure our application.

Scale
Be able to handle the number and size of user requests.

Availability
Ensure that the application is responsive and able to be used when needed.

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

Load Testing

A

Load testing is a common way to simulate a large number of requests to our application. By doing so, we are essentially stress-testing it to preview when it will fail. This helps us set a baseline understanding of the limits of our application.

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

Reverse Proxy

A

A single interface that forwards requests on behalf of the client and appears to the client as the origin of the responses.

Useful for abstracting multiple microservices to appear as a single resource.

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

API Gateway

A

A form of a reverse proxy that serves as an abstraction of the interface to other services.

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

Ingress

A

Inbound web traffic

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

Egress

A

Outbound web traffic

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

Self-healing

A

Kubernetes deployments can be set up to recover from failure.

Health checks - an HTTP endpoint that must return a 200 response for a healthy status. Kubernetes will periodically ping this endpoint.
Replicas - Kubernetes will attempt to maintain the number of desired replicas. If a pod is terminated, it will automatically recreate the pod.

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

Horizontal Pod Autoscaler

A

Horizontal Pod Autoscaler

A deployment feature that allows additional pods to be created when a CPU usage threshold is reached.

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

CMD: Create HPA

A

kubectl autoscale deployment –cpu-percent= –min=
–max=

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

CMD: View HPA

A

kubectl get hpa

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

Liveness Probe

A

A monitoring activity that occurs at scheduled intervals to ping a health check API endpoint to validate that the application is in a healthy state.

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

Resilience

A

The property of an application to handle and recover from failures.

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

Why do we choose to use horizontal scaling over vertical scaling with our microservices?

A

Horizontal scaling is more cost-effective?

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

Logging strategies

A

Use timestamps to know when the activity occurred

Set a consistent style of logging to make it easier to parse log output

Use process IDs to trace an activity

Rotate logs so they don’t fill up your storage

Include stack traces in your logs

Look at the delta in message timestamps to measure execution time