Courseiva

CCNA Troubleshooting Questions

69 questions · Troubleshooting topic · All types, answers revealed

1
MCQhard

An OpenShift cluster's SDN (OVN-Kubernetes) experiences packet loss between nodes. The administrator needs to inspect the Open vSwitch (OVS) flow tables on a specific worker node. How should they access the node to run 'ovs-ofctl dump-flows'?

A.oc adm diagnostics ovs
B.oc debug node/<node-name> -- chroot /host ovs-ofctl dump-flows br-int
C.oc exec daemonset/ovn-controller -- ovs-ofctl dump-flows
D.oc rsh daemonset/ovnkube-node
AnswerB

This command runs chroot on the host filesystem via oc debug to directly execute OVS commands.

Why this answer

Using oc debug node/<node-name> provides a shell where chroot /host allows executing host-level commands like ovs-ofctl.

2
Multi-Selecteasy

An administrator wants to inspect cluster events filtered by warning type. Which TWO commands or techniques can help? (Choose TWO)

Select 2 answers
A.oc describe pod <pod-name> (to view recent warning events for that pod).
B.oc get events --field-selector type=Warning
C.oc get clusterversion --warnings
D.oc logs --warnings
E.oc adm must-gather --warnings-only
AnswersA, B

Displays warning events specific to the targeted pod.

Why this answer

Filtering events via oc get events or inspecting descriptions helps identify cluster warnings.

3
MCQeasy

An administrator wants to view the logs of a specific container named 'backend' inside a pod with multiple containers. Which command should be used?

A.oc logs pod/my-pod backend
B.oc rsh pod/my-pod backend
C.oc describe pod/my-pod -c backend
D.oc logs pod/my-pod -c backend
AnswerD

The -c flag correctly specifies which container's logs to retrieve from a multi-container pod.

Why this answer

When a pod has multiple containers, the container name must be explicitly specified with the -c flag in the oc logs command.

4
MCQeasy

An administrator needs to verify which user account or service account they are currently logged into the OpenShift cluster with. Which command provides this information?

A.oc whoami
B.oc user-info
C.oc auth current-user
D.oc get user --current
AnswerA

oc whoami outputs the current authenticated user identity.

Why this answer

oc whoami returns the username of the currently authenticated user session.

5
MCQeasy

An administrator wants to check the resource requests and limits across all pods in a specific namespace. Which command provides this summary?

A.oc get quota
B.oc describe namespace my-namespace
C.oc get pods -o custom-columns=NAME:.metadata.name,CPU:.spec.containers[*].resources.requests.cpu
D.oc adm top pod -n my-namespace
AnswerC

Custom columns allow extracting specific resource requests and limits from pod specifications.

Why this answer

oc adm top pod lists CPU and memory usage for pods, while describing or querying pod YAML specifications reveals requests and limits.

6
Multi-Selecthard

An administrator suspects that a memory leak in a system daemon on an RHCOS worker node is causing system instability. Which THREE commands or log sources can be examined via an oc debug node session to investigate system memory consumption? (Choose THREE)

Select 3 answers
A.chroot /host top -b -n 1
B.oc get pvc
C.oc adm cluster-status
D.journalctl -k -e
E.chroot /host free -h
AnswersA, D, E

Dumps process memory and CPU statistics on the host.

Why this answer

Running 'top', 'free -h', and checking journald kernel logs via oc debug node inspects host memory usage.

7
MCQeasy

An administrator wants to check the logs of the Cluster Version Operator to see why an upgrade failed. In which namespace does the CVO run?

A.openshift-cluster-version
B.openshift-operator-lifecycle-manager
C.openshift-config-operator
D.kube-system
AnswerA

The CVO runs in the openshift-cluster-version namespace.

Why this answer

The Cluster Version Operator is deployed and runs in the openshift-cluster-version namespace.

8
Multi-Selecteasy

An administrator is troubleshooting a deployment where pods fail to pull container images. Which TWO potential issues should be checked? (Choose TWO)

Select 2 answers
A.The PersistentVolumeClaim is stuck in Pending.
B.The image pull secret is missing or misconfigured in the service account.
C.The route hostname is invalid.
D.The liveness probe timeout is configured too short.
E.The container image tag or repository path specified in the pod spec is incorrect.
AnswersB, E

Private registries require valid pull secrets attached to the pod's service account.

Why this answer

Incorrect image pull secrets and invalid image tags/registry paths are the two most common causes of image pull failures.

9
MCQeasy

An administrator wants to check the exit code of a container that terminated earlier today in a pod that has since been restarted. Which command displays the previous termination details?

A.oc describe pod <pod-name> --history
B.oc logs <pod-name> --previous
C.oc adm pod-logs --last
D.oc get pod <pod-name> -o exit-code
AnswerB

The --previous flag fetches logs from the prior container instance that crashed or exited.

Why this answer

oc logs --previous retrieves the log output from the previous container instance before it restarted.

10
MCQhard

An OpenShift administrator observes that the 'authentication' ClusterOperator is reporting Available=False, Progressing=True, and Degraded=True. During troubleshooting, they notice that the kube-apiserver cannot validate tokens because the OAuth server routes are unreachable due to a misconfigured ingress controller. Which log collection method is best suited to pinpoint the OAuth metadata retrieval failure?

