Question 66

You are building a web application with two microservices: a frontend service ('frontend') and a backend service ( ' backend'). The frontend service requires access to the backend service, which iS exposed on port 8080 within the Kubernetes cluster. How would you configure an Ingress resource to direct traffic to the correct service based on the hostname, ensuring that the frontend service can access the backend service internally without exposing the backend service to the public internet?

Question 67

You have a Kustomization file that applies a patch to the 'spec-template-spec-containers-image' field of a Deployment However, you are now using a newer version of Kubernetes and have received warnings about the deprecated 'spec.template.spec' path. How can you update the Kustomization file to use the recommended API path, ensuring the patch still applies correctly?

Question 68


Task
You are required to create a pod that requests a certain amount of CPU and memory, so it gets scheduled to-a node that has those resources available.
* Create a pod named nginx-resources in the pod-resources namespace that requests a minimum of 200m CPU and 1Gi memory for its container
* The pod should use the nginx image
* The pod-resources namespace has already been created

Question 69

You are running a microservices application on Kubernetes, and you need to restrict the communication between your services to specific ports. For example, your 'frontend' service should only be allowed to communicate with the 'backend' service on port 8080. How would you configure this using NetworkPolicy in Kubernetes?

Question 70

You are managing a Kubernetes cluster with multiple teams working on different projects. Each team needs its own isolated environment within the cluster to deploy tneir applications and manage their resources witnout interfering With others. Describe how you would use Kubernetes namespaces to achieve this, and provide an example of how you might configure a namespace for a team working on a new e-commerce application.