Courseiva

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

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

Page 3

Page 4 of 7

Page 5
226
MCQhard

A production Deployment using the Rolling update strategy is failing its readiness probe during a rollout, causing the update to block and eventually time out. You need to inspect the reason for the rollout failure using the OpenShift CLI without deleting the failing pods immediately. Which oc command provides the most direct diagnostic information regarding the rollout status and blockage reason?

A.oc rollout status deployment/<deployment-name>
B.oc get events --sort-by='.metadata.creationTimestamp'
C.oc describe deployment <deployment-name>
D.oc debug deployment/<deployment-name>
AnswerA

'oc rollout status' reports the current status of the rollout and indicates why it is failing or waiting.

Why this answer

The 'oc rollout status' command monitors the progress of a deployment and provides direct feedback on why a rollout is blocked.

227
Multi-Selecteasy

Which THREE of the following are valid build strategies supported by OpenShift BuildConfigs? (Choose three.)

Select 3 answers
A.Jenkinsfile
B.Custom
C.Source
D.HelmBuild
E.Docker
AnswersB, C, E

The Custom strategy allows users to define a builder image that executes a custom build process.

Why this answer

OpenShift supports Source (S2I), Docker, Custom, and Pipeline build strategies.

228
MCQeasy

You need to create a new project named 'secure-store' with a specified display name and description, and assign 'jane' as the project admin using the OpenShift CLI. Which command should you execute?

A.oc new-project secure-store --display-name='Secure Store' --description='Secure storage project'
B.oc create projectsecure secure-store --user=jane
C.oc create namespace secure-store --admin=jane
D.oc adm project secure-store --set-admin=jane
AnswerA

The 'oc new-project' command provisions a project with optional display name and description flags.

Why this answer

The 'oc new-project' command creates a project and automatically assigns the creator as admin. To assign a specific user post-creation or manage project requests, specific commands are used, but 'oc adm new-project' does not exist; instead, 'oc adm create-project-request' or standard project requests are handled via 'oc new-project'. Alternatively, creating a Namespace and a RoleBinding is standard, but OpenShift provides the 'oc new-project' helper.

229
MCQeasy

Which command-line argument can you use to change the output format of 'oc get' to YAML?

A.-o yaml
B.--format yaml
C.--yaml
D.-f yaml
AnswerA

This correctly outputs the object in YAML format.

Why this answer

The -o (or --output) flag is used to specify the output format, such as yaml or json.

230
MCQeasy

Which command allows you to view the logs of a specific build?

A.oc get build
B.oc describe build
C.oc logs [pod-name]
D.oc logs build/[build-name]
AnswerD

This command retrieves the logs for the specified build.

Why this answer

The 'oc logs' command is used to stream the logs of a build pod or the build process itself.

231
MCQeasy

An administrator needs to create a Service of type ClusterIP that exposes an application running on port 8080 inside the container, mapping it to port 80 on the Service. Which command should the administrator use?

A.oc create service clusterip frontend --tcp=80:8080
B.oc create service clusterip frontend --port=80 --port=8080
C.oc expose deployment frontend --port=8080 --target-port=80
D.oc expose pod frontend --port=80 --target-port=8080 --type=ClusterIP
AnswerD

The expose command creates a service and properly sets the service port and container targetPort.

Why this answer

The oc expose service or oc create service command correctly maps the targetPort inside the container to the service port using the syntax --port=80 --target-port=8080.

232
Multi-Selectmedium

Which TWO methods can be used to populate data into a newly created PersistentVolumeClaim during provisioning?

Select 2 answers
A.Setting volumeMode to Populate in the PVC spec.
B.Mounting a container image registry directly via PVC metadata.
C.Referencing an existing PersistentVolumeClaim in the PVC dataSource field for cloning.
D.Referencing a VolumeSnapshot in the PVC dataSource field.
E.Specifying an emptyDir template in the PVC spec.
AnswersC, D

Volume cloning initializes the new PVC from an existing PVC.

Why this answer

PVCs can be populated using a VolumeSnapshot or another PersistentVolumeClaim (volume cloning) as a dataSource.

233
MCQmedium

An administrator needs to back up application data stored on an OpenShift PVC. Which object must be created to initiate the snapshot process via the CSI driver?

A.VolumeSnapshot
B.BackupCR
C.VolumeSnapshotContent
D.StorageSnapshot
AnswerA

VolumeSnapshot is the user-facing request object to snapshot a PVC.

Why this answer

A VolumeSnapshot object must be created, referencing the PVC, to initiate the snapshot.

234
MCQeasy

You need to allow a specific service account to run pods as root. Which command should you use to associate the 'privileged' SCC with the 'default' service account in the 'web-apps' namespace?

A.oc add scc privileged default -n web-apps
B.oc adm policy add-scc-to-user privileged -z default -n web-apps
C.oc apply scc privileged --user=default -n web-apps
D.oc patch scc privileged -p '{"users": ["default"]}'
AnswerB

This correctly grants the privileged SCC to the default service account in the specified namespace.

Why this answer

The 'oc adm policy add-scc-to-user' command is the standard way to grant an SCC to a service account.

235
MCQeasy

An administrator wants to view the public URL assigned to an existing Route named 'webapp'. Which oc command is best suited to extract only the host URL value?

A.oc get route webapp --show-url
B.oc describe route webapp --url
C.oc extract route/webapp --field=host
D.oc get route webapp -o jsonpath='{.spec.host}'
AnswerD

This jsonpath correctly targets the host field in the route specification.

Why this answer

Using jsonpath with the oc get command allows extracting specific fields like the host spec of a route directly.

236
MCQmedium