A.oc logs -n openshift-authentication deployment/oauth-openshift
B.oc get events -n openshift-config-managed
C.oc get clusteroperator authentication -o yaml
D.oc adm must-gather --image=quay.io/openshift-release-dev/ocp-v4.0-art-dev@sha256:...
AnswerA

The authentication operator deploys the OAuth server in the openshift-authentication namespace, where connectivity and token exchange logs reside.

Why this answer

Checking the operator pods in openshift-authentication namespace using oc logs on the oauth-openshift deployment provides the exact HTTP communication errors.

11
MCQmedium

A cluster administrator suspects that an API rate-limiting issue is causing intermittent client timeouts. Which component logs should be inspected to confirm that clients are exceeding their API request limits?

A.oc logs -n openshift-kube-apiserver pod/kube-apiserver-<node-name>
B.oc get events --all-namespaces
C.oc logs -n openshift-ingress-operator deployment/ingress-operator
D.oc logs -n openshift-kube-apiserver-operator deployment/cluster-kube-apiserver-operator
AnswerA

The kube-apiserver pods log client requests and can indicate request rejection due to rate limiting.

Why this answer

The Kubernetes API server logs record throttling and rate-limiting events when clients exceed request limits.

12
MCQeasy

An administrator needs to collect cluster-wide diagnostic information from an OpenShift 4.14 cluster for a Red Hat support case. Which command should be executed?

A.oc adm diagnose
B.oc adm must-gather
C.oc cluster-info dump
D.oc get clusteroperators -o yaml
AnswerB

This is the correct command to collect diagnostic logs and data for Red Hat Support.

Why this answer

The oc adm must-gather command collects debugging information from the cluster, including logs, cluster operator status, and node details, packaging them into a compressed archive for Red Hat Support.

13
MCQhard

An OpenShift cluster experiences severe etcd latency spikes, causing leader elections to fail. Which metric or diagnostic tool should be used to inspect etcd peer round-trip times directly from the command line within the cluster?

A.oc adm inspect etcd
B.oc adm diagnostics etcd-latency
C.oc rsh -n openshift-etcd pod/etcd-<node-name> etcdctl endpoint health
D.oc get etcd -o yaml
AnswerC

Executing etcdctl inside an etcd pod directly tests endpoint health and connectivity.

Why this answer

etcd provides built-in tooling and metrics. The etcdctl endpoint health or etcdctl check perf commands can be run from within an etcd pod to verify cluster performance.

14
MCQmedium

An administrator needs to troubleshoot an application that fails to resolve internal cluster service names. They decide to run an interactive shell inside a temporary debugging pod with DNS tools installed. Which command creates this diagnostic pod?

A.oc debug service/my-svc
B.oc adm tcp-dump
C.oc rsh net-debug
D.oc run net-debug --rm -it --image=quay.io/openshift/origin-cli:latest -- /bin/bash
AnswerD

This command spins up a temporary interactive pod with OpenShift CLI tools for network debugging.

Why this answer

oc run with --rm -it allows spinning up an ephemeral container (such as busybox) for interactive network troubleshooting.

15
MCQeasy

An administrator needs to list all persistent volume claims in the cluster that are currently stuck in the 'Pending' state. Which command can be combined with grep or custom formatting to identify them?

A.oc get pvc --all-namespaces
B.oc describe storage-cluster
C.oc adm storage pending
D.oc get pv --status=Pending
AnswerA

This lists all PVCs cluster-wide, allowing the administrator to check for Pending status.

Why this answer

oc get pvc --all-namespaces lists all PVCs across the cluster, which can be inspected for their status.

16
Multi-Selecthard

An administrator is analyzing a severe networking issue where pod-to-pod communication across different worker nodes fails. Which THREE diagnostic utilities or commands should they execute inside an oc debug session on the nodes? (Choose THREE)

Select 3 answers
A.oc adm upgrade status
B.tcpdump -i <interface>
C.ovs-ofctl dump-flows br-int
D.etcdctl endpoint health
E.ip route show
AnswersB, C, E

Captures raw packets traversing node network interfaces.

Why this answer

Checking OVS flows, interface configurations, and routing tables via oc debug node sessions diagnoses cross-node networking failures.

17
MCQeasy

An administrator wants to check the cluster-wide resource consumption of nodes (CPU and Memory percentages). Which command provides this tabular overview?

A.oc get nodes --metrics
B.oc adm top nodes
C.oc cluster-capacity
D.oc describe nodes --usage
AnswerB

oc adm top nodes reports current CPU and memory usage statistics for all nodes.

Why this answer

oc adm top nodes displays real-time CPU and memory utilization across all cluster nodes.

18
MCQeasy

A developer reports that their pod is unable to start because it cannot mount a persistent volume claim (PVC). Where should the administrator look to diagnose volume attachment issues related to the CSI driver?

A.oc get events -n openshift-storage
B.oc describe pvc my-pvc
C.oc debug node/worker-0
D.oc logs -n openshift-cluster-storage-operator deployment/csi-snapshot-controller-operator
AnswerB

Describe PVC provides immediate feedback on binding status, events, and CSI mount errors.

Why this answer

