Courseiva

CCNA Kubernetes Cluster Component Security Questions

63 questions · Kubernetes Cluster Component Security topic · All types, answers revealed

1
MCQhard

You are securing a Kubernetes cluster control plane and need to ensure that the API server limits request payload sizes to prevent Denial of Service (DoS) attacks via memory exhaustion. Which mechanism or flag controls request body size limits in the Kubernetes API server?

A.The API server enforces built-in request body size limits (e.g., 3MB max for standard requests) to prevent large payload attacks.
B.Set kubelet flag --max-pod-payload.
C.Configure kube-proxy with --max-buffer-size.
D.Configure etcd with --max-request-bytes flag.
AnswerA

Kubernetes API server has hardcoded and configurable request size limits to guard against memory exhaustion.

Why this answer

The API server enforces request body size limits natively for incoming HTTP requests (such as 3MB for standard requests and larger for specific subresources).

2
MCQeasy

When configuring Role-Based Access Control (RBAC), which Kubernetes object grants permissions across the entire cluster rather than within a single namespace?

A.ServiceAccount
B.ClusterRole
C.Role
D.PodSecurityPolicy
AnswerB

ClusterRole is cluster-scoped and can be bound cluster-wide using a ClusterRoleBinding.

Why this answer

A ClusterRole defines permissions across the entire cluster, and a ClusterRoleBinding applies them cluster-wide.

3
MCQmedium

An administrator wants to verify that etcd database defragmentation is performed periodically to reclaim storage space after large amounts of data churn. Which etcdctl command defragments an etcd member?

A.kubectl etcd-clean
B.etcdctl defrag
C.etcdctl compact
D.etcdctl cleanup storage
AnswerB

etcdctl defrag reclaims storage space on the etcd member.

Why this answer

etcdctl defrag is the command used to defragment the etcd database file.

4
MCQeasy

Which Kubernetes control plane component is responsible for noticing and responding when nodes go down or fail health checks?

A.CoreDNS
B.etcd
C.kube-controller-manager
D.kube-proxy
AnswerC

The node lifecycle controller inside kube-controller-manager monitors node health.

Why this answer

The kube-controller-manager runs node lifecycle controllers that monitor node health and update node status.

5
MCQmedium

An administrator needs to restrict kubelets so they can only modify resources associated with their own node (such as their own Node object and Pods bound to them). Which authorization mode must be enabled alongside RBAC?

A.Node
B.ABAC
C.AlwaysDeny
D.PodSecurity
AnswerA

Enabling the Node authorizer ensures kubelets operate under the principle of least privilege regarding node resources.

Why this answer

The Node authorization mode is a special-purpose authorization mode that specifically authorizes kubelet API requests.

6
MCQhard

You are auditing a multi-tenant Kubernetes cluster and notice that users can read ServiceAccount tokens belonging to other namespaces through improper RBAC configuration. Which ClusterRole permission should be strictly avoided or audited to prevent token theft via secret inspection?

A.Verbs like 'get' on resource 'pods/status'.
B.Verbs like 'list' on resource 'namespaces'.
C.Verbs like 'create' on resource 'deployments'.
D.Verbs like 'get', 'list', or 'watch' on resource 'secrets' across all namespaces.
AnswerD

Since Kubernetes ServiceAccount tokens are stored as Secrets, granting broad read permissions on secrets enables token theft.

Why this answer

Granting read access to Secrets across namespaces allows malicious actors to harvest ServiceAccount tokens.

7
MCQmedium

A security scan reveals that the kubelet read-only port (typically port 1055) is active and exposes unauthenticated pod and cluster metadata. How should this vulnerability be remediated?

A.Configure an RBAC ClusterRoleBinding for system:anonymous.
B.Enable PodSecurityStandards in enforcing mode.
C.Apply a NetworkPolicy blocking ingress traffic to port 1055.
D.Set readOnlyPort: 0 in the kubelet configuration file.
AnswerD

Setting the readOnlyPort to 0 completely disables the insecure read-only port.

Why this answer

The kubelet read-only port should be disabled by setting its value to 0 in the kubelet configuration file or startup flags.

8
MCQhard

An incident response team suspects that an attacker has gained unauthorized access to the cluster via an unencrypted etcd backup file containing sensitive cluster state. Which etcd utility should be used to securely snapshot and backup etcd data?

A.kubectl cluster-info dump --etcd
B.etcd-backup-controller
C.kubeadm backup etcd
D.etcdctl snapshot save
AnswerD

etcdctl snapshot save captures a consistent point-in-time snapshot of etcd.

Why this answer

