McAfee-Secured Website

Exam Bundle

Exam Code: KCNA

Exam Name Kubernetes and Cloud Native Associate

Certification Provider: Linux Foundation

Corresponding Certification: KCNA

Linux Foundation KCNA Bundle $44.99

100% Linux Foundation KCNA Guaranteed Success With Testking Training Materials

Get Real KCNA Exam Questions & Expert Verified Answers as Experienced on the Real Exam!

  • Questions & Answers

    KCNA Questions & Answers

    333 Questions & Answers

    The ultimate exam preparation tool, Questions & Answers mirrors the actual KCNA exam while allowing you to hone and measure every aspect of your test-taking ability.

  • KCNA Video Course

    KCNA Video Course

    54 Video Lectures

    KCNA Video Course is developed by Linux Foundation Professionals to help you pass the KCNA exam.

    Description

    This course will improve your knowledge and skills required to pass Kubernetes and Cloud Native Associate exam.
  • Study Guide

    KCNA Study Guide

    410 PDF Pages

    Developed by industry experts, this 410-page guide spells out in painstaking detail all of the information you need to ace KCNA exam.

Kubernetes and Cloud Native Associate (KCNA) Practice Tests

Satisfaction Guaranteed

Money Back Guarantee

Testking provides hassle-free money back guarantee with our products. That is because we have 100% trust in the abilities of our professional and experience product team, and our record is a proof of that.

99.6% PASS RATE
Total Cost: $194.97
Bundle Price: $149.98

Purchase Individually

  • Questions & Answers

    Questions & Answers

    333 Questions

    $124.99
  • KCNA Video Course

    Video Course

    54 Video Lectures

    $39.99
  • Study Guide

    Study Guide

    410 PDF Pages

    $29.99

Linux Foundation KCNA Practice Test 44

Question 430

At Brookside Manufacturing, the factory applications team is managing a production dashboard cluster with requirements for maintenance windows and dependable telemetry. An acceptance check is required after fixing: A team grants a CI robot cluster-admin rights merely to read Pod status from one project namespace. Which observed result BEST confirms the intended correction?

  1. The robot reads the intended Pods but fails an attempt to modify cluster-wide resources.
  2. The app runs with its intended writable scratch area but cannot modify the rest of the container filesystem.
  3. Audit records identify the actual calling identity and an expired or revoked token no longer authenticates.
  4. Only authorized identities retrieve the secret and the nonsecret ConfigMap contains no key material.

Explanation

Correct Answer

A:

The robot reads the intended Pods but fails an attempt to modify cluster-wide resources. This demonstrates that the originally documented problem was resolved: A team grants a CI robot cluster-admin rights merely to read Pod status from one project namespace. The corresponding corrective approach is: Create a least-privilege Role and namespaced binding permitting only the required read operations. For Brookside Manufacturing, this observed outcome is more meaningful than a completed ticket or configuration claim.

Incorrect Answers

B:

The app runs with its intended writable scratch area but cannot modify the rest of the container filesystem. That observed result would support another specific correction: Set readOnlyRootFilesystem where supported and mount narrowly scoped writable directories needed by the process. The other scenario concerns: A workload requires read-only source files but mounts its entire container root filesystem writable. The current Brookside Manufacturing problem is: A team grants a CI robot cluster-admin rights merely to read Pod status from one project namespace. The evidence required here is: The robot reads the intended Pods but fails an attempt to modify cluster-wide resources.

C:

Audit records identify the actual calling identity and an expired or revoked token no longer authenticates. That observed result would support another specific correction: Adopt appropriate distinct identities and short-lived credentials with auditable least-privilege RBAC bindings. The other scenario concerns: A cluster uses the same long-lived static token for developers, automation, and workloads, making activity attribution difficult. The current Brookside Manufacturing problem is: A team grants a CI robot cluster-admin rights merely to read Pod status from one project namespace. The evidence required here is: The robot reads the intended Pods but fails an attempt to modify cluster-wide resources.

