wayground logo

Free Printable Worksheets

NEW

Font size

S
M
L
XL
Worksheets

KCSA - API Server and Networking Security

Total questions: 10

Worksheet time: 5mins

Name
Class
Date
1.

What is the primary function of the Kubernetes API Server in the control plane?

a)

Scheduling pods

b)

Handling REST requests and cluster interaction

c)

Monitoring node health

d)

Configuring storage

2.

Which mechanism does the API Server use to verify user identities?

a)

Network Policies

b)

Pod Security Admission

c)

OpenID Connect, X.509 Certificates, Service Accounts, Webhooks

d)

Container Runtime Sandboxing

3.

What is the principle of least privilege (PoLP) in Kubernetes, and how is it enforced for controllers?

a)

Granting all permissions by default

b)

Controllers run with minimal service account permissions, restricted by RBAC

c)

Allowing privilege escalation

d)

Using only privileged containers

4.

Which Kubernetes component is responsible for scheduling pods onto nodes based on resource availability?

a)

Kubelet

b)

Controller Manager

c)

API Server

d)

Scheduler

5.

What security benefit does enabling TLS communication between cluster components provide?

a)

Disables anonymous access

b)

Encrypts data in transit, protecting against eavesdropping and MITM attacks

c)

Manages RBAC policies

d)

Blocks network traffic between pods

6.

Which method should you use to restrict network communication between pods in a Kubernetes cluster?

a)

Pod Security Admission

b)

RBAC RoleBindings

c)

NetworkPolicies

d)

Controller service accounts

7.

Why is it important to encrypt etcd data at rest in Kubernetes?

a)

Improves scheduler performance

b)

Prevents unauthorized access to cluster secrets and configuration

c)

Enables rolling updates

d)

Allows pod IP spoofing

8.

Which best practice limits privilege escalation in containers?

a)

Running containers as root

b)

Setting allowPrivilegeEscalation: false and using restricted Pod Security Admission policies

c)

Using default service accounts

d)

Allowing any workload on all nodes

9.

How does audit logging in Kubernetes enhance cluster security?

a)

Automatically rotates certificates

b)

Tracks API activity to detect unauthorized access or suspicious changes

c)

Schedules pods automatically

d)

Encrypts container images

10.

When creating roles for RBAC, why should you avoid using the 'cluster-admin' ClusterRole except when necessary?

a)

It only allows read access

b)

It applies only to Pods

c)

It disables admission controllers

d)

It grants full, unrestricted access to all resources, violating PoLP and increasing security risks