A system administrator needs to revoke the 'admin' role from user 'bob' in the 'finance' project without deleting the project or affecting other users. Which command should be used?

A.oc revoke role admin bob --namespace=finance
B.oc delete user bob -n finance
C.oc remove-user bob --project=finance
D.oc adm policy remove-role-from-user admin bob -n finance
AnswerD

This command removes the binding associating the 'admin' role with user 'bob' in the 'finance' namespace.

Why this answer

The 'oc adm policy remove-role-from-user' command removes a specific role from a user within a given namespace.

237
Multi-Selecthard

Which THREE items can be inspected using 'oc describe' when troubleshooting a failing storage attachment in OpenShift?

Select 3 answers
A.The cluster image registry configuration
B.The PersistentVolumeClaim (to check binding status and provisioner errors)
C.The Pod (to see scheduling or volume mount failure events)
D.The OAuth client credentials secret
E.The PersistentVolume (to verify node attachments and reclaim policies)
AnswersB, C, E

PVC describe shows claim phase and provisioning events.

Why this answer

Describing the Pod, PVC, and PV provides comprehensive event logs and status information regarding volume attachment failures.

238
MCQhard

A cluster administrator notices that a user 'bob' is unable to create new projects using the 'oc new-project' command, even though bob can view existing projects. What is the root cause and standard remediation?

A.bob needs an explicit RoleBinding for the 'admin' role in the default namespace
B.bob's user object is missing the 'project-creator' annotation
C.bob lacks the 'self-provisioner' cluster role, which can be granted via cluster-admin binding
D.bob must be added to the cluster-admin group in the oauth configuration
AnswerC

Correct. Project self-provisioning requires the self-provisioner cluster role to be bound to the user or authenticated group.

Why this answer

In OpenShift, self-provisioning of projects is controlled by a ClusterRoleBinding that binds the 'self-provisioner' ClusterRole to the 'system:authenticated:oauth' group. If this is removed or restricted, users cannot create projects.

239
MCQmedium

You are using Kustomize to manage environment-specific configurations. Which file must be present in the base directory to define resources?

A.base.yaml
B.overlay.yaml
C.kustomization.yaml
D.resources.yaml
AnswerC

Kustomize looks for this file to identify resources and patches.

Why this answer

The kustomization.yaml file is the configuration file that directs Kustomize on how to manage the resources.

240
Multi-Selecthard

Which THREE pieces of data can an ImageStream reference?

Select 3 answers
A.Internal registry image
B.Specific image tag
C.Git repository
D.External registry image
E.DeploymentConfig
AnswersA, B, D

Points to cluster-managed images.

Why this answer

An ImageStream can point to an external registry image, a local internal registry image, or a specific tag.

241
MCQhard

A developer requests a PersistentVolumeClaim using ReadWriteMany access mode. Which default storage type in a standard AWS ODF (OpenShift Data Foundation) deployment natively supports RWX?

A.openshift-storage.rbd.csi.ceph.com
B.gp2-csi.storage.k8s.io
C.ebs.csi.aws.com
D.openshift-storage.cephfs.csi.ceph.com
AnswerD

CephFS natively supports RWX access modes across pods and nodes.

Why this answer

CephFS, provided by OpenShift Data Foundation, supports ReadWriteMany (RWX) access modes, unlike standard AWS EBS CSI (which is RWO).

242
Multi-Selecteasy

Which TWO commands can an administrator use to check the overall status or health of core OpenShift 4.14 cluster operators? (Choose TWO)

Select 2 answers
A.oc get machinesets
B.oc get machineconfigpools
C.oc get csv --all-namespaces
D.oc get clusteroperators
E.oc get clusterversion
AnswersD, E

oc get clusteroperators lists all platform operators and their health conditions.

Why this answer

Administrators use 'oc get clusteroperators' and 'oc get clusterversion' to check core cluster operator health and upgrade status.

243
MCQeasy

Which command is used to switch the active project context to a namespace named 'staging' in the OpenShift CLI?

A.oc config set-namespace staging
B.oc project staging
C.oc use project staging
D.oc switch-context staging
AnswerB

Running 'oc project <namespace>' sets the current namespace context for subsequent 'oc' commands.

Why this answer

The 'oc project' command switches the active namespace context.

244
MCQhard

An administrator wants to verify which CSI driver plugins are registered and active in an OpenShift cluster. Which cluster-scoped resource should they query?

A.csidrivers.storage.k8s.io
B.volumesnapshotclasses.snapshot.storage.k8s.io
C.storageclasses.storage.k8s.io
D.csinodes.storage.k8s.io
AnswerA

CSIDriver resources represent registered CSI drivers in the Kubernetes cluster API.

Why this answer

CSIDriver custom resources list all CSI drivers installed and registered in the cluster.

245
Multi-Selecthard

An administrator is troubleshooting a failed OpenShift build. Which THREE resources or logs should the administrator check to diagnose the failure? (Choose three.)

Select 3 answers
A.The logs of the specific build pod using oc logs build/<build-name>
B.The cluster-wide storage class definitions
C.The BuildConfig object specification using oc get bc/<name> -o yaml
D.The default OAuth client secret
E.The namespace events using oc get events
AnswersA, C, E

Build logs show the exact output and failure point of the build execution.

Why this answer

To diagnose build failures, checking the BuildConfig definition, the specific Build object logs via oc logs build/<build-name>, and the events in the namespace provides comprehensive diagnostic data.

246
MCQeasy

Which command displays the current user identity and cluster context information for the logged-in OpenShift CLI session?

A.oc current-user
B.oc whoami
C.oc get identity --current
D.oc auth status
AnswerB