D:

Only authorized identities retrieve the secret and the nonsecret ConfigMap contains no key material. That observed result would support another specific correction: Use a Secret with appropriately scoped RBAC, avoid placing credentials in ConfigMaps, and configure at-rest encryption where available. The other scenario concerns: An organization stores an API key in a ConfigMap and believes RBAC on the deployment alone prevents its disclosure. The current Brookside Manufacturing problem is: A team grants a CI robot cluster-admin rights merely to read Pod status from one project namespace. The evidence required here is: The robot reads the intended Pods but fails an attempt to modify cluster-wide resources.

Question 431

At Juniper Media, the content engineering team is managing a streamed-media microservices application with requirements for peak-demand scalability and deployment safety. An implementation review identifies the following problem: A team grants a CI robot cluster-admin rights merely to read Pod status from one project namespace. Which change BEST resolves the specific issue?

  1. Plan the application's secret consumption and restart or reload behavior for environment variables versus mounted volumes.
  2. Adopt appropriate distinct identities and short-lived credentials with auditable least-privilege RBAC bindings.
  3. Remove secret-bearing logging, minimize token mounting and scope API permissions to the actual workload operations.
  4. Create a least-privilege Role and namespaced binding permitting only the required read operations.

Explanation

Correct Answer

D:

Create a least-privilege Role and namespaced binding permitting only the required read operations. This directly addresses the operational issue: A team grants a CI robot cluster-admin rights merely to read Pod status from one project namespace. The Juniper Media team should verify its effectiveness rather than assume that an updated manifest or command proves success. The strongest acceptance evidence is: The robot reads the intended Pods but fails an attempt to modify cluster-wide resources.

Incorrect Answers

A:

Plan the application's secret consumption and restart or reload behavior for environment variables versus mounted volumes. That choice addresses a different foundational issue: A security engineer rotates a Secret but forgets that applications reading it through environment variables may require a restart. The issue at Juniper Media is instead: A team grants a CI robot cluster-admin rights merely to read Pod status from one project namespace. It does not establish the required correction; the decisive verification would be: The robot reads the intended Pods but fails an attempt to modify cluster-wide resources.

B:

Adopt appropriate distinct identities and short-lived credentials with auditable least-privilege RBAC bindings. That choice addresses a different foundational issue: A cluster uses the same long-lived static token for developers, automation, and workloads, making activity attribution difficult. The issue at Juniper Media is instead: A team grants a CI robot cluster-admin rights merely to read Pod status from one project namespace. It does not establish the required correction; the decisive verification would be: The robot reads the intended Pods but fails an attempt to modify cluster-wide resources.

C:

Remove secret-bearing logging, minimize token mounting and scope API permissions to the actual workload operations. That choice addresses a different foundational issue: An application with access to the Kubernetes API logs its mounted service-account token during error handling. The issue at Juniper Media is instead: A team grants a CI robot cluster-admin rights merely to read Pod status from one project namespace. It does not establish the required correction; the decisive verification would be: The robot reads the intended Pods but fails an attempt to modify cluster-wide resources.

Question 432

At Juniper Media, the content engineering team is managing a streamed-media microservices application with requirements for peak-demand scalability and deployment safety. The release reviewer now needs objective evidence for this original issue: A team grants a CI robot cluster-admin rights merely to read Pod status from one project namespace. Which observed result BEST confirms the intended correction?

  1. Normal workloads remain subject to the restrictive standard and any approved exception is scoped and auditable.
  2. The app runs with its intended writable scratch area but cannot modify the rest of the container filesystem.
  3. The robot reads the intended Pods but fails an attempt to modify cluster-wide resources.
  4. The application uses the rotated credential after the approved restart or reload and the previous credential stops working.

Explanation

Correct Answer

C:

