CKS Web TestEngine demo

Exit VCEDump CKS Linux Foundation Certified Kubernetes Security Specialist (CKS)
Question 6 of 10
0% complete
Q6 Lab

Simulation

Documentation

ServiceAccount, Deployment, Projected Volumes

You must connect to the correct host. Failure to do so may result in a zero score.

[candidate@base] $ ssh cks000033

Context

A security audit has identified a Deployment improperly handling service account tokens, which could lead to security vulnerabilities.

Task

First, modify the existing ServiceAccount stats-monitor-sa in the namespace monitoring to turn off automounting of API credentials.

Next, modify the existing Deployment stats-monitor in the namespace monitoring to inject a ServiceAccount token mounted at /var/run/secrets/kubernetes.io/serviceaccount/token.

Use a Projected Volume named token to inject the ServiceAccount token and ensure that it is mounted read-only.

The Deployment’s manifest file can be found at /home/candidate/stats-monitor/deployment.yaml.

Not auto-scored - compare your configuration against the model answer.

Sign in to mark questions

Sign in to save marked questions and return to this demo.

Sign in