etcdctl snapshot save is the official command-line tool used to take point-in-time snapshots of the etcd key-value database.

9
MCQhard

You are performing a security review of etcd cluster membership. You need to list all active members of the etcd cluster and check their health status using the command line. Which etcdctl command is correct?

A.etcdctl check membership
B.etcdctl member list and etcdctl endpoint health
C.etcdctl cluster status
D.kubectl get etcdmembers
AnswerB

member list shows cluster nodes and endpoint health verifies their operational status.

Why this answer

etcdctl member list and etcdctl endpoint health are the standard diagnostic commands for checking etcd cluster state.

10
MCQeasy

Which component in the Kubernetes control plane is directly responsible for interacting with etcd to persist and retrieve cluster state?

A.kube-controller-manager
B.kube-scheduler
C.kube-apiserver
D.kubelet
AnswerC

The API server acts as the frontend and is the sole component permitted to query and modify etcd.

Why this answer

The kube-apiserver is the only control plane component that communicates directly with etcd.

11
Multi-Selectmedium

Which THREE of the following criteria should be evaluated when reviewing Kubernetes RBAC policies to ensure least privilege? (Choose THREE)

Select 3 answers
A.Carefully audit permissions that allow impersonation or binding of roles.
B.Limit the use of cluster-scoped ClusterRoleBindings to cases where namespace-scoped Roles are insufficient.
C.Ensure anonymous users have write access to all namespaces.
D.Avoid granting wildcard permissions (*) on sensitive resources like secrets or cluster roles.
E.Grant cluster-admin permissions to every service account by default.
AnswersA, B, D

Impersonation and role binding permissions can allow privilege escalation.

Why this answer

RBAC reviews should check for overly broad resource permissions, dangerous verbs like 'impersonate' or 'bind', and cluster-wide bindings.

12
Multi-Selecthard

Which TWO of the following kubelet security configurations are critical for preventing container escape and unauthorized node API access? (Choose TWO)

Select 2 answers
A.Enable anonymous authentication on the kubelet secure port.
B.Run kubelet containers in privileged mode.
C.Configure kubelet authorization mode to Webhook.
D.Set authorization.mode to AlwaysAllow.
E.Disable the unauthenticated read-only port by setting readOnlyPort to 0.
AnswersC, E

Webhook authorization ensures RBAC rules govern kubelet API calls.

Why this answer

Disabling the read-only port and enforcing webhook authorization on the kubelet secure port are essential node security measures.

13
MCQhard

You are hardening etcd on a dedicated control plane host. You want to ensure that etcd database files on disk are protected against unauthorized physical or filesystem access. Which control mechanism is best suited for this?

A.Kubernetes NetworkPolicies applied to the etcd Pod.
B.API server RBAC ClusterRoleBinding.
C.Filesystem or block-level disk encryption (e.g., LUKS) on the host storage volume.
D.Kubelet read-only port disabling.
AnswerC

Disk encryption protects the underlying storage where etcd writes its data files and WALs.

Why this answer

Operating system level disk encryption (such as LUKS) protects files at rest on block storage devices.

14
MCQmedium

An administrator wants to secure the communication channel between the Kubernetes API server and extension API servers (such as metrics-server). Which API server flag specifies the Certificate Authority used to verify extension API server certificates?

A.--requestheader-client-ca-file
B.--extension-ca-file
C.--etcd-ca-file
D.--proxy-client-cert-file
AnswerA

This flag authenticates incoming requests from aggregated API servers.

Why this answer

The --requestheader-client-ca-file flag specifies the CA certificate used to sign client certificates for aggregated API servers.

15
MCQhard

You are troubleshooting a control plane failure where the Kubernetes API server cannot communicate with etcd because of expired client certificates. Which command-line flag on the kube-apiserver specifies the client TLS certificate used for authentication against etcd?

A.--etcd-private-key
B.--etcd-certfile
C.--client-cert-file
D.--etcd-ca-file
AnswerB

This flag provides the client certificate for API server to etcd mTLS authentication.

Why this answer

The --etcd-certfile flag specifies the TLS client certificate used when the API server connects to etcd.

16
MCQmedium

An administrator wants to audit who created or modified specific resources in the cluster. Where are API server audit records sent if configured with the log backend?

A.Directly to the etcd key-value store under /audit/logs.
B.To the container stdout of kube-proxy.
C.To the kubelet systemd journal on worker nodes.
D.To the file path specified by --audit-log-path on the control plane host.
AnswerD

The log backend writes structured JSON audit events to the designated file path.

Why this answer

When using the log audit backend, audit records are written to a file path specified by --audit-log-path.

