Courseiva

Red Hat Certified OpenShift Administrator (EX280, OpenShift Container Platform 4.14+) (EX280) (EX280) — Questions 451509

509 questions total · 7pages · All types, answers revealed

Page 6

Page 7 of 7

451
Multi-Selecthard

Which THREE troubleshooting steps should an administrator take when a newly created Route fails to resolve or connect? (Choose THREE)

Select 3 answers
A.Reinstall the entire cluster storage operator.
B.Check that the Route hostname resolves correctly via DNS to the cluster router IP.
C.Verify that the referenced Service has active endpoints.
D.Inspect the Ingress controller operator logs for routing errors.
E.Modify the cluster kube-apiserver certificates.
AnswersB, C, D

External DNS must point the route hostname to the ingress router load balancer/IP.

Why this answer

Checking service endpoints, verifying route hostname DNS resolution externally, and checking Ingress controller/router logs are crucial troubleshooting steps.

452
Multi-Selecthard

Which THREE actions occur when a PersistentVolumeClaim with reclaimPolicy: Delete is deleted by a user?

Select 3 answers
A.The physical storage asset on the storage backend is deleted.
B.The associated PersistentVolume object is removed from the cluster.
C.The storage backend archives the data into an immutable snapshot.
D.The PV status changes to Released and remains indefinitely.
E.The PVC object is deleted from the namespace.
AnswersA, B, E

Delete policy triggers backend cleanup.

Why this answer

When reclaimPolicy is Delete, the PVC is removed, the PV object is deleted from Kubernetes API, and the physical storage asset is deleted on the backend storage.

453
Multi-Selecteasy

Which TWO security standards are natively tracked in OpenShift?

Select 2 answers
A.isolated
B.custom
C.restricted
D.privileged
E.secure
AnswersC, D

This is one of the standard profiles.

Why this answer

OpenShift aligns with Pod Security Standards including 'privileged' and 'restricted'.

454
MCQeasy

Which SCC is assigned by default to authenticated users who are not service accounts?

A.restricted
B.anyuid
C.nonroot
D.privileged
AnswerA

The restricted SCC is the default for most workloads.

Why this answer

The 'restricted' SCC is the default SCC applied to all users and service accounts unless otherwise specified.

455
MCQmedium

A developer needs to restore a previously captured VolumeSnapshot into a new PersistentVolumeClaim to revert application state. What key field must be specified in the new PVC definition to initiate the restore operation from the snapshot?

A.spec.dataSource referencing the VolumeSnapshot
B.metadata.annotations['snapshot.storage.kubernetes.io/restore']
C.spec.resources.requests.storage matching the exact snapshot block ID
D.spec.volumeName matching the UUID of the snapshot storage backend
AnswerA

Correct. Setting the dataSource to point to an existing VolumeSnapshot instructs the dynamic provisioner to provision the new PVC using the snapshot data.

Why this answer

To restore from a VolumeSnapshot, the dataSource or dataSourceRef field within the PVC spec must reference the target VolumeSnapshot object.

456
MCQeasy

Which tool would you use to package an application including its dependencies and configuration for easy distribution in OpenShift?

A.Helm
B.oc build
C.Kustomize
D.S2I
AnswerA

Helm provides a way to package entire applications as charts.

Why this answer

Helm is the standard package manager for Kubernetes and OpenShift applications.

457
MCQmedium

A cluster administrator has deleted a PersistentVolumeClaim, but the underlying PersistentVolume still exists in the cluster with a Released status and its data remains intact on the storage backend. What is the most likely cause of this behavior?

A.The StorageClass associated with the PV has allowVolumeExpansion set to false.
B.The volume access mode was configured as ReadWriteMany instead of ReadWriteOnce.
C.The persistentVolumeReclaimPolicy of the PersistentVolume was set to Retain.
D.The PVC was protected by a finalizer that prevented immediate deletion.
AnswerC

Correct. A Retain reclaim policy prevents automatic deletion of the storage asset, leaving the PV in a Released state.

Why this answer

The persistentVolumeReclaimPolicy of the PersistentVolume was set to Retain. When a PVC is deleted, Retain policy transitions the PV to Released rather than deleting or recycling the underlying storage asset.

458
MCQhard

An administrator wants to apply kernel arguments to all worker nodes in an OpenShift 4.14 cluster using the Machine Config Operator. After creating a new MachineConfig object, the administrator notices that the worker nodes are not updating and the MachineConfigPool status shows 'Updating=False'. What is the most likely cause?