'oc whoami' returns the username of the currently logged-in user.

Why this answer

The 'oc whoami' command outputs the username of the currently authenticated CLI session.

247
Multi-Selecteasy

Which THREE commands can an administrator use to inspect existing routes in an OpenShift cluster? (Choose THREE)

Select 3 answers
A.oc get routes
B.oc explain route
C.oc top route
D.oc logs route/<route-name>
E.oc describe route <route-name>
AnswersA, B, E

oc get routes lists all routes in the current namespace.

Why this answer

oc get routes, oc describe route, and oc get route are standard commands. (oc explain route is also valid for documentation). Let's select get, describe, and explain.

248
MCQeasy

An administrator wants to pull container images from a private container registry that requires authentication for a specific deployment. Where must the image pull secret be referenced so that the deployment pods can successfully pull the image?

A.As an annotation on the cluster-scoped Namespace object
B.Inside the Route object spec under tls.imagePullSecret
C.In the Deployment configuration spec under template.spec.imagePullSecrets
D.As an environment variable named IMAGE_PULL_SECRET in the container specification
AnswerC

Specifying imagePullSecrets inside the pod template spec ensures pods created by the deployment use the credentials.

Why this answer

Image pull secrets can be specified directly in the pod spec under imagePullSecrets, or linked to the ServiceAccount used by the pod.

249
Multi-Selectmedium

When managing ImageStreams in OpenShift, which TWO tasks can an administrator perform using oc commands? (Choose two.)

Select 2 answers
A.Creating an alias or tag pointing one ImageStream tag to another using oc tag
B.Running unit tests against container image layers using oc test-image
C.Compiling raw source code into an executable binary using oc tag
D.Importing images from an external container registry into an ImageStream using oc import-image
E.Directly modifying kernel parameters on worker nodes via oc image
AnswersA, D

oc tag allows mapping tags between ImageStreams or external images.

Why this answer

Administrators can import image tags from external registries using oc import-image and tag images using oc tag.

250
MCQmedium

An administrator needs to perform a graceful maintenance reboot on a worker node named worker-01 in an OpenShift 4.14 cluster without causing application downtime for stateless deployments. Which combination of actions should the administrator perform first?

A.Apply a MachineConfig to the worker MachineConfigPool pausing the updates, then reboot the node.
B.Run 'oc adm cordon worker-01' followed by 'oc adm drain worker-01 --delete-emptydir-data --ignore-daemonsets'.
C.Stop the kubelet service on worker-01 via systemctl and reboot the underlying operating system.
D.Run 'oc delete node worker-01' directly to force the cluster control plane to automatically reschedule workloads.
AnswerB

Cordoning marks the node unschedulable, and draining safely evicts workloads respecting PodDisruptionBudgets.

Why this answer

To safely maintain a worker node, the administrator must first cordon the node to prevent new pod scheduling and then drain it to gracefully evict existing workloads with proper pod disruption budgets.

251
MCQhard

You have a Helm chart that requires custom values for different environments. Which flag allows you to pass a custom values file?

A.--override
B.--config
C.--set-file
D.--values
AnswerD

The --values (or -f) flag imports a YAML file into the chart's values context.

Why this answer

The '-f' or '--values' flag is used to specify a YAML file containing override values.

252
MCQhard

An administrator creates a new project request template that includes a custom RoleBinding. However, when users create new projects, the RoleBinding fails to bind because it references a ClusterRole that does not exist in the template namespace. How are ClusterRoles referenced in project templates resolved?

A.ClusterRoles must be defined inside the same project request template YAML file.
B.ClusterRoles must be created cluster-wide prior to template instantiation because RoleBindings within the template reference them.
C.Project request templates do not support RoleBindings; only ResourceQuotas are allowed.
D.The RoleBinding must use a Namespaced Role instead of a ClusterRole.
AnswerB

Since RoleBindings point to ClusterRoles by name, the referenced ClusterRole must already exist in the cluster before project creation instantiates the template.

Why this answer

ClusterRoles are cluster-scoped resources, so any RoleBinding inside a project request template can reference an existing ClusterRole (like 'admin', 'edit', or custom ClusterRoles) because ClusterRoles exist cluster-wide. Wait, if the error states the cluster role does not exist, what could be the issue? The ClusterRole must exist cluster-wide. If it does, the RoleBinding binds successfully.

If the question implies a custom ClusterRole must be created first before the template can reference it, that is the correct operational dependency.

253
Multi-Selecteasy

Which THREE of the following commands are valid OpenShift CLI commands for managing user policies and role assignments? (Choose THREE)

Select 3 answers
A.oc user modify-role
B.oc set policy-binding
C.oc adm policy add-role-to-user
D.oc adm policy remove-role-from-user
E.oc adm policy add-cluster-role-to-group
AnswersC, D, E

This command binds a role to a user within a project namespace.

Why this answer

Policy management commands in OpenShift include 'oc adm policy add-role-to-user', 'oc adm policy remove-role-from-user', and 'oc adm policy add-cluster-role-to-group'.

254
MCQhard

A worker node's root filesystem reaches 100% capacity due to accumulated container images and logs, causing the kubelet to enter an eviction state. After freeing up disk space on the node, the administrator notices the node status remains NotReady. What action is required to clear the kubelet's node pressure condition?

A.Restart the kubelet service on the affected node or reboot the node.
B.Run 'oc adm uncordon' on the node.
C.Delete and recreate the clusterversion resource.
D.Scale the machineconfigpool to zero and back.
AnswerA

Kubelet conditions can persist until the kubelet process re-evaluates node metrics or is restarted.

Why this answer

