Courseiva

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

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

Page 4

Page 5 of 7

Page 6
301
MCQmedium

What is the purpose of the 'postCommit' hook in a BuildConfig?

A.To notify an external system
B.To run tests on the image
C.To push the image to an external registry
D.To restart the Deployment
AnswerB

It provides a stage to run validation checks within the build container.

Why this answer

The postCommit hook allows you to run commands or tests inside the container after the image is built but before it is pushed.

302
MCQeasy

Which component in OpenShift 4.14 serves as the API entry point for managing MachineAPI resources like Machines and MachineSets?

A.Cluster Version Operator
B.Machine Config Operator
C.Operator Lifecycle Manager
D.Machine API Operator
AnswerD

The Machine API Operator manages the controllers and CRDs for machines.

Why this answer

The Machine API Operator provides the custom resource definitions and controllers for managing Machine and MachineSet objects.

303
MCQhard

A cluster administrator has created a VolumeSnapshotClass and a VolumeSnapshot object targeting an active PVC. However, the VolumeSnapshot status never shows ready to use, and the underlying storage provider logs indicate snapshot creation failed due to missing cluster permissions. Which core OpenShift operator is primarily responsible for managing volume snapshot controllers and CRDs in OpenShift 4.14?

A.The Ingress Operator
B.The Cluster Storage Operator
C.The Authentication Operator
D.The Machine Config Operator
AnswerB

Correct. The Cluster Storage Operator manages the storage components, including deploying the Volume Snapshot Controller and related CustomResourceDefinitions across the cluster.

Why this answer

The OpenShift Storage Operator or specialized CSI operator handles deployment of the snapshot controller, but the cluster-storage-operator or ODF operator manages the storage stack components. Specifically, snapshot validation and controller logic are typically driven by the external snapshot controller deployed via the Cluster Storage Operator or CSI addon operator.

304
MCQeasy

Which command allows an administrator to view all currently configured SecurityContextConstraints in an OpenShift cluster?

A.oc describe scc-cluster
B.oc get securitycontextconstraints
C.oc get scc --namespaced
D.oc get policies -n openshift-config
AnswerB

SecurityContextConstraints (or 'scc' for short) is a cluster-scoped resource listable via 'oc get scc'.

Why this answer

The 'oc get scc' command lists all SecurityContextConstraints available in the cluster.

305
MCQhard

An OpenShift administrator needs to restrict developers so they cannot delete any PersistentVolumeClaims in the 'finance-prod' namespace, even though they have the 'admin' role. How can this override be achieved?

A.Add a negative annotation to the user's account object.
B.Configure a LimitRange object with delete blocks.
C.Create a DenyRoleBinding specifying delete verb exclusion for persistentvolumeclaims.
D.Create a custom Role that omits the 'delete' verb for persistentvolumeclaims, remove the 'admin' role binding, and bind this custom Role instead.
AnswerD

Because RBAC is purely additive, you cannot deny an action if a user holds a role ('admin') that grants it; you must replace the role with a restricted custom role.

Why this answer

RBAC in Kubernetes/OpenShift is strictly additive. To deny a specific action like deletion while granting admin, a custom role and binding cannot deny by default unless using specialized admission webhooks or custom authorization webhooks. Wait, Kubernetes RBAC does not support explicit denies.

However, you can create a custom role without delete verbs and bind that, but if they have 'admin', they keep admin unless you remove it. To truly restrict specific verbs when using built-in roles, you cannot override unless you modify the role or use a custom authorization webhook/admission control. Let's check alternative mechanisms: Exclusion is handled by custom RBAC roles instead of 'admin', or using admission webhooks.

Since standard RBAC is additive, a user cannot have 'admin' and simultaneously be denied a subset via RBAC alone without replacing the role. Let's frame the question around replacing 'admin' with a custom role that omits delete verbs.

306
Multi-Selecteasy

Which TWO tasks are typically performed by an OpenShift cluster administrator when managing worker node lifecycles? (Choose TWO)

Select 2 answers
A.Directly editing etcd data files on control plane nodes.
B.Manually compiling custom Linux kernel binaries on every node via SSH.
C.Writing custom source code for the Kubernetes API server.
D.Cordoning and draining nodes for operating system maintenance.
E.Applying labels to nodes to control MachineConfigPool membership.
AnswersD, E

Preparing nodes for maintenance requires cordoning and draining.

Why this answer

Administrators manage worker node lifecycles by cordoning and draining nodes for maintenance and labeling them for custom pools.

307
MCQeasy

Which service account is used by default for pods that do not specify a service account in their manifest?

A.builder
B.default
C.system
D.deployer
AnswerB

Every namespace has a 'default' service account for this purpose.

Why this answer

The 'default' service account is used when none is provided.

308
Multi-Selecthard

Which THREE components are typically deployed as part of a CSI driver architecture on OpenShift worker nodes and control planes?

Select 3 answers
A.CSI Node Plugin (running as a DaemonSet on worker nodes)
B.etcd Storage Engine Daemon
C.CRI-O Runtime Proxy
D.Node Driver Registrar (communicating kubelet registration)
E.CSI Controller Plugin (running sidecars like provisioner and attester)
AnswersA, D, E

Node plugins handle mounting and staging on individual nodes.

Why this answer

CSI architecture consists of external controllers (provisioner, attester, snapshotter, resizer) on control planes and CSI node plugins (node registrar, plugin daemonset) on worker nodes.

309
MCQmedium

An administrator created a Route but external clients receive a 503 Service Unavailable error when attempting to access it. Upon checking the endpoints of the Service referenced by the Route, the administrator discovers there are zero endpoints listed. What is the most likely cause?

