Question 66

You have a microservice that is deployed in a Kubernetes cluster, and you want to monitor its performance and health using Prometheus and Grafan a. How can you configure Prometneus to scrape metrics from your microservice and create dashboards in Grafana?

Question 67

You have a Deployment named 'wordpress-deployment' that runs 3 replicas of a WordPress container. You want to implement a blue- green deployment strategy for this deployment This strategy should involve creating a new replica set with the updated image, and then gradually shitting traffic to the new replica set. After the traffic has been shifted, the old replica set should be deleted. This process should be fully automated whenever a new image is pushed to the Docker Hub repository 'example/wordpress:latest'

Question 68

You are running a Kubernetes cluster with a deployment for a critical application. The application uses sensitive data stored in a secret. To ensure security, you need to implement a policy that prevents the deployment of pods for this application if the secret containing the sensitive data is missing. How would you implement this using Custom Resource Definitions (CRDs) and Admission Webhooks?

Question 69

Context

Task:
Update the Deployment app-1 in the frontend namespace to use the existing ServiceAccount app.

Question 70

Refer to Exhibit.

Task
Create a new deployment for running.nginx with the following parameters;
* Run the deployment in the kdpd00201 namespace. The namespace has already been created
* Name the deployment frontend and configure with 4 replicas
* Configure the pod with a container image of lfccncf/nginx:1.13.7
* Set an environment variable of NGINX__PORT=8080 and also expose that port for the container above