17
MCQmedium

An administrator wants to ensure that a malicious container executing on a worker node cannot query the kubelet API to extract sensitive pod information. Which kubelet configuration setting controls whether requests to the kubelet require authorization?

A.protectKernelDefaults: false
B.tlsCertFile: /etc/certs/kubelet.crt
C.authentication.anonymous.enabled: true
D.authorization.mode: Webhook
AnswerD

Webhook authorization delegates authz checks to the API server.

Why this answer

Setting authorization.mode to Webhook forces the kubelet to verify requests against the API server's RBAC system.

18
MCQmedium

An administrator needs to ensure that the Kubernetes API server does not allow insecure cipher suites during TLS handshakes. Which API server flag allows specifying the exact cipher suites permitted?

A.--cipher-list
B.--tls-cipher-suites
C.--secure-ciphers
D.--etcd-cipher-suites
AnswerB

This flag controls the cipher suites allowed during TLS connections.

Why this answer

The --tls-cipher-suites flag allows administrators to define an explicit array of permitted cryptographic cipher suites.

19
MCQhard

You are auditing the Kubernetes control plane and notice that the API server is configured with an insecure port (--insecure-port=8080). What is the primary security implication of leaving this port enabled?

A.It bypasses all authentication and authorization modules, granting full administrative access to anyone who reaches the port.
B.It prevents the kubelet from communicating with the control plane nodes.
C.It restricts API access exclusively to read-only operations.
D.It forces all clients to downgrade their TLS encryption cipher suites to plaintext.
AnswerA

The insecure port does not enforce authn/authz, making it a critical vulnerability.

Why this answer

The insecure port serves HTTP requests without performing any authentication or authorization checks, allowing anyone who can reach the port full cluster access.

20
MCQhard

You are hardening a production Kubernetes control plane. You need to ensure that etcd client-to-server and peer communications are strictly encrypted in transit and require mutual TLS (mTLS). Which etcd configuration flag combination enforces this requirement?

A.--auto-tls=true for all endpoints.
B.--client-cert-auth=true and --peer-client-cert-auth=true along with valid CA and key pair paths.
C.--insecure-transport=false combined with HTTP proxy routing.
D.--cipher-suites=TLS_RSA_WITH_AES_128_CBC_SHA
AnswerB

Enabling client certificate authentication forces both clients (like the API server) and cluster peers to present valid, signed certificates.

Why this answer

Securing etcd requires configuring both server-side and client-side TLS certificates along with client certificate verification flags.

21
MCQmedium

An administrator wants to prevent the kubelet from automatically approving certificate signing requests (CSRs) generated by nodes joining the cluster. Which mechanism manages kubelet TLS bootstrapping approval behavior?

A.The etcd consensus module.
B.The kube-scheduler placement policy engine.
C.The API server admission webhook chain.
D.The CSR Approver controller in the kube-controller-manager.
AnswerD

The CSR signing and approval controllers within kube-controller-manager manage node CSR lifecycle.

Why this answer

Kubelet TLS bootstrapping requests can be automatically approved by the kube-controller-manager using the --controllers flag or handled manually/via external controllers.

22
Multi-Selecthard

Which TWO of the following API server configuration flags help enforce cryptographic and transport security? (Choose TWO)

Select 2 answers
A.--tls-cipher-suites to specify permitted strong cryptographic cipher suites.
B.--tls-min-version to enforce a minimum acceptable TLS protocol version.
C.--anonymous-auth to enable unauthenticated cluster access.
D.--insecure-port to allow unencrypted HTTP traffic.
E.--enable-http2=false to disable secure multiplexing.
AnswersA, B

Restricts negotiations to approved secure ciphers.

Why this answer

--tls-min-version and --tls-cipher-suites enforce transport security standards.

23
Multi-Selecteasy

Which THREE of the following actions can compromise the security of the Kubernetes control plane if left unmitigated? (Choose THREE)

Select 3 answers
A.Granting wildcard cluster-admin permissions to untrusted service accounts.
B.Enabling anonymous authentication on the API server or kubelet.
C.Configuring kubelet authorization mode to Webhook.
D.Enabling etcd encryption at rest with a valid key.
E.Leaving the API server insecure port (--insecure-port) enabled.
AnswersA, B, E

Violates least privilege and allows full cluster compromise.

Why this answer

Leaving the insecure port enabled, enabling anonymous auth, and granting overly broad RBAC permissions compromise control plane security.

24
Multi-Selecteasy

Which THREE of the following are key components of the Kubernetes control plane? (Choose THREE)