The cluster-wide CSI provisioner and attacher controllers log storage attachment issues, typically found in the logs of the pods within the openshift-cluster-storage-operator namespace or the specific CSI driver namespace.

19
MCQmedium

A container inside a pod is failing with 'ImagePullBackOff'. The administrator verifies the image tag exists. What is the next most logical troubleshooting step to check authentication or registry access?

A.Inspect the etcd cluster operator status.
B.Run 'oc debug' to inspect the container file system.
C.Check if a pull secret is correctly configured and bound to the service account.
D.Restart the cluster version operator.
AnswerC

Missing or incorrect pull secrets lead to unauthorized image pulls, resulting in ImagePullBackOff.

Why this answer

Checking the ImageStream or Secret associated with image pull credentials (such as dockercfg secrets) is necessary when pulling from private registries.

20
MCQmedium

A pod fails to start with a 'CreateContainerConfigError' error message. What is the most common cause of this error that an administrator should investigate?

A.The liveness probe timed out before the application started.
B.The container image pull policy is set to Always and the registry is down.
C.A referenced ConfigMap or Secret in the pod specification does not exist.
D.The container exceeded its memory limit upon initialization.
AnswerC

Missing configuration dependencies like ConfigMaps or Secrets prevent container configuration creation.

Why this answer

CreateContainerConfigError typically occurs when a referenced ConfigMap or Secret does not exist or is misspelled in the pod specification.

21
MCQmedium

An administrator receives an alert that the Cluster Monitoring Operator is degraded because Prometheus cannot scrape metrics from a custom application namespace. Where should the administrator check to verify the ServiceMonitor configuration targeting the application?

A.oc describe clusteroperator monitoring
B.oc logs deployment/prometheus-k8s
C.oc get servicemonitor -n <app-namespace>
D.oc get prometheus-rules
AnswerC

Checking the ServiceMonitor resource confirms correct label selectors and endpoint configurations for Prometheus scraping.

Why this answer

ServiceMonitor custom resources define how Prometheus scrapes application endpoints, and checking their status or YAML spec is essential.

22
MCQhard

A node in an OpenShift cluster goes into 'NotReady' status. The administrator uses 'oc debug node/<node-name>' to inspect the node's root filesystem. Where are the host's system logs mounted inside the debug chroot environment?

A./rootfs/var/log
B./mnt/host/log
C./host/var/log
D./var/log
AnswerC

The host root filesystem is mounted at /host, so host system logs are located at /host/var/log.

Why this answer

When using oc debug to access a node, the host's root filesystem is mounted under /host, making host logs available under /host/var/log.

23
Multi-Selecteasy

An administrator wants to check cluster networking and SDN communication. Which TWO commands can be used to gather network-related diagnostic information? (Choose TWO)

Select 2 answers
A.oc get clusteroperator network
B.oc get routes
C.oc adm top volume
D.oc logs -n openshift-ovn-kubernetes -l app=ovnkube-node
E.oc describe pvc
AnswersA, D

Displays the status and availability of the cluster network operator.

Why this answer

oc get clusteroperator network and inspecting OVN/SDN daemonset pod logs are key network troubleshooting steps.

24
MCQmedium

An application pod is experiencing intermittent network drops. The administrator wants to capture network packets passing through the pod's interface for analysis. Which tool can be used inside a debugging session attached to the pod namespace?

A.oc network capture <pod-name>
B.oc exec pod/<pod-name> -- wireshark
C.oc debug pod/<pod-name> -- tcpdump -i any -w /tmp/packet.pcap
D.oc adm tcpdump pod/<pod-name>
AnswerC

oc debug allows capturing traffic by attaching to the pod's network namespace.

Why this answer

Using oc debug to attach to the target pod allows running tcpdump if diagnostic utilities are included in the debug container image.

25
Multi-Selectmedium

An administrator notices that the 'storage' ClusterOperator is degraded. Which TWO resources or logs should be inspected to diagnose the underlying CSI driver or provisioner failure? (Choose TWO)

Select 2 answers
A.oc logs -n openshift-apiserver deployment/openshift-apiserver
B.oc describe clusteroperator storage
C.oc get routes --all-namespaces
D.oc logs -n openshift-cluster-storage-operator deployment/cluster-storage-operator
E.oc describe clusterversion
AnswersB, D

Shows detailed status conditions and error messages reported by the storage operator.

Why this answer

Inspecting the cluster operator status YAML and the logs of the cluster storage operator or CSI provisioner pods provides targeted diagnostic data.

26
MCQmedium

A pod in the 'production' namespace is crashing repeatedly due to a segmentation fault in the application binary. The administrator needs to inspect the file system of the crashing container without altering the deployment spec permanently. Which command is most appropriate?

A.oc logs pod/my-app-6b79f-abcde --previous
B.oc rsh deployment/my-app
C.oc exec -it pod/my-app-6b79f-abcde -- /bin/sh
D.oc debug pod/my-app-6b79f-abcde
AnswerD

oc debug creates a troubleshooting container attached to the pod namespace for inspection.

Why this answer

oc debug with a pod target creates a debugging pod that shares the namespace and mounts the containers of the target pod, allowing file system inspection.

27
Multi-Selecteasy