A.The administrator forgot to run 'oc adm upgrade --force' to trigger node reboots.
B.The MachineConfig object lacks the correct labels required to associate it with the target MachineConfigPool.
C.The Cluster Version Operator must be manually restarted to detect new MachineConfig definitions.
D.The cluster storage provider must be re-initialized to support kernel argument persistence.
AnswerB

MachineConfigs rely on labels to link themselves to specific MachineConfigPools; without them, the pool ignores the config.

Why this answer

The MachineConfig object must include valid labels matching the MachineConfigPool node selector (e.g., pools.operator.machineconfiguration.openshift.io/worker: '') so the Machine Config Operator knows which pool to target.

459
MCQmedium

A user creates a PVC, but the storage backend fails to provision the volume. Where can the administrator look to find detailed error messages emitted by the external provisioner controller?

A.Run 'oc adm diagnostics storage'.
B.Inspect the container image registry logs.
C.Review the logs of the CSI external provisioner controller pod in its management namespace.
D.Check /var/log/messages on the control plane nodes.
AnswerC

External provisioner controller logs show direct API communication and storage backend failure reasons.

Why this answer

Checking the logs of the external provisioner pod (usually running in openshift-storage or the respective CSI driver operator namespace) provides detailed API interaction and provisioning failure errors.

460
Multi-Selectmedium

An administrator is reviewing the default Security Context Constraints in OpenShift 4.14+. Which THREE of the following SCCs are built-in and provided out-of-the-box by OpenShift? (Choose THREE)

Select 3 answers
A.root-container-v1
B.custom-app-scc
C.nonroot
D.restricted-v2
E.privileged
AnswersC, D, E

The nonroot SCC ensures pods run as a non-root UID without restricting capabilities as heavily as restricted.

Why this answer

OpenShift provides several built-in SCCs including restricted-v2, privileged, and nonroot.

461
Multi-Selecthard

An OpenShift cluster experiences intermittent API server timeouts. Which THREE log sources or diagnostic commands should an administrator analyze to identify API server performance bottlenecks? (Choose THREE)

Select 3 answers
A.oc get routes
B.Audit logs located in /var/log/kube-apiserver/ on control plane nodes.
C.oc logs -n openshift-kube-apiserver pod/kube-apiserver-<node-name>
D.etcdctl endpoint health
E.oc get machineconfigpool
AnswersB, C, D

Records all API requests, client identities, and response codes.

Why this answer

Analyzing kube-apiserver pod logs, audit logs, and checking etcd health helps diagnose API server performance issues.

462
MCQeasy

Which OpenShift CLI command is used to display all PersistentVolumeClaims in the current project along with their bound PersistentVolumes and storage classes?

A.oc get pvc
B.oc get pv
C.oc get sc
D.oc describe volume
AnswerA

oc get pvc is the standard command for listing volume claims.

Why this answer

The 'oc get pvc' command lists all PVCs in the current namespace along with status, volume, and storage class details.

463
Multi-Selecthard

A cluster operator is reviewing the volume snapshot implementation in an OpenShift 4.14 environment. Which THREE components or resources are required to successfully perform and manage volume snapshots? (Choose THREE)

Select 3 answers
A.A CSI driver that implements snapshot/restore GRPC services
B.VolumeSnapshotClass
C.A default ClusterRoleBinding for system:authenticated users
D.VolumeSnapshot object
E.NetworkPolicy resources restricting snapshot traffic
AnswersA, B, D

Correct. The storage provider's CSI driver must natively support snapshot functionality to handle the underlying storage calls.

Why this answer

Volume snapshotting in OpenShift requires the VolumeSnapshotClass to define provisioning settings, the VolumeSnapshot CRD/object to request the snapshot, and the underlying CSI driver/controller supporting snapshot capabilities. StorageClasses and NetworkPolicies are separate concepts.

464
Multi-Selecthard

An administrator is configuring Operator subscriptions in OpenShift 4.14 using OLM. Which THREE parameters can be configured within a Subscription custom resource? (Choose THREE)

Select 3 answers
A.kubeletConfigSelector
B.name
C.machineConfigPoolSelector
D.installPlanApproval
E.channel
AnswersB, D, E

The package name of the operator being subscribed to is required.

Why this answer

Subscriptions support setting the channel, package name, catalogSource, and installPlanApproval.

465
MCQmedium

A stateful application needs its PersistentVolume to be bound only after the pod requesting it is assigned to a specific worker node, to avoid topology mismatch issues. Which StorageClass parameter achieves this?

A.allowVolumeExpansion: true
B.volumeBindingMode: Immediate
C.bindingMode: Late
D.volumeBindingMode: WaitForFirstConsumer
AnswerD

This mode ensures topology-aware provisioning by waiting for pod scheduling.

