Question 16

You're running a MYSQL database pod in a Kubernetes cluster. You need to ensure that the pod is always running on a specific node, regardless of node failures or maintenance events. This node has specific hardware or software requirements that the MySQL database requires. How do you achieve this?

Question 17

You are working on a Kubernetes application that requires ephemeral storage. The application data needs to be stored within the pod's container and should be deleted when the pod is deleted. How can you achieve this using ephemeral storage in Kubernetes?

Question 18


Context
You are asked to prepare a Canary deployment for testing a new application release.
Task:
A Service named krill-Service in the goshark namespace points to 5 pod created by the Deployment named current-krill-deployment

1) Create an identical Deployment named canary-kill-deployment, in the same namespace.
2) Modify the Deployment so that:
-A maximum number of 10 pods run in the goshawk namespace.
-40% of the krill-service 's traffic goes to the canary-krill-deployment pod(s)

Question 19

You are deploying a microservice application that requires secure access to an external database. The database credentials are stored as environment variables Within the application container. You want to create a Kubernetes secret that securely stores these credentials and can be mounted as a file in the container.

Question 20

Exhibit:

Context
Your application's namespace requires a specific service account to be used.
Task
Update the app-a deployment in the production namespace to run as the restrictedservice service account. The service account has already been created.