The robot reads the intended Pods but fails an attempt to modify cluster-wide resources. This demonstrates that the originally documented problem was resolved: A team grants a CI robot cluster-admin rights merely to read Pod status from one project namespace. The corresponding corrective approach is: Create a least-privilege Role and namespaced binding permitting only the required read operations. For Juniper Media, this observed outcome is more meaningful than a completed ticket or configuration claim.

Incorrect Answers

A:

Normal workloads remain subject to the restrictive standard and any approved exception is scoped and auditable. That observed result would support another specific correction: Use a narrowly justified and reviewed exception process rather than weakening the baseline policy for an entire namespace. The other scenario concerns: An admission policy blocks privileged containers in production but the team bypasses it by adding broad namespace exemptions. The current Juniper Media problem is: A team grants a CI robot cluster-admin rights merely to read Pod status from one project namespace. The evidence required here is: The robot reads the intended Pods but fails an attempt to modify cluster-wide resources.

B:

The app runs with its intended writable scratch area but cannot modify the rest of the container filesystem. That observed result would support another specific correction: Set readOnlyRootFilesystem where supported and mount narrowly scoped writable directories needed by the process. The other scenario concerns: A workload requires read-only source files but mounts its entire container root filesystem writable. The current Juniper Media problem is: A team grants a CI robot cluster-admin rights merely to read Pod status from one project namespace. The evidence required here is: The robot reads the intended Pods but fails an attempt to modify cluster-wide resources.

D:

The application uses the rotated credential after the approved restart or reload and the previous credential stops working. That observed result would support another specific correction: Plan the application's secret consumption and restart or reload behavior for environment variables versus mounted volumes. The other scenario concerns: A security engineer rotates a Secret but forgets that applications reading it through environment variables may require a restart. The current Juniper Media problem is: A team grants a CI robot cluster-admin rights merely to read Pod status from one project namespace. The evidence required here is: The robot reads the intended Pods but fails an attempt to modify cluster-wide resources.

Question 433

At Highland Education, the training-platform operations team is managing an online course application with requirements for stable user sessions and controlled tenant access. The training lab has documented this issue: A cluster user assumes Kubernetes RBAC grants access to all resources because they have access to one namespace. Which change BEST resolves the specific issue?

  1. Set a restrictive securityContext with nonroot execution and dropped capabilities where supported.
  2. Apply least-privilege RoleBindings and distinguish namespaced permissions from cluster-wide authorization.
  3. Set readOnlyRootFilesystem where supported and mount narrowly scoped writable directories needed by the process.
  4. Remove unnecessary hostPath mounts and use scoped volumes or supported APIs for legitimate data exchange.

Explanation

Correct Answer

B:

Apply least-privilege RoleBindings and distinguish namespaced permissions from cluster-wide authorization. This directly addresses the operational issue: A cluster user assumes Kubernetes RBAC grants access to all resources because they have access to one namespace. The Highland Education team should verify its effectiveness rather than assume that an updated manifest or command proves success. The strongest acceptance evidence is: An authorization test allows the namespace resource and rejects access to a forbidden namespace or cluster-scoped object.

Incorrect Answers

A:

Set a restrictive securityContext with nonroot execution and dropped capabilities where supported. That choice addresses a different foundational issue: An image supplies a process running as root with the ability to add Linux kernel capabilities unnecessary for its task. The issue at Highland Education is instead: A cluster user assumes Kubernetes RBAC grants access to all resources because they have access to one namespace. It does not establish the required correction; the decisive verification would be: An authorization test allows the namespace resource and rejects access to a forbidden namespace or cluster-scoped object.

C:

Set readOnlyRootFilesystem where supported and mount narrowly scoped writable directories needed by the process. That choice addresses a different foundational issue: A workload requires read-only source files but mounts its entire container root filesystem writable. The issue at Highland Education is instead: A cluster user assumes Kubernetes RBAC grants access to all resources because they have access to one namespace. It does not establish the required correction; the decisive verification would be: An authorization test allows the namespace resource and rejects access to a forbidden namespace or cluster-scoped object.

