Application Deployment Flashcards

(19 cards)

1
Q

What is a Deployment?

A

It is a controller that maintains the desired state of ReplicaSets, which in turn manage Pods

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

What is the default update strategy for a Deployment?

A

RollingUpdate.

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

Which strategy kills all old pods before creating new ones?

A

Recreate.

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

How do you roll back a deployment to the previous version?

A

kubectl rollout undo deployment/<deployment-name>

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

How do you scale a deployment named ‘webapp’ to 5 replicas?

A

kubectl scale deployment webapp –replicas=5

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

What is a Blue/Green deployment?

A

A deployment strategy where you have two identical environments; one is ‘live’ and one is ‘idle’.

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

What is a Canary deployment?

A

Routing a small percentage of traffic to a new version of the app to test it.

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

What happens if you set ‘maxUnavailable: 0’ and ‘maxSurge: 1’ during a rollout?

A

Azure will always ensure 100% capacity is maintained by creating a new pod before killing an old one.

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

How do you check the specific changes made in revision 3 of a deployment?

A

kubectl rollout history deployment <name> --revision=3

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

How do you temporarily stop a rolling update to verify a change?

A

kubectl rollout pause deployment <name>

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

Which command allows you to resume a paused deployment?

A

kubectl rollout resume deployment <name>

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

How do you record the ‘why’ or ‘what’ of a deployment change since –record is deprecated?

A

Use the ‘kubernetes.io/change-cause’ annotation in the metadata.

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

If a Deployment fails to complete within 10 minutes; which parameter controls this timeout?

A

‘progressDeadlineSeconds’ (default is 600s).

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

Which Control Plane component is responsible for noticing when a replica dies and telling the API to start a new one?

A

The Kube-Controller-Manager.

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

If you scale a deployment but no new pods are created, which component’s logs should you check first?

A

The Kube-Controller-Manager.

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

What is the difference between a Deployment and a StatefulSet regarding pod naming?

A

Deployments use random hashes; StatefulSets use ordinal indexes (pod-0, pod-1) and maintain persistent identities.

17
Q

How do you view the revision history of a deployment?

A

kubectl rollout history deployment/<name></name>

18
Q

How do you roll back a deployment to a specific revision number?

A

kubectl rollout undo deployment/<name> --to-revision=<number></number></name>

19
Q

How do you check the real-time progress of a rollback?

A

kubectl rollout status deployment/<name></name>