Once disk pressure is resolved and container images/logs are garbage-collected, restarting the kubelet service via systemctl restart kubelet inside an oc debug session or rebooting the node clears the disk pressure taint.

255
MCQeasy

An administrator wants to test network connectivity from a pod named 'app-pod-1' to a service port on 'backend-service' using TCP. Which tool is commonly available and ideal for testing TCP port connectivity inside a container?

A.ifconfig
B.traceroute
C.nc
D.ping
AnswerC

nc (netcat) is widely used in container images for testing TCP connectivity.

Why this answer

nc (netcat) or telnet or curl are commonly used tools, but nc/netcat is standard for raw TCP connectivity checks.

256
Multi-Selecthard

Which TWO of the following conditions must be met for a ServiceAccount from 'namespace-a' to successfully access API resources in 'namespace-b'? (Choose TWO)

Select 2 answers
A.The source namespace must disable its LimitRange objects.
B.An administrative override annotation must be placed on the target namespace.
C.A RoleBinding must exist in 'namespace-b' referencing the ServiceAccount as 'system:serviceaccount:namespace-a:sa-name'.
D.The ServiceAccount must be granted cluster-admin rights cluster-wide.
E.A Role or ClusterRole must grant the necessary API verb permissions.
AnswersC, E

The RoleBinding in the target namespace must explicitly target the service account using its full service account name format.

Why this answer

Cross-namespace access requires a RoleBinding in target 'namespace-b' granting permissions to the ServiceAccount from 'namespace-a', and the ServiceAccount must have permission to target that namespace.

257
MCQeasy

What is the primary function of a MachineSet in an OpenShift 4.14 cluster running on a cloud provider?

A.To load balance ingress traffic across worker nodes.
B.To ensure a specified number of identical machine instances are running and healthy.
C.To manage persistent volume claims across storage backends.
D.To group cluster nodes by operating system kernel version.
AnswerB

MachineSets manage groups of machines to maintain desired replica counts.

Why this answer

A MachineSet ensures that a specified number of machine replicas are running, acting similarly to a ReplicaSet for pods but for compute machines.

258
Multi-Selecthard

During etcd troubleshooting, an administrator suspects quorum loss or follower synchronization issues. Which THREE commands or etcdctl actions performed inside an etcd pod can verify etcd health and cluster state? (Choose THREE)

Select 3 answers
A.etcdctl snapshot restore
B.etcdctl defrag
C.etcdctl endpoint status
D.etcdctl member list
E.etcdctl endpoint health
AnswersC, D, E

Displays leader status, database size, and raft term/index numbers.

Why this answer

etcdctl endpoint health, etcdctl endpoint status, and checking member lists via etcdctl member list are standard etcd diagnostic commands.

259
MCQhard

You need to perform a canary deployment by shifting traffic between two versions of your app. What is the standard way to accomplish this in OpenShift without using a Service Mesh?

A.Create two separate Routes
B.Modify the Deployment strategy
C.Use the 'oc scale' command
D.Use Route weights
AnswerD

OpenShift Routes support splitting traffic between services using weight parameters.

Why this answer

By adjusting the weights of the 'alternate backends' in a Route, you can control traffic splitting.

260
MCQhard

An administrator observes that pods in a specific namespace are unable to resolve external domain names (e.g., www.redhat.com) while internal service resolution works perfectly. What is the most likely cause of this issue in CoreDNS configuration?

A.The API server service is missing endpoint IPs.
B.NodePort range exhaustion prevents external DNS packets from traversing worker nodes.
C.The cluster ingress controller is blocking external UDP port 53.
D.The Corefile in the cluster DNS operator configuration has incorrect or missing forward plugins for external resolvers.
AnswerD

External resolution depends on CoreDNS forwarding; if forwarders are misconfigured, external lookups fail.

Why this answer

CoreDNS forwards external queries to upstream forwarders (like corporate DNS or public resolvers). If the forwarding block in the Corefile is misconfigured, external resolution fails.

261
MCQmedium

An administrator needs to check the status of all MachineSets in an OpenShift 4.14 cluster to see how many worker machines are currently provisioned and running. Which command should be used?

A.oc adm get machines
B.oc get cluster-infrastructure
C.oc get machineconfigpools
D.oc get machinesets -A (or within openshift-machine-api)
AnswerD

MachineSets are namespaced (typically in openshift-machine-api), and 'oc get machinesets' shows their replica status.

Why this answer

The 'oc get machinesets' command lists all MachineSets along with their desired, current, and ready replica counts.

262
Multi-Selectmedium

An administrator needs to create a new OpenShift build using a BuildConfig. Which TWO build strategies are natively supported out-of-the-box by OpenShift? (Choose two.)

Select 2 answers
A.Source (S2I)
B.Ansible
C.Knative
D.Helm
E.Docker
AnswersA, E

Source-to-Image is a core native OpenShift build strategy.

Why this answer

OpenShift natively supports Source (S2I), Docker, Custom, and Pipeline build strategies.

263
Multi-Selecthard

An OpenShift cluster node is reporting High CPU and Memory pressure. Which THREE commands or tools can an administrator use to investigate resource bottlenecks on that node? (Choose THREE)

Select 3 answers
A.oc describe node <node-name>
B.oc adm top nodes
C.oc get events --namespace=default
D.oc logs deployment/cluster-version-operator
E.oc debug node/<node-name> -- chroot /host top
AnswersA, B, E

Displays resource allocation totals, requests, limits, and node conditions like MemoryPressure.

Why this answer

oc adm top nodes, oc describe node, and running top within an oc debug session on the node provide comprehensive insight into node resource consumption.

264
MCQmedium