D:

Remove unnecessary hostPath mounts and use scoped volumes or supported APIs for legitimate data exchange. That choice addresses a different foundational issue: A development workload mounts the host root filesystem for convenient file access and expands the blast radius of a compromise. The issue at Highland Education is instead: A cluster user assumes Kubernetes RBAC grants access to all resources because they have access to one namespace. It does not establish the required correction; the decisive verification would be: An authorization test allows the namespace resource and rejects access to a forbidden namespace or cluster-scoped object.

Question 434

At Highland Education, the training-platform operations team is managing an online course application with requirements for stable user sessions and controlled tenant access. The team claims a correction and requests independent validation for: A cluster user assumes Kubernetes RBAC grants access to all resources because they have access to one namespace. Which observed result BEST confirms the intended correction?

  1. The robot reads the intended Pods but fails an attempt to modify cluster-wide resources.
  2. Normal workloads remain subject to the restrictive standard and any approved exception is scoped and auditable.
  3. The application performs its work but a test process cannot exercise unneeded privileged capabilities.
  4. An authorization test allows the namespace resource and rejects access to a forbidden namespace or cluster-scoped object.

Explanation

Correct Answer

D:

An authorization test allows the namespace resource and rejects access to a forbidden namespace or cluster-scoped object. This demonstrates that the originally documented problem was resolved: A cluster user assumes Kubernetes RBAC grants access to all resources because they have access to one namespace. The corresponding corrective approach is: Apply least-privilege RoleBindings and distinguish namespaced permissions from cluster-wide authorization. For Highland Education, this observed outcome is more meaningful than a completed ticket or configuration claim.

Incorrect Answers

A:

The robot reads the intended Pods but fails an attempt to modify cluster-wide resources. That observed result would support another specific correction: Create a least-privilege Role and namespaced binding permitting only the required read operations. The other scenario concerns: A team grants a CI robot cluster-admin rights merely to read Pod status from one project namespace. The current Highland Education problem is: A cluster user assumes Kubernetes RBAC grants access to all resources because they have access to one namespace. The evidence required here is: An authorization test allows the namespace resource and rejects access to a forbidden namespace or cluster-scoped object.

B:

Normal workloads remain subject to the restrictive standard and any approved exception is scoped and auditable. That observed result would support another specific correction: Use a narrowly justified and reviewed exception process rather than weakening the baseline policy for an entire namespace. The other scenario concerns: An admission policy blocks privileged containers in production but the team bypasses it by adding broad namespace exemptions. The current Highland Education problem is: A cluster user assumes Kubernetes RBAC grants access to all resources because they have access to one namespace. The evidence required here is: An authorization test allows the namespace resource and rejects access to a forbidden namespace or cluster-scoped object.

C:

The application performs its work but a test process cannot exercise unneeded privileged capabilities. That observed result would support another specific correction: Set a restrictive securityContext with nonroot execution and dropped capabilities where supported. The other scenario concerns: An image supplies a process running as root with the ability to add Linux kernel capabilities unnecessary for its task. The current Highland Education problem is: A cluster user assumes Kubernetes RBAC grants access to all resources because they have access to one namespace. The evidence required here is: An authorization test allows the namespace resource and rejects access to a forbidden namespace or cluster-scoped object.

Question 435

At Eastshore Energy, the energy applications team is managing a field-services modernization with requirements for operational availability and restricted system changes. A platform check finds: A cluster user assumes Kubernetes RBAC grants access to all resources because they have access to one namespace. Which change BEST resolves the specific issue?

  1. Apply least-privilege RoleBindings and distinguish namespaced permissions from cluster-wide authorization.
  2. Use a Secret with appropriately scoped RBAC, avoid placing credentials in ConfigMaps, and configure at-rest encryption where available.
  3. Use provenance validation, image scanning, and approved registry controls before deploying workload artifacts.
  4. Set readOnlyRootFilesystem where supported and mount narrowly scoped writable directories needed by the process.

