Deal of The Day! Hurry Up, Grab the Special Discount - Save 25% - Ends In 00:00:00 Coupon code: SAVE25
Welcome to Pass4Success

- Free Preparation Discussions

Linux Foundation CKS Exam - Topic 1 Question 42 Discussion

Posted by Nana on Oct 05, 2023 at 04:25 AM

Context: Cluster:prod Master node:master1 Worker node:worker1

You can switch the cluster/configuration context using the following command:

[desk@cli] $kubectl config use-context prod

Task: Analyse and edit the given Dockerfile (based on theubuntu:18:04image) /home/cert_masters/Dockerfilefixing two instructions present in the file being prominent security/best-practice issues.

Analyse and edit the given manifest file /home/cert_masters/mydeployment.yamlfixing two fields present in the file being prominent security/best-practice issues.

Note:Don't add or remove configuration settings; only modify the existing configuration settings, so that two configuration settings each are no longer security/best-practice concerns. Should you need an unprivileged user for any of the tasks, use usernobodywith user id65535

Suggested Answer: A

Get Premium CKS Questions as Interactive Web-Based Practice Test or PDF Real Exam Format Detailed Explanations Instant Access Get Your Practice Test
18 comments · newest first
KA
Kallie 11 months ago
I thought privileged mode was necessary for Kafka. Surprised to see it removed!
IO
Iola 11 months ago
Good call on the security context changes!
KA
Katie 12 months ago
Wait, why are we using USER nobody? Isn't that too restrictive?
LE
Letha 12 months ago
Agreed, using the latest version can be risky.
BI
Billye 1 year ago
Gotta fix that Dockerfile to use ubuntu:18.04!
CR
Cristy 1 year ago
For the manifest file, I think we should also ensure that the 'runAsUser' is set correctly. I remember that was a key point in our last practice question.
GL
Glenn 1 year ago
I feel a bit confused about the Dockerfile edits. I know we need to use 'USER nobody', but I can't recall if we should remove all instances of 'USER root'.
AL
Alonzo 1 year ago
I remember we practiced something similar where we had to adjust security contexts in a YAML file. I think we should set 'privileged' to false and make the filesystem read-only.
FR
Frank 1 year ago
I think for the Dockerfile, we definitely need to change the base image to a specific version like ubuntu:18.04, but I'm not entirely sure about the user context.
NI
Nieves 1 year ago
I'm a little worried about the security implications here. I'll need to be extra careful to ensure I'm addressing the right concerns and not introducing any new vulnerabilities.
LE
Lelia 1 year ago
I feel pretty confident about this one. The instructions are clear, and I've worked with Dockerfiles and Kubernetes manifests before. I think I can knock this out without too much trouble.
AN
An 1 year ago
Okay, let's break this down step-by-step. First, I'll check the Dockerfile and look for the image version and user name issues. Then I'll tackle the security context problems in the manifest file.
CR
Crista 1 year ago
Hmm, I'm a bit unsure about the specifics of the security concerns here. I'll need to review the documentation on best practices for Dockerfiles and Kubernetes manifests.
AN
An 1 year ago
This looks like a tricky one. I'll need to carefully analyze the Dockerfile and manifest file to identify the security/best-practice issues.
BE
Belen 1 year ago
Okay, I've got this. The key is to leverage modern monitoring tools and data sources to get better visibility. Streaming telemetry and APIs are the way to go, rather than relying on legacy protocols.
BU
Buck 1 year ago
This looks like a tricky one, but I think I can work through it step-by-step.
YA
Yaeko 1 year ago
I'm a bit unsure about this one. I know we need to compile the different asset types, but I'm not sure of the exact order. Maybe I should review the SFRA documentation again to be sure.
NO
Norah 1 year ago
Hmm, I'm a bit unsure about this one. I'll need to think it through carefully to make sure I understand the difference between identification, authentication, and authorization.
0/2000 characters

Save Cancel