An application team reports that their application cannot connect to an external database due to a firewall blocking port 3306. The administrator wants to test network connectivity from inside a running application pod to the external database host. Which tool can they run using 'oc exec'?

A.oc network test db.example.com 3306
B.oc exec <pod-name> -- nc -zv db.example.com 3306
C.oc adm port-forward pod/<pod-name> 3306:3306
D.oc debug pod/<pod-name> -- test-connection
AnswerB

Netcat (nc) executed via oc exec is a standard tool to test TCP port connectivity from a pod.

Why this answer

Running nc (netcat), telnet, or curl inside the running container via oc exec tests TCP socket connectivity to external endpoints.

265
MCQhard

An administrator wants to configure a NetworkPolicy that allows incoming traffic only from pods with the label 'role=frontend' residing in any namespace, provided those namespaces have the label 'environment=production'. How should the namespaceSelector and podSelector be combined?

A.By referencing an external ClusterRole binding with label selectors
B.In the same ingress 'from' array item, combining namespaceSelector and podSelector
C.Using a peerSelector object that nests both labels
D.In separate ingress rules, where one rule has namespaceSelector and another has podSelector
AnswerB

Placing both selectors inside the same 'from' array element creates a logical AND condition.

Why this answer

A single ingress rule in a NetworkPolicy can contain both a namespaceSelector and a podSelector within the same 'from' array element to target specific pods in specific namespaces.

266
MCQmedium

A cluster administrator needs to ensure that a specific PVC can only bind to a pre-allocated PersistentVolume. How can this binding relationship be strictly enforced?

A.Apply matching labels and set volumeBindingMode to Strict.
B.Set allowVolumeExpansion to false on the PV.
C.Annotate the PVC with 'volume.kubernetes.io/target-pv'.
D.Specify the exact PV name in the spec.volumeName field of the PVC.
AnswerD

spec.volumeName hardcodes the binding target to a specific PV.

Why this answer

Setting 'volumeName' in the PVC specification forces the claim to bind exclusively to the PersistentVolume with that exact name.

267
MCQhard

An administrator wants to use raw block storage (Block Volume Mode) rather than a mounted filesystem for a high-performance database running on OpenShift. How should the volume mode be specified in the PersistentVolumeClaim?

A.mountOptions: [ "raw" ]
B.accessMode: RawBlock
C.storageType: Unformatted
D.volumeMode: Block
AnswerD

This setting provisions a raw block device accessible as a device plugin in the pod.

Why this answer

Setting 'volumeMode: Block' in the PVC spec instructs the provisioner to supply a raw block device rather than formatting it with a filesystem.

268
Multi-Selecthard

Which THREE restrictions or behaviors are enforced by the default restricted-v2 Security Context Constraint in OpenShift Container Platform?

Select 3 answers
A.Containers are prohibited from running with privileged mode enabled.
B.Containers are allowed to mount host network, host IPC, and host PID namespaces.
C.Containers must drop all capabilities, though NET_BIND_SERVICE may be added back.
D.Pods are automatically assigned a random UID from the namespace's pre-allocated UID range.
E.Containers cannot run as the root user (UID 0).
AnswersA, C, E

Privileged containers are strictly forbidden by restricted-v2.

Why this answer

The restricted-v2 SCC enforces strict security best practices, including disallowing running as root, forbidding privileged containers, and requiring the drop of all capabilities except NET_BIND_SERVICE.

269
MCQmedium

An application pod is failing to write data because its mounted PersistentVolume is mounted as ReadOnly. The administrator checks the PVC definition and sees accessMode is set correctly to ReadWriteOnce. What is the most likely cause of the read-only mount?

A.The ServiceAccount lacks storage-admin permissions.
B.The namespace quota restricts write operations.
C.The pod security standard blocked write permissions.
D.The storage backend experienced an I/O error and remounted the block device as read-only.
AnswerD

Storage controllers often enforce read-only remounts on underlying disks upon detecting hardware or filesystem corruption.

Why this answer

Underlying storage infrastructure or CSI drivers can remount volumes as read-only when I/O errors occur or when filesystem corruption is detected on the block device.

270
MCQhard

An administrator has created a custom SCC named restricted-custom. During testing, pods using this SCC still fail because they are assigned the non-root UID range automatically, but the application container requires writing to a specific directory owned by UID 1000. How should the administrator configure the SCC to ensure the container runs consistently as UID 1000?

A.Set runAsUser.type to RunAsAny and add securityContext.runAsUser: 1000 in the pod spec
B.Configure fsGroup.type to MustRunAs with uid: 1000
C.Set privileged: true and map the container user via supplementalGroups
D.Set runAsUser.type to MustRunAs and specify uid: 1000 in the uidRange
AnswerD

Setting runAsUser.type to MustRunAs with the appropriate UID ensures the container always runs as the specified user ID.

Why this answer

To force a specific UID execution, the runAsUser strategy must be set to MustRunAs with a uidRange specifying UID 1000.

271
MCQmedium

An administrator needs to temporarily prevent the Machine Config Operator from applying pending MachineConfig changes to the worker nodes while performing troubleshooting. How should the administrator accomplish this?

A.Patch the worker MachineConfigPool to set 'spec.paused: true'.
B.Delete all pending MachineConfig objects from the cluster.
C.Scale down the machine-config-operator deployment in openshift-machine-config-operator to zero replicas.
D.Annotate all worker nodes with 'machineconfiguration.openshift.io/paused=true'.
AnswerA

Setting paused to true on a MachineConfigPool stops the MCO from rolling out new configurations to that pool.

Why this answer

To pause updates on a set of nodes, the administrator can set the 'paused: true' field on the corresponding MachineConfigPool resource.