Select 3 answers
A.kube-scheduler
B.container runtime (e.g., containerd)
C.kube-controller-manager
D.kube-proxy
E.kube-apiserver
AnswersA, C, E

The scheduler assigns pods to nodes.

Why this answer

The API server, scheduler, and controller manager are core control plane components.

25
MCQeasy

Which protocol and default secure port does the kubelet use to listen for incoming authenticated requests from the API server and metrics collectors?

A.HTTPS on port 10250
B.HTTPS on port 6443
C.TCP on port 2379
D.HTTP on port 10255
AnswerA

Port 10250 is the primary secure port for the kubelet API.

Why this answer

The kubelet listens on TCP port 10250 for secure HTTPS traffic.

26
MCQeasy

Which file on a Kubernetes control plane node contains the startup arguments and flags for the statically hosted API server?

A./etc/systemd/system/kube-apiserver.service
B./etc/kubernetes/manifests/kube-apiserver.yaml
C./etc/default/kube-apiserver
D./var/lib/kubelet/config.yaml
AnswerB

The API server static pod manifest contains its container spec and command-line arguments.

Why this answer

Static pods for control plane components are defined in YAML files located in /etc/kubernetes/manifests.

27
MCQeasy

Which Kubernetes component manages the assignment of pending pods to healthy worker nodes based on resource availability and constraints?

A.kube-proxy
B.kube-scheduler
C.kube-apiserver
D.etcd
AnswerB

The scheduler matches pending pods to nodes.

Why this answer

The kube-scheduler evaluates scheduling requirements and binds pods to nodes.

28
MCQmedium

An auditor notices that the kubelet on worker nodes is configured with --protect-kernel-defaults=true. What is the security purpose of this flag?

A.It ensures that critical kernel parameters match expected secure baseline settings and prevents unauthorized modification.
B.It encrypts all kernel log (kmsg) outputs.
C.It prevents the Linux kernel from running container workloads as root.
D.It forces the kubelet to run inside an isolated kernel container.
AnswerA

Protecting kernel defaults prevents containers or misconfigurations from silently lowering node kernel security baselines.

Why this answer

This flag causes the kubelet to error out if specific kernel tuning flags (like vm.max_map_count or panic_on_oom) do not match expected secure defaults.

29
MCQeasy

Which service account permission model is used by default when a pod is created without specifying a service account name?

A.The 'default' service account in the pod's namespace.
B.No service account is assigned.
C.The 'cluster-admin' service account.
D.The 'kube-system' privileged service account.
AnswerA

Pods automatically receive the default service account if none is provided.

Why this answer

Every namespace contains a service account named 'default' which is automatically assigned to pods if no other account is specified.

30
MCQeasy

Which component is responsible for executing probes (liveness, readiness, startup) against containers running on a worker node?

A.kube-scheduler
B.kube-controller-manager
C.kubelet
D.kube-apiserver
AnswerC

Kubelet runs container probes and reports their status to the API server.

Why this answer

The kubelet executes liveness, readiness, and startup probes directly for containers on its node.

31
MCQmedium

A security auditor discovers that anonymous authentication is accidentally enabled on the Kubernetes API server, allowing unauthenticated read access to cluster health endpoints. Which API server flag must be modified to disable anonymous requests?

A.--secure-port=0
B.--authorization-mode=AlwaysAllow
C.--anonymous-auth=false
D.--disable-anonymous=true
AnswerC

This is the correct flag to disable anonymous requests on the kube-apiserver.

Why this answer

Setting --anonymous-auth=false explicitly disables requests that are not rejected by other authenticators from being treated as anonymous.

32
MCQmedium

An administrator wants to limit the blast radius if an attacker compromises a worker node. Which setting ensures that the kubelet does not automatically create or modify ServiceAccount tokens for pods unless explicitly requested?

A.Configure the API server with --disable-service-accounts=true.
B.Set kubelet flag --encrypt-tokens=true.
C.Set serviceAccountAutoMount: false or automountServiceAccountToken: false on service accounts or pod specs.
D.Enable etcd encryption for service account tokens.
AnswerC

Setting automountServiceAccountToken to false prevents the kubelet from projecting service account tokens into pod filesystems.

Why this answer

Disabling automatic service account token mounting across namespaces or via pod specs limits credential exposure.

33
Multi-Selectmedium

Which TWO of the following methods can be used to authenticate users or systems against the Kubernetes API server? (Choose TWO)

Select 2 answers
A.X.509 client certificates validated by the API server CA.
B.Unencrypted HTTP basic auth files with default passwords.
C.Anonymous packet sniffing via kube-proxy.
D.OpenID Connect (OIDC) tokens issued by an external identity provider.
E.Direct root SSH access to etcd nodes.
AnswersA, D