Why this answer

Setting volumeBindingMode to WaitForFirstConsumer delays the binding and provisioning of a PersistentVolume until a pod using the PersistentVolumeClaim is created and scheduled.

466
MCQhard

An administrator configured an LDAP identity provider in OpenShift, but users report authentication failures. Upon checking the cluster logs, you find errors indicating that the bind DN password secret is missing or incorrect. Where must this bind password be stored?

A.In the 'openshift-config' namespace as a Secret referenced by the OAuth configuration
B.On each worker node at '/etc/origin/master/ldap.pass'
C.As an environment variable on the oauth-openshift deployment
D.In the 'openshift-authentication' namespace as a ConfigMap
AnswerA

OAuth configuration references a Secret containing the bindPassword located in the 'openshift-config' namespace.

Why this answer

LDAP identity provider bind passwords must be stored as a Secret in the 'openshift-config' namespace.

467
MCQeasy

An administrator needs to create a Route that handles multiple subdomains or redirects insecure HTTP traffic to HTTPS automatically. Where is the insecure traffic redirect configured?

A.route.openshift.io/handling: insecure-redirect
B.tls.allowInsecure: true
C.insecureEdgeTerminationPolicy: Redirect
D.spec.redirectHTTP: enabled
AnswerC

Setting insecureEdgeTerminationPolicy to Redirect instructs the router to send HTTP requests to HTTPS.

Why this answer

Insecure traffic redirection is configured via the insecureEdgeTerminationPolicy field in the Route spec.

468
MCQmedium

An administrator needs to set a default StorageClass for the entire OpenShift cluster so that PVCs without a storageClassName specified automatically use it. How is this configured?

A.By modifying the kube-controller-manager operator configuration.
B.By adding the annotation storageclass.kubernetes.io/is-default-class: "true" to the StorageClass object.
C.By naming the StorageClass 'default-sc' exactly.
D.By setting defaultStorageClass: true in the cluster-config ConfigMap.
AnswerB

This specific annotation tells the cluster dynamic provisioner which StorageClass is the default.

Why this answer

Annotating a StorageClass with 'storageclass.kubernetes.io/is-default-class: "true"' makes it the default storage class.

469
MCQhard

An administrator is troubleshooting a certificate signing request (CSR) that is stuck in the Pending state for a newly added worker node. Which command should they use to approve the pending CSR?

A.oc cluster-version approve-csr <csr-name>
B.oc adm certificate approve <csr-name>
C.oc patch csr <csr-name> --type=json -p='[{"op": "replace", "path": "/status/conditions", "value": "Approved"}]'
D.oc approve csr <csr-name>
AnswerB

This command approves pending certificate signing requests, allowing nodes to join the cluster.

Why this answer

oc adm certificate approve <csr-name> is the standard command to approve kubelet client or server TLS bootstrap CSRs.

470
MCQmedium

An administrator needs to configure a custom default certificate for all routes created in the cluster without specifying a certificate on every individual Route object. Where should this wildcard certificate be configured?

A.In a ConfigMap named 'router-certs' in the default namespace
B.In the IngressController resource named 'default' in openshift-ingress-operator
C.In the apiserver.config.openshift.io cluster object
D.In the DNS cluster operator configuration
AnswerB

The defaultCertificate reference in the IngressController spec defines the wildcard certificate used by the router.

Why this answer

The default certificate for routes is configured in the IngressController custom resource under the 'defaultCertificate' spec.

471
Multi-Selectmedium

Which TWO actions are required when configuring an external OpenID Connect (OIDC) identity provider in OpenShift Container Platform?

Select 2 answers
A.Reference a Secret containing the clientSecret used to authenticate against the OIDC provider.
B.Create a dedicated OAuthClient resource for every single cluster user.
C.Deploy an internal LDAP directory synchronization cronjob inside the openshift-authentication namespace.
D.Provide the issuer URL pointing to the OIDC provider's discovery endpoint.
E.Generate a self-signed CA certificate for the API server using openshift-install.
AnswersA, D

OIDC identity providers require a client secret for confidential client flows, usually referenced via a Kubernetes Secret.

Why this answer

Configuring an OIDC identity provider requires providing client credentials (clientId and clientSecret, often stored in a Secret), defining the issuer URL, and specifying claim mappings.

472
Multi-Selecteasy

Which TWO of the following methods can an administrator use to inspect existing RoleBindings within a project named 'app-namespace'? (Choose TWO)

Select 2 answers
A.oc get clusterrolebindings -n app-namespace
B.oc describe rolebindings -n app-namespace
C.oc get rolebindings -n app-namespace
D.oc adm policy list-bindings -n app-namespace
E.oc show rolebindings -n app-namespace
AnswersB, C