272
Multi-Selectmedium

Which TWO conditions will prevent a pod from successfully mounting a PersistentVolumeClaim?

Select 2 answers
A.The pod is running in the default project.
B.The PVC is in a Pending state because it failed to bind or provision.
C.The volume is already attached to another node and cannot be multi-attached (RWO constraint).
D.The StorageClass has allowVolumeExpansion set to true.
E.The pod namespace has excess CPU limits.
AnswersB, C

An unbound PVC cannot be mounted by a pod.

Why this answer

Mismatched access modes and failure of the CSI driver to attach the volume to the node will prevent pod mounting.

273
MCQmedium

A cluster administrator needs to prevent users from accidentally deleting a VolumeSnapshot while associated PVC restores or clones depend on it. What protection mechanism is active by default in OpenShift?

A.OCP Storage Mutating Webhooks
B.VolumeSnapshot Content Protection finalizers
C.etcd Object Lock
D.StorageClass Retain Policy
AnswerB

Finalizers on VolumeSnapshot and VolumeSnapshotContent prevent premature deletion.

Why this answer

Kubernetes and OpenShift incorporate finalizers on VolumeSnapshot objects to prevent deletion while downstream references or dependent objects exist.

274
Multi-Selecthard

Which TWO actions are necessary when migrating from Htpasswd to OIDC?

Select 2 answers
A.Restart the kube-apiserver
B.Update the OAuth cluster resource
C.Rebuild all container images
D.Delete all existing secrets
E.Define the new identity provider in the OAuth configuration
AnswersB, E

The configuration must reflect the new provider.

Why this answer

Migration involves updating the OAuth configuration and potentially mapping existing identities.

275
MCQeasy

Which command displays the SCCs currently assigned to a specific service account?

A.oc auth can-i -list
B.oc describe sa <sa-name>
C.oc get scc
D.oc adm policy who-can use scc
AnswerD

This command identifies who can use specific SCCs.

Why this answer

Describing the service account shows the security context constraints it can access.

276
MCQhard

The cluster monitoring stack is failing because Prometheus pods in the openshift-monitoring namespace are crashing due to disk space exhaustion on the Prometheus PersistentVolume. How can the administrator inspect the current disk usage inside the Prometheus container?

A.oc exec -n openshift-monitoring prometheus-k8s-0 -c prometheus -- df -h
B.oc debug node/<node-name> -- df -h
C.oc logs -n openshift-monitoring deployment/prometheus-adapter
D.oc adm top volume
AnswerA

Executing df -h directly inside the Prometheus container reveals persistent storage exhaustion.

Why this answer

Using oc exec to run df -h inside the Prometheus container allows checking mount point disk space utilization.

277
MCQmedium

An administrator wants to verify if the OpenShift cluster upgrade to version 4.14 has successfully completed for all core components. Which status field in the ClusterVersion resource should show 'True' for the progressing and available conditions?

A.Completed=True and Ready=True
B.Available=True and Progressing=False
C.Available=False and Progressing=True
D.Upgraded=True and Finished=True
AnswerB

When an upgrade completes successfully, Available is True, Progressing is False, and failing is False.

Why this answer

During a successful cluster upgrade, the 'Available' condition is True and the 'Progressing' condition becomes False once completed.

278
MCQhard

An OpenShift cluster integrates with an LDAP server where user attribute names differ from default settings (e.g., mail instead of preferredUsername). Where are these LDAP attribute mappings configured?

A.In the kube-apiserver ConfigMap under LDAP settings
B.In the GroupSync CRD resource settings
C.In the LDAP identity provider specification under the 'attributes' mapping fields
D.In the project request template annotations
AnswerC

The attributes block in the LDAP IDP configuration maps LDAP directory attributes to OpenShift user record fields.

Why this answer

LDAP identity provider configuration in the cluster OAuth resource includes an 'mappingMethod' and attribute mapping fields (like id, preferredUsername, name, email).

279
MCQhard

An administrator needs to configure an egress IP for a specific namespace in an OVN-Kubernetes enabled OpenShift cluster so that all egress traffic originating from that namespace appears to come from a specific dedicated external IP. How is this configured?

A.Modify the egressrouter pod template in the openshift-infra namespace.
B.Configure a SNAT rule inside the default NodePort service definition.
C.Create an EgressIP custom resource specifying the target namespace and the designated egress IP address.
D.Add an egress annotation directly to the namespace metadata named 'openshift.io/origin-egress-ip'.
AnswerC

The EgressIP custom resource is the native way to assign dedicated egress IPs to selected namespaces in OVN-Kubernetes.

Why this answer

In OVN-Kubernetes, egress IPs are configured by applying an EgressIP object and setting the egressIPs field alongside namespace selector criteria.

280
Multi-Selectmedium

Which TWO of the following statements regarding OpenShift Projects and Namespaces are correct? (Choose TWO)

Select 2 answers
A.A single namespace can contain multiple distinct OpenShift projects.
B.Namespaces created via 'oc create namespace' automatically instantiate project request templates.
C.Every Project in OpenShift has a corresponding underlying Kubernetes Namespace.
D.Projects can be nested hierarchically within other projects.
E.A Project is a Kubernetes Namespace with additional OpenShift annotations and management capabilities.
AnswersC, E

Projects and namespaces are inter-operable; every project is backed by a Kubernetes namespace.

Why this answer

Projects are supersets of Kubernetes namespaces with additional OpenShift-specific annotations and access control templates, and they map 1:1 to namespaces.

281
Multi-Selecteasy