An administrator wants to check the status of all api-server instances in the cluster. Which TWO commands are helpful? (Choose TWO)

Select 2 answers
A.oc get storageclass
B.oc get pods -n openshift-kube-apiserver
C.oc get clusteroperator kube-apiserver
D.oc adm top storage
E.oc get routes --all-namespaces
AnswersB, C

Lists the running API server pods across control plane nodes.

Why this answer

Checking the kube-apiserver cluster operator and listing API server pods provides status information.

28
MCQhard

An OpenShift cluster's Ingress controller is failing to route external traffic because the router pods are crashing with 'Bind: address already in use'. What is the most likely cause that an administrator should investigate?

A.Another service or daemon on the worker node is already binding to host ports 80 or 443.
B.The OAuth client secret is invalid.
C.The default router deployment replica count is set to zero.
D.The wildcard DNS record for the cluster points to the wrong IP address.
AnswerA

Binding collisions happen when ports 80/443 are already occupied on the host network namespace.

Why this answer

HostPort or hostNetwork conflicts occur when multiple router replicas or daemonsets attempt to bind to ports 80 and 443 on the same worker node interface.

29
MCQmedium

An administrator needs to drain a worker node safely for hardware maintenance, but some pods have local emptyDir storage that would be permanently deleted. Which flag must be added to the drain command to allow eviction of these pods?

A.--allow-local-volumes
B.--ignore-daemonsets=false
C.--delete-emptydir-data
D.--force-local-storage
AnswerC

This flag allows draining nodes even when pods contain local emptyDir volumes.

Why this answer

Pods with emptyDir volumes are protected by default during drains. The --delete-emptydir-data flag overrides this protection.

30
MCQeasy

An administrator needs to tail the logs of all pods with the label 'tier=frontend' across the current namespace. Which command should be used?

A.oc watch logs tier=frontend
B.oc logs pods --selector=tier=frontend -f
C.oc logs -l tier=frontend
D.oc tail -l tier=frontend
AnswerC

The -l flag allows filtering logs by label selector across matching pods.

Why this answer

oc logs with the label selector flag (-l) streams logs from all matching pods simultaneously.

31
MCQmedium

An administrator notices that the Cluster Version Operator (CVO) is blocked during an upgrade because a cluster operator is missing version annotations. Which command allows checking the current status and payload version of the CVO?

A.oc get clusterversion
B.oc adm upgrade status
C.oc get clusteroperators
D.oc version
AnswerA

oc get clusterversion displays the cluster's upgrade progress, version, and working status.

Why this answer

oc get clusterversion provides the high-level status of the cluster upgrade, available updates, and active version history.

32
MCQeasy

An administrator needs to check the cluster events across all namespaces sorted by timestamp to identify recent infrastructure warnings. Which command should they use?

A.oc get events --sort-by='.metadata.creationTimestamp'
B.oc adm events --all
C.oc show events --recent
D.oc cluster-events
AnswerA

This command sorts cluster events chronologically to trace recent issues.

Why this answer

oc get events --sort-by='.metadata.creationTimestamp' lists all events ordered by creation time.

33
MCQmedium

An administrator observes that a specific node has high CPU utilization and wants to identify which processes or containers are consuming the most resources on that host directly. Which command-line tool executed inside an oc debug session on the node is best suited for interactive process monitoring?

A.oc exec node/<node-name> -- ps aux
B.oc debug node/<node-name> -- chroot /host top
C.oc adm monitor node
D.oc adm top node --use-protocol-buffers
AnswerB

Spawning a debug shell with chroot /host allows running standard Linux diagnostic utilities like top.

Why this answer

Running 'top' or 'htop' inside an oc debug chroot environment provides real-time CPU and memory consumption of processes on the host.

34
MCQhard

A worker node's root filesystem reaches 100% capacity due to accumulated container images and logs, causing the kubelet to enter an eviction state. After freeing up disk space on the node, the administrator notices the node status remains NotReady. What action is required to clear the kubelet's node pressure condition?

A.Restart the kubelet service on the affected node or reboot the node.
B.Run 'oc adm uncordon' on the node.
C.Delete and recreate the clusterversion resource.
D.Scale the machineconfigpool to zero and back.
AnswerA

Kubelet conditions can persist until the kubelet process re-evaluates node metrics or is restarted.

Why this answer

Once disk pressure is resolved and container images/logs are garbage-collected, restarting the kubelet service via systemctl restart kubelet inside an oc debug session or rebooting the node clears the disk pressure taint.

35
Multi-Selecthard

During etcd troubleshooting, an administrator suspects quorum loss or follower synchronization issues. Which THREE commands or etcdctl actions performed inside an etcd pod can verify etcd health and cluster state? (Choose THREE)

Select 3 answers
A.etcdctl snapshot restore
B.etcdctl defrag
C.etcdctl endpoint status
D.etcdctl member list
E.etcdctl endpoint health
AnswersC, D, E

Displays leader status, database size, and raft term/index numbers.

Why this answer

etcdctl endpoint health, etcdctl endpoint status, and checking member lists via etcdctl member list are standard etcd diagnostic commands.

36
Multi-Selecthard

An OpenShift cluster node is reporting High CPU and Memory pressure. Which THREE commands or tools can an administrator use to investigate resource bottlenecks on that node? (Choose THREE)

