Containers in the Cloud Flashcards

(18 cards)

1
Q

What is a container?

A

An invisible box around your code and its dependencies, with limited access to its own partition of the file system and hardware. It’s highly portable, allowing ‘code once, run anywhere’.

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

What are two key benefits of using containers?

A

Portability (run code from development to production without changing anything) and Scalability (can be duplicated quickly to meet demand).

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

What is Kubernetes?

A

An open-source platform for managing containerized workloads and services.

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

What are the main functions of Kubernetes?

A

Orchestrates many containers on many hosts, scales them as microservices, and facilitates rollouts and rollbacks.

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

What is a Kubernetes Cluster?

A

At the highest level, it’s a set of APIs to deploy containers on a set of nodes called a cluster.

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

What is the Control Plane in Kubernetes?

A

The system is divided into a set of primary components that run as the control plane and a set of nodes that run containers.

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

What is a Node in Kubernetes?

A

In Kubernetes, a node represents a computing instance, like a machine.

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

What is a Pod in Kubernetes?

A

The smallest unit in Kubernetes that you create or deploy. It’s a wrapper around one or more containers that run together and share networking/storage resources.

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

Why do Pods have fixed IPs within a Service?

A

Pod IP addresses don’t remain stable over time as they are created and destroyed. A Service provides a stable endpoint (fixed IP) for a group of Pods.

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

What is a Deployment in Kubernetes?

A

A group of replicas of the same Pod that keeps your Pods running even when the nodes they run on fail.

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

What is a Service in Kubernetes?

A

An abstraction which defines a logical set of Pods and a policy by which to access them.

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

How can external traffic access Pods in a Kubernetes cluster?

A

Through a Service with a fixed IP, which can be exposed externally via a load balancer. In GKE, the load balancer is created as a network load balancer.

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

What is a rolling update in Kubernetes?

A

A method to update applications by creating new Pods individually and waiting for new Pods to be available before destroying old ones, ensuring continuous availability.

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

What is Google Kubernetes Engine (GKE)?

A

A Google-hosted managed Kubernetes service in the cloud.

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

How does GKE simplify Kubernetes management compared to self-hosting?

A

GKE manages all the control plane components for us and is responsible for provisioning and managing all the control plane infrastructure behind it.

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

What is the key difference between GKE Autopilot mode and Standard mode?

A

Autopilot manages underlying infrastructure (node configuration, autoscaling, auto-upgrades, baseline security) for you. Standard mode requires you to manage the underlying infrastructure yourself.

17
Q

Which GKE mode is generally recommended for most users and production?

A

Autopilot mode, as it’s optimized for production and promotes operational efficiency.

18
Q

Name three benefits of running GKE clusters.

A

Google Cloud’s load-balancing for Compute Engine instances, Automatic scaling of your cluster’s node instance count, Automatic upgrades for your cluster’s node software, Node auto-repair to maintain node health and availability, Logging and monitoring with Google Cloud Observability, Node pools to designate subsets of nodes within a cluster.