wayground logo

Free Printable Worksheets

NEW

Font size

S
M
L
XL
Worksheets

Kubernetes Security Fundamentals

Total questions: 10

Worksheet time: 5mins

Name
Class
Date
1.

Which component is responsible for scheduling pods on nodes in a Kubernetes cluster?

a)

API server

b)

Scheduler

c)

Kubelet

d)

etcd

2.

What is the purpose of Role-Based Access Control (RBAC) in Kubernetes?

a)

To allocate resources between namespaces

b)

To provide network segmentation

c)

To manage permissions for users, groups, and service accounts

d)

To control image downloads

3.

Which security context setting prevents containers from running with root privileges?

a)

runAsNonRoot: true

b)

allowPrivilegeEscalation: true

c)

privileged: true

d)

fsGroup: 0

4.

Which technology enforces security policies on traffic between Kubernetes pods at the application layer?

a)

Network Policy

b)

Ingress Controller

c)

Container Runtime

d)

Service Mesh

5.

What is the default Pod Security Standard level that enforces the strictest restrictions on pod configuration?

a)

Privileged

b)

Baseline

c)

Restricted

d)

Permissive

6.

How can you define and maintain consistent security policies for Kubernetes resources?

a)

Manual scripting on an ad-hoc basis

b)

Relying on manual audits

c)

Using declarative YAML manifests as code

d)

Configuring controls per resource by hand each time

7.

What risk is mitigated by applying egress network policies to all workloads?

a)

Service downtime

b)

Data exfiltration

c)

Node poisoning

d)

Resource exhaustion

8.

How should cluster secrets be protected?

a)

Store in ConfigMaps

b)

Enable at-rest encryption in etcd

c)

Store in Pod specifications

d)

Save on local disk

9.

Which admission controller restricts pods from using Service.spec.externalIPs, helping block MITM attacks?

a)

ResourceQuota

b)

DenyServiceExternalIPs

c)

ValidatingAdmissionWebhook

d)

NodeRestriction

10.

Which command creates a Kubernetes secret from literal values?

a)

kubectl apply -f secret.yaml

b)

kubectl secret add --literal key=value

c)

kubectl create secret generic my-secret --literal=key=value

d)

kubectl create secret my-secret --from-file=value.txt