Select 3 answers
A.oc describe node <node-name>
B.oc adm top nodes
C.oc get events --namespace=default
D.oc logs deployment/cluster-version-operator
E.oc debug node/<node-name> -- chroot /host top
AnswersA, B, E

Displays resource allocation totals, requests, limits, and node conditions like MemoryPressure.

Why this answer

oc adm top nodes, oc describe node, and running top within an oc debug session on the node provide comprehensive insight into node resource consumption.

37
MCQmedium

An application team reports that their application cannot connect to an external database due to a firewall blocking port 3306. The administrator wants to test network connectivity from inside a running application pod to the external database host. Which tool can they run using 'oc exec'?

A.oc network test db.example.com 3306
B.oc exec <pod-name> -- nc -zv db.example.com 3306
C.oc adm port-forward pod/<pod-name> 3306:3306
D.oc debug pod/<pod-name> -- test-connection
AnswerB

Netcat (nc) executed via oc exec is a standard tool to test TCP port connectivity from a pod.

Why this answer

Running nc (netcat), telnet, or curl inside the running container via oc exec tests TCP socket connectivity to external endpoints.

38
MCQmedium

An application pod is failing to write data because its mounted PersistentVolume is mounted as ReadOnly. The administrator checks the PVC definition and sees accessMode is set correctly to ReadWriteOnce. What is the most likely cause of the read-only mount?

A.The ServiceAccount lacks storage-admin permissions.
B.The namespace quota restricts write operations.
C.The pod security standard blocked write permissions.
D.The storage backend experienced an I/O error and remounted the block device as read-only.
AnswerD

Storage controllers often enforce read-only remounts on underlying disks upon detecting hardware or filesystem corruption.

Why this answer

Underlying storage infrastructure or CSI drivers can remount volumes as read-only when I/O errors occur or when filesystem corruption is detected on the block device.

39
MCQhard

The cluster monitoring stack is failing because Prometheus pods in the openshift-monitoring namespace are crashing due to disk space exhaustion on the Prometheus PersistentVolume. How can the administrator inspect the current disk usage inside the Prometheus container?

A.oc exec -n openshift-monitoring prometheus-k8s-0 -c prometheus -- df -h
B.oc debug node/<node-name> -- df -h
C.oc logs -n openshift-monitoring deployment/prometheus-adapter
D.oc adm top volume
AnswerA

Executing df -h directly inside the Prometheus container reveals persistent storage exhaustion.

Why this answer

Using oc exec to run df -h inside the Prometheus container allows checking mount point disk space utilization.

40
MCQeasy

An administrator wants to view the last 50 lines of logs for a pod named 'api-server-xyz' and keep the stream open for new log entries. Which command should they use?

A.oc logs api-server-xyz --tail=50 -f
B.oc describe pod api-server-xyz --lines=50
C.oc logs api-server-xyz --lines=50 --follow
D.oc tail api-server-xyz -n 50
AnswerA

--tail=50 restricts initial output to the last 50 lines, and -f follows the log stream.

Why this answer

Combining --tail=50 and -f in the oc logs command shows the last 50 lines and then tails new log output.

41
MCQhard

The 'dns' ClusterOperator is reporting Degraded=True because CoreDNS pods are failing health checks. The administrator suspects DNS request loops or upstream forwarding failures. Which log source is most effective for diagnosing CoreDNS resolution errors?

A.oc logs -n kube-system deployment/kube-dns
B.journalctl -u coredns
C.oc logs -n openshift-network-operator deployment/network-operator
D.oc logs -n openshift-dns -l dns.operator.openshift.io/daemonset-dns=default
AnswerD

CoreDNS pods deployed by the DNS operator log all query resolutions and errors in the openshift-dns namespace.

Why this answer

CoreDNS runs as a deployment in the openshift-dns namespace. Its pod logs show incoming query failures and forwarding timeouts.

42
Multi-Selecteasy

An administrator is investigating pod crash loops in a namespace. Which TWO commands are most useful for gathering initial diagnostic data about the crashing pods? (Choose TWO)

Select 2 answers
A.oc describe pod <pod-name>
B.oc logs <pod-name> --previous
C.oc adm must-gather
D.oc rsh <pod-name>
E.oc debug node/<node-name>
AnswersA, B

Displays pod events, exit codes, restart counts, and error reasons.

Why this answer

oc logs --previous and oc describe pod are the standard foundational commands for inspecting exit codes, termination reasons, and prior log output of crashing pods.

43
Multi-Selecteasy

An administrator wants to verify node health and readiness across the cluster. Which TWO commands provide this information? (Choose TWO)

Select 2 answers
A.oc describe node <node-name>
B.oc get nodes
C.oc get clusterversion
D.oc get routes
E.oc adm top volume
AnswersA, B

Provides detailed node capacity, allocations, and condition statuses.

Why this answer

oc get nodes and oc describe node provide node status and health conditions.

44
MCQeasy

An administrator wants to stream logs from all pods belonging to a specific Deployment named 'web-frontend' in real-time. Which command achieves this?

A.oc watch deployment/web-frontend
B.oc logs pods -l app=web-frontend
C.oc rsh deployment/web-frontend
D.oc logs deployment/web-frontend -f
AnswerD

