Courseiva
Question 416 of 720
Monitoring, Logging and Runtime SecuritymediumMultiple ChoiceObjective-mapped

CKS Monitoring, Logging and Runtime Security Practice Question

You suspect a container has been compromised. You want to preserve the container's filesystem for forensic analysis before terminating the pod. Which approach should you use?

Answer choices

Why each option matters

Answer the question above first, then reveal the full breakdown to understand why each option is right or wrong.

Correct answer & explanation

Use kubectl cp to copy files from the container to a safe location

To preserve evidence, you should not delete the pod immediately. Instead, use kubectl cp or a sidecar to copy files, or create a snapshot. But the simplest non-destructive step is to copy files from the container using 'kubectl cp' before deletion.

Answer analysis

Option-by-option breakdown

For each option: why learners choose it and why it is or isn't the right answer here.

  • Exec into the container and delete suspicious files

    Why it's wrong here

    This destroys evidence.

  • Restart the kubelet on the node

    Why it's wrong here

    This may destroy evidence and is not targeted.

  • Use kubectl cp to copy files from the container to a safe location

    Why this is correct

    Correct. This preserves the filesystem for analysis.

  • Immediately delete the pod to stop the attack

    Why it's wrong here

    Deleting the pod destroys evidence.

About these practice questions

Courseiva creates original exam-style practice questions with explanations and wrong-answer analysis. It does not publish real exam questions, exam dumps, or protected exam content. Learn why practice questions differ from exam dumps →

How Courseiva writes practice questions · Editorial policy

Last reviewed: Jun 21, 2026

Question Discussion

Share a tip, memory trick, or ask about the reasoning behind this question. Do not post real exam questions, leaked content, braindumps, or copyrighted exam material. Comments are moderated and may be removed without notice.

Loading comments…

Sign in to join the discussion.

This CKS practice question is part of Courseiva's free CNCF certification practice question bank. Courseiva provides original exam-style practice questions with explanations, topic-based practice, mock exams, readiness tracking, and study analytics to help learners prepare for the CKS exam.