CNCF CKA Exam Dumps, Practice Test Questions

100% Latest & Updated CNCF CKA Practice Test Questions, Exam Dumps & Verified Answers!
30 Days Free Updates, Instant Download!

CNCF CKA Premium Bundle
$64.98
$54.98

CKA Premium Bundle

  • Premium File: 58 Questions & Answers. Last update: Nov 30, 2026
  • Training Course: 138 Video Lectures
  • Latest Questions
  • 100% Accurate Answers
  • Fast Exam Updates

CKA Premium Bundle

CNCF CKA Premium Bundle
  • Premium File: 58 Questions & Answers. Last update: Nov 30, 2026
  • Training Course: 138 Video Lectures
  • Latest Questions
  • 100% Accurate Answers
  • Fast Exam Updates
$64.98
$54.98

CNCF CKA Practice Test 27

Question 260

An ingress-isolated app=gateway Pod has a policy with ingress: [{}] (a rule with no from or ports restrictions), and only Ingress is in policyTypes. Choose THREE statements.

  1. The empty ingress rule allows ingress from all sources and ports.
  2. The rule denies all TCP but permits UDP.
  3. The policy does not impose egress isolation.
  4. An empty rule is the same as zero rules.
  5. A truly default-deny ingress policy would have no ingress allow rules.
  6. The empty ingress rule blocks Pods by their namespace name.

Explanation

Correct Answers

A:

An ingress rule with omitted from and ports matches broadly.

C:

Only Ingress is listed in policyTypes.

E:

An empty list and one empty rule have different meanings.

Incorrect Answers

B:

No protocol or port restriction is present.

D:

One unconstrained rule is allow-all, not deny-all.

F:

The rule has no peer filter.

Question 261

A Pod is selected by a NetworkPolicy with `policyTypes: [Egress]` and `egress: []`. There is no ingress policy in its namespace. What is true about incoming connections to that Pod? Choose ONE answer.

  1. Ingress is denied only when the Service uses ClusterIP.
  2. The new policy does not isolate ingress; other network controls may still apply.
  3. Ingress is allowed only from Pods in the same namespace.
  4. All ingress is denied because any policy selects both directions.

Explanation

Correct Answer

B:

Only the Egress direction is selected by this policy, so it does not itself deny inbound connections.

Incorrect Answers

A:

Service type does not determine whether this policy isolates ingress.

C:

There is no ingress selector rule in this policy establishing that namespace-only limit.

D:

PolicyTypes explicitly limits which traffic directions the policy isolates.

Question 262

Two teams want a policy in payments that denies TCP/8443 but permits all other egress from app=gateway. They propose a NetworkPolicy with one explicit deny rule. Choose ONE answer.

  1. NetworkPolicy includes an explicit deny priority integer.
  2. The last-written policy always denies an earlier allow.
  3. A deny: true field is part of the standard NetworkPolicy rule syntax.
  4. Standard NetworkPolicy has allow rules rather than explicit deny actions.

Explanation

Correct Answer

D:

There is no deny action field in the NetworkPolicy ingress or egress rule schema.

Incorrect Answers

A:

Standard NetworkPolicy has no such priority rule.

B:

Kubernetes network policy is not ordered firewall ACL logic.

C:

The API does not define this field.

Question 263

A NetworkPolicy selecting app=gateway in payments omits policyTypes, defines one egress allow and no ingress allow. Choose ONE answer.

  1. A single egress allow rule grants all ingress traffic.
  2. Ingress isolation is included by default.
  3. Omitting policyTypes always means ingress and egress are unrestricted.
  4. The policy cannot be created without policyTypes.

Explanation

Correct Answer

B:

When policyTypes is omitted, Ingress is always inferred.

Incorrect Answers

A:

Ingress and egress permissions are independent.

C:

API defaulting enables Ingress and optionally Egress.

D:

The field has documented defaulting semantics.

Question 264

A client Pod is egress-isolated. Its egress policy allows TCP/443 only to Pods labeled `app=proxy` in namespace `gate`, selected by a namespace label. It tries to connect to a public IP with no matching policy peer. What happens? Choose ONE answer.

  1. Any TCP/443 connection is automatically allowed once the port matches.
  2. The public-IP connection is not allowed by that policy; its destination does not match the permitted Pod peer.
  3. External traffic is always permitted even under egress isolation.
  4. The Pod automatically gains access after its Service account token rotates.

Explanation

Correct Answer

B:

A destination Pod selector does not implicitly permit arbitrary Internet IPs.

Incorrect Answers

A:

NetworkPolicy rules require destination and port conditions when both are specified.

C:

Egress policies can restrict destinations outside the cluster.

D:

ServiceAccount token rotation does not change egress peer matching.

Question 265

A policy in payments allows ingress only from namespaces with label purpose=shared. The namespace named shared has no such label. Choose ONE answer.

  1. The policy chooses Namespaces by creation timestamp.
  2. A namespace name alone does not satisfy a namespaceSelector matchLabels rule.
  3. Pod labels alone can satisfy a missing namespace label.
  4. Namespace name shared automatically implies purpose=shared.