A.The Route YAML has an invalid TLS certificate format.
B.The Ingress controller pods have crashed across all worker nodes.
C.The cluster DNS operator is degraded.
D.The Service selector labels do not match any active Pod labels.
AnswerD

If selectors do not match pods, no endpoints are generated, causing the router to return a 503 error.

Why this answer

A 503 error with zero endpoints typically indicates that the selector in the Service definition does not match the labels on any running pods.

310
MCQhard

The 'dns' ClusterOperator is reporting Degraded=True because CoreDNS pods are failing health checks. The administrator suspects DNS request loops or upstream forwarding failures. Which log source is most effective for diagnosing CoreDNS resolution errors?

A.oc logs -n kube-system deployment/kube-dns
B.journalctl -u coredns
C.oc logs -n openshift-network-operator deployment/network-operator
D.oc logs -n openshift-dns -l dns.operator.openshift.io/daemonset-dns=default
AnswerD

CoreDNS pods deployed by the DNS operator log all query resolutions and errors in the openshift-dns namespace.

Why this answer

CoreDNS runs as a deployment in the openshift-dns namespace. Its pod logs show incoming query failures and forwarding timeouts.

311
Multi-Selectmedium

Which TWO of the following mechanisms can prevent developers from exhausting cluster memory resources through unbounded pod creation in a namespace? (Choose TWO)

Select 2 answers
A.Enabling Cluster Autscaler node group scaling limits.
B.Applying a ClusterRole restricting memory API verbs.
C.Configuring a LimitRange with default container memory limits.
D.Configuring a ResourceQuota with limits.memory constraints.
E.Creating an egress firewall blocking memory-intensive external APIs.
AnswersC, D

LimitRanges ensure containers receive sensible default memory limits if omitted.

Why this answer

ResourceQuotas and LimitRanges prevent unbounded consumption by setting hard aggregate limits and container request/limit defaults.

312
Multi-Selecteasy

An administrator is preparing to perform maintenance on worker nodes in an OpenShift 4.14 cluster. Which TWO commands or actions are part of the standard workflow to safely prepare a node for maintenance? (Choose TWO)

Select 2 answers
A.Run 'oc delete node <node-name> --force' immediately before stopping services.
B.Run 'oc adm cordon <node-name>' to mark the node as unschedulable.
C.Stop the kubelet service directly via systemctl without cordoning.
D.Run 'oc adm drain <node-name> --delete-emptydir-data --ignore-daemonsets' to evict existing pods.
E.Scale the MachineConfigPool replicas to zero.
AnswersB, D

Cordoning prevents new pods from being scheduled onto the node during maintenance.

Why this answer

To prepare a node for maintenance, the administrator must cordon it to prevent scheduling and drain it to evict workloads gracefully.

313
MCQhard

You are troubleshooting a TLS certificate issue on a route. Which command shows the current certificate status and details?

A.oc describe route <route-name>
B.oc check tls <route-name>
C.oc inspect route
D.oc get tls
AnswerA

This provides detailed information about the route, including TLS status.

Why this answer

The 'oc get route' command with output formatting or 'oc describe route' is the standard way to inspect route TLS.

314
MCQhard

An administrator configures an OAuth provider with user mapping method 'lookup'. What does this mapping method do when a user authenticates for the first time?

A.It rejects all login attempts unless the user is member of the 'system:masters' group.
B.It requires that a User object already exists and is pre-associated with the identity; otherwise, login fails.
C.It automatically creates a new User object and links it to the incoming Identity.
D.It maps all incoming users to a single shared service account.
AnswerB

The 'lookup' method expects an existing identity-to-user mapping and will not auto-create user accounts.

Why this answer

The 'lookup' mapping method requires that both an Identity and a User object already exist and be linked; if not, authentication fails. (In contrast to 'add', which creates them).

315
MCQeasy

An administrator wants to check the status of all cluster operators, specifically verifying that the Network and DNS operators are healthy. Which command should be run?

A.oc get clusteroperators
B.oc get operators --cluster
C.oc describe operators
D.oc adm check health
AnswerA

This command outputs the health status of all cluster operators.

Why this answer

The oc get clusteroperators command lists all cluster operators and their availability/health status.

316
MCQeasy

What is the primary difference between PersistentVolumes (PVs) and PersistentVolumeClaims (PVCs)?

A.PVs represent actual cluster storage resources, while PVCs represent user requests for storage.
B.PVs only support block mode, while PVCs only support filesystem mode.
C.PVs are created by developers, while PVCs are created by cluster administrators.
D.PVs are namespace-scoped, while PVCs are cluster-scoped.
AnswerA

PVs are the storage pieces; PVCs are the claims/requests consumed by pods.

Why this answer

PVs are actual storage resources in the cluster provisioned by admins, whereas PVCs are requests for storage made by users.

317
MCQmedium

An administrator needs to configure a Route that handles encrypted communication both from the client to the router AND from the router to the backend pod. Which termination type is required?

A.reencrypt
B.passthrough
C.edge
D.secure-tunnel
AnswerA

Re-encrypt termination secures both legs of the journey: client-to-router and router-to-pod.

Why this answer

Re-encrypt termination decrypts TLS at the router and then re-encrypts a new TLS connection to the backend pod.

318
MCQhard

An administrator configures an Ingress resource in the 'web-apps' namespace to route traffic using the default OpenShift Ingress controller. The Ingress creation succeeds, but traffic to the hostname returns a 404 error. What is a common reason for this behavior in OpenShift?

A.Ingress hostnames must end with the exact string '.internal.cloudapp.net'.
B.Ingress objects require a ServiceMeshControlPlane to function properly in OpenShift.
C.OpenShift completely ignores Ingress resources and only processes Route objects.
D.The Ingress resource is missing the spec.ingressClassName set to the default OpenShift ingress class name.
AnswerD