Explanation

Correct Answer

A:

Apply least-privilege RoleBindings and distinguish namespaced permissions from cluster-wide authorization. This directly addresses the operational issue: A cluster user assumes Kubernetes RBAC grants access to all resources because they have access to one namespace. The Eastshore Energy team should verify its effectiveness rather than assume that an updated manifest or command proves success. The strongest acceptance evidence is: An authorization test allows the namespace resource and rejects access to a forbidden namespace or cluster-scoped object.

Incorrect Answers

B:

Use a Secret with appropriately scoped RBAC, avoid placing credentials in ConfigMaps, and configure at-rest encryption where available. That choice addresses a different foundational issue: An organization stores an API key in a ConfigMap and believes RBAC on the deployment alone prevents its disclosure. The issue at Eastshore Energy is instead: A cluster user assumes Kubernetes RBAC grants access to all resources because they have access to one namespace. It does not establish the required correction; the decisive verification would be: An authorization test allows the namespace resource and rejects access to a forbidden namespace or cluster-scoped object.

C:

Use provenance validation, image scanning, and approved registry controls before deploying workload artifacts. That choice addresses a different foundational issue: A team labels an untrusted internet image as safe solely because it was pulled from a popular public registry. The issue at Eastshore Energy is instead: A cluster user assumes Kubernetes RBAC grants access to all resources because they have access to one namespace. It does not establish the required correction; the decisive verification would be: An authorization test allows the namespace resource and rejects access to a forbidden namespace or cluster-scoped object.

D:

Set readOnlyRootFilesystem where supported and mount narrowly scoped writable directories needed by the process. That choice addresses a different foundational issue: A workload requires read-only source files but mounts its entire container root filesystem writable. The issue at Eastshore Energy is instead: A cluster user assumes Kubernetes RBAC grants access to all resources because they have access to one namespace. It does not establish the required correction; the decisive verification would be: An authorization test allows the namespace resource and rejects access to a forbidden namespace or cluster-scoped object.

Question 436

At Eastshore Energy, the energy applications team is managing a field-services modernization with requirements for operational availability and restricted system changes. An acceptance check is required after fixing: A cluster user assumes Kubernetes RBAC grants access to all resources because they have access to one namespace. Which observed result BEST confirms the intended correction?

  1. The robot reads the intended Pods but fails an attempt to modify cluster-wide resources.
  2. Only the intended application component can read the mounted secret in a controlled multi-container test.
  3. An authorization test allows the namespace resource and rejects access to a forbidden namespace or cluster-scoped object.
  4. Audit records identify the actual calling identity and an expired or revoked token no longer authenticates.

Explanation

Correct Answer

C:

An authorization test allows the namespace resource and rejects access to a forbidden namespace or cluster-scoped object. This demonstrates that the originally documented problem was resolved: A cluster user assumes Kubernetes RBAC grants access to all resources because they have access to one namespace. The corresponding corrective approach is: Apply least-privilege RoleBindings and distinguish namespaced permissions from cluster-wide authorization. For Eastshore Energy, this observed outcome is more meaningful than a completed ticket or configuration claim.

Incorrect Answers

A:

The robot reads the intended Pods but fails an attempt to modify cluster-wide resources. That observed result would support another specific correction: Create a least-privilege Role and namespaced binding permitting only the required read operations. The other scenario concerns: A team grants a CI robot cluster-admin rights merely to read Pod status from one project namespace. The current Eastshore Energy problem is: A cluster user assumes Kubernetes RBAC grants access to all resources because they have access to one namespace. The evidence required here is: An authorization test allows the namespace resource and rejects access to a forbidden namespace or cluster-scoped object.

B:

Only the intended application component can read the mounted secret in a controlled multi-container test. That observed result would support another specific correction: Restrict which containers and paths receive the secret and control filesystem and application access within the Pod. The other scenario concerns: An operator expects a Kubernetes Secret resource alone to prevent disclosure of a mounted credential to every process in its Pod. The current Eastshore Energy problem is: A cluster user assumes Kubernetes RBAC grants access to all resources because they have access to one namespace. The evidence required here is: An authorization test allows the namespace resource and rejects access to a forbidden namespace or cluster-scoped object.

D:

Audit records identify the actual calling identity and an expired or revoked token no longer authenticates. That observed result would support another specific correction: Adopt appropriate distinct identities and short-lived credentials with auditable least-privilege RBAC bindings. The other scenario concerns: A cluster uses the same long-lived static token for developers, automation, and workloads, making activity attribution difficult. The current Eastshore Energy problem is: A cluster user assumes Kubernetes RBAC grants access to all resources because they have access to one namespace. The evidence required here is: An authorization test allows the namespace resource and rejects access to a forbidden namespace or cluster-scoped object.

Question 437

At Maplewood Schools, the district technology team is managing a student portal deployment with requirements for privacy and reliable classroom access. An implementation review identifies the following problem: An image supplies a process running as root with the ability to add Linux kernel capabilities unnecessary for its task. Which change BEST resolves the specific issue?

  1. Set a restrictive securityContext with nonroot execution and dropped capabilities where supported.
  2. Use a narrowly justified and reviewed exception process rather than weakening the baseline policy for an entire namespace.
  3. Plan the application's secret consumption and restart or reload behavior for environment variables versus mounted volumes.
  4. Use provenance validation, image scanning, and approved registry controls before deploying workload artifacts.

Explanation

Correct Answer

A:

Set a restrictive securityContext with nonroot execution and dropped capabilities where supported. This directly addresses the operational issue: An image supplies a process running as root with the ability to add Linux kernel capabilities unnecessary for its task. The Maplewood Schools team should verify its effectiveness rather than assume that an updated manifest or command proves success. The strongest acceptance evidence is: The application performs its work but a test process cannot exercise unneeded privileged capabilities.

Incorrect Answers

B:

Use a narrowly justified and reviewed exception process rather than weakening the baseline policy for an entire namespace. That choice addresses a different foundational issue: An admission policy blocks privileged containers in production but the team bypasses it by adding broad namespace exemptions. The issue at Maplewood Schools is instead: An image supplies a process running as root with the ability to add Linux kernel capabilities unnecessary for its task. It does not establish the required correction; the decisive verification would be: The application performs its work but a test process cannot exercise unneeded privileged capabilities.

C:

Plan the application's secret consumption and restart or reload behavior for environment variables versus mounted volumes. That choice addresses a different foundational issue: A security engineer rotates a Secret but forgets that applications reading it through environment variables may require a restart. The issue at Maplewood Schools is instead: An image supplies a process running as root with the ability to add Linux kernel capabilities unnecessary for its task. It does not establish the required correction; the decisive verification would be: The application performs its work but a test process cannot exercise unneeded privileged capabilities.

D:

Use provenance validation, image scanning, and approved registry controls before deploying workload artifacts. That choice addresses a different foundational issue: A team labels an untrusted internet image as safe solely because it was pulled from a popular public registry. The issue at Maplewood Schools is instead: An image supplies a process running as root with the ability to add Linux kernel capabilities unnecessary for its task. It does not establish the required correction; the decisive verification would be: The application performs its work but a test process cannot exercise unneeded privileged capabilities.

Question 438