Explanation

Correct Answer

B:

NamespaceSelector matches labels on Namespace objects.

Incorrect Answers

A:

NamespaceSelector uses labels, not age.

C:

The rule explicitly selects Namespace metadata.

D:

Names are not synthesized into arbitrary label keys.

Question 266

A NetworkPolicy ingress rule permits `ipBlock.cidr: 10.2.0.0/16` with `except: [10.2.40.0/24]`. Traffic originates from 10.2.40.7. Is it covered by that peer? Choose ONE answer.

  1. Yes, because except applies only to DNS.
  2. No, that address is inside the excluded /24.
  3. Yes, any address in the /16 always matches.
  4. No, because a /16 never includes /24 addresses.

Explanation

Correct Answer

B:

The except CIDR removes those addresses from the broader permitted /16 peer.

Incorrect Answers

A:

NetworkPolicy ipBlock exceptions are address filters and not DNS-specific.

C:

The /24 exception narrows the otherwise allowed address range.

D:

The /24 is inside the /16; it is the except that excludes the source.

Question 267

An egress rule uses `ipBlock: cidr: 10.20.0.0/16, except: [10.20.8.0/24]`, permitting TCP/443. A Pod sends to 10.20.8.9. Ignoring source-NAT complications, does the destination match that IPBlock? Choose ONE answer.

  1. Yes; every address inside the outer /16 is always allowed.
  2. It depends only on the container image name.
  3. No; 10.20.8.9 is inside the explicitly excluded subnet.
  4. Yes; port 443 overrides the IPBlock exception.

Explanation

Correct Answer

C:

The except CIDR is removed from the allowed 10.20.0.0/16 range.

Incorrect Answers

A:

The except entry excludes a subset from the outer CIDR.

B:

IPBlock matching tests network addresses, not image metadata.

D:

A port condition does not cancel a destination CIDR exception.

Question 268

A Pod in payments uses hostNetwork: true. The CNI’s treatment of this Pod under NetworkPolicy is not documented. Which statements reflect the portability issue? Choose ONE answer.

  1. All CNIs enforce identical hostNetwork Pod selectors.
  2. hostNetwork Pods always obtain an ordinary separate Pod IP.
  3. A namespaceSelector alone always isolates node-local traffic.
  4. NetworkPolicy behavior for hostNetwork Pods can vary by CNI implementation.

Explanation

Correct Answer

D:

Kubernetes documents implementation-dependent handling.

Incorrect Answers

A:

The Kubernetes API does not guarantee this.

B:

They share the node network namespace.

C:

Host-network matching can be treated as node traffic.

Question 269

A NetworkPolicy rule permits TCP port 8000 through endPort 8010 for app=gateway in payments. A client tries TCP/8005 and UDP/8005. Choose TWO statements.

  1. UDP/8005 automatically inherits the TCP range.
  2. The endPort value restricts source ports, not destination ports.
  3. TCP/8011 is permitted because it is close to 8010.
  4. UDP/8005 does not match the TCP protocol.
  5. TCP/8005 is inside the inclusive allowed port range.

Explanation

Correct Answers

D:

NetworkPolicy ranges still require the specified protocol.

E:

The endPort range covers ports 8000 through 8010.

Incorrect Answers

A:

Protocols are matched separately.

B:

NetworkPolicy ports refer to the destination traffic port.

C:

The boundary is inclusive through 8010 only.

Question 270

An ingress rule selecting app=gateway Pods in payments contains namespaceSelector: {} as the only from peer and TCP/8443. Choose THREE statements.

  1. An empty namespaceSelector matches all namespaces.
  2. The rule allows every UDP port automatically.
  3. namespaceSelector: {} matches no namespaces.
  4. An empty namespaceSelector selects only the policy namespace.
  5. TCP/8443 is permitted from a Pod in another namespace if no other constraints apply.
  6. The rule is not equivalent to a podSelector-only peer.

Explanation

Correct Answers

A:

An empty label selector imposes no namespace-label restrictions.

E:

The namespace source peer is unrestricted and the port matches.

F:

A podSelector-only peer would match Pods just in the policy namespace.

Incorrect Answers

B:

It is TCP and port-specific.

C:

Empty selectors select all objects in the relevant scope.

D:

The peer admits Pods from any namespace.

Certified Kubernetes Administrator (CKA) Practice Tests

UP

SPECIAL OFFER: GET 10% OFF

This is ONE TIME OFFER

ExamSnap Discount Offer
Enter Your Email Address to Receive Your 10% Off Discount Code

A confirmation link will be sent to this email address to verify your login. *We value your privacy. We will not rent or sell your email address.

Download Free Demo of VCE Exam Simulator

Experience Avanset VCE Exam Simulator for yourself.

Simply submit your e-mail address below to get started with our interactive software demo of your free trial.

Free Demo Limits: In the demo version you will be able to access only first 5 questions from exam.