Without an explicit ingressClassName or if it doesn't match the active IngressController, the controller ignores the resource.

Why this answer

OpenShift natively uses Route objects. While Ingress is supported, the Ingress controller watches Ingress objects, but custom annotations or missing paths/backend configurations or default controller sharding often require ensuring the Ingress class or annotations match the default router configuration. Alternatively, Ingress controllers in OpenShift require the ingress class name to be specified correctly (e.g., 'openshift-default').

319
MCQmedium

A cluster administrator wants to create a VolumeSnapshot of a database PVC. Which API group must the VolumeSnapshotClass belong to?

A.snapshot.storage.k8s.io
B.storage.k8s.io
C.csi.storage.k8s.io
D.volumesnapshot.openshift.io
AnswerA

VolumeSnapshot, VolumeSnapshotContent, and VolumeSnapshotClass all belong to snapshot.storage.k8s.io.

Why this answer

Volume snapshots are managed by the snapshot.storage.k8s.io API group.

320
MCQmedium

A developer wants to ensure that a pod's temporary storage does not exceed 2Gi and that the pod is terminated or throttled if it exceeds this limit. Where should this ephemeral storage limit be declared?

A.In the container's spec.resources.limits under 'ephemeral-storage'.
B.In the emptyDir volume specification under 'sizeLimit'.
C.In the StorageClass under 'parameters.ephemeralLimit'.
D.In the persistentVolumeClaim under 'spec.ephemeral'.
AnswerA

ephemeral-storage is a standard resource type alongside CPU and memory in container resource specs.

Why this answer

Ephemeral storage limits and requests are declared in the container's 'resources.limits' and 'resources.requests' definitions within the Pod specification.

321
Multi-Selectmedium

An administrator is configuring a new StorageClass in OpenShift Container Platform 4.14. Which TWO parameters or fields are valid and commonly used specifications within a StorageClass manifest? (Choose TWO)

Select 2 answers
A.podSecurityContext
B.nodeAffinityRules
C.reclaimPolicy
D.maximumSnapshotLimit
E.volumeBindingMode
AnswersC, E

Correct. reclaimPolicy determines whether dynamically created PVs are Deleted or Retained when their PVC is removed.

Why this answer

StorageClasses support fields such as provisioner, parameters, reclaimPolicy, volumeBindingMode, and allowVolumeExpansion. Among the choices, reclaimPolicy and volumeBindingMode are valid standard fields.

322
Multi-Selecteasy

An administrator is investigating pod crash loops in a namespace. Which TWO commands are most useful for gathering initial diagnostic data about the crashing pods? (Choose TWO)

Select 2 answers
A.oc describe pod <pod-name>
B.oc logs <pod-name> --previous
C.oc adm must-gather
D.oc rsh <pod-name>
E.oc debug node/<node-name>
AnswersA, B

Displays pod events, exit codes, restart counts, and error reasons.

Why this answer

oc logs --previous and oc describe pod are the standard foundational commands for inspecting exit codes, termination reasons, and prior log output of crashing pods.

323
MCQhard

An administrator is managing an OpenShift 4.14 cluster and notices that a newly installed Operator fails to start because it requires a specific version of Kubernetes that is older than what OpenShift 4.14 provides. How does OLM handle Operator compatibility checks during subscription creation?

A.OLM evaluates the ClusterServiceVersion (CSV) metadata against the cluster version and blocks installation if requirements are unmet.
B.The kube-apiserver automatically patches the operator deployment to bypass version checks.
C.The operator runs inside a compatibility emulation container provided by the MCO.
D.The Cluster Version Operator automatically downgrades the cluster Kubernetes API to match the Operator.
AnswerA

OLM inspects the CSV definitions and ensures compatibility with the cluster's Kubernetes API version before installation.

Why this answer

OLM checks the 'minVersion' and 'maxVersion' or 'capabilities' specified in the Operator's CSV against the cluster version and will not install an incompatible CSV, keeping the installation pending or failing.

324
MCQhard

An administrator is setting up a new custom MachineConfigPool for GPU-enabled worker nodes. After creating the MachineConfigPool resource, the administrator creates a MachineConfig that should apply exclusively to these nodes. What must the administrator include in the MachineConfig to ensure it only applies to the GPU pool?

A.Labels matching the machineconfigpool selector (e.g., 'pools.operator.machineconfiguration.openshift.io/gpu-worker: ""').
B.Placing the MachineConfig object directly inside the GPU namespace.
C.A field in the spec named 'targetPool: gpu-worker'.
D.An annotation specifying 'machineconfigpool.openshift.io/target: gpu-worker'.
AnswerA

MachineConfig objects require matching labels to be associated with custom MachineConfigPools.

Why this answer

MachineConfigs must include node role labels matching the MachineConfigPool (e.g., pools.operator.machineconfiguration.openshift.io/<pool-name>: '') so the MCO targets the correct nodes.

325
MCQeasy

Which namespace contains the Machine Config Operator (MCO) and its associated daemon pods in OpenShift 4.14?

A.openshift-machine-config-operator
B.openshift-infra
C.openshift-machine-api
D.openshift-cluster-version
AnswerA

openshift-machine-config-operator is the namespace where the MCO controller and daemon run.

Why this answer

The MCO runs in the openshift-machine-config-operator namespace.

326
MCQmedium

An administrator installed an Operator via OperatorHub and selected a specific update channel. Later, the administrator wants to switch the Subscription to a different update channel. How should this be performed?

