nerdexam
Docker

DCA · Question #118

You are troubleshooting a Kubernetes deployment called api, and want to see the events table for this object. Does this command display it? Solution: kubectl events deployment api

The correct answer is B. No. The kubectl events command does not exist in Kubernetes; events for an object are typically viewed using kubectl describe or kubectl get events.

Submitted by andres_qro· Apr 18, 2026Container Orchestration

Question

You are troubleshooting a Kubernetes deployment called api, and want to see the events table for this object. Does this command display it? Solution: kubectl events deployment api

Options

  • AYes
  • BNo

How the community answered

(59 responses)
  • A
    5% (3)
  • B
    95% (56)

Why each option

The `kubectl events` command does not exist in Kubernetes; events for an object are typically viewed using `kubectl describe` or `kubectl get events`.

AYes

The `kubectl events` command is not a valid Kubernetes command for viewing object events.

BNoCorrect

There is no standard `kubectl events` command to display events for a specific Kubernetes object. To view events related to a Deployment, one would typically use `kubectl describe deployment api` or `kubectl get events --field-selector involvedObject.name=api,involvedObject.kind=Deployment`.

Concept tested: Kubernetes event inspection

Source: https://kubernetes.io/docs/reference/kubectl/cheatsheet/#inspecting-and-debugging

Topics

#kubectl events#Kubernetes troubleshooting#Command syntax#Deployment inspection

Community Discussion

No community discussion yet for this question.

Full DCA Practice