AWS Cloud Developer: Orchestration with Kubernetes Flashcards

1
Q

Orchestration

A

Orchestration is the automated management of the lifecycle of our application

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

Kubernetes

A

A container orchestration system packed with features for automating our application’s deployment
Enables us to easily scale our application and ship new code

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

Pods

A

A set of containers that are deployed together

Containers often need to communicate with one another. It’s not uncommon to see a deployment involving a few containers to be deployed.
Kubernetes pods are abstractions of multiple containers and are also ephemeral.

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

Services

A

Applications are often deployed with multiple replicas. This helps with load balancing and horizontal scaling.

Services are an abstraction of a set of pods to expose them through a network

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

Load Balancing

A

Handling traffic by distributing it across different endpoints

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

Replica

A

A redundant copy of a resource often used for backups or load balancing

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

Round Robbin Load Balancing

A

Round‑robin load balancing is one of the simplest methods for distributing client requests across a group of servers. Going down the list of servers in the group, the round‑robin load balancer forwards a client request to each server in turn. When it reaches the end of the list, the load balancer loops back and goes down the list again (sends the next request to the first listed server, the one after that to the second server, and so on).

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

Main benefit of Round Robin load balancing

A

The main benefit of round‑robin load balancing is that it is extremely simple to implement. However, it does not always result in the most accurate or efficient distribution of traffic, because many round‑robin load balancers assume that all servers are the same: currently up, currently handling the same load, and with the same storage and computing capacity.

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

2 types of Round Robbin Load-balancing algorithms that take additional factors such as machine type and resources into account

A

Weighted round robin – A weight is assigned to each server based on criteria chosen by the site administrator; the most commonly used criterion is the server’s traffic‑handling capacity. The higher the weight, the larger the proportion of client requests the server receives. If, for example, server A is assigned a weight of 3 and server B a weight of 1, the load balancer forwards 3 requests to server A for each 1 it sends to server B.

Dynamic round robin – A weight is assigned to each server dynamically, based on real‑time data about the server’s current load and idle capacity.

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

Amazon EKS

A

Amazon Elastic Kubernetes Service (Amazon EKS) gives you the flexibility to start, run, and scale Kubernetes applications in the AWS cloud or on-premises.

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

CMD: Create a kubeconfig automatically

A

aws eks –region update-kubeconfig –name

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

CMD: Check kubeconfig configuraiton

A

kubectl get svc

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

What three dependencies needs to be installed and setup in order to interact with kubernetes cluster?

A

Install kubectl
Set up aws-iam-authenticator
Set up kubeconfig

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

CMD: Loading yaml file

A

kubectl apply -f deployment.yaml

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

CMD: kubectl show pods in the cluster

A

kubectl get pods

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

CMD: kubectl show services in the cluster

A

kubectl describe services

17
Q

CMD: kubectl display information about the cluster

A

kubectl cluster-info

18
Q

Cluster

A

A group of resources that are connected to act as a single system

19
Q

CMD:Kubectl To attach to a container in a pod for debugging

A

kubectl exec -it {pod_name} /bin/bash

20
Q

What’s the difference between a Service and a Deployment in Kubernetes?

A

A deployment is responsible for keeping a set of pods running. A service is responsible for enabling network access to a set of pods.

21
Q

CMD: bind eks cluster to kubctl

A

aws eks –region ap-southeast-1 update-kubeconfig –name simple_node