A.Edit the Subscription custom resource and modify the 'spec.channel' field to the new channel.
B.Delete the Operator's CSV and reinstall the Operator from scratch via the CLI.
C.Modify the OperatorGroup target namespace to force a channel renegotiation.
D.Patch the ClusterServiceVersion directly with the new channel identifier.
AnswerA

Updating the channel in the Subscription resource tells OLM to look for updates in the new channel.

Why this answer

To change the channel, the administrator edits the Subscription custom resource and updates the 'spec.channel' field to the new channel name.

327
Multi-Selecteasy

An administrator wants to verify node health and readiness across the cluster. Which TWO commands provide this information? (Choose TWO)

Select 2 answers
A.oc describe node <node-name>
B.oc get nodes
C.oc get clusterversion
D.oc get routes
E.oc adm top volume
AnswersA, B

Provides detailed node capacity, allocations, and condition statuses.

Why this answer

oc get nodes and oc describe node provide node status and health conditions.

328
Multi-Selecthard

An administrator is examining the cluster architecture and core operators of OpenShift 4.14. Which THREE core operators run as part of the control plane and platform management? (Choose THREE)

Select 3 answers
A.Cluster Version Operator (CVO)
B.Machine Config Operator (MCO)
C.Ingress Operator
D.Cluster Autoscaler Operator
E.Operator Lifecycle Manager (OLM)
AnswersA, B, C

Manages core platform upgrades.

Why this answer

Cluster Version Operator, Machine Config Operator, and Ingress Operator are core platform operators.

329
MCQeasy

How do you view the currently active OAuth identity providers in an OpenShift cluster?

A.oc get identityproviders
B.oc describe auth
C.oc get oauth cluster -o yaml
D.oc get configmap oauth -n openshift-config
AnswerC

The cluster OAuth configuration object contains all providers.

Why this answer

The OAuth configuration is stored in the 'cluster' OAuth object.

330
Multi-Selectmedium

Which THREE components are involved in TLS termination for routes?

Select 3 answers
A.Secret
B.Route
C.IngressController
D.Service
E.ConfigMap
AnswersA, B, C

The secret stores the TLS data.

Why this answer

Termination involves the ingress controller, the route object, and the secret containing the keys.

331
MCQeasy

An administrator wants to stream logs from all pods belonging to a specific Deployment named 'web-frontend' in real-time. Which command achieves this?

A.oc watch deployment/web-frontend
B.oc logs pods -l app=web-frontend
C.oc rsh deployment/web-frontend
D.oc logs deployment/web-frontend -f
AnswerD

Targeting the deployment with the -f flag streams logs from all pods managed by the deployment.

Why this answer

oc logs supports targeting a Deployment directly via the resource type, streaming logs from all associated pods.

332
Multi-Selecthard

An administrator is managing operator subscriptions and wants to ensure that an operator is automatically updated when new versions are released in the channel. Which THREE conditions or configuration settings must be satisfied? (Choose THREE)

Select 3 answers
A.The OperatorGroup must correctly encompass the target namespace scope.
B.A healthy CatalogSource must be available providing the operator manifests.
C.The Subscription must have 'spec.installPlanApproval: Automatic' configured.
D.The Cluster Version Operator must have auto-upgrade enabled for third-party operators.
E.The global pull secret must be deleted so OLM can fetch unauthenticated updates.
AnswersA, B, C

OperatorGroups must allow the operator to operate in the desired namespace.

Why this answer

Automatic updates require installPlanApproval set to Automatic, a valid CatalogSource, and an active Subscription.

333
Multi-Selectmedium

Which TWO of the following are valid ways to trigger a build in OpenShift?

Select 2 answers
A.Restarting the OpenShift cluster
B.Sending a HTTP POST to the webhook URL
C.Executing 'oc start-build'
D.Updating a ConfigMap
E.Changing a Namespace
AnswersB, C

Webhooks are standard triggers.

Why this answer

Builds can be triggered by manual user command or by a configured webhook.

334
Multi-Selectmedium

An administrator is configuring a DeploymentConfig in OpenShift and wants to set up automated triggers for new rollouts. Which TWO trigger types are natively supported in a DeploymentConfig spec? (Choose two.)

Select 2 answers
A.PeriodicTrigger
B.ConfigChange
C.WebhookTrigger
D.GitTrigger
E.ImageChange
AnswersB, E

ConfigChange is a native DeploymentConfig trigger type that rolls out a new revision when the DC template changes.

Why this answer

DeploymentConfigs support ConfigChange (triggering when the DeploymentConfig template changes) and ImageChange (triggering when a referenced ImageStream tag updates).

335
Multi-Selecthard

Which THREE actions can be performed using the oc rollout subcommand in OpenShift? (Choose three.)

Select 3 answers
A.Pausing a rollout to make multiple configuration updates
B.Triggering a direct source build from a local directory
C.Viewing the revision history of a deployment
D.Checking the current status of an ongoing rollout
E.Scaling the number of replicas up or down
AnswersA, C, D

oc rollout pause suspends automatic deployments.

Why this answer

oc rollout supports history, undo, pause, resume, and status. It does not support build or scale directly as primary subcommands.

336
Multi-Selecthard

Which THREE actions can be performed when managing Route objects in OpenShift? (Choose THREE)

Select 3 answers
A.Attaching a container storage volume directly inside the Route spec
B.Allocating a direct BGP peering session from the Route object
C.Specifying TLS termination as edge, passthrough, or reencrypt
D.Defining a custom hostname for external access
E.Configuring path-based routing under spec.path
AnswersC, D, E

Routes support these three TLS termination modes.

Why this answer

Routes support custom hostnames, path-based routing, and multiple TLS termination modes.

337
MCQmedium

