Question 737 of 997
Monitoring, Logging and Runtime SecuritymediumMultiple ChoiceObjective-mapped

Kubernetes Audit Logging Levels: Metadata vs Request vs RequestResponse

This CKS practice question tests your understanding of monitoring, logging and runtime security. This is a configuration task: choose the command set that satisfies every stated requirement. Small differences — like 'secret' vs 'password' or 'transport input ssh' vs 'all' — change whether the answer is correct. After answering, compare your reasoning against the explanation and wrong-answer breakdown below. Once you have made your selection, read the full explanation to reinforce the concept and understand why each distractor is designed to mislead on exam day.

You need to configure Kubernetes audit logging to log all requests to the 'secrets' API. Which audit policy level captures the body of the request?

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

Request

The 'Request' audit level logs the request metadata and the request body, which includes the body of the request. This is exactly what the question asks for. 'RequestResponse' adds the response body, which is not required per the question. Therefore, the correct answer is A.

Key principle: Answer the scenario, not the keyword: identify the specific constraint before choosing the most familiar-sounding option.

Answer analysis

Option-by-option breakdown

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

  • Request

    Why this is correct

    Request captures the request metadata and the request body, which includes the request body.

    Related concept

    Read the scenario before looking for a memorised answer.

  • None

    Why it's wrong here

    None does not log any request body.

  • RequestResponse

    Why it's wrong here

    RequestResponse captures both request and response bodies; while it captures the request body, the question specifically asks for the level that captures the request body, not the response body, so 'Request' alone suffices.

  • Metadata

    Why it's wrong here

    Metadata only captures metadata, not the body.

Common exam traps

Common exam trap: answer the scenario, not the keyword

The trap is that candidates may overthink and choose RequestResponse because it captures more, but the question precisely asks for 'the body of the request', which is captured by the Request level.

Detailed technical explanation

How to think about this question

In Kubernetes audit logging, the policy levels are hierarchical: None, Metadata, Request, and RequestResponse. The 'RequestResponse' level is the most verbose, logging the full request and response objects, including the body. This is critical for secrets because the body contains the actual secret data (e.g., base64-encoded values), and capturing it allows for post-incident analysis of exactly what was accessed. Under the hood, the kube-apiserver serializes the request and response objects into JSON and writes them to the audit log file or webhook, with the body included only at the Request or RequestResponse levels.

KKey Concepts to Remember

  • Read the scenario before looking for a memorised answer.
  • Find the constraint that changes the correct option.
  • Eliminate answers that are true in general but not in this case.

TExam Day Tips

  • Watch for words such as best, first, most likely and least administrative effort.
  • Review why wrong options are wrong, not only why the correct option is correct.

Key takeaway

Answer the scenario, not the keyword: identify the specific constraint before choosing the most familiar-sounding option.

Real-world example

How this comes up in practice

A practitioner preparing for the CKS exam encounters this exact type of scenario on the job. The correct answer here is not the most general option — it is the best answer for the specific constraint described. Answer the scenario, not the keyword: identify the specific constraint before choosing the most familiar-sounding option. Real exam questions reward reading the full scenario before eliminating options, because the constraint defines which answer fits.

What to study next

Got this wrong? Here's your next step.

Identify which exam domain this question belongs to, review the core concept, then practise similar questions from the same domain.

Related practice questions

Related CKS practice-question pages

Use these pages to review the topic behind this question. This is how one missed question becomes focused revision.

Practice this exam

Start a free CKS practice session

Short sessions build daily habit. Longer sessions build exam-day stamina. Try a timed session to simulate real conditions.

FAQ

Questions learners often ask

What does this CKS question test?

Monitoring, Logging and Runtime Security — This question tests Monitoring, Logging and Runtime Security — Read the scenario before looking for a memorised answer..

What is the correct answer to this question?

The correct answer is: Request — The 'Request' audit level logs the request metadata and the request body, which includes the body of the request. This is exactly what the question asks for. 'RequestResponse' adds the response body, which is not required per the question. Therefore, the correct answer is A.

What should I do if I get this CKS question wrong?

Identify which exam domain this question belongs to, review the core concept, then practise similar questions from the same domain.

What is the key concept behind this question?

Read the scenario before looking for a memorised answer.

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

Same concept, more angles

5 more ways this is tested on CKS

These questions test the same concept from different angles. Work through them to make sure you can recognise it however the exam phrases it.

Variation 1. An audit policy is configured with the following rule: - level: Metadata resources: - group: "" resources: ["secrets"] What does this rule log for requests to the Secrets API?

hard
  • A.The full request and response body
  • B.Metadata about the request, excluding the body
  • C.Nothing, because secrets are excluded by default
  • D.The request body only

Why B: The 'Metadata' level logs request metadata (user, timestamp, resource) but not the request or response body. Option A corresponds to the 'RequestResponse' level, which logs both request and response bodies. Option C is incorrect because secrets are not excluded by default; the rule applies to secrets. Option D corresponds to the 'Request' level, which logs the request body only.

Variation 2. An audit policy is configured with the following rule: - level: RequestResponse users: ["system:serviceaccount:kube-system:admin"] verbs: ["get", "list"] resources: - group: "" resources: ["secrets"] What will be logged when the service account 'admin' in kube-system performs a GET request on a Secret?

hard
  • A.Only the request metadata will be logged
  • B.Only the response will be logged
  • C.The request and response metadata and body will be logged
  • D.Nothing will be logged because the rule uses an empty api group

Why C: Option C is correct because the audit rule specifies `level: RequestResponse`, which instructs the API server to log both the request metadata and body, as well as the response metadata and body, for matching events. The rule matches the service account `system:serviceaccount:kube-system:admin` performing a GET on secrets (empty API group matches core API group), so the full request and response payloads are captured.

Variation 3. You have configured an audit policy with level: Request. Which request information is logged?

medium
  • A.Only metadata for the request
  • B.Nothing is logged because Request is not a valid level
  • C.Request metadata and request body
  • D.Request metadata, request body, and response body

Why C: The Request level logs request metadata and request body. This is more detailed than Metadata but less than RequestResponse.

Variation 4. An audit policy is configured with level: Request. Which operations are recorded in the audit log?

medium
  • A.Nothing, only the fact that a request occurred
  • B.Request metadata and the request body
  • C.Request and response metadata and bodies
  • D.Only metadata about the request

Why B: When an audit policy is configured with `level: Request`, the API server logs the request metadata and the request body for all operations. This is defined in the Kubernetes audit policy specification, where the `Request` level captures the entire request object, including metadata and the body, but does not include the response. This level is useful for debugging and security analysis without the overhead of logging response data.

Variation 5. Which audit policy level logs all requests and responses, including the request body and response body?

easy
  • A.None
  • B.Request
  • C.Metadata
  • D.RequestResponse

Why D: RequestResponse logs both the request object and the response object, including bodies. Request logs only the request object. Metadata logs only metadata. None logs nothing.

Keep practising

More CKS practice questions

Last reviewed: Jul 4, 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.