Which TWO methods can an administrator use to view the nodes currently present in an OpenShift 4.14 cluster along with their roles and versions? (Choose TWO)

Select 2 answers
A.oc describe node <node-name>
B.oc get nodes
C.oc cluster-version nodes
D.oc get machineconfigpools --nodes
E.oc get clusteroperators --nodes
AnswersA, B

oc describe node provides detailed hardware, conditions, and capacity info.

Why this answer

Administrators use 'oc get nodes' and 'oc describe node' to inspect node inventory and details.

282
Multi-Selecthard

Which THREE things can you configure in a BuildConfig?

Select 3 answers
A.Build Strategy
B.Source Code Reference
C.Replicas
D.Triggers
E.Route settings
AnswersA, B, D

Defines how the image is built.

Why this answer

BuildConfig allows configuration of triggers, strategies, and source references.

283
MCQmedium

An OpenShift cluster uses an external identity provider (IdP). A user named 'alex@example.com' has successfully logged in via the web console. You need to verify which groups this user belongs to from the command line as an administrator. Which command provides this information?

A.oc auth can-i --list --user=alex@example.com
B.oc get groups --user=alex@example.com
C.oc get identity alex@example.com
D.oc describe user alex@example.com
AnswerD

Describing the user resource reveals their UID, identities, and associated group memberships.

Why this answer

The 'oc describe user alex@example.com' command displays the user object details, including identities and groups associated with the user.

284
MCQmedium

A cluster uses OVN-Kubernetes as its CNI network provider. An administrator needs to inspect the logical switches and routers created by OVN within a node. Which command-line tool inside the ovn-node pod should be used?

A.ip route show
B.iptables-save
C.ovn-nbctl
D.ovs-vsctl
AnswerC

ovn-nbctl queries the OVN northbound database to inspect logical networking constructs.

Why this answer

ovn-nbctl is the Open Virtual Network Northbound CLI utility used to inspect logical entities like switches, routers, and ports.

285
MCQmedium

A container needs to run as a specific non-root UID. Which SCC field configuration is needed?

A.runAsUser: MustRunAsRange
B.runAsUser: RunAsAny
C.runAsUser: MustRunAs, uid: 1000
D.runAsUser: None
AnswerC

This forces the container to run with the specified UID.

Why this answer

The 'runAsUser' strategy must be set to 'MustRunAs' with a specific UID range defined.

286
MCQmedium

An administrator notices that pods on different worker nodes cannot communicate with each other. Upon checking the cluster network operator, it appears the MTU settings between the underlying physical network and the cluster overlay network mismatch. Which OpenShift command checks the cluster network operator status?

A.oc get cni cluster
B.oc describe networkconfig
C.oc get nodes --show-mtu
D.oc get clusteroperator network
AnswerD

oc get clusteroperator network displays the health, availability, and progress of the network operator.

Why this answer

The ClusterNetworkOperator status can be verified by inspecting the operator resource cluster/network.

287
MCQhard

You are configuring an OAuth identity provider using 'htpasswd'. Which secret must contain the file?

A.A secret in 'openshift-config'
B.A ConfigMap in 'openshift-config'
C.A local file on the master node
D.A secret in 'openshift-authentication'
AnswerA

This is the required location for the OAuth configuration secret.

Why this answer

The htpasswd file must be stored in a secret in the 'openshift-config' namespace.

288
MCQhard

An administrator needs to configure a BuildConfig so that whenever a new image is pushed to a dependent ImageStream tag, a new build is automatically triggered. Which trigger type must be added to the BuildConfig?

A.Webhook
B.Periodic
C.ImageChange
D.ConfigChange
AnswerC

ImageChange triggers a build whenever the referenced ImageStream tag is updated.

Why this answer

An ImageChange build trigger automatically starts a new build when the referenced ImageStream tag changes.

289
Multi-Selectmedium

An administrator wants to modify the default kubelet parameters (such as maximum pods per core or eviction hard thresholds) across worker nodes. Which TWO steps or resources are involved in this process? (Choose TWO)

Select 2 answers
A.Create a KubeletConfig custom resource defining the desired kubelet parameters.
B.Directly edit the kubelet.conf file on every node via SSH.
C.Restart the kubelet service manually on all nodes using systemctl.
D.Modify the ClusterVersion spec to include kubelet flags.
E.Configure the machineConfigPoolSelector in the KubeletConfig to target the worker pool.
AnswersA, E

KubeletConfig is the custom resource used to modify kubelet settings.

Why this answer

Kubelet configuration changes involve creating a KubeletConfig resource and ensuring its selector targets the correct MachineConfigPool.

290
Multi-Selectmedium

Which THREE actions can be performed using the IngressController custom resource? (Choose THREE)

Select 3 answers
A.Modifying the core Kubernetes API server port.
B.Defining the container security context constraints for worker nodes.
C.Scaling the number of router replicas.
D.Setting the endpoint publishing strategy (e.g., LoadBalancer, HostNetwork).
E.Configuring a default wildcard TLS certificate for routes.
AnswersC, D, E

The replicas field in IngressController controls router scaling.

Why this answer

IngressController allows configuring replica counts, setting default TLS certificates, and choosing endpoint publishing strategies.

291
MCQeasy

An administrator wants to view the last 50 lines of logs for a pod named 'api-server-xyz' and keep the stream open for new log entries. Which command should they use?

A.oc logs api-server-xyz --tail=50 -f
B.oc describe pod api-server-xyz --lines=50
C.oc logs api-server-xyz --lines=50 --follow
D.oc tail api-server-xyz -n 50
AnswerA

--tail=50 restricts initial output to the last 50 lines, and -f follows the log stream.

Why this answer

