Question 36
Create a pod that having 3 containers in it? (Multi-Container)
Question 37
Task Weight: 4%

Task
Schedule a Pod as follows:
* Name: kucc1
* App Containers: 2
* Container Name/Images:
o nginx
o consul

Task
Schedule a Pod as follows:
* Name: kucc1
* App Containers: 2
* Container Name/Images:
o nginx
o consul
Question 38
You are managing a Kubernetes cluster with a complex deployment scenario. The cluster has multiple namespaces, each with its own set of applications and users. You need to create a robust RBAC system to enforce fine-grained access control.
Current Setup:
Namespace: 'dev', 'staging', 'production'
Users: 'developer', 'qa', 'admin'
Applications: 'appl', 'app2' in 'dev', 'app3' in 'staging', 'app4' in 'production' Requirements:
'developer' should be able to access and manage 'appl' and 'app2' in the 'dev' namespace.
'qa' should be able to access and manage 'app3' in the 'staging' namespace.
'admin' should have full cluster-wide access.
Task:
Create the necessary Role, RoleBinding, and ClusterRole objects to implement this RBAC system.
Current Setup:
Namespace: 'dev', 'staging', 'production'
Users: 'developer', 'qa', 'admin'
Applications: 'appl', 'app2' in 'dev', 'app3' in 'staging', 'app4' in 'production' Requirements:
'developer' should be able to access and manage 'appl' and 'app2' in the 'dev' namespace.
'qa' should be able to access and manage 'app3' in the 'staging' namespace.
'admin' should have full cluster-wide access.
Task:
Create the necessary Role, RoleBinding, and ClusterRole objects to implement this RBAC system.
Question 39
Score: 7%

Task
First, create a snapshot of the existing etcd instance running at https://127.0.0.1:2379, saving the snapshot to /srv/data/etcd-snapshot.db.

Next, restore an existing, previous snapshot located at /var/lib/backup/etcd-snapshot-previo us.db


Task
First, create a snapshot of the existing etcd instance running at https://127.0.0.1:2379, saving the snapshot to /srv/data/etcd-snapshot.db.

Next, restore an existing, previous snapshot located at /var/lib/backup/etcd-snapshot-previo us.db

Question 40
You are running an application in Kubernetes using a Deployment that defines 3 replicas. You need to perform a rolling update to the Deployment to upgrade the application to a new version. During the update process, you want to ensure that at least 2 replicas are always available, and the maximum number of new pods that can be created at the same time is also limited to 1. How can you configure the Deployment to achieve this rolling update strategy?









