In a Kubernetes API object, what is the distinction between spec and status?
Kubernetes Workloads, Networking, and Operations Online Quiz Questions
Use this free practice quiz with 10 questions to review Kubernetes Workloads, Networking, and Operations, test your knowledge, and prepare for your next test or exam.
A Deployment requests three replicas, but only two Pods exist. Which sequence describes how Kubernetes works toward the requested state?
- A
The scheduler creates the missing Pod, then etcd starts its containers.
- B
The kubelet creates the missing Pod, then the controller manager assigns it to a node.
- C
The Deployment controller creates the missing Pod, the scheduler assigns it to a node, and the kubelet works with the runtime to start its containers.
- D
The API server creates the missing Pod and starts its containers directly.
An application needs a stable Service endpoint for internal communication with another workload in the same cluster. Which Service type is the default option for this use?
- A
ClusterIP - B
NodePort - C
ExternalName - D
LoadBalancer
After an image update, a Deployment’s new Pods appear unhealthy. What is the most appropriate operational response?
- A
Delete all ReplicaSets immediately, then create individual Pods to replace them.
- B
Change the Service selector to force the Deployment to restart its Pods.
- C
Assume the update succeeded once the new ReplicaSet exists, without checking Pod status.
- D
Inspect the rollout and Pod events; then decide whether to revise the change or roll it back.
Which statement correctly describes a Pod’s network identity and what can happen when a controller replaces a lost Pod?
- A
Containers in a Pod share a network identity, and a replacement Pod must retain the lost Pod’s IP address.
- B
Containers in a Pod share a network identity, and a replacement Pod may have a different IP address.
- C
Containers in a Pod each have a separate network identity, but replacement Pods keep the same IP address.
- D
Containers in a Pod share storage only; they cannot communicate with each other over
localhost.
A team needs a node-local monitoring agent to run as a Pod on every eligible node. Which workload resource is the best fit?
- A
A Job
- B
A Deployment
- C
A DaemonSet
- D
A CronJob
What is the difference between readiness and liveness probes?
- A
Readiness affects whether the Pod is considered ready for Service traffic; liveness helps detect a container that should be restarted.
- B
Readiness detects containers that should be restarted; liveness determines whether the Pod receives Service traffic.
- C
Both probes determine whether a Pod is scheduled to a node.
- D
Readiness controls resource limits; liveness assigns the Pod a Service endpoint.
Which statement distinguishes a Service from Ingress or a gateway layer?
- A
A Service defines external HTTP routing, while Ingress provides a stable endpoint for changing Pod sets.
- B
A Service and Ingress are interchangeable ways to identify the same backend endpoint.
- C
Ingress replaces the need for a Service because it selects Pods directly.
- D
A Service identifies a backend endpoint, while Ingress or a gateway layer handles external routing.
When configuring a container, how do resource requests differ from resource limits?
- A
Requests constrain resource use; limits inform the scheduler’s node choice.
- B
Requests inform the scheduler’s node choice; limits constrain resource use.
- C
Both requests and limits are used only to choose a node.
- D
Both requests and limits constrain resource use in the same way.
What is required to implement the HTTP or HTTPS routing rules defined by an Ingress resource?
- A
A DNS record that matches the Ingress name
- B
A Service selector that matches the external client
- C
An Ingress controller
- D
A Deployment with a matching ReplicaSet
Related study packs and tools
AWS Cloud Concepts
Practice cloud benefits, deployment models, scalability, elasticity and AWS Cloud concepts.
12 study toolsAWS Cloud Practitioner Practice Test
Comprehensive AWS Certified Cloud Practitioner practice covering cloud concepts, security, AWS services and pricing.
15 study toolsAWS Cloud Technology and Services: Cloud Databases
Focused study of relational and nonrelational databases and service selection concepts.
12 study toolsAWS Cloud Technology and Services: EC2 Compute
Focused study of instances, instance types, scaling and compute use cases.
12 study toolsAWS Cloud Technology and Services: S3 Storage
Focused study of objects, buckets, storage classes and storage use cases.
12 study toolsAWS Cloud Technology and Services: Serverless Services
Focused study of event-driven functions and serverless application concepts.
15 study tools