Combining --tail=50 and -f in the oc logs command shows the last 50 lines and then tails new log output.

292
MCQhard

A security engineer needs to configure the cluster-wide OAuth identity provider to use an existing LDAP server. The administrator creates an LDAP identity provider object in the cluster OAuth configuration resource (cluster). Which configuration property specifies the attribute mapping to map the LDAP entry's unique identifier to the OpenShift user name?

A.mappingMethod: lookup with attributes.id set to the unique attribute like uid or sAMAccountName.
B.url specifying the bind DN and attributes.username set to cn.
C.identityProviders.ldap.mapping.rules pointing to a ConfigMap containing user maps.
D.bindPassword referencing a Secret containing the attribute translation matrix.
AnswerA

attributes.id defines the attribute used to uniquely identify the user in OpenShift.

Why this answer

The LDAP identity provider configuration requires defining attribute mapping fields such as id, preferredUsername, name, and email. The id field maps the unique LDAP attribute to the OpenShift username.

293
MCQhard

You are hardening a cluster. Which Pod Security Standard level is the default in OpenShift 4.14 for new projects?

A.restricted
B.baseline
C.privileged
D.enforce
AnswerA

The restricted profile is the default baseline for OpenShift projects.

Why this answer

OpenShift 4.14 uses the 'restricted' SCC by default, which aligns with the Pod Security Standard 'restricted' profile.

294
Multi-Selectmedium

Which THREE of the following components are part of the standard OpenShift Ingress architecture? (Choose THREE)

Select 3 answers
A.IngressController Custom Resource
B.HAProxy-based router pods
C.ClusterNetwork operator
D.Ingress Operator
E.EgressFirewall controller
AnswersA, B, D

IngressController objects configure and manage router deployments.

Why this answer

The Ingress operator, router pods (HAProxy-based), and IngressController custom resources form the core OpenShift Ingress stack.

295
Multi-Selectmedium

An administrator wants to configure automated remediation for worker nodes that become unresponsive or experience hardware failure. Which TWO configurations or resources are required for a MachineHealthCheck to function properly? (Choose TWO)

Select 2 answers
A.A replica count specifying how many remediation pods to run.
B.Unhealthy conditions specifying the node status condition and timeout duration.
C.Match labels pointing to the target MachineSet or machine pool.
D.A ContainerRuntimeConfig specifying reboot parameters.
E.An OperatorGroup defining the namespace for the health check.
AnswersB, C

Defines what constitutes failure (e.g., NotReady for 5 minutes) before remediation triggers.

Why this answer

MachineHealthCheck requires target selectors (matchLabels) and node condition timeout definitions (unhealthyConditions).

296
Multi-Selecteasy

Which TWO tools or protocols can an administrator use to verify internal cluster DNS resolution from a pod? (Choose TWO)

Select 2 answers
A.ping
B.nslookup
C.ifconfig
D.top
E.dig
AnswersB, E

nslookup is commonly used for DNS troubleshooting.

Why this answer

nslookup and dig are standard tools for DNS queries.

297
MCQmedium

An administrator notices that a worker node is in a 'NotReady' state due to a storage failure. The administrator successfully replaces the underlying physical machine and wants to clear the old node object from the OpenShift 4.14 cluster. Which command should be used?

A.oc adm cordon worker-old --purge
B.oc patch machine worker-old --type=merge -p '{"spec":{"deleted":true}}'
C.oc remove node-status worker-old
D.oc delete node worker-old
AnswerD

Deleting the node object removes it from the Kubernetes API server inventory.

Why this answer

Once a node is drained or permanently offline, the administrator can delete the node resource using 'oc delete node <node-name>'.

298
MCQeasy

You want to trigger a new build automatically whenever the base image in an ImageStream changes. What must be enabled in the BuildConfig?

A.Continuous Deployment trigger
B.WebHook trigger
C.ConfigChange trigger
D.ImageChange trigger
AnswerD

The ImageChange trigger watches the ImageStream and initiates a build on updates.

Why this answer

An ImageChange trigger allows the BuildConfig to react to changes in a specific ImageStreamTag.

299
MCQhard

An administrator needs to ensure that no pod in the 'secure-zone' namespace can run with root privileges or use host networking. Which mechanism natively enforces this across all pods in the namespace?

A.Setting container securityContext in every deployment manually
B.Assigning a restrictive SecurityContextConstraints (SCC) policy to the service accounts running the pods
C.Configuring a NetworkPolicy to block root network namespaces
D.ResourceQuota limits on security capabilities
AnswerB

SCCs enforce constraints on runAsUser, hostNetwork, capabilities, and privileged flags.

Why this answer

SecurityContextConstraints (SCCs) control pod security attributes. By assigning a restrictive SCC (like 'restricted') to the service accounts in the namespace, root execution and host networking are prevented.

300
Multi-Selecthard

An administrator is planning an OpenShift 4.14 cluster upgrade and wants to ensure that specific safety checks and conditions are met before proceeding. Which THREE conditions must be true for an upgrade to proceed smoothly? (Choose THREE)

Select 3 answers
A.All MachineConfigPools must be fully updated and not in a degraded state.
B.The cluster must be switched to the 'nightly' channel for all production upgrades.
C.All user-created namespaces must be temporarily deleted prior to upgrade.
D.The target version must be part of a valid, recommended update path from the current version.
E.All core cluster operators must report healthy status without being degraded.
AnswersA, D, E

Degraded node pools can prevent rolling out cluster-wide payload updates.

Why this answer

Cluster version updates require healthy operators (not degraded), available storage/compute resources, and a valid update path.

Page 3

Page 4 of 7

Page 5

All pages