This command details all RoleBindings and their bound subjects and roles in the namespace.

Why this answer

RoleBindings can be inspected using 'oc get rolebindings -n app-namespace' or 'oc describe rolebindings -n app-namespace'.

473
MCQhard

The OpenShift SDN (or OVN-Kubernetes) network plugin reports a failure. The administrator needs to inspect the iptables rules on a worker node to verify packet mangling and NAT configurations. How can they view the host's iptables rules?

A.oc logs daemonset/iptables-analyzer
B.oc adm diagnostics iptables
C.oc debug node/<node-name> -- chroot /host iptables-save
D.oc exec deployment/router-default -- iptables -L
AnswerC

Running iptables-save inside a host chroot debug session displays all active packet filtering rules.

Why this answer

Using oc debug node/<node-name> with chroot /host allows running iptables-save to inspect host network filtering rules.

474
MCQhard

A developer deploys a custom application pod that requires the hostIPC capability, but the pod creation is rejected by the apiserver. Upon inspecting the cluster SCCs, the administrator determines that the application uses a ServiceAccount named app-sa in the production namespace. How should the administrator grant the restricted SCC privileges safely without compromising cluster security?

A.Add a subject entry referencing system:serviceaccount:production:app-sa to the users list inside the restricted SCC definition
B.Create a RoleBinding in the production namespace referencing the system:openshift:scc:hostaccess cluster role and the app-sa ServiceAccount
C.Annotate the app-sa ServiceAccount with openshift.io/scc.constraint: hostaccess
D.Create a ClusterRoleBinding that binds the system:openshift:scc:restricted cluster role to system:serviceaccount:production:app-sa
AnswerB

RoleBindings targeting the system:openshift:scc:hostaccess cluster role grant the necessary elevated SCC permissions to the specified ServiceAccount within that namespace.

Why this answer

To grant specific SCC privileges, the administrator must bind the SCC's corresponding cluster role to the target service account.

475
Multi-Selecthard

Which THREE items are required to successfully deploy a basic application using S2I?

Select 3 answers
A.BuildConfig
B.External Load Balancer
C.A pre-existing Database
D.Builder Image
E.Source Code
AnswersA, D, E

Defines the build process.

Why this answer

S2I requires source code, a Builder Image, and a BuildConfig to glue them together.

476
MCQhard

An administrator wants to add a custom CA certificate trust bundle to all worker nodes in an OpenShift 4.14 cluster so that internal container registries can be accessed securely. Which object should the administrator configure?

A.Create a ConfigMap in openshift-config containing the CA certificate and reference it in the cluster image configuration (imageregistry.config.openshift.io).
B.Modify the kube-dns ConfigMap to trust external TLS certificates.
C.Update the OAuth custom resource with the CA bundle path.
D.Restart the cluster proxy service with the '--ca-file' parameter.
AnswerA

OpenShift uses the imageregistry and cluster-wide trusted CA mechanisms (via ConfigMaps in openshift-config) to distribute CAs to nodes.

Why this answer

In OpenShift 4, administrators add custom CA bundles to the cluster-wide proxy or via a ConfigMap targeted by the image config, or by creating a MachineConfig injecting the CA certificate into /etc/pki/ca-trust/source/anchors/.

477
MCQmedium

A cluster administrator notices that a PVC stuck in the Pending state references a StorageClass with volumeBindingMode set to WaitForFirstConsumer. What action will cause the PVC to bind?

A.Delete the StorageClass and recreate it with Immediate binding mode.
B.Restart the kube-apiserver service on the control plane nodes.
C.Create and schedule a Pod that mounts the PVC.
D.Manually create a PV matching the exact size and labels of the PVC.
AnswerC

Scheduling a Pod triggers the scheduler to find a suitable topology and causes the PV to be provisioned and bound.

Why this answer

When volumeBindingMode is WaitForFirstConsumer, the PV is not provisioned or bound until a Pod referencing that PVC is scheduled onto a node.

478
MCQmedium

An administrator notices that a node is marked as 'SchedulingDisabled' (Cordoned). Which command should be executed to allow pods to be scheduled on this node again?

A.oc adm uncordon <node-name>
B.oc patch node <node-name> --type=json -p='[{"op": "replace", "path": "/spec/unschedulable", "value": false}]'
C.oc adm drain <node-name> --undo
D.oc scale node <node-name> --replicas=1
AnswerA

oc adm uncordon re-enables scheduling on the specified node.

Why this answer

oc adm uncordon marks a previously cordoned node as schedulable.