Client certificates are widely used for authenticating administrators, nodes, and controllers.

Why this answer

OpenID Connect (OIDC) tokens and X.509 client certificates are standard native authentication methods for the API server.

34
MCQeasy

Which Kubernetes control plane component runs controllers that handle routine tasks such as replicating pods and managing service accounts?

A.CoreDNS
B.kube-controller-manager
C.etcd
D.kube-proxy
AnswerB

This component executes core reconciliation loops.

Why this answer

The kube-controller-manager houses core control loops including the replication controller, service account controller, and namespace controller.

35
Multi-Selectmedium

Which THREE of the following tasks are performed by the Kubernetes control plane's kube-controller-manager? (Choose THREE)

Select 3 answers
A.Managing node lifecycle status and detecting node failures.
B.Maintaining desired pod replica counts via ReplicaSets.
C.Running container workloads directly on worker node operating systems.
D.Generating and managing ServiceAccount tokens and default namespace tokens.
E.Configuring iptables and IPVS rules for Kubernetes Services on nodes.
AnswersA, B, D

The node lifecycle controller runs inside kube-controller-manager.

Why this answer

The controller manager runs node, service account, and replication controllers.

36
Multi-Selecteasy

Which TWO of the following are core security hardening best practices for the Kubernetes API server? (Choose TWO)

Select 2 answers
A.Ensure the insecure port (--insecure-port) is disabled or set to 0.
B.Configure the API server to use HTTP instead of HTTPS for performance.
C.Store all kubeconfig credentials in public ConfigMaps.
D.Grant cluster-admin permissions to all authenticated users by default.
E.Disable anonymous authentication by setting --anonymous-auth=false.
AnswersA, E

Disabling the insecure port stops unauthenticated HTTP access.

Why this answer

Disabling anonymous requests and enforcing strong TLS versions are essential API server hardening steps.

37
MCQhard

You need to audit the cryptographic algorithms and TLS versions permitted by the Kubernetes API server for incoming client connections. Which API server flag enforces a minimum TLS version of 1.3?

A.--min-tls=1.3
B.--tls-min-version=VersionTLS13
C.--cipher-suites=TLS_AES_256_GCM_SHA384
D.--ssl-version=TLSv3
AnswerB

VersionTLS13 restricts secure connections exclusively to TLS version 1.3.

Why this answer

The --tls-min-version flag allows administrators to specify the minimum acceptable TLS protocol version.

38
MCQhard

You are reviewing security logs on a control plane node and discover that an unauthenticated user accessed the kubelet's HTTPS port (10250) to execute commands inside containers. How should you restrict kubelet authentication and authorization to prevent this?

A.Enable the kubelet insecure-port flag.
B.Set authorization.mode: AlwaysAllow in the kubelet configuration file.
C.Disable the API server proxy subresource.
D.Set authentication.anonymous.enabled: false and authorization.mode: Webhook in the kubelet configuration file.
AnswerD

This ensures the kubelet delegates authorization decisions back to the API server via RBAC rather than allowing unauthenticated access.

Why this answer

Kubelet must be configured with authentication enabled (such as X509 client certs or webhook token auth) and authorization set to Webhook.

39
Multi-Selectmedium

Which THREE of the following practices should be implemented to secure etcd in a production Kubernetes deployment? (Choose THREE)

Select 3 answers
A.Disable TLS verification to simplify certificate rotation.
B.Enable client certificate authentication using --client-cert-auth=true.
C.Expose etcd on a public internet IP address without authentication for easy monitoring.
D.Encrypt data at rest in etcd using an EncryptionConfiguration file.
E.Enable peer-to-peer encryption and mutual TLS using peer certificate flags.
AnswersB, D, E

Enforcing client cert auth ensures clients like the API server are cryptographically verified.

Why this answer

Etcd security relies on mTLS for client and peer connections, and encryption at rest.

40
Multi-Selectmedium

Which THREE of the following practices should be followed when configuring Kubernetes audit logging? (Choose THREE)

Select 3 answers
A.Store audit logs in unencrypted public ConfigMaps.
B.Disable audit logging entirely to maximize API server performance.
C.Monitor audit logs regularly for suspicious authentication failures or privilege escalations.
D.Store audit logs in a secure location with restricted file permissions on the host or ship them to a SIEM.
E.Define an explicit audit policy file detailing which log levels and events to capture.
AnswersC, D, E

Audit log analysis helps detect security breaches.

Why this answer

