Courseiva
hardMultiple ChoiceObjective-mapped

200-901 Practice Question: A developer is writing a Kubernetes Deployment…

A developer is writing a Kubernetes Deployment YAML and wants to set a CPU limit of 500 millicores. Which of the following is the correct YAML snippet?

⚠ Common exam trap

Cisco often tests the distinction between `limits` and `requests`, and the correct YAML indentation hierarchy, tricking candidates who confuse the two or misplace the `limits` key under `resources`.

Answer choices

Why each option matters

Answer the question above first, then reveal the full breakdown to understand why each option is right or wrong.

Correct answer & explanation

spec: containers: - resources: limits: cpu: 500m

Kubernetes resource limits are specified under the `resources.limits` key, and CPU limits are expressed in millicores using the `m` suffix. The YAML must use correct indentation: `limits:` is a child of `resources:`, and `cpu: 500m` is a valid value (500 millicores = 0.5 CPU cores).

Answer analysis

Option-by-option breakdown

For each option: why learners choose it and why it is or isn't the right answer here.

  • spec: containers: - resources: limit: cpu: "500m"

    Why it's wrong here

    Misspelled 'limit' instead of 'limits'.

  • spec: containers: - resources: requests: cpu: "500m"

    Why it's wrong here

    This sets requests, not limits.

  • spec: containers: - resources: limits: cpu: "500m"

    Why it's wrong here

    Incorrect indentation; limits should be nested under resources, not at same level.

  • spec: containers: - resources: limits: cpu: 500m

    Why this is correct

    Correct syntax: limits under resources, CPU as a string with 'm' suffix without quotes (YAML interprets as string).

About these practice questions

One of 989 original 200-901 practice questions on Courseiva, each with a full explanation and wrong-answer analysis — not exam dumps or protected exam content. Learn why practice questions differ from exam dumps →

How Courseiva writes practice questions · Editorial policy

JA

Written by Johnson Ajibi, MSc IT Security

Senior Network & Security Engineer · founder of Courseiva

This 200-901 practice question is part of Courseiva's free Cisco certification practice question bank. Courseiva provides original exam-style practice questions with explanations, topic-based practice, mock exams, readiness tracking, and study analytics to help learners prepare for the 200-901 exam.