479
MCQeasy

Which command removes an SCC from a service account?

A.oc remove-scc
B.oc delete scc-binding
C.oc patch scc
D.oc adm policy remove-scc-from-user
AnswerD

This is the correct command for removing SCC assignments.

Why this answer

The 'oc adm policy remove-scc-from-user' command reverses the policy assignment.

480
Multi-Selecthard

Which TWO of the following characteristics apply to OpenShift SecurityContextConstraints (SCCs)? (Choose TWO)

Select 2 answers
A.SCCs replace Kubernetes NetworkPolicies entirely.
B.SCCs evaluate and can mutate pod specifications during admission control.
C.SCCs can be created as namespaced resources using standard RoleBindings.
D.SCCs are cluster-scoped resources.
E.SCCs apply only to stateful workloads and daemonsets.
AnswersB, D

SCC admission controllers can mutate pod security contexts to ensure compliance with assigned SCC rules.

Why this answer

SCCs are cluster-scoped resources that dictate what security context fields a pod can specify, and they are evaluated based on user/group/serviceaccount associations or priority when pods are created.

481
MCQmedium

An application pod is running, but HTTP requests to the service are returning '502 Bad Gateway'. The administrator wants to check if the endpoints controller has populated the Service with active pod IP addresses. Which command verifies this?

A.oc get svc my-service
B.oc get endpoints my-service
C.oc describe ingress
D.oc get routes my-route
AnswerB

oc get endpoints displays the target pod IPs currently backing the service.

Why this answer

oc get endpoints lists the IP addresses and ports corresponding to the Service selector, confirming if pods are registered.

482
Multi-Selecthard

An OpenShift cluster operator is stuck in a Progressing state during an update. Which THREE diagnostic steps help determine why the operator reconciliation loop is blocked? (Choose THREE)

Select 3 answers
A.Reboot all control plane nodes simultaneously.
B.Check cluster-wide events related to the operator namespace.
C.Check the logs of the operator deployment in its respective openshift-* namespace.
D.Inspect the status conditions in the operator's Custom Resource (e.g., oc get <cr> -o yaml).
E.Delete all persistent volumes in the cluster.
AnswersB, C, D

Events show configuration warnings and failure messages.

Why this answer

Inspecting operator custom resource status, operator pod logs, and cluster events helps identify reconciliation blocks.

483
Multi-Selectmedium

Which THREE statements are true regarding Ingress controllers in OpenShift? (Choose THREE)

Select 3 answers
A.Administrators can create additional custom IngressController instances.
B.They replace the internal Kubernetes kube-proxy component entirely.
C.They are implemented using HAProxy router pods by default.
D.They watch both Route and Ingress resources.
E.They require manual iptables rule updates on every worker node for every new route.
AnswersA, C, D

Multiple IngressControllers can be created to shard or isolate traffic.

Why this answer

Ingress controllers in OpenShift manage external access via HAProxy pods, support multiple instances, and automatically translate Ingress and Route resources.

484
Multi-Selecteasy

Which TWO files or directories are commonly configured or injected via MachineConfig objects for node customization? (Choose TWO)

Select 2 answers
A.Custom files placed in arbitrary file paths on the node filesystem.
B.Persistent Volume Claims (PVCs) for user applications.
C.Direct modifications to the Kubernetes API server binary code.
D.Authorized SSH keys for the core user.
E.Dynamic container image layer storage caches.
AnswersA, D

MachineConfigs support writing arbitrary files to node paths via ignition.

Why this answer

MachineConfigs can inject custom files into target paths and configure system files like SSH authorized keys.

485
MCQhard

An administrator is troubleshooting a failing MachineConfig update in an OpenShift cluster. The MachineConfigPool 'worker' is degraded and reports that a node is failing to apply the rendered-worker configuration. Which log stream is critical for determining why the Machine Config Daemon failed to update system files on the target node?

A.oc describe machineconfigpool worker
B.oc logs -n openshift-machine-config-operator daemonset/machine-config-daemon
C.oc logs -n openshift-cluster-version-operator deployment/cluster-version-operator
D.journalctl -u kubelet -e
AnswerB

The machine-config-daemon DaemonSet pods run on every node and execute the actual file updates and systemd restarts.

Why this answer

The Machine Config Daemon runs as a DaemonSet across all nodes in the openshift-machine-config-operator namespace. Accessing its logs on the affected node via oc logs or oc debug is necessary.

486
MCQhard

An administrator creates a NetworkPolicy that restricts egress traffic from a namespace. However, DNS resolution for external services immediately stops working. What is the cause of this behavior?