Audit logging should use a defined policy, specify a secure log output path, and protect log files from unauthorized modification.

41
MCQeasy

An engineer needs to verify that the kubelet on worker nodes is not allowing unauthenticated requests. Which configuration parameter in the kubelet configuration file disables anonymous access?

A.anonymousAuth: "Disabled"
B.enableAnonymousAccess: false
C.authentication.anonymous.enabled: false
D.readOnlyPort: 0
AnswerC

Setting this to false ensures all requests to the kubelet must be authenticated.

Why this answer

The authentication.anonymous.enabled setting in the kubelet configuration file controls whether anonymous requests are accepted.

42
Multi-Selecteasy

Which TWO of the following tasks are handled by the kube-scheduler? (Choose TWO)

Select 2 answers
A.Generating X.509 client certificates for cluster bootstrapping.
B.Evaluating pending pods and selecting suitable worker nodes for placement.
C.Respecting node taints, tolerations, and affinity rules during scheduling.
D.Managing encryption keys inside the etcd database.
E.Executing container liveness probes inside running pods.
AnswersB, C

Scheduler matches pods to nodes.

Why this answer

The kube-scheduler selects a node for unassigned pods based on resource availability and constraints.

43
Multi-Selecthard

Which TWO of the following scenarios represent severe security misconfigurations in a Kubernetes cluster control plane? (Choose TWO)

Select 2 answers
A.Etcd is configured with client certificate authentication and mTLS enabled.
B.Kubelet authorization mode is set to Webhook.
C.The API server is configured with --insecure-port pointing to an active HTTP listener.
D.The API server or kubelet has anonymous authentication enabled (--anonymous-auth=true).
E.Secrets are encrypted at rest using an EncryptionConfiguration file.
AnswersC, D

Allows unauthenticated/unauthorized access.

Why this answer

Exposing the API server insecure port and allowing anonymous authentication are severe misconfigurations.

44
MCQhard

You are securing a highly regulated Kubernetes cluster and need to ensure that etcd data is encrypted at rest using a custom encryption key. After creating the EncryptionConfiguration file, which API server flag must be updated to point to this file?

A.--data-encryption-secret
B.--encryption-config-path
C.--encryption-provider-config
D.--etcd-key-file
AnswerC

This flag instructs the API server to load the encryption provider settings.

Why this answer

The --encryption-provider-config flag links the API server to the encryption configuration file.

45
MCQhard

You are tasked with securing a Kubernetes cluster where control plane nodes are hosted in a private network segment. To prevent unauthorized access to the API server from compromised internal workloads, which mechanism restricts which service accounts can access the API server?

A.Setting kubelet readOnlyPort to 8080.
B.Enabling anonymous access.
C.Disabling the Node authorizer.
D.Strict RBAC Role and ClusterRole bindings adhering to the principle of least privilege.
AnswerD

RBAC restricts what actions service accounts and users can perform against the API server.

Why this answer

Role-Based Access Control (RBAC) combined with least-privilege binding ensures service accounts only access permitted API resources.

46
Multi-Selecthard

Which TWO of the following are valid ways to harden etcd against unauthorized access and data corruption? (Choose TWO)

Select 2 answers
A.Expose etcd directly over unencrypted HTTP on port 2379.
B.Disable client certificate verification to allow unrestricted access.
C.Require mutual TLS (mTLS) for all client and peer connections.
D.Take regular encrypted snapshots using etcdctl snapshot save.
E.Grant public anonymous write access to the etcd raft log.
AnswersC, D

mTLS ensures only trusted components can communicate with etcd.

Why this answer

Enforcing client certificate authentication and taking regular encrypted snapshots secure etcd.

47
Multi-Selecteasy

Which TWO of the following actions are risks associated with leaving the Kubernetes API server's insecure port enabled? (Choose TWO)

Select 2 answers
A.Enforcement of strict TLS 1.3 encryption on all connections.
B.Complete bypass of all authentication mechanisms.
C.Mandatory mutual TLS client certificate verification.
D.Automatic activation of etcd encryption at rest.
E.Complete bypass of all authorization checks (RBAC).
AnswersB, E

The insecure port does not require authentication.

Why this answer

The insecure port allows unauthenticated and unencrypted access.

48
Multi-Selecteasy

Which TWO of the following files or directories on a control plane node contain critical static pod manifests for core components? (Choose TWO)

Select 2 answers
A./etc/kubernetes/manifests/etcd.yaml
B./var/lib/kubelet/config.yaml
C./etc/default/kube-proxy
D.~/.kube/config
E./etc/kubernetes/manifests/kube-apiserver.yaml
AnswersA, E