You are configuring an OAuth identity provider in OpenShift using the HTPasswdPasswordIdentityProvider method. Where must the generated htpasswd user credentials file be stored so the cluster authentication operator can read it?

A.In the 'openshift-authentication' namespace as a ConfigMap
B.In the target user's project namespace as a Secret
C.In the 'openshift-config' namespace as a Secret
D.On the master node filesystem at '/etc/origin/master/htpasswd'
AnswerC

The HTPasswd secret containing the password file must reside in the 'openshift-config' namespace for the cluster-authentication-operator to mount it.

Why this answer

HTPasswd identity providers require the password file to be stored as a Secret in the 'openshift-config' namespace.

338
Multi-Selectmedium

Which TWO methods can an administrator use to troubleshoot why a pod cannot connect to a remote Service? (Choose TWO)

Select 2 answers
A.Verifying that the target service has valid endpoints pointing to running pods.
B.Using nc or curl from inside a debug pod to test connectivity to the service IP and port.
C.Restarting the cluster storage provider pods.
D.Deleting all persistent volume claims.
E.Modifying the global MachineConfig pool.
AnswersA, B

Missing endpoints prevent service routing.

Why this answer

Checking service endpoints and testing connectivity with nc/telnet/curl are standard troubleshooting steps.

339
Multi-Selecteasy

Which TWO actions can an administrator perform using the 'oc adm' command set related to cluster management? (Choose TWO)

Select 2 answers
A.Write custom container Dockerfiles on cluster nodes.
B.Initiate and manage cluster upgrades.
C.Manage user project request limits directly.
D.Cordon or drain cluster nodes for maintenance.
E.Create application deployments directly without YAML files.
AnswersB, D

'oc adm upgrade' is used to manage cluster versions and upgrades.

Why this answer

The 'oc adm' command group provides administrative utilities such as cordoning nodes and managing cluster upgrades.

340
Multi-Selectmedium

An administrator wants to check the status of Machine API provisioning and verify that all machines are in a running state. Which TWO commands or resource inspections should the administrator perform? (Choose TWO)

Select 2 answers
A.Run 'oc adm machine-status'.
B.Run 'oc get clusteroperators --machines'.
C.Run 'oc get machines -A' to list all provisioned machines across namespaces.
D.Run 'oc get machinesets -A' to check replica counts and desired states.
E.Run 'oc get machineconfigpools --machines'.
AnswersC, D

oc get machines lists all machine instances and their provisioning phase.

Why this answer

Administrators inspect machines and machinesets using 'oc get machines' and 'oc get machinesets'.

341
MCQhard

During a troubleshooting session on a degraded cluster operator, an administrator finds that the operator's operand configuration is controlled by a Custom Resource (CR). Where is the most reliable place to look for error status messages reported by the operator controller loop regarding this CR?

A.The default Kubernetes events in the default namespace.
B.The global clusterversion object status conditions.
C.The /var/log/messages file on the master nodes.
D.The status field of the specific Custom Resource instance (e.g., 'oc get <cr-kind> <cr-name> -o yaml').
AnswerD

Operators report reconciliation errors and conditions directly in the status section of their managed CRs.

Why this answer

Cluster operators store detailed status conditions, error messages, and reasons inside the status block of their specific Custom Resource instance.

342
MCQeasy

Which OpenShift resource defines the desired state of a containerized application, including replica count and image version?

A.Deployment
B.Pod
C.ImageStream
D.Service
AnswerA

Deployments manage the desired state of replica sets.

Why this answer

A Deployment (or DeploymentConfig) object defines the desired state of the pods.

343
Multi-Selecthard

Which THREE components are part of a Kustomize configuration?

Select 3 answers
A.kustomization.yaml
B.BuildConfigs
C.Resources
D.Helm Charts
E.Patches
AnswersA, C, E

The main entry point.

Why this answer

Kustomize uses resources, patches, and a kustomization file to manage deployment overrides.

344
MCQmedium

An administrator notices that client source IP addresses are lost when traffic hits a Service of type NodePort, appearing instead as a node IP. Which field in the Service specification should be changed to 'Local' to preserve client source IPs?

A.externalTrafficPolicy: Local
B.publishNotReadyAddresses: true
C.sessionAffinity: ClientIP
D.ipFamilyPolicy: RequireDualStack
AnswerA

Setting externalTrafficPolicy to Local avoids second-hop routing and preserves the client source IP.

Why this answer

Setting externalTrafficPolicy to Local preserves the client source IP for NodePort and LoadBalancer services.

345
MCQmedium

A BuildConfig uses an S2I strategy and needs to pull private base images from a secured external container registry. Where must the administrator configure the pull credentials so the builder pod can authenticate?

A.In the ImageStream tag policy
B.In the Route resource annotations
C.In the global cluster OAuth configuration
D.In the BuildConfig spec under strategy.dockerStrategy.pullSecret or source/strategy configuration
AnswerD

Build configs support pullSecret configurations to authenticate against private registries during image pulls.

Why this answer

BuildConfig objects use pushSecret or pullSecret configurations, specifically output.pushSecret for pushing images and source.secrets or a service account for pulling source/base images, but standard registry access for builds is often tied to the builder service account or a specified pushSecret/pullSecret. More precisely, pullSecret in the source or strategy block allows authenticating to registries.

346
MCQmedium

A pod fails to start, and the event log shows a Multi-Attach error for volume 'pvc-xyz'. What is the root cause of this error?

A.A ReadWriteOnce volume is attempting to be attached to a second node while still attached to the first.
B.The PVC storage class has volumeBindingMode set to Immediate.
C.The storage backend has run out of physical disk capacity.
D.The CSI driver pod has crashed on the master node.
AnswerA