Targeting the deployment with the -f flag streams logs from all pods managed by the deployment.

Why this answer

oc logs supports targeting a Deployment directly via the resource type, streaming logs from all associated pods.

45
MCQhard

During a troubleshooting session on a degraded cluster operator, an administrator finds that the operator's operand configuration is controlled by a Custom Resource (CR). Where is the most reliable place to look for error status messages reported by the operator controller loop regarding this CR?

A.The default Kubernetes events in the default namespace.
B.The global clusterversion object status conditions.
C.The /var/log/messages file on the master nodes.
D.The status field of the specific Custom Resource instance (e.g., 'oc get <cr-kind> <cr-name> -o yaml').
AnswerD

Operators report reconciliation errors and conditions directly in the status section of their managed CRs.

Why this answer

Cluster operators store detailed status conditions, error messages, and reasons inside the status block of their specific Custom Resource instance.

46
MCQeasy

An administrator needs to check the IP address and network status assigned to a running pod. Which command displays this information quickly?

A.oc ip pod <pod-name>
B.oc get pod <pod-name> -o wide
C.oc describe pod <pod-name> --network
D.oc get network-attachment-definitions
AnswerB

The -o wide output format includes the pod IP and assigned node name.

Why this answer

oc get pod <pod-name> -o wide displays additional details including the pod IP address and the node it is scheduled on.

47
Multi-Selectmedium

An administrator needs to troubleshoot DNS resolution failures inside an application namespace. Which THREE resources or commands should they check? (Choose THREE)

Select 3 answers
A.oc get machineset
B.oc logs -n openshift-dns -l dns.operator.openshift.io/daemonset-dns=default
C.oc get clusteroperator dns
D.oc describe ingresscontroller default
E.Running an interactive debug pod to test DNS lookup using 'nslookup' or 'dig'.
AnswersB, C, E

Provides direct access to CoreDNS pod logs to check query resolution errors.

Why this answer

Checking CoreDNS operator status, testing DNS resolution inside a debug pod, and inspecting the DNS cluster operator configuration are essential steps.

48
Multi-Selecteasy

An administrator needs to collect logs from all router pods in the 'openshift-ingress' namespace. Which TWO methods can achieve this? (Choose TWO)

Select 2 answers
A.oc logs -l ingresscontroller.operator.openshift.io/deployment-ingresscontroller=default -n openshift-ingress
B.oc describe deployment router-default -n openshift-ingress
C.oc get routes -n openshift-ingress
D.oc rsh -n openshift-ingress deployment/router-default
E.oc logs deployment/router-default -n openshift-ingress
AnswersA, E

Using the specific operator label selector retrieves logs from all matching router pods.

Why this answer

Targeting the deployment or using a label selector with oc logs retrieves logs from all router pods.

49
MCQhard

An OpenShift cluster administrator notices that API requests are taking an excessively long time to complete. They suspect etcd database bloat due to excessive ConfigMap creations. Which etcd maintenance command can be run inside an etcd pod to reclaim storage space after compaction?

A.etcdctl prune-storage
B.oc adm etcd-clean
C.etcdctl defrag
D.etcdctl compact --vacuum
AnswerC

etcdctl defrag reorganizes the etcd database file and frees up disk space on the underlying storage.

Why this answer

Etcd requires defragmentation (etcdctl defrag) after compaction to release free space back to the file system.

50
Multi-Selecthard

An OpenShift cluster upgrade has failed because a MachineConfigPool is degraded. Which THREE actions or commands can an administrator perform to diagnose the root cause of the MachineConfigPool degradation? (Choose THREE)

Select 3 answers
A.oc logs -n openshift-machine-config-operator daemonset/machine-config-daemon
B.oc scale deployment/cluster-version-operator --replicas=3
C.oc get machineconfig -l machineconfiguration.openshift.io/role=<role>
D.oc adm upgrade cancel
E.oc describe machineconfigpool <pool-name>
AnswersA, C, E

Shows execution errors when applying configs to node filesystems.

Why this answer

Describing the MCP, checking MCD pod logs on nodes, and inspecting rendered machine configs help diagnose node configuration failures.

51
MCQeasy

An application pod is failing its liveness probe and continuously restarting. Where can an administrator quickly check the reason for the liveness probe failure?

A.oc get routes
B.oc get pod <pod-name> -o json
C.oc adm diagnostics
D.oc describe pod <pod-name>
AnswerD

oc describe pod lists events such as 'Liveness probe failed: HTTP probe failed with statuscode: 500'.

Why this answer

oc describe pod displays container events, including recent liveness and readiness probe failures and exit statuses.

52
MCQmedium

A pod is stuck in the 'ContainerCreating' state for an extended period. The administrator suspects a persistent volume mount timeout. Which resource events should they examine to confirm if the volume plugin is failing to attach the disk?

A.oc adm diagnostics storage
B.oc logs deployment/<deployment-name>
C.oc get pv -o json
D.oc describe pvc <pvc-name>
AnswerD

Describing the PVC shows storage provisioner events and whether attachment succeeded.

Why this answer

Describing the persistent volume claim (PVC) or the pod itself displays storage attachment events from the attach/detach controller.

53
MCQhard

