Kubernetes - SchedulingWhich of the following is the correct syntax to specify a node selector in a Pod spec YAML?Anode-selector:\n disktype: ssdBnode_selector:\n disktype: ssdCnodeSelector = {disktype: ssd}DnodeSelector:\n disktype: ssdCheck Answer
Step-by-Step SolutionSolution:Step 1: Recall correct YAML keyThe correct key is 'nodeSelector' with camelCase and colon syntax.Step 2: Check YAML formattingYAML uses colon and indentation, not equals or underscores in this context.Final Answer:nodeSelector:\n disktype: ssd -> Option DQuick Check:Correct nodeSelector syntax uses camelCase and colon [OK]Quick Trick: Use 'nodeSelector:' with proper YAML indentation [OK]Common Mistakes:Using underscores instead of camelCaseUsing equals sign instead of colonIncorrect key spelling
Master "Scheduling" in Kubernetes9 interactive learning modes - each teaches the same concept differentlyLearnWhyDeepVisualTryChallengeProjectRecallTime
More Kubernetes Quizzes ConfigMaps - Updating ConfigMaps and propagation - Quiz 9hard Health Checks and Probes - Startup probe concept - Quiz 2easy Ingress - TLS termination with Ingress - Quiz 12easy Ingress - Ingress controllers (Nginx, Traefik) - Quiz 7medium Ingress - Ingress controllers (Nginx, Traefik) - Quiz 9hard Ingress - TLS termination with Ingress - Quiz 10hard Ingress - TLS termination with Ingress - Quiz 1easy Networking - DNS in Kubernetes (CoreDNS) - Quiz 1easy Persistent Storage - StatefulSet ordering and naming - Quiz 15hard Scheduling - Jobs and CronJobs for batch processing - Quiz 5medium