RWO block storage can only be attached to one node at a time.

Why this answer

A Multi-Attach error occurs when a volume with ReadWriteOnce access mode is already attached to one worker node and another node attempts to mount it simultaneously (often during pod rescheduling or rolling updates).

347
MCQeasy

An administrator needs to create a passthrough Route that preserves client certificates and forwards encrypted traffic directly to the backend pod. Which spec configuration is required?

A.spec: tls: termination: passthrough
B.spec: tls: termination: reencrypt
C.spec: tls: termination: edge
D.spec: tls: insecureEdgeTerminationPolicy: Allow
AnswerA

Setting termination to passthrough ensures TLS is not terminated at the router.

Why this answer

A passthrough route requires setting tls.termination to passthrough.

348
MCQeasy

Which YAML key in a StorageClass definition specifies the CSI plugin responsible for provisioning the storage?

A.storagePlugin
B.plugin
C.driverName
D.provisioner
AnswerD

provisioner defines the driver plugin name (e.g., ebs.csi.aws.com).

Why this answer

The 'provisioner' key in a StorageClass specifies the CSI driver or provisioner plugin name.

349
MCQhard

An administrator creates a StorageClass with volumeBindingMode: WaitForFirstConsumer. A user creates a PVC using this StorageClass. What will be the initial phase of the PVC?

A.Provisioning
B.Bound
C.Pending
D.Available
AnswerC

The PVC remains Pending because binding and provisioning are deferred until pod scheduling.

Why this answer

When using WaitForFirstConsumer, a newly created PVC remains in the Pending state until a pod referencing it is created and scheduled.

350
MCQeasy

How can you view the list of all SCCs available in the cluster?

A.oc get scc
B.oc show scc
C.oc describe scc
D.oc list scc
AnswerA

This command lists all SCC resources.

Why this answer

The 'oc get scc' command lists all available security context constraints.

351
MCQhard

An administrator configures a Pod with a volume type of hostPath. What is a key security risk or operational limitation of using hostPath in a production multi-tenant OpenShift cluster?

A.Pods using hostPath can access node filesystems, breaking container isolation and posing security risks.
B.hostPath volumes automatically expire and delete data after 24 hours.
C.hostPath requires an external CSI driver to be installed.
D.hostPath is incompatible with Linux nodes and only works on Windows worker nodes.
AnswerA

hostPath bypasses container storage isolation, allowing direct access to the underlying node.

Why this answer

hostPath mounts node filesystem paths directly into containers, which can allow containerized workloads to read/write sensitive host files or compromise node security.

352
MCQeasy

An administrator needs to check the IP address and network status assigned to a running pod. Which command displays this information quickly?

A.oc ip pod <pod-name>
B.oc get pod <pod-name> -o wide
C.oc describe pod <pod-name> --network
D.oc get network-attachment-definitions
AnswerB

The -o wide output format includes the pod IP and assigned node name.

Why this answer

oc get pod <pod-name> -o wide displays additional details including the pod IP address and the node it is scheduled on.

353
MCQeasy

An administrator needs to check the internal DNS resolution of a service named 'backend' within the 'production' namespace from a debug pod. Which DNS name is fully qualified and valid within the cluster?

A.backend.production.pod.cluster.local
B.backend.production.router.default.svc
C.svc.production.backend.cluster.local
D.backend.production.svc.cluster.local
AnswerD

This is the correct fully qualified domain name structure for internal cluster services.

Why this answer

The standard FQDN format for a Kubernetes service is <service-name>.<namespace>.svc.cluster.local.

354
Multi-Selectmedium

An administrator needs to troubleshoot DNS resolution failures inside an application namespace. Which THREE resources or commands should they check? (Choose THREE)

Select 3 answers
A.oc get machineset
B.oc logs -n openshift-dns -l dns.operator.openshift.io/daemonset-dns=default
C.oc get clusteroperator dns
D.oc describe ingresscontroller default
E.Running an interactive debug pod to test DNS lookup using 'nslookup' or 'dig'.
AnswersB, C, E

Provides direct access to CoreDNS pod logs to check query resolution errors.

Why this answer

Checking CoreDNS operator status, testing DNS resolution inside a debug pod, and inspecting the DNS cluster operator configuration are essential steps.

355
Multi-Selecteasy

An administrator needs to collect logs from all router pods in the 'openshift-ingress' namespace. Which TWO methods can achieve this? (Choose TWO)

Select 2 answers
A.oc logs -l ingresscontroller.operator.openshift.io/deployment-ingresscontroller=default -n openshift-ingress
B.oc describe deployment router-default -n openshift-ingress
C.oc get routes -n openshift-ingress
D.oc rsh -n openshift-ingress deployment/router-default
E.oc logs deployment/router-default -n openshift-ingress
AnswersA, E

Using the specific operator label selector retrieves logs from all matching router pods.

Why this answer

Targeting the deployment or using a label selector with oc logs retrieves logs from all router pods.

356
MCQhard

An OpenShift cluster administrator notices that API requests are taking an excessively long time to complete. They suspect etcd database bloat due to excessive ConfigMap creations. Which etcd maintenance command can be run inside an etcd pod to reclaim storage space after compaction?

A.etcdctl prune-storage
B.oc adm etcd-clean
C.etcdctl defrag
D.etcdctl compact --vacuum
AnswerC

etcdctl defrag reorganizes the etcd database file and frees up disk space on the underlying storage.

Why this answer

Etcd requires defragmentation (etcdctl defrag) after compaction to release free space back to the file system.

357
MCQhard