Contains the etcd static pod definition.

Why this answer

The /etc/kubernetes/manifests directory holds static pod yaml files for kube-apiserver, etcd, etc.

49
Multi-Selectmedium

Which TWO of the following metrics or health endpoints should be protected against unauthenticated access on control plane nodes? (Choose TWO)

Select 2 answers
A.Container runtime image download caches.
B.Etcd metrics and health endpoints (typically port 2379/2380).
C.Public load balancer health check probe targets configured for external routing.
D.CoreDNS internal DNS query forwarding ports.
E.Kubelet metrics and operational endpoints (port 10250).
AnswersB, E

Etcd metrics expose internal storage and performance data.

Why this answer

API server metrics and etcd health/metrics endpoints contain sensitive operational and cluster data.

50
MCQmedium

You are hardening etcd and want to ensure that sensitive data stored in Kubernetes secrets is encrypted at rest within etcd. Which API server configuration file parameter specifies how secrets should be encrypted?

A.--etcd-encryption-key
B.--secrets-encryption-enabled
C.--encryption-provider-config
D.--etcd-ca-file
AnswerC

This flag points to the configuration file defining encryption providers like aescbc or secretbox.

Why this answer

Encryption at rest is configured using an EncryptionConfiguration file passed to the API server via the --encryption-provider-config flag.

51
Multi-Selecthard

Which THREE of the following mechanisms are used by the Kubernetes API server to authorize requests after authentication succeeds? (Choose THREE)

Select 3 answers
A.RBAC (Role-Based Access Control) authorizer.
B.Node authorizer for restricting kubelet operations.
C.Etcd consensus authorizer.
D.Kube-proxy IPVS routing authorizer.
E.Webhook authorizer for external authorization evaluation.
AnswersA, B, E

Standard RBAC checks roles and bindings.

Why this answer

Kubernetes supports Node, RBAC, and Webhook authorization modes.

52
Multi-Selecthard

Which TWO of the following mechanisms help secure the kubelet API from unauthorized access and container inspection? (Choose TWO)

Select 2 answers
A.Enabling Webhook authorization mode so kubelet requests are validated against API server RBAC.
B.Removing all TLS certificates from the kubelet configuration.
C.Setting kubelet authorization mode to AlwaysAllow.
D.Disabling anonymous authentication on the kubelet.
E.Enabling the kubelet read-only port 10255.
AnswersA, D

Webhook authorization delegates authz to the API server.

Why this answer

Setting authorization mode to Webhook and disabling anonymous access protect the kubelet API.

53
MCQeasy

Where are static pods for a control plane node typically defined so that the kubelet can automatically create and manage them?

A.In the directory specified by staticPodPath in the kubelet configuration file (default /etc/kubernetes/manifests).
B.In the ~/.kube/config file of the root user.
C.In the etcd database under the /registry/staticpods prefix.
D.In the kube-system namespace as standard Deployment objects.
AnswerA

Kubelet watches this directory and automatically creates static pods for any yaml manifests found within.

Why this answer

Static pods are defined by manifest files placed in the directory specified by the kubelet's --pod-manifest-path flag or staticPodPath configuration setting.

54
MCQhard

You are performing a security assessment on an existing Kubernetes cluster. You discover that the kubelet API permits users with valid service account tokens to read sensitive container environment variables and logs. How should you configure the kubelet authorization mode to prevent unauthorized token holders from reading arbitrary pod data?

A.Set kubelet authorization mode to Webhook so the API server evaluates RBAC permissions for kubelet requests.
B.Set kubelet authorization mode to AlwaysAllow.
C.Enable anonymous access on port 10250.
D.Disable the kubelet authentication certificate.
AnswerA

Webhook authorization forces the kubelet to delegate access checks to the API server's RBAC authorizer.

Why this answer

Enabling Webhook authorization on the kubelet ensures that API server RBAC rules govern access to kubelet subresources like logs and exec.

55
MCQeasy

An administrator needs to secure access to the Kubernetes API server from an external CI/CD pipeline. Which mechanism should be used to authenticate the pipeline using an existing external identity provider without embedding long-lived static tokens?

A.Store the administrative kubeconfig file in a public ConfigMap.
B.Configure the API server with --oidc-issuer-url and related flags to validate JSON Web Tokens issued by the IDP.
C.Enable anonymous requests on the API server for the CI/CD CIDR block.
D.Create a shared static password file and pass it via --basic-auth-file.
AnswerB

This is the native method for integrating external OIDC identity providers with the Kubernetes API server.

Why this answer

