Scenario I
1.
Your team is working on a project that requires multiple isolated environments within the same Kubernetes cluster, each with its own set of resources. What Kubernetes feature allows you to achieve this?
Namespace
Cluster
PodSecurityPolicy
ServiceAccount
2.
Your team needs to monitor and analyze the resource usage of a specific Pod. What Kubernetes command allows you to view the CPU and memory metrics for a Pod?
kubectl describe pod pod-name
kubectl top pod pod-name
kubectl get resources pod-name
kubectl logs pod-name
3.
You are deploying a microservices application, and you want to ensure that certain services do not run on the same node for improved fault tolerance. What Kubernetes feature allows you to achieve this?
PodSelector
NodeAffinity
PodAffinity
PodAntiAffinity
4.
Your team is deploying a batch processing workload that runs to completion, such as data processing or ETL jobs. What Kubernetes resource is best suited for managing these tasks?
Deployment
Pod
Service
Job
5.
You need to delete all resources within a specific Kubernetes Namespace. What Kubernetes command allows you to achieve this?
kubectl delete all -n namespace-name
kubectl remove namespace namespace-name
kubectl delete namespace namespace-name
kubectl destroy namespace namespace-name
6.
You have a microservices application with multiple services. Each service is packaged as a container. What Kubernetes resource is best suited to manage and deploy these services?
Service
Pod
Deployment
StatefulSet
7.
Your team is working on deploying a web application that requires a public-facing endpoint. What Kubernetes resource should you use to expose the web application externally and manage traffic?
NodePort
Service
Ingress
LoadBalancer
8.
Your application needs to store sensitive information, such as API keys and passwords. What Kubernetes resource is suitable for securely managing and accessing these secrets within your Pods?
PersistentVolume
ConfigMap
Secret
ServiceAccount
9.
You are developing a stateful application that requires stable network identities and ordered scaling. Which Kubernetes resource is appropriate for deploying and managing this stateful application?
DaemonSet
Deployment
StatefulSet
ReplicaSet
10.
You need to configure environment variables for your application running in a Pod. What Kubernetes resource allows you to define these environment variables in a reusable way?
Secret
ConfigMap
PodSecurityPolicy
ServiceAccount
11.
Your team is deploying a set of microservices, and you want to ensure that certain services always run together on the same node. What Kubernetes feature allows you to achieve this?
NodeAffinity
PodAffinity
PodAntiAffinity
PodSelector
12.
You have a scenario where you need to scale a Deployment based on CPU usage. What Kubernetes feature allows you to automatically adjust the number of replicas based on resource metrics?
VerticalPodAutoscaler
HorizontalPodAutoscaler
PodAffinity
NodeAffinity
13.
You are developing a Kubernetes application that requires a specific IP address for external access. What Kubernetes service type should you use?
Ingress
NodePort
LoadBalancer
ExternalIP
14.
You have a scenario where you need to ensure that a specific Pod runs on every node in your Kubernetes cluster. What Kubernetes resource should you use?
Deployment
StatefulSet
ReplicaSet
DaemonSet
15.
Your team is deploying a microservices architecture, and you need a way to manage external access and routing to different services. What Kubernetes resource allows you to achieve this?
Ingress
Service
LoadBalancer
NodePort
16.
You need to expose a Kubernetes Deployment externally using a specific DNS name. What Kubernetes resource allows you to define these external access rules, including DNS names?
NodePort
Service
LoadBalancer
Ingress
17.
Your application requires access to specific resources within the Kubernetes cluster. What Kubernetes feature allows you to control permissions and access for your Pods?
Role
ServiceAccount
RoleBinding
ClusterRole
18.
Your team is deploying a web application, and you want to encrypt the communication between Pods within the same application. What Kubernetes feature allows you to achieve this?
SecurityGroup
NetworkPolicy
FirewallRule
PodSecurityPolicy
19.
Your application requires a specific set of permissions within the Kubernetes cluster. What Kubernetes feature allows you to define these permissions and associate them with your Pods?
RoleBinding
ClusterRole
Role
ClusterRoleBinding
20.
Your team is developing a Kubernetes application, and you need a way to organize and manage related resources together. What Kubernetes feature allows you to achieve this?
ResourceGroup
Namespace
Cluster
PodSet
21.
Your team is deploying a set of microservices, and you need a way to manage and expose these services externally with a specific IP address. What Kubernetes feature allows you to achieve this?
ServiceType
ExternalIP
LoadBalancer
Ingress