You are building a web application that needs to serve traffic through a load balancer. Which Kubernetes resource should you use to expose the application service externally?
A. StatefulSets
B. Deployments
C. Ingress
D. ConfigMaps
E. Services
正解:C
解説: (Pass4Test メンバーにのみ表示されます)
質問 2:
What is the purpose of the 'nodeSelector" field in a Pod's YAML definition?
A. To specify the exact number of replicas for the pod.
B. To define the pod's image pull policy (Always, IfNotPresent, Never).
C. To specify the pod's termination grace period.
D. To restrict the pod's scheduling to nodes with specific labels.
E. To define the pod's restart policy (Always, OnFailure, Never).
正解:D
解説: (Pass4Test メンバーにのみ表示されます)
質問 3:
Your application requires a specific storage class for its persistent dat
a. How do you configure this storage class within your deployment YAML?
A. Specify the storage class name within the 'spec.template.spec.containers[01.volumeMounts[0].storageClassName' field of the deployment.
B. Specify the storage class name within the field of the deployment.
C. Specify the storage class name directly within the 'spec.template.spec.containers[0].volumeMounts[0].name' field of the deployment.
D. Create a separate PersistentVolumeClaim (PVC) with the desired storage class and reference the PVC in the deployment's name' field.
E. None of the above
正解:D
解説: (Pass4Test メンバーにのみ表示されます)
質問 4:
You are running a stateless application on Kubernetes and want to avoid persistent storage. Which of the following options is suitable?
A. Use a PersistentVolumeClaim with a storage class that provides persistent storage.
B. Use an emptyDir volume to create a temporary directory within the pod.
C. Create a Local Persistent Volume for each pod.
D. Utilize a ConfigMap to store application configuration data.
E. Mount a HostPath volume to access the host machine's filesystem.
正解:B
解説: (Pass4Test メンバーにのみ表示されます)
質問 5:
Your application requires a highly available database service. You decide to deploy three instances of the database within Kubernetes. Which Kubernetes feature can you use to ensure that all three instances are properly configured and managed as a single unit?
A. StatefulSets
B. DaemonSets
C. Deployments
D. Pods
E. Services
正解:A
解説: (Pass4Test メンバーにのみ表示されます)
質問 6:
You are running a containerized application that requires access to a specific host-mounted directory. Which of the following is the most appropriate Kubernetes mechanism to achieve this?
A. Pod Security Policy
B. HostPort
C. Service Account
D. ConfigMap
E. VolumeMounts
正解:E
解説: (Pass4Test メンバーにのみ表示されます)
質問 7:
You are developing a microservices application where each service requires a specific configuration. Which Kubernetes feature best addresses this need for service-specific configuration?
A. Secrets
B. Namespaces
C. Deployments
D. ConfigMaps
E. Persistent Volumes
正解:D
解説: (Pass4Test メンバーにのみ表示されます)
質問 8:
You have a Kubernetes cluster with a HorizontalPodAutoscaler (HPA) configured for your application. The HPA is set to scale the application based on CPU utilization. The application suddenly experiences a surge in traffic, causing high CPU usage. How does the HPA respond to this scenario?
A. The HPA immediately scales up the application by creating new Pods.
B. The HPA scales up the application by increasing the resource requests for existing Pods.
C. The HPA scales up the application after a configurable delay to avoid over-provisioning.
D. The HPA scales up the application only if CPU utilization exceeds a predefined threshold.
E. The HPA only scales down the application when CPU utilization drops below a certain threshold.
正解:D
解説: (Pass4Test メンバーにのみ表示されます)
質問 9:
You are deploying a new microservice on Kubernetes. The microservice needs access to a shared configuration file stored in a ConfigMap. How would you access the configuration file from within your microservice container?
A. Use a Kubernetes Secret to store the configuration file securely.
B. Define an environment variable within the pod spec and map it to the ConfigMap data.
C. Use the *kubectl get' command to retrieve the configuration file from the ConfigMap.
D. Access the ConfigMap data directly using the Kubernetes API.
E. Mount the ConfigMap as a volume into the container.
正解:B,E
解説: (Pass4Test メンバーにのみ表示されます)
Kinukawa -
Pass4Testの問題集はKCNA試験過去問を徹底的に分析。「優秀答案」のすべてが、予備試験A評価の答案合格者の「思考過程」がわかると、答案の組み立て方もわかる。KCNAに合格しました。また次回もここにお世話になりたいと思います。