Quiz#1

  1. A Linux server shows 95% CPU utilization. Which command is most useful for quickly identifying which processes are consuming the CPU?

A. ps aux --sort=-%cpu

B. df -h

C. free -m

D. ss -tulpn


  1. A Docker image contains a Node.js application. The Dockerfile runs npm install before copying the application source code. What is the main reason this ordering is commonly used?

A. To make npm install run as root

B. To improve Docker layer-cache reuse

C. To reduce the final image filesystem size

D. To prevent package-lock.json from being copied


  1. A Kubernetes Deployment has pods that repeatedly restart. Which checks can directly help investigate the cause? Select all that apply.

A. kubectl describe pod

B. kubectl logs

C. kubectl get events

D. kubectl config current-context


  1. A Kubernetes readiness probe can prevent a pod from receiving Service traffic while the container remains running.