An administrator is inspecting an OpenShift 4.14 cluster and notices that the MachineConfigPool for workers is in a degraded state because a MachineConfig failed to apply. Where should the administrator look to find the exact error encountered by the Machine Config Daemon on the affected nodes?

A.Review the OperatorHub catalog source logs in openshift-marketplace.
B.Check the logs of the machine-config-daemon pods in the openshift-machine-config-operator namespace.
C.Run 'oc adm node-logs --role=worker' to view kernel panic messages.
D.Inspect the Cluster Version Operator logs in openshift-cluster-version.
AnswerB

The machine-config-daemon runs on every node and logs configuration application failures.

Why this answer

The Machine Config Daemon runs as a DaemonSet across all nodes in the openshift-machine-config-operator namespace. Its logs contain the exact ignition and file application errors.

358
Multi-Selecthard

Which TWO of the following actions occur when a user is deleted from an OpenShift cluster using 'oc delete user <username>'? (Choose TWO)

Select 2 answers
A.The User resource object is removed from the cluster database.
B.External identity provider records are automatically deleted from LDAP or OIDC servers.
C.All namespaces owned or created by the user are permanently deleted.
D.The user's active OAuth access and refresh tokens are revoked.
E.All RoleBindings and ClusterRoleBindings referencing the user are automatically deleted.
AnswersA, D

The user object record is deleted from etcd.

Why this answer

Deleting a User object removes the user entity, but existing RBAC bindings referencing that username remain until cleaned up, and their active OAuth tokens are revoked.

359
MCQeasy

Which command is used to start a new build from an existing BuildConfig named 'frontend'?

A.oc trigger-build frontend
B.oc run-build frontend
C.oc start-build frontend
D.oc build frontend
AnswerC

This is the correct command syntax to trigger a build.

Why this answer

The 'oc start-build' command triggers a new build for the specified BuildConfig.

360
Multi-Selecthard

Which THREE of the following are required when configuring an OIDC identity provider?

Select 3 answers
A.Client Secret reference
B.Htpasswd file path
C.Client ID
D.LDAP bind password
E.Issuer URL
AnswersA, C, E

The secret is required for authentication.

Why this answer

OIDC requires specific parameters to identify the provider, client, and client secret.

361
MCQmedium

A developer is using Kustomize to manage environment overlays (dev and prod) for an OpenShift application. Where should the common base resources be referenced in the prod/kustomization.yaml file?

A.Under the includes: key
B.Under the bases: key
C.Under the resources: key
D.Under the overlays: key
AnswerC

Kustomize uses the resources field to include base directories or dependent manifest files.

Why this answer

Kustomize overlays reference shared base manifests using the resources field pointing to the relative path of the base directory.

362
MCQeasy

An administrator needs to provision a new user named 'sarah' using the HTPasswd identity provider. After updating the htpasswd file and secret, Sarah logs in successfully. What command should the administrator run to verify that OpenShift has successfully created the corresponding User object for Sarah?

A.oc get account sarah
B.oc get user sarah
C.oc get identity htp:sarah
D.oc describe htpasswd-user sarah
AnswerB

Correct. The 'oc get user' command queries the API for the automatically generated User resource.

Why this answer

When an identity provider successfully authenticates a user, OpenShift automatically creates a corresponding User object. You can verify this with 'oc get user sarah'.

363
Multi-Selectmedium

An administrator needs to identify worker nodes that require attention during an upgrade or maintenance. Which TWO conditions or states on a node object indicate potential issues or special maintenance states? (Choose TWO)

Select 2 answers
A.Running=Normal
B.SchedulingDisabled
C.Active=True
D.Schedulable=True
E.NotReady
AnswersB, E

Indicates the node is cordoned and unschedulable.

Why this answer

SchedulingDisabled (cordoned) and NotReady indicate maintenance or health issues on nodes.

364
Multi-Selecthard

An administrator is troubleshooting a storage performance issue on an OpenShift cluster using Container Storage Interface (CSI) drivers. Which THREE actions or diagnostic commands are effective for investigating CSI driver health and provisioner issues? (Choose THREE)

Select 3 answers
A.Verify the CSI driver configuration by checking the CSIDriver and CSINode cluster resources.
B.Inspect events on the pending PersistentVolumeClaim using oc describe pvc <pvc-name>.
C.Modify the kubelet configuration file on control plane nodes to increase storage timeout values.
D.Run systemctl restart csi-driver on every worker node to force reconnection to the storage array.
E.Check the logs of the external CSI provisioner deployment running in the driver's namespace.
AnswersA, B, E

Correct. CSIDriver and CSINode objects define cluster-wide integration parameters and node attachment states for the CSI driver.

Why this answer

To troubleshoot CSI drivers, administrators should examine logs of the CSI provisioner and attacher pods, inspect StorageClass definitions, and check PersistentVolumeClaim events. Examining systemctl on nodes or editing container runtimes directly does not target CSI control plane logic.

365
MCQeasy

Where do you define the default image pull secrets for all service accounts in a namespace?

A.In the ClusterOperator configuration
B.In the Namespace metadata
C.By linking the secret to the 'default' service account
D.In the project configuration object
AnswerC

Linking the secret to the 'default' service account ensures it is used by pods that do not specify a service account.

Why this answer

You can link a secret to the 'builder' or 'default' service accounts, but creating a secret and linking it to the default service account is the standard method.

366
MCQhard

A cluster has a custom SCC (SecurityContextConstraints) named 'restricted-custom'. You need to grant a specific ServiceAccount named 'app-sa' in namespace 'app-ns' permission to use this SCC. How is this association correctly established?

