You need to introduce a custom configuration resource type named AppRoute to your cluster, validating its fields (like port must be an integer) before it is persisted in etcd. Which native Kubernetes mechanism should you implement?

Direct Answer (Verified)Reviewed by Sunny (Senior Cloud Engineer)

Correct Answer: Create a CustomResourceDefinition (CRD) with an OpenAPI v3 schema validation block

CustomResourceDefinitions (CRDs) support schema validation using OpenAPI v3 schemas. When validation is defined inside the CRD spec, the Kubernetes API server automatically validat...

Real Exam ScenarioKubernetes Administration

You need to introduce a custom configuration resource type named AppRoute to your cluster, validating its fields (like port must be an integer) before it is persisted in etcd. Which native Kubernetes mechanism should you implement?

✓ Correct Answer & ExplanationKubernetes Administration

Correct Answer

Create a CustomResourceDefinition (CRD) with an OpenAPI v3 schema validation block

Why This Answer Is Correct

CustomResourceDefinitions (CRDs) support schema validation using OpenAPI v3 schemas. When validation is defined inside the CRD spec, the Kubernetes API server automatically validates the schema of incoming custom resources and rejects invalid objects.

📚 What This Question Tests

This question evaluates your knowledge of Kubernetes Administration — a core concept tested in cloud certification exams. Understanding Kubernetes Administration is essential for designing scalable, secure, and cost-effective cloud architectures. Mastery of this topic will help you answer scenario-based questions confidently on exam day.