An OpenShift cluster node has experienced kernel panics due to a faulty third-party kernel module. The administrator needs to review the kernel crash logs (vmcore or kdump logs) stored on the node. Where are these logs typically written on a CoreOS worker node?

A./run/log/journal
B./var/lib/kubelet/pods
C./var/crash
D./var/log/audit/audit.log
AnswerC

When kdump is enabled on RHCOS, kernel core dumps are saved in /var/crash.

Why this answer

Red Hat Enterprise Linux CoreOS (RHCOS) configures kdump to write crash dumps to /var/crash when kernel panics occur.

54
Multi-Selectmedium

An administrator needs to troubleshoot why an OLM (Operator Lifecycle Manager) managed operator installation is failing. Which THREE resources should be inspected? (Choose THREE)

Select 3 answers
A.oc get subscription <operator-name>
B.oc get installplan
C.oc get routes
D.oc get pv
E.oc get csv
AnswersA, B, E

Shows the requested operator channel and source status.

Why this answer

Checking Subscriptions, CSVs (ClusterServiceVersions), and InstallPlans diagnoses OLM operator installation issues.

55
MCQhard

An administrator notices that the Ingress Operator is failing to deploy routers because of a persistent validation error in the Default IngressController resource. How can the administrator inspect the exact validation schema failure reported by the operator?

A.oc logs -n openshift-ingress deployment/router-default
B.oc adm inspect router
C.oc get validatingwebhookconfigurations
D.oc describe ingresscontroller default -n openshift-ingress-operator
AnswerD

Describing the IngressController custom resource displays detailed operator status conditions and error reasons.

Why this answer

Describing the ingresscontroller custom resource in the openshift-ingress-operator namespace reveals reconciliation status errors and validation messages.

56
Multi-Selectmedium

An administrator is diagnosing why an authentication token exchange is failing for cluster users. Which THREE sources provide relevant error logs and status information? (Choose THREE)

Select 3 answers
A.oc logs -n openshift-ingress-operator deployment/ingress-operator
B.oc logs -n openshift-kube-apiserver pod/kube-apiserver-<node-name>
C.oc get namespaces
D.oc describe clusteroperator authentication
E.oc logs -n openshift-authentication deployment/oauth-openshift
AnswersB, D, E

Shows token validation and API client request authorization errors.

Why this answer

Checking the authentication operator status, OAuth server logs, and API server request logs helps trace authentication failures.

57
MCQeasy

An administrator wants to verify if all required cluster operators are available and not degraded after an installation. Which command provides this summary?

A.oc adm cluster-status
B.oc get nodes
C.oc get pods --all-namespaces
D.oc get clusteroperators
AnswerD

oc get clusteroperators lists all core OpenShift operators and their health conditions.

Why this answer

oc get clusteroperators lists all cluster operators along with their Available, Progressing, and Degraded status conditions.

58
MCQeasy

An administrator wants to check the detailed configuration and current status of a specific Route named 'my-app-route'. Which command provides this?

A.oc get route my-app-route --status
B.oc describe route my-app-route
C.oc show route my-app-route
D.oc adm route-status my-app-route
AnswerB

oc describe route provides comprehensive details on route configuration and status.

Why this answer

oc describe route my-app-route displays route hostnames, TLS settings, service weights, and backend service targets.

59
MCQmedium

An administrator is troubleshooting a certificate expiration issue that has broken communication between the kubelet and the API server. Where are the kubelet client certificates stored on a worker node that can be inspected via an oc debug session?

A./var/lib/etcd/cert
B./etc/origin/node/certificates
C./var/lib/kubelet/pki/
D./etc/kubernetes/pki
AnswerC

Kubelet TLS certificates and keys on worker nodes are managed and stored in /var/lib/kubelet/pki/.

Why this answer

Kubelet client certificates and configurations on RHCOS worker nodes are stored under /etc/kubernetes/pki or /var/lib/kubelet/pki.

60
Multi-Selecthard

An OpenShift cluster experiences intermittent API server timeouts. Which THREE log sources or diagnostic commands should an administrator analyze to identify API server performance bottlenecks? (Choose THREE)

Select 3 answers
A.oc get routes
B.Audit logs located in /var/log/kube-apiserver/ on control plane nodes.
C.oc logs -n openshift-kube-apiserver pod/kube-apiserver-<node-name>
D.etcdctl endpoint health
E.oc get machineconfigpool
AnswersB, C, D

Records all API requests, client identities, and response codes.

Why this answer

Analyzing kube-apiserver pod logs, audit logs, and checking etcd health helps diagnose API server performance issues.

61
MCQhard

An administrator is troubleshooting a certificate signing request (CSR) that is stuck in the Pending state for a newly added worker node. Which command should they use to approve the pending CSR?

A.oc cluster-version approve-csr <csr-name>
B.oc adm certificate approve <csr-name>
C.oc patch csr <csr-name> --type=json -p='[{"op": "replace", "path": "/status/conditions", "value": "Approved"}]'
D.oc approve csr <csr-name>
AnswerB

This command approves pending certificate signing requests, allowing nodes to join the cluster.

Why this answer

oc adm certificate approve <csr-name> is the standard command to approve kubelet client or server TLS bootstrap CSRs.

62
MCQhard

