Linux Foundation KCNA Exam Practice Questions (P. 2)
- Full Access (199 questions)
- Six months of Premium Access
- Access to one million comments
- Seamless ChatGPT Integration
- Ability to download PDF files
- Anki Flashcard files for revision
- No Captcha & No AdSense
- Advanced Exam Configuration
Question #6
Let's assume that an organization needs to process large amounts of data in bursts, on a cloud-based Kubernetes cluster. For instance: each Monday morning, they need to run a batch of 1000 compute jobs of 1 hour each, and these jobs must be completed by Monday night. What's going to be the most cost-effective method?
- ARun a group of nodes with the exact required size to complete the batch on time, and use a combination of taints, tolerations, and nodeSelectors to reserve these nodes to the batch jobs.
- BLeverage the Kubernetes Cluster Autoscaler to automatically start and stop nodes as they're needed.
- CCommit to a specific level of spending to get discounted prices (with e.g. “reserved instances” or similar mechanisms).
- DUse PriorityСlasses so that the weekly batch job gets priority over other workloads running on the cluster, and can be completed on time.
Correct Answer:
B
B

For the given scenario, leveraging the Kubernetes Cluster Autoscaler as the most cost-effective method is quite apt. This tool dynamically adjusts the number of nodes in a cluster based on the needs, scaling up when demand spikes each Monday, and scaling down afterwards, minimizing costs when less compute power is needed. This avoids unnecessary expenditure on idle resources outside of peak times, making it a smart choice for bursty workloads like those described.
send
light_mode
delete
Question #7
What is a Kubernetes service with no cluster IP address called?
- AHeadless Service
- BNodeless Service
- CIPLess Service
- DSpecless Service
Correct Answer:
A
A

Certainly! In the context like Kubernetes, when dealing with services that bypass the allocation of a cluster IP to directly interface with specific pods, the term used is "Headless Service." This means the service is configured with 'clusterIP: None,' which allows it to connect directly with the Pods' DNS rather than through a typical service IP. This is ideal for scenarios requiring direct pod communication without a load-balanced intermediary.
send
light_mode
delete
Question #8
CI/CD stands for:
- AContinuous Information / Continuous Development
- BContinuous Integration / Continuous Development
- CCloud Integration / Cloud Development
- DContinuous Integration / Continuous DeploymentMost Voted
Correct Answer:
D
D

**Professor's Comment:**
The correct answer is D, which stands for Continuous Integration and Continuous Deployment. This is a key concept in DevOps where code modifications are continuously integrated and automatically tested, ensuring that new changes are deployed seamlessly into production. This approach boosts efficiency and minimizes bugs, making the development cycle faster and more reliable.
send
light_mode
delete
Question #9
What default level of protection is applied to the data in Secrets in the Kubernetes API?
- AThe values use AES Symmetric Encryption
- BThe values are stored in plain text
- CThe values are encoded with SHA256 hashes
- DThe values are base64 encodedMost Voted
Correct Answer:
D
D

Definitely, in Kubernetes, when you're working with Secrets, the data isn't encrypted by default. What happens is, it's merely base64 encoded. So, D is spot on! This encoding is not a form of encryption or hashing; it's just a method used to represent binary data in an ASCII string format which can be especially handy with data that might cause issues in environments that expect certain data formats. Keep this in mind, because understanding this will be crucial for managing sensitive data securely in K8s!
send
light_mode
delete
Question #10
What function does kube-proxy provide to a cluster?
- AImplementing the Ingress resource type for application traffic.
- BForwarding data to the correct endpoints for Services.Most Voted
- CManaging data egress from the cluster nodes to the network.
- DManaging access to the Kubernetes API.
Correct Answer:
B
B

Kube-proxy is crucial for its role in managing how network traffic is forwarded to the correct pods based on service definitions. It listens to the Kubernetes API server for new services and endpoints and updates the relevant forwarding rules. This ensures network requests are sent to the right service endpoints, effectively allowing pods to communicate both internally and externally as needed.
send
light_mode
delete
All Pages