At Maplewood Schools, the district technology team is managing a student portal deployment with requirements for privacy and reliable classroom access. The release reviewer now needs objective evidence for this original issue: An image supplies a process running as root with the ability to add Linux kernel capabilities unnecessary for its task. Which observed result BEST confirms the intended correction?

  1. Only the intended application component can read the mounted secret in a controlled multi-container test.
  2. The application performs its work but a test process cannot exercise unneeded privileged capabilities.
  3. The admission or delivery pipeline rejects an unapproved image while a signed and reviewed build is deployable.
  4. A controlled test shows default reachability and then verifies the intended default-deny policy after enforcement is installed.

Explanation

Correct Answer

B:

The application performs its work but a test process cannot exercise unneeded privileged capabilities. This demonstrates that the originally documented problem was resolved: An image supplies a process running as root with the ability to add Linux kernel capabilities unnecessary for its task. The corresponding corrective approach is: Set a restrictive securityContext with nonroot execution and dropped capabilities where supported. For Maplewood Schools, this observed outcome is more meaningful than a completed ticket or configuration claim.

Incorrect Answers

A:

Only the intended application component can read the mounted secret in a controlled multi-container test. That observed result would support another specific correction: Restrict which containers and paths receive the secret and control filesystem and application access within the Pod. The other scenario concerns: An operator expects a Kubernetes Secret resource alone to prevent disclosure of a mounted credential to every process in its Pod. The current Maplewood Schools problem is: An image supplies a process running as root with the ability to add Linux kernel capabilities unnecessary for its task. The evidence required here is: The application performs its work but a test process cannot exercise unneeded privileged capabilities.

C:

The admission or delivery pipeline rejects an unapproved image while a signed and reviewed build is deployable. That observed result would support another specific correction: Use provenance validation, image scanning, and approved registry controls before deploying workload artifacts. The other scenario concerns: A team labels an untrusted internet image as safe solely because it was pulled from a popular public registry. The current Maplewood Schools problem is: An image supplies a process running as root with the ability to add Linux kernel capabilities unnecessary for its task. The evidence required here is: The application performs its work but a test process cannot exercise unneeded privileged capabilities.

D:

A controlled test shows default reachability and then verifies the intended default-deny policy after enforcement is installed. That observed result would support another specific correction: Explain that Pod-to-Pod connectivity is generally permitted unless effective network restrictions are configured. The other scenario concerns: A team assumes every running Pod is isolated from all other Pods by default without NetworkPolicy. The current Maplewood Schools problem is: An image supplies a process running as root with the ability to add Linux kernel capabilities unnecessary for its task. The evidence required here is: The application performs its work but a test process cannot exercise unneeded privileged capabilities.

Question 439

At Brookside Manufacturing, the factory applications team is managing a production dashboard cluster with requirements for maintenance windows and dependable telemetry. The training lab has documented this issue: An image supplies a process running as root with the ability to add Linux kernel capabilities unnecessary for its task. Which change BEST resolves the specific issue?

  1. Set readOnlyRootFilesystem where supported and mount narrowly scoped writable directories needed by the process.
  2. Use a Secret with appropriately scoped RBAC, avoid placing credentials in ConfigMaps, and configure at-rest encryption where available.
  3. Set a restrictive securityContext with nonroot execution and dropped capabilities where supported.
  4. Create a least-privilege Role and namespaced binding permitting only the required read operations.

Explanation

Correct Answer

C:

Set a restrictive securityContext with nonroot execution and dropped capabilities where supported. This directly addresses the operational issue: An image supplies a process running as root with the ability to add Linux kernel capabilities unnecessary for its task. The Brookside Manufacturing team should verify its effectiveness rather than assume that an updated manifest or command proves success. The strongest acceptance evidence is: The application performs its work but a test process cannot exercise unneeded privileged capabilities.

Incorrect Answers

A:

Set readOnlyRootFilesystem where supported and mount narrowly scoped writable directories needed by the process. That choice addresses a different foundational issue: A workload requires read-only source files but mounts its entire container root filesystem writable. The issue at Brookside Manufacturing is instead: An image supplies a process running as root with the ability to add Linux kernel capabilities unnecessary for its task. It does not establish the required correction; the decisive verification would be: The application performs its work but a test process cannot exercise unneeded privileged capabilities.