A.NetworkPolicies automatically disable the OpenShift SDN controller.
B.The NetworkPolicy blocks outbound traffic to port 53 on the cluster DNS service.
C.CoreDNS pods do not have valid security context constraints.
D.External DNS servers reject requests originating from OpenShift node IPs.
AnswerB

Restricting egress blocks DNS queries sent to CoreDNS unless specifically allowed.

Why this answer

Pods rely on CoreDNS services for name resolution. If egress rules are applied without explicitly allowing UDP/TCP traffic to port 53 on the cluster DNS service or cluster CIDR, DNS queries are blocked.

487
MCQhard

An administrator needs to configure resource requests and limits such that any pod created without explicit CPU requests in the 'web-tier' namespace automatically gets assigned a default CPU request of 200m and a default CPU limit of 500m. Which object achieves this?

A.ResourceQuota
B.PodPreset
C.LimitRange with default and defaultRequest parameters
D.ClusterResourceQuota
AnswerC

LimitRanges support 'default' (limits) and 'defaultRequest' (requests) fields to automatically populate omitted container specifications.

Why this answer

A LimitRange object defines default resource requests and limits applied to containers that do not specify them.

488
MCQeasy

Which OpenShift 4.14 command allows an administrator to gather cluster-wide diagnostic logs and configuration data for support cases?

A.oc adm must-gather
B.oc adm collect-logs
C.oc support dump
D.oc cluster-debug bundle
AnswerA

oc adm must-gather is the standard diagnostic collection tool for OpenShift support.

Why this answer

The 'oc adm must-gather' tool collects debugging information, logs, and object definitions from the cluster into a local directory.

489
MCQeasy

A cluster administrator needs to grant a Deployment in the production namespace permission to pull images from a private container registry. The image pull secret is named my-registry-secret. Which step must be performed so that pods created by this Deployment can successfully pull the image?

A.Create a RoleBinding mapping the secret to the cluster-readers cluster role.
B.Annotate the Deployment resource with the full base64-encoded dockerconfigjson payload.
C.Run oc set data secrets/my-registry-secret --namespace=production.
D.Patch the default ServiceAccount in the production namespace to include my-registry-secret in its imagePullSecrets array.
AnswerD

Adding the secret to the default ServiceAccount ensures pods referencing it automatically get the pull secret.

Why this answer

Service accounts in OpenShift automatically reference image pull secrets in their imagePullSecrets array if they are intended to be used by pods, or you patch the default service account to include the secret so pods using that service account inherit it.

490
Multi-Selectmedium

An administrator notices that a node has been automatically cordoned and drained by the cluster. Which THREE places should the administrator inspect to find the reason for the node eviction or failure? (Choose THREE)

Select 3 answers
A.oc get storageclass
B.oc describe node <node-name>
C.Journalctl logs for the kubelet service on the affected node.
D.oc get ingresscontroller
E.oc get events --field-selector reason=Evicted
AnswersB, C, E

Shows node conditions like DiskPressure, MemoryPressure, or NetworkUnavailable.

Why this answer

Checking node descriptions for conditions, cluster events, and kubelet logs on the node reveals node failure reasons.

491
MCQhard

A cluster administrator notices that a NetworkPolicy applied to the database namespace is dropping traffic from the frontend namespace. The policy uses namespaceSelector. Which label must be present on the frontend namespace for traffic to be successfully allowed?

A.openshift.io/cluster-monitoring=true
B.security.openshift.io/scc=restricted
C.A custom label defined in the namespaceSelector of the NetworkPolicy spec
D.kubernetes.io/metadata.name matching the namespace name
AnswerC

The namespace must carry the exact key-value pair specified in the namespaceSelector of the ingress rule.

Why this answer

When using namespaceSelector in a NetworkPolicy, the target namespace must be labeled appropriately so the label matches the selector criteria specified in the ingress rule.

492
Multi-Selecteasy

Which TWO methods can administrators use to access the OpenShift 4.14 web console or CLI for cluster management? (Choose TWO)

Select 2 answers
A.Using 'systemctl gui-console' on control plane nodes.
B.Using SSH to log directly into the API server container runtime socket.
C.Using a web browser to access the OpenShift Web Console URL.
D.Using the 'kubectl-adm console' plugin.
E.Using the 'oc' command-line interface tool after logging in with 'oc login'.
AnswersC, E

The web console provides a graphical interface for cluster management.

Why this answer

Administrators use the 'oc' CLI tool and the OpenShift web console URL.

493
MCQmedium

An OpenShift administrator needs to expose an internal web application securely using a Route that terminates TLS at the router. Which Route type and configuration requires the administrator to provide the certificate, private key, and CA certificate?