The OpenShift SDN (or OVN-Kubernetes) network plugin reports a failure. The administrator needs to inspect the iptables rules on a worker node to verify packet mangling and NAT configurations. How can they view the host's iptables rules?

A.oc logs daemonset/iptables-analyzer
B.oc adm diagnostics iptables
C.oc debug node/<node-name> -- chroot /host iptables-save
D.oc exec deployment/router-default -- iptables -L
AnswerC

Running iptables-save inside a host chroot debug session displays all active packet filtering rules.

Why this answer

Using oc debug node/<node-name> with chroot /host allows running iptables-save to inspect host network filtering rules.

63
MCQmedium

An administrator notices that a node is marked as 'SchedulingDisabled' (Cordoned). Which command should be executed to allow pods to be scheduled on this node again?

A.oc adm uncordon <node-name>
B.oc patch node <node-name> --type=json -p='[{"op": "replace", "path": "/spec/unschedulable", "value": false}]'
C.oc adm drain <node-name> --undo
D.oc scale node <node-name> --replicas=1
AnswerA

oc adm uncordon re-enables scheduling on the specified node.

Why this answer

oc adm uncordon marks a previously cordoned node as schedulable.

64
MCQmedium

An application pod is running, but HTTP requests to the service are returning '502 Bad Gateway'. The administrator wants to check if the endpoints controller has populated the Service with active pod IP addresses. Which command verifies this?

A.oc get svc my-service
B.oc get endpoints my-service
C.oc describe ingress
D.oc get routes my-route
AnswerB

oc get endpoints displays the target pod IPs currently backing the service.

Why this answer

oc get endpoints lists the IP addresses and ports corresponding to the Service selector, confirming if pods are registered.

65
Multi-Selecthard

An OpenShift cluster operator is stuck in a Progressing state during an update. Which THREE diagnostic steps help determine why the operator reconciliation loop is blocked? (Choose THREE)

Select 3 answers
A.Reboot all control plane nodes simultaneously.
B.Check cluster-wide events related to the operator namespace.
C.Check the logs of the operator deployment in its respective openshift-* namespace.
D.Inspect the status conditions in the operator's Custom Resource (e.g., oc get <cr> -o yaml).
E.Delete all persistent volumes in the cluster.
AnswersB, C, D

Events show configuration warnings and failure messages.

Why this answer

Inspecting operator custom resource status, operator pod logs, and cluster events helps identify reconciliation blocks.

66
MCQhard

An administrator is troubleshooting a failing MachineConfig update in an OpenShift cluster. The MachineConfigPool 'worker' is degraded and reports that a node is failing to apply the rendered-worker configuration. Which log stream is critical for determining why the Machine Config Daemon failed to update system files on the target node?

A.oc describe machineconfigpool worker
B.oc logs -n openshift-machine-config-operator daemonset/machine-config-daemon
C.oc logs -n openshift-cluster-version-operator deployment/cluster-version-operator
D.journalctl -u kubelet -e
AnswerB

The machine-config-daemon DaemonSet pods run on every node and execute the actual file updates and systemd restarts.

Why this answer

The Machine Config Daemon runs as a DaemonSet across all nodes in the openshift-machine-config-operator namespace. Accessing its logs on the affected node via oc logs or oc debug is necessary.

67
Multi-Selectmedium

An administrator notices that a node has been automatically cordoned and drained by the cluster. Which THREE places should the administrator inspect to find the reason for the node eviction or failure? (Choose THREE)

Select 3 answers
A.oc get storageclass
B.oc describe node <node-name>
C.Journalctl logs for the kubelet service on the affected node.
D.oc get ingresscontroller
E.oc get events --field-selector reason=Evicted
AnswersB, C, E

Shows node conditions like DiskPressure, MemoryPressure, or NetworkUnavailable.

Why this answer

Checking node descriptions for conditions, cluster events, and kubelet logs on the node reveals node failure reasons.

68
MCQmedium

An OpenShift administrator needs to investigate a pod that is failing with an 'OOMKilled' exit code. Which command reveals the memory limit configuration and historical usage right before the crash?

A.oc describe pod <pod-name>
B.oc top pod <pod-name> --containers
C.oc get pod <pod-name> -o yaml
D.oc adm diagnostics
AnswerA

oc describe pod shows the termination reason, exit code 137, and resource limits set on the container.

Why this answer

oc describe pod provides the last state, exit code 137 (OOMKilled), and configured limits, while telemetry metrics can show usage.

69
MCQhard

An OpenShift cluster administrator receives an alert that etcd disk fsync durations are excessively high. Which performance metric is the etcd diagnostic tool measuring when evaluating disk latency?

A.The network round trip time between etcd follower and leader nodes.
B.The time taken for etcd to commit WAL (Write-Ahead Log) entries to persistent storage via fsync.
C.The time taken by the Kubernetes API server to serialize JSON objects.
D.The garbage collection duration of expired etcd keys.
AnswerB

High fsync latency directly degrades etcd stability, measured by disk write synchronization duration.

Why this answer

etcd disk performance relies heavily on synchronous disk writes (fsync). High fsync duration indicates slow underlying storage block devices.

Ready to test yourself?

Try a timed practice session using only Troubleshooting questions.