OpenID Connect (OIDC) tokens allow Kubernetes API servers to authenticate users and service accounts via an external identity provider, avoiding static tokens.

56
MCQhard

You are troubleshooting a secure etcd cluster where a new control plane node cannot join the cluster. The logs indicate a TLS handshake failure between etcd peers. Which etcd configuration flag specifies the trusted CA certificate used to verify peer certificates?

A.--trusted-ca-file
B.--peer-client-cert-auth
C.--peer-trusted-ca-file
D.--etcd-ca-file
AnswerC

This flag ensures peer certificates are validated against the correct CA.

Why this answer

The --peer-trusted-ca-file flag specifies the CA certificate used to verify peer-to-peer TLS connections in etcd.

57
MCQeasy

When configuring the Kubernetes API server authorization modes, which mode evaluates requests against Kubernetes RBAC policies?

A.RBAC
B.Webhook
C.Node
D.AlwaysAllow
AnswerA

RBAC is the standard authorization mode for defining fine-grained user and service account permissions.

Why this answer

The RBAC (Role-Based Access Control) authorization mode uses cluster roles and bindings to govern access.

58
MCQeasy

Which component provides network routing and iptables/IPVS rule management across worker nodes for Kubernetes Services?

A.kube-scheduler
B.kube-apiserver
C.etcd
D.kube-proxy
AnswerD

Kube-proxy manages service networking on nodes.

Why this answer

kube-proxy maintains network rules on nodes allowing network communication to pods.

59
Multi-Selectmedium

Which THREE of the following steps are part of proper Kubernetes control plane certificate management? (Choose THREE)

Select 3 answers
A.Using a trusted Certificate Authority (CA) rather than self-signed certificates where possible.
B.Implementing regular certificate rotation before expiration.
C.Disabling TLS verification for all internal cluster components.
D.Securing private keys with strict file permissions (e.g., 600) on control plane nodes.
E.Storing all private keys in unencrypted public ConfigMaps.
AnswersA, B, D

Trusted CAs integrate with enterprise PKI.

Why this answer

Proper certificate management includes regular rotation, using a trusted internal or enterprise CA, and setting appropriate validity durations.

60
MCQmedium

An administrator suspects that someone is attempting brute-force attacks against the Kubernetes API server. Where should the administrator look to inspect authentication failures generated by the API server?

A.The etcd WAL (Write-Ahead Log) files.
B.The kubelet container logs on worker nodes.
C.The kube-proxy packet capture logs.
D.API server audit logs configured via --audit-log-path.
AnswerD

Audit logs record authentication metadata, including user identities and request outcomes.

Why this answer

API server audit logs capture authentication attempts, including failures, when configured with an appropriate audit policy.

61
MCQmedium

An administrator wants to ensure that the Kubernetes API server rejects any incoming requests that do not match known API resource paths or have invalid syntax. Which admission controller helps validate request structures and schema compliance?

A.The etcd transaction validator.
B.The core scheduler admission plugin.
C.The built-in OpenAPI schema validation and ValidatingAdmissionWebhook.
D.The kube-proxy filter admission module.
AnswerC

The API server enforces schema validation using OpenAPI schemas before passing requests to etcd.

Why this answer

Schema validation and structural compliance are handled by the built-in validation mechanisms and admission controllers in the API server.

62
Multi-Selecthard

Which THREE of the following auditing or logging mechanisms should be configured on a secure Kubernetes control plane? (Choose THREE)

Select 3 answers
A.Kubernetes API server audit logging configured with an audit policy file.
B.Routing all cluster traffic through an unencrypted proxy log.
C.Kubelet system and container execution logs on worker nodes.
D.Disabling all log outputs to prevent disk space exhaustion.
E.Etcd audit and operational logging for database transactions and peer health.
AnswersA, C, E

API server audit logs capture request history and user metadata.

Why this answer

API server audit logging, etcd transaction logging, and node system logs are crucial auditing layers.

63
MCQhard

A cluster administrator wants to implement admission control auditing to record all mutating and validating requests made to the API server. Which component configuration handles this requirement?

A.Configure the kubelet audit webhook via /etc/kubernetes/audit.json.
B.Enable kube-proxy audit mode using --audit-proxy=true.
C.Set etcd logging level to DEBUG in the etcd configuration yaml.
D.Configure an audit policy file and pass its path to the API server via --audit-policy-file.
AnswerD

The API server uses an audit policy file referenced by flag to determine which requests are logged and how.

Why this answer

Kubernetes Audit Policy configuration files define what events are recorded and at what log level by the API server audit backend.

Ready to test yourself?

Try a timed practice session using only Kubernetes Cluster Component Security questions.