A.Create a RoleBinding in 'app-ns' linking 'app-sa' to a ClusterRole that permits 'use' on the 'restricted-custom' SCC.
B.Add an annotation to the 'app-sa' ServiceAccount object referencing the SCC name.
C.Add 'system:serviceaccount:app-ns:app-sa' to the 'users' list inside the 'restricted-custom' SCC object.
D.Create a ProjectRequest template that injects the SCC into the namespace.
AnswerC

SCCs explicitly list authorized users, groups, and service accounts in their specification fields to grant access.

Why this answer

SCCs are cluster-scoped resources that grant permissions by referencing either users, groups, or service accounts directly within the SCC's 'users' or 'groups' lists, or by binding a ClusterRole/Role that allows the 'use' verb on the specific SCC resource.

367
MCQeasy

Which command creates a new user identity mapping using the HTPasswd provider if configured, or views user details? Let's focus on user management: Which command lists all registered user objects in the OpenShift cluster?

A.oc get users
B.oc get identities
C.oc get accounts
D.oc get subjects
AnswerA

'oc get users' retrieves the list of user resources recognized by the OpenShift master.

Why this answer

The 'oc get users' command lists all internal User objects created in the cluster.

368
MCQeasy

An administrator needs to configure re-encrypt TLS termination on a Route. In addition to the router certificate, what other certificate component must typically be provided in the route configuration?

A.The destination CA certificate to validate the backend pod's TLS certificate
B.A base64 encoded kubeconfig file for the ingress operator
C.An identity provider public key for JSON Web Token validation
D.A client certificate for mutual TLS authentication against the OAuth server
AnswerA

Re-encrypt routes re-encrypt traffic from the router to the backend, requiring the router to trust the backend pod via a destination CA.

Why this answer

Re-encrypt routes require a destination CA certificate (spec.tls.destinationCACertificate) so the router can trust the backend pod's self-signed or internal certificate.

369
Multi-Selecthard

Which THREE of the following fields are required when defining a custom Role or ClusterRole resource YAML? (Choose THREE)

Select 3 answers
A.namespace
B.apiVersion
C.subjects
D.rules
E.kind
AnswersB, D, E

Every Kubernetes resource manifest requires apiVersion.

Why this answer

A Role or ClusterRole YAML requires 'apiVersion', 'kind', 'metadata' (with name), and 'rules' (with API groups, resources, and verbs).

370
MCQmedium

An administrator needs to configure cluster-wide DNS forwarding for a specific custom domain (e.g., 'corp.local') to point to internal corporate DNS servers. Where is this configured in OpenShift 4.14?

A.Modify the /etc/resolv.conf file on every worker node.
B.Create a custom Route with DNS forwarding annotations.
C.Edit the DNS resource named 'cluster' and add a spec.servers block with forwardPlugin rules.
D.Edit the Corefile ConfigMap directly in the 'kube-system' namespace.
AnswerC

The DNS operator provides the spec.servers configuration to forward queries for specific zones.

Why this answer

Cluster-wide DNS forwarding is configured by modifying the DNS custom resource named 'cluster' to include a forwardPlugin rule.

371
MCQmedium

An OpenShift administrator needs to allow users to expand the storage capacity of existing PersistentVolumeClaims without restarting their applications. Which action must be taken first to enable this capability?

A.Restart the csi-provisioner controller deployment in the openshift-cluster-storage-operator namespace.
B.Edit the StorageClass to set allowVolumeExpansion: true.
C.Add the expansion-enabled annotation directly to each active Pod object.
D.Convert all existing static PersistentVolumes into dynamically provisioned volumes.
AnswerB

Correct. StorageClasses must explicitly permit volume expansion before any PVC referencing them can be resized.

Why this answer

To allow PVC expansion, the associated StorageClass must have the allowVolumeExpansion field set to true.

372
MCQeasy

Which command checks if a specific service account can use a restricted SCC?

A.oc check scc restricted -z mysa
B.oc describe scc restricted
C.oc adm policy can-i use scc restricted --as=system:serviceaccount:myns:mysa
D.oc auth can-i use scc restricted
AnswerC

This is the correct command to verify if a service account has the 'use' verb for a specific SCC.

Why this answer

The 'oc adm policy can-i' command is used to verify permissions, including SCC usage.

373
MCQmedium

A cluster administrator needs to inspect the current bindings and capacities of all PersistentVolumes across the entire OpenShift cluster. Which CLI command should be used?

A.oc get pvc --all-namespaces
B.oc get pv
C.oc describe storage
D.oc get volume
AnswerB

oc get pv displays all PersistentVolumes cluster-wide.

Why this answer

'oc get pv' lists all PersistentVolumes cluster-wide.

374
MCQmedium

During an S2I build, an administrator needs to pass sensitive build arguments, such as subscription keys, without hardcoding them into the BuildConfig or exposing them in the final image history. How should this be handled?

A.Storing them in an ImageStream annotation
B.Using build secrets mounted via the source secret or build strategy configuration
C.Defining them as plain environment variables in the BuildConfig spec
D.Injecting them via the Route host header
AnswerB

Build secrets can be securely mounted into the builder pod during the build process without being baked into the final image layers.

Why this answer

Secret mounting during builds allows referencing Kubernetes Secrets as build secrets that are available during the build process but not persisted in the output image layers.

375
MCQhard

A developer needs to expose a service via a route with re-encryption. What is required in the Route configuration?

A.Enable 'insecureEdgeTerminationPolicy: Allow'
B.Configure a ServiceMesh resource
C.Set 'termination: reencrypt' in the spec.tls section
D.Set 'termination: edge' and add a proxy
AnswerC

This enables re-encryption termination mode.

Why this answer

Re-encryption requires a termination configuration that specifies the certificate for the route and potentially the certificate for the destination service.

Page 4

Page 5 of 7

Page 6

All pages