B:

Use a Secret with appropriately scoped RBAC, avoid placing credentials in ConfigMaps, and configure at-rest encryption where available. That choice addresses a different foundational issue: An organization stores an API key in a ConfigMap and believes RBAC on the deployment alone prevents its disclosure. The issue at Brookside Manufacturing is instead: An image supplies a process running as root with the ability to add Linux kernel capabilities unnecessary for its task. It does not establish the required correction; the decisive verification would be: The application performs its work but a test process cannot exercise unneeded privileged capabilities.

D:

Create a least-privilege Role and namespaced binding permitting only the required read operations. That choice addresses a different foundational issue: A team grants a CI robot cluster-admin rights merely to read Pod status from one project namespace. The issue at Brookside Manufacturing is instead: An image supplies a process running as root with the ability to add Linux kernel capabilities unnecessary for its task. It does not establish the required correction; the decisive verification would be: The application performs its work but a test process cannot exercise unneeded privileged capabilities.

Question 440

At Brookside Manufacturing, the factory applications team is managing a production dashboard cluster with requirements for maintenance windows and dependable telemetry. The team claims a correction and requests independent validation for: An image supplies a process running as root with the ability to add Linux kernel capabilities unnecessary for its task. Which observed result BEST confirms the intended correction?

  1. A controlled test shows default reachability and then verifies the intended default-deny policy after enforcement is installed.
  2. Only the intended application component can read the mounted secret in a controlled multi-container test.
  3. An authorization test allows the namespace resource and rejects access to a forbidden namespace or cluster-scoped object.
  4. The application performs its work but a test process cannot exercise unneeded privileged capabilities.

Explanation

Correct Answer

D:

The application performs its work but a test process cannot exercise unneeded privileged capabilities. This demonstrates that the originally documented problem was resolved: An image supplies a process running as root with the ability to add Linux kernel capabilities unnecessary for its task. The corresponding corrective approach is: Set a restrictive securityContext with nonroot execution and dropped capabilities where supported. For Brookside Manufacturing, this observed outcome is more meaningful than a completed ticket or configuration claim.

Incorrect Answers

A:

A controlled test shows default reachability and then verifies the intended default-deny policy after enforcement is installed. That observed result would support another specific correction: Explain that Pod-to-Pod connectivity is generally permitted unless effective network restrictions are configured. The other scenario concerns: A team assumes every running Pod is isolated from all other Pods by default without NetworkPolicy. The current Brookside Manufacturing problem is: An image supplies a process running as root with the ability to add Linux kernel capabilities unnecessary for its task. The evidence required here is: The application performs its work but a test process cannot exercise unneeded privileged capabilities.

B:

Only the intended application component can read the mounted secret in a controlled multi-container test. That observed result would support another specific correction: Restrict which containers and paths receive the secret and control filesystem and application access within the Pod. The other scenario concerns: An operator expects a Kubernetes Secret resource alone to prevent disclosure of a mounted credential to every process in its Pod. The current Brookside Manufacturing problem is: An image supplies a process running as root with the ability to add Linux kernel capabilities unnecessary for its task. The evidence required here is: The application performs its work but a test process cannot exercise unneeded privileged capabilities.

C:

An authorization test allows the namespace resource and rejects access to a forbidden namespace or cluster-scoped object. That observed result would support another specific correction: Apply least-privilege RoleBindings and distinguish namespaced permissions from cluster-wide authorization. The other scenario concerns: A cluster user assumes Kubernetes RBAC grants access to all resources because they have access to one namespace. The current Brookside Manufacturing problem is: An image supplies a process running as root with the ability to add Linux kernel capabilities unnecessary for its task. The evidence required here is: The application performs its work but a test process cannot exercise unneeded privileged capabilities.