A.Edge TLS termination
B.Re-encrypt TLS termination
C.Unsecured Route with an external proxy
D.Insecure plain HTTP route
E.Passthrough TLS termination
AnswerA

Edge termination terminates TLS at the router, requiring the administrator to configure the TLS block with certificate, key, and optional CA certificate.

Why this answer

Edge termination terminates TLS at the Ingress controller/router and requires the user to supply the TLS certificate and key in the Route specification.

494
Multi-Selecteasy

Which TWO of the following are valid Service types supported natively in OpenShift? (Choose TWO)

Select 2 answers
A.VirtualIP
B.ClusterIP
C.IngressObject
D.NodePort
E.Route
AnswersB, D

ClusterIP is the default internal service type.

Why this answer

ClusterIP, NodePort, and LoadBalancer are standard Kubernetes/OpenShift service types. (ExternalName is also valid, Route is not a service type).

495
MCQmedium

A developer reports that pods in the namespace 'project-a' cannot resolve services located in the namespace 'project-b' using standard internal DNS names. What is the correct way to query 'project-b' service 'backend' from 'project-a'?

A.backend.project-b.svc.cluster.local
B.backend.project-b.pod.cluster.local
C.backend.project-b.svc
D.backend.project-b.internal
AnswerA

Services are resolved across namespaces using the svc.cluster.local domain extension.

Why this answer

Kubernetes cluster DNS allows cross-namespace resolution using the FQDN format <service-name>.<namespace>.svc.cluster.local.

496
MCQeasy

You need to provide temporary scratch space for a container that shares the pod's lifetime and is cleared when the pod is deleted. Which volume type should you configure in the Pod specification?

A.persistentVolumeClaim
B.hostPath
C.nfs
D.emptyDir
AnswerD

emptyDir provides ephemeral storage tied strictly to the lifecycle of the pod.

Why this answer

An emptyDir volume is created when a pod is assigned to a node, and exists as long as that pod is running on that node. It starts empty.

497
MCQmedium

You have modified a set of Kubernetes manifests using Kustomize and want to preview the exact output that will be applied to your OpenShift cluster without actually executing the changes. Which command should you run?

A.oc diff -f kustomization.yaml
B.oc kustomize .
C.oc convert -k .
D.oc apply -k . --dry-run=client
AnswerB

'oc kustomize' processes the kustomization.yaml file and prints the generated manifests to standard output.

Why this answer

The 'oc kustomize' command builds the Kustomize overlay and outputs the resulting raw manifests to stdout.

498
MCQmedium

An OpenShift administrator needs to investigate a pod that is failing with an 'OOMKilled' exit code. Which command reveals the memory limit configuration and historical usage right before the crash?

A.oc describe pod <pod-name>
B.oc top pod <pod-name> --containers
C.oc get pod <pod-name> -o yaml
D.oc adm diagnostics
AnswerA

oc describe pod shows the termination reason, exit code 137, and resource limits set on the container.

Why this answer

oc describe pod provides the last state, exit code 137 (OOMKilled), and configured limits, while telemetry metrics can show usage.

499
MCQhard

You want to automate the application lifecycle so that every time a code change is pushed, the build and deployment occur automatically. Which combination of features should you use?

A.Only cron jobs
B.Manual build and manual rollout
C.BuildConfig Webhook and ImageStream triggers
D.DeploymentConfigs only
AnswerC

Webhooks trigger builds; ImageStream triggers update deployments.

Why this answer

A GitHub webhook combined with ImageStream triggers creates a fully automated pipeline from code commit to deployment.

500
MCQhard

What is the result of using a 'Recreate' strategy during a deployment?

A.Zero downtime deployment
B.Rolling update
C.Temporary service outage
D.Instant switch
AnswerC

The old pods are shut down before new ones start.

Why this answer

The Recreate strategy terminates all existing instances before creating any new ones, resulting in a temporary service outage.

501
MCQhard

You need to terminate TLS for a route using a custom certificate. Which object must contain the TLS key and certificate?

A.A Secret in the same namespace as the route
B.A ConfigMap in the 'openshift-config' namespace
C.A custom resource definition of type TLS
D.The ingress controller configuration
AnswerA

For custom certificates, the TLS data is typically stored in a Secret referenced by the Route.

Why this answer

The Route object itself holds the configuration, but the certificate and key are referenced within the Route's 'spec.tls' section, often pulled from a Secret.

502
Multi-Selectmedium

An administrator is configuring a ResourceQuota named 'quota-dev' in the 'development' namespace. Which TWO of the following resource types can be directly tracked and limited by this ResourceQuota? (Choose TWO)

Select 2 answers
A.persistentvolumeclaims
B.clusterroles
C.pods
D.namespaces
E.nodes
AnswersA, C

Correct. PersistentVolumeClaims can be tracked and limited by a ResourceQuota.

Why this answer

ResourceQuotas can limit compute resources like cpu and memory, as well as object counts like pods, services, and persistentvolumeclaims. ConfigMaps and Secrets are also trackable object counts.

503
MCQmedium

A cluster administrator wishes to enforce the restricted Pod Security Standard across an entire namespace named auditing-ns. Which label should the administrator apply to the namespace to enforce this policy while generating audit warnings for non-compliant pods?

A.pod-security.kubernetes.io/enforce: restricted and pod-security.kubernetes.io/audit: restricted
B.security.openshift.io/scc.enforce: restricted-v2
C.security.openshift.io/pod-security-standard: enforce-restricted
D.admission.cluster.openshift.io/validate-psa: true
AnswerA

This combination sets the enforcement level to restricted and logs audit warnings.

Why this answer

Namespace-level Pod Security Standards are enforced using standard Kubernetes labels. To enforce while auditing, the enforce label is set to restricted, and the audit label can also be set.

504
Multi-Selecthard

Which TWO things must be configured to use a Private Image Registry?

Select 2 answers
A.A route to the registry
B.A docker-registry type secret
C.Linking the secret to the service account
D.Creating a new ClusterRole
E.Updating the node configuration
AnswersB, C

This holds the credentials.

Why this answer

You must create a secret with the credentials and then link it to the service account.

505
MCQeasy

What is the purpose of the 'oc adm drain' command during cluster maintenance?

A.To restart the kubelet service and flush local DNS caches.
B.To permanently delete the node and its virtual machine instance from the cloud provider.
C.To mark a node unschedulable and gracefully evict workloads running on it.
D.To clear container logs and free up disk space on the node filesystem.
AnswerC

Node draining cordons the node and evicts pods respecting PodDisruptionBudgets.

Why this answer

The 'oc adm drain' command cordons the node and safely evicts all pods from it, allowing maintenance to be performed.

506
MCQhard

An OpenShift cluster administrator receives an alert that etcd disk fsync durations are excessively high. Which performance metric is the etcd diagnostic tool measuring when evaluating disk latency?

A.The network round trip time between etcd follower and leader nodes.
B.The time taken for etcd to commit WAL (Write-Ahead Log) entries to persistent storage via fsync.
C.The time taken by the Kubernetes API server to serialize JSON objects.
D.The garbage collection duration of expired etcd keys.
AnswerB

High fsync latency directly degrades etcd stability, measured by disk write synchronization duration.

Why this answer

etcd disk performance relies heavily on synchronous disk writes (fsync). High fsync duration indicates slow underlying storage block devices.

507
Multi-Selecteasy

Which TWO of the following commands can an administrator use to verify the identity and permissions of the currently logged-in user? (Choose TWO)

Select 2 answers
A.oc whoami
B.oc get user --current
C.oc auth can-i --list
D.oc adm who-can-i
E.oc describe authentication
AnswersA, C

'oc whoami' returns the current user's username.

Why this answer

The 'oc whoami' and 'oc auth can-i' commands check user identity and permissions.

508
Multi-Selecthard

Which THREE parameters can be configured within the cluster DNS operator resource (dns.operator/default)? (Choose THREE)

Select 3 answers
A.The physical MTU size of the cluster worker node network interfaces
B.Upstream DNS forwarders
C.Custom upstream server zones and bindings
D.Handler logs and log levels for CoreDNS
E.The default HAProxy router replica count
AnswersB, C, D

Administrators can configure forward plugins to external DNS servers.

Why this answer

The DNS operator allows configuring forwarders, client IP handling, and server blocks/zones.

509
MCQhard

An administrator expands a PVC from 10Gi to 50Gi. The underlying cloud storage volume is successfully resized, but inside the running pod, 'df -h' still reports the size as 10Gi. What is the most likely reason?

A.The pod must be restarted to flush the Linux page cache.
B.The file system on the volume has not been expanded to occupy the new block storage capacity.
C.The StorageClass lacks the allowVolumeExpansion parameter.
D.PVC expansion is strictly read-only after creation and cannot be updated at the filesystem level.
AnswerB

Expanding block storage size does not automatically resize the file system unless supported and executed by the CSI node plugin or node stage/publish routines.

Why this answer

File system expansion (resizing the file system inside the block device to match the new volume size) requires either a CSI driver that supports automatic file system expansion or manual intervention.

Page 6

Page 7 of 7

All pages