Courseiva

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

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

Page 2

Page 3 of 7

Page 4
151
MCQmedium

How do you view the history of deployments for a DeploymentConfig?

A.oc rollout history
B.oc show history
C.oc describe dc
D.oc get history
AnswerA

This displays the history of rollout revisions.

Why this answer

The 'oc rollout history' command lists the revisions of a deployment.

152
MCQmedium

You want to ensure that all pods in a namespace are denied access to the host network. Which policy mechanism is most effective for this?

A.Configure the IngressController
B.Use a NetworkPolicy
C.Configure an SCC with 'hostNetwork: false'
D.Use an ImagePolicyWebhook
AnswerC

Setting 'hostNetwork: false' in an SCC prevents pods from using the host's network namespace.

Why this answer

SCCs control host networking capabilities. Editing the SCC bound to the service account or creating a restricted custom SCC is the way to enforce this.

153
MCQmedium

A cluster administrator wants to restrict a specific storage class so that only members of a designated OpenShift project can create PVCs referencing it. How is this typically enforced in OpenShift?

A.By assigning RBAC RoleBindings to the StorageClass object directly.
B.By setting accessMode: Restricted in the StorageClass metadata.
C.Using admission control policies or validation webhooks to restrict StorageClass usage by namespace.
D.By adding a namespaces array directly in the StorageClass spec.
AnswerC

StorageClasses are cluster-scoped and accessible to all namespaces by default; restriction requires admission webhooks or policy engines.

Why this answer

StorageClasses themselves do not have native namespace RBAC, but admission webhooks or project-level naming conventions combined with ValidatingWebhookConfigurations or ResourceQuotas can restrict usage. Wait, standard OpenShift does not restrict StorageClasses per project natively without admission control or OPA/Gatekeeper, but let's look at the standard approach: OpenShift allows restricting via cluster resource RBAC or custom admission webhooks. Let's verify standard answer: cluster administrators control access via StorageClass availability and default settings, or admission policies.

154
MCQmedium

What happens if a pod does not match any SCC?

A.The pod runs with no constraints
B.The pod is rejected
C.The pod is assigned the 'restricted' SCC by default
D.The pod is assigned the 'privileged' SCC
AnswerB

Admission control fails if no SCC can be assigned.

Why this answer

If no SCC matches the pod's security context, the pod creation request is rejected by the admission controller.

155
MCQhard

An administrator has successfully installed an Operator via OperatorHub, but the Operator's CSV (ClusterServiceVersion) status is stuck at 'Pending'. Upon investigating, the administrator discovers that the required CustomResourceDefinitions (CRDs) have conflicting versions with a previously deleted Operator. How can the administrator forcefully clean up orphaned CRDs if OLM fails to remove them?

A.Run 'oc adm prune crds --force' to automatically purge all stuck custom resources.
B.Edit the CRD definition and remove any lingering finalizers in 'metadata.finalizers' to allow deletion.
C.Restart the kube-apiserver pods to bypass CRD validation checks.
D.Delete the openshift-operator-lifecycle-manager namespace to reset all CRDs.
AnswerB

Finalizers often block deletion of CRDs if controllers are missing; removing finalizers lets Kubernetes complete deletion.

Why this answer

Orphaned or stuck CRDs can be edited to remove finalizers (metadata.finalizers) so Kubernetes can successfully delete them.

156
MCQeasy

Which resource in OpenShift acts as an abstraction over a set of images to provide a stable reference?

A.DeploymentConfig
B.BuildConfig
C.Route
D.ImageStream
AnswerD

ImageStreams provide a stable reference to images.

Why this answer

An ImageStream creates a single virtual view of an image, even if the underlying image tag changes.

157
MCQmedium

You want to prevent a specific pod from being scheduled on nodes that are already running other pods of the same application. What should you configure?

A.Pod anti-affinity
B.Tolerations
C.Node selector
D.Resource quotas
AnswerA

Anti-affinity rules prevent pods from landing on nodes with specific labels or existing pods.

Why this answer

Pod anti-affinity allows you to specify rules to keep pods of the same application apart.

158
MCQmedium

A pod fails to start with a 'CreateContainerConfigError' error message. What is the most common cause of this error that an administrator should investigate?

A.The liveness probe timed out before the application started.
B.The container image pull policy is set to Always and the registry is down.
C.A referenced ConfigMap or Secret in the pod specification does not exist.
D.The container exceeded its memory limit upon initialization.
AnswerC

Missing configuration dependencies like ConfigMaps or Secrets prevent container configuration creation.

Why this answer

CreateContainerConfigError typically occurs when a referenced ConfigMap or Secret does not exist or is misspelled in the pod specification.

159
MCQeasy

An administrator needs to list all Services across all namespaces in the OpenShift cluster. Which command should be used?

A.oc get services --cluster
B.oc get svc -A
C.oc describe service --all
D.oc adm top services
AnswerB

The -A flag is shorthand for --all-namespaces, displaying services cluster-wide.

Why this answer

The --all-namespaces or -A flag with oc get services lists services across every namespace.

160
Multi-Selecthard

An administrator needs to troubleshoot an image pull failure caused by missing credentials. Which TWO locations or methods can be used to associate an image pull secret with a workload in OpenShift? (Choose TWO)

Select 2 answers
A.Defining the secret inside the cluster Ingress controller custom resource spec
B.Placing the pull secret in the global openshift-config ConfigMap
C.Annotating the Namespace with openshift.io/image-pull-secret-ref
D.Linking the image pull secret to the ServiceAccount referenced by the deployment's pod spec via oc secrets link
E.Adding the secret to the imagePullSecrets array within the pod template specification of a Deployment
AnswersD, E

Linking a secret to a ServiceAccount automatically populates imagePullSecrets for any pods using that ServiceAccount.

Why this answer

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

161
MCQmedium

An administrator needs to test internal cluster DNS resolution from a temporary troubleshooting pod. Which command creates a temporary pod with the 'dig' utility installed for DNS debugging?

A.oc test dns --cluster
B.oc run dns-test --rm -it --image=registry.redhat.io/rhel9/support-tools --command -- bash
C.oc adm diagnose network-dns
D.oc debug node/worker-1 --image=registry.redhat.io/rhel9/support-tools:latest
AnswerB

This command spins up a temporary interactive container using a support image equipped with DNS diagnostic tools.

Why this answer

The 'oc debug' command or running a temporary debug pod using 'oc run' with an image containing DNS tools (like utils or busybox) is standard. Specifically, 'oc run' with an interactive shell or debug container provides access.

162
Multi-Selecthard

Which TWO statements are true regarding OpenShift Services of type LoadBalancer? (Choose TWO)

Select 2 answers
A.They interact with cloud provider APIs or MetalLB to provision an external IP address.
B.They are restricted to internal cluster communication only.
C.They replace the need for Ingress controllers completely.
D.They can only be created when running on bare-metal hardware without external integrations.
E.They automatically allocate a NodePort on every worker node to route traffic into the cluster.
AnswersA, E

External load balancers require cloud controllers or MetalLB to assign the external IP.

Why this answer

LoadBalancer services provision external load balancers via cloud provider integrations and automatically program NodePort mappings underneath.

163
Multi-Selecthard

Which THREE of the following mechanisms can be used to automatically trigger a new build in an OpenShift BuildConfig? (Choose three.)

Select 3 answers
A.Route health-check trigger
B.ImageChange trigger
C.CronJob schedule trigger
D.Webhook trigger (GitHub or Generic)
E.ConfigChange trigger
AnswersB, D, E

An ImageChange trigger initiates a build whenever the referenced ImageStreamTag changes.

Why this answer

BuildConfigs support webhook triggers (GitHub, Generic), image change triggers (when a base image updates), and configuration change triggers (when the BuildConfig itself changes).

164
MCQhard

An administrator needs to prevent developers from consuming more than 10 CPU cores and 40Gi of memory collectively across all pods running in the 'production' namespace. Which object satisfies this requirement?

A.ClusterResourceQuota
B.ResourceQuota
C.PodDisruptionBudget
D.LimitRange
AnswerB

ResourceQuotas constrain aggregate resource consumption across all pods and objects within a namespace.

Why this answer

A ResourceQuota object sets hard resource consumption limits (such as limits.cpu and limits.memory) enforced per namespace.

165
MCQmedium

An administrator receives an alert that the Cluster Monitoring Operator is degraded because Prometheus cannot scrape metrics from a custom application namespace. Where should the administrator check to verify the ServiceMonitor configuration targeting the application?

A.oc describe clusteroperator monitoring
B.oc logs deployment/prometheus-k8s
C.oc get servicemonitor -n <app-namespace>
D.oc get prometheus-rules
AnswerC

Checking the ServiceMonitor resource confirms correct label selectors and endpoint configurations for Prometheus scraping.

Why this answer

ServiceMonitor custom resources define how Prometheus scrapes application endpoints, and checking their status or YAML spec is essential.

166
Multi-Selecteasy

Which TWO of the following tasks can a user with the default OpenShift 'admin' role perform within their project? (Choose TWO)

Select 2 answers
A.Create, modify, and delete workloads and services within the project.
B.Modify cluster-wide ClusterRoles and ClusterRoleBindings.
C.Create and modify Roles and RoleBindings within the project.
D.Create new projects cluster-wide without restrictions.
E.Modify global SecurityContextConstraints.
AnswersA, C

Admins have full CRUD access to application workloads in their namespace.

Why this answer

The 'admin' role permits managing project resources as well as creating and modifying Roles and RoleBindings within the project.

167
Multi-Selectmedium

Which THREE of the following objects can be used to enforce resource governance and consumption limits within an OpenShift project? (Choose THREE)

Select 3 answers
A.SecurityContextConstraints
B.LimitRange
C.NetworkPolicy
D.ResourceQuota
E.ClusterResourceQuota
AnswersB, D, E

LimitRanges enforce minimum, maximum, and default container resource constraints within a namespace.

Why this answer

Resource quotas, limit ranges, and cluster resource quotas are core mechanisms for managing resource constraints in OpenShift.

168
MCQhard

An OpenShift administrator needs to inspect how OVN-Kubernetes handles network flows and packet drops on a specific node. Which debugging utility installed in the OVN node container is most effective for viewing OpenFlow rules?

A.nmcli connection show
B.ethtool -S
C.ovs-ofctl
D.ovn-trace
AnswerC

ovs-ofctl allows administrators to view OpenFlow flow tables and rule matches/actions on OVS bridges.

Why this answer

ovs-ofctl is used to inspect and manipulate OpenFlow rules in Open vSwitch bridges, which underpin OVN-Kubernetes data paths.

169
MCQhard

A node in an OpenShift cluster goes into 'NotReady' status. The administrator uses 'oc debug node/<node-name>' to inspect the node's root filesystem. Where are the host's system logs mounted inside the debug chroot environment?

A./rootfs/var/log
B./mnt/host/log
C./host/var/log
D./var/log
AnswerC

The host root filesystem is mounted at /host, so host system logs are located at /host/var/log.

Why this answer

When using oc debug to access a node, the host's root filesystem is mounted under /host, making host logs available under /host/var/log.

170
MCQeasy

An administrator needs to delete a Service named 'old-service' in the 'test' namespace. Which command accomplishes this?

A.oc remove svc old-service --namespace=test
B.oc prune service old-service -n test
C.oc destroy service old-service -n test
D.oc delete service old-service -n test
AnswerD

This command correctly deletes the service in the specified namespace.

Why this answer

The oc delete service command removes the specified service resource.

171
MCQhard

You have a S2I build that fails because the builder image is not accessible by the restricted ServiceAccount. What is the most secure way to resolve this?

A.Change the build strategy to Docker
B.Make the ImageStream public
C.Grant the 'system:image-puller' role to the ServiceAccount
D.Create an ImagePullSecret for the ServiceAccount
AnswerC

This grants the necessary permissions to pull images from other namespaces.

Why this answer

Granting the 'system:image-puller' role to the ServiceAccount in the namespace where the image exists allows the builder to pull the image.

172
MCQhard

An administrator configures an external OIDC identity provider. Users can authenticate, but upon login, OpenShift reports that the user has no permissions because group synchronization fails. Where are OIDC group claims mapped in the OAuth configuration?

A.In the cluster RoleBinding configuration file
B.In a separate GroupSync CR managed by the LDAP operator
C.In the 'claims.groups' section of the OIDC identity provider CR
D.Inside the kube-apiserver static pod manifest
AnswerC

The OIDC provider spec supports mapping claims (such as group memberships) to OpenShift groups via the claims.groups field.

Why this answer

In OpenShift OAuth OIDC configuration, group claims are specified under the 'claims.groups' field of the identity provider specification.

173
MCQhard

You need to configure a ClusterRole that permits reading metrics endpoints across all namespaces but nothing else. Which API groups and resources must be specified in the rules block?

A.apiGroups: [''], resources: ['pods', 'services'], verbs: ['get', 'list']
B.apiGroups: [''], resources: ['endpoints'], verbs: ['get', 'list', 'watch']
C.apiGroups: ['apps'], resources: ['deployments'], verbs: ['get']
D.apiGroups: ['metrics.k8s.io'], resources: ['nodes'], verbs: ['get']
AnswerB

Reading endpoints across the cluster requires apiGroups [''] and resource 'endpoints' with get, list, watch verbs.

Why this answer

To scrape metrics or read endpoints across namespaces, the apiGroups must include '' (core) and metrics (if custom metrics API), but for standard core endpoints, apiGroups: [''], resources: ['endpoints'].

174
Multi-Selecteasy

Which TWO options are valid methods to check service endpoints in OpenShift? (Choose TWO)

Select 2 answers
A.oc adm inspect endpoints
B.oc get routes --show-endpoints
C.oc get pods --endpoints
D.oc get endpoints
E.oc describe service <service-name>
AnswersD, E

oc get endpoints lists all backend IP addresses and ports mapped to services.

Why this answer

Endpoints can be inspected using 'oc get endpoints' or 'oc describe service'.

175
MCQeasy

Which built-in OpenShift role provides permissions to view all resources within a project but cannot see secrets or bindings? Wait, let's test: Which default role allows modifying resources in a project while excluding permission to modify RBAC roles and role bindings?

A.view
B.cluster-admin
C.admin
D.edit
AnswerD

The 'edit' role permits modifying application workloads without granting permission to escalate privileges via RBAC manipulation.

Why this answer

The 'edit' role allows a user to create, modify, and delete most project resources, but prevents them from modifying Roles or RoleBindings.

176
Multi-Selectmedium

Which TWO of the following are valid ways to secure a route?

Select 2 answers
A.Allowing all traffic on port 80
B.Using insecure edge termination
C.Using 'edge' termination with a custom certificate
D.Disabling TLS completely
E.Using 'reencrypt' termination to ensure end-to-end encryption
AnswersC, E

This is a standard secure configuration.

Why this answer

Route security can be handled by choosing the right termination mode and using proper certificates.

177
MCQeasy

Which command allows an administrator to delete a user object named 'old-user' from the OpenShift cluster?

A.oc deactivate user old-user
B.oc delete user old-user
C.oc purge user old-user --force
D.oc remove user old-user
AnswerB

Deleting the user resource via 'oc delete user' removes the user from OpenShift.

Why this answer

The 'oc delete user old-user' command removes the user resource from the cluster database.

178
MCQhard

A cluster administrator wants to restrict a specific group of developers from creating persistent volume claims (PVCs) larger than 50Gi in the 'data-tier' namespace, while still allowing smaller PVCs. How should this be implemented?

A.Configure a LimitRange object in the 'data-tier' namespace with max storage constraints for persistent volume claims.
B.Set a StorageClass default size restriction.
C.Apply a ClusterRole restricting PVC creation sizes.
D.Configure an egress firewall rule blocking large volume attachments.
AnswerA

LimitRanges support defining maximum and minimum constraints for persistent volume claims within a namespace.

Why this answer

ResourceQuotas can enforce storage request limits (e.g., 'requests.storage') across a namespace. To enforce a maximum size per individual PVC, a ResourceQuota with scope selectors or specific limits can be used, but OpenShift ResourceQuotas can also track max storage per PVC using standard quota objects.

179
MCQmedium

A cluster administrator has created a new ProjectRequest template to ensure that every newly created project automatically includes a predefined LimitRange. Where must this template be configured so that it applies cluster-wide to all new projects?

A.In the namespace openshift-config as a ConfigMap named project-request
B.In the kube-system namespace as a Secret named default-project-template
C.As an annotation on the default ProjectTemplate object in the openshift namespace
D.In the cluster resource project.config.openshift.io/cluster under the projectRequestTemplate field
AnswerD

Correct. OpenShift uses the project.config.openshift.io/cluster resource to reference the template used for project requests.

Why this answer

The project request template must be referenced in the cluster-wide Project configuration object located at the cluster resource named 'project.config.openshift.io/cluster'.

180
Multi-Selecteasy

An administrator wants to check cluster networking and SDN communication. Which TWO commands can be used to gather network-related diagnostic information? (Choose TWO)

Select 2 answers
A.oc get clusteroperator network
B.oc get routes
C.oc adm top volume
D.oc logs -n openshift-ovn-kubernetes -l app=ovnkube-node
E.oc describe pvc
AnswersA, D

Displays the status and availability of the cluster network operator.

Why this answer

oc get clusteroperator network and inspecting OVN/SDN daemonset pod logs are key network troubleshooting steps.

181
MCQmedium

An application pod is experiencing intermittent network drops. The administrator wants to capture network packets passing through the pod's interface for analysis. Which tool can be used inside a debugging session attached to the pod namespace?

A.oc network capture <pod-name>
B.oc exec pod/<pod-name> -- wireshark
C.oc debug pod/<pod-name> -- tcpdump -i any -w /tmp/packet.pcap
D.oc adm tcpdump pod/<pod-name>
AnswerC

oc debug allows capturing traffic by attaching to the pod's network namespace.

Why this answer

Using oc debug to attach to the target pod allows running tcpdump if diagnostic utilities are included in the debug container image.

182
Multi-Selectmedium

An administrator notices that the 'storage' ClusterOperator is degraded. Which TWO resources or logs should be inspected to diagnose the underlying CSI driver or provisioner failure? (Choose TWO)

Select 2 answers
A.oc logs -n openshift-apiserver deployment/openshift-apiserver
B.oc describe clusteroperator storage
C.oc get routes --all-namespaces
D.oc logs -n openshift-cluster-storage-operator deployment/cluster-storage-operator
E.oc describe clusterversion
AnswersB, D

Shows detailed status conditions and error messages reported by the storage operator.

Why this answer

Inspecting the cluster operator status YAML and the logs of the cluster storage operator or CSI provisioner pods provides targeted diagnostic data.

183
MCQhard

An administrator needs to configure custom container runtime parameters (such as the maximum pod log size or maximum number of processes per container) across all worker nodes in an OpenShift 4.14 cluster. Which custom resource should the administrator create?

A.MachineHealthCheck
B.KubeletConfig
C.ContainerRuntimeConfig
D.NodeNetworkConfigurationPolicy
AnswerC

The ContainerRuntimeConfig custom resource allows administrators to customize CRI-O settings across a MachineConfigPool.

Why this answer

Container runtime settings such as max log size and storage options are managed using the ContainerRuntimeConfig custom resource in OpenShift.

184
MCQhard

An administrator is configuring ephemeral storage limits for containers in a namespace. Where must these limits be defined to enforce maximum local scratch space usage per container?

A.ResourceQuota
B.StorageClass
C.LimitRange
D.PersistentVolumeClaim
AnswerC

LimitRange objects enforce compute and ephemeral storage constraints per container or pod in a namespace.

Why this answer

Local ephemeral storage requests and limits can be enforced across a namespace using a LimitRange object.

185
MCQmedium

An administrator is reviewing PersistentVolumes and notices several PVs stuck in a Terminating state. What is the most common reason a PV cannot be deleted immediately?

A.etcd disk space is full.
B.The volume attachment object still holds an active lock, or a finalizer prevents deletion until unmounted.
C.The project quota has been exceeded.
D.The apiserver cache is corrupted and requires a cluster reboot.
AnswerB

Volume attachments and finalizers prevent premature PV deletion while in use.

Why this answer

A PV in Terminating state usually has a finalizer attached or is still actively mounted/attached by a node/CSI driver attachment object that hasn't cleaned up.

186
MCQeasy

An administrator needs to deploy a StorageClass that automatically provisions volumes only when a PersistentVolumeClaim is created and consumed by a Pod. Which StorageClass parameter determines this behavior?

A.reclaimPolicy: Retain
B.provisioningMode: Immediate
C.volumeBindingMode: WaitForFirstConsumer
D.allowVolumeExpansion: true
AnswerC

Correct. This ensures that the PV is provisioned only when the pod requiring it is scheduled, enabling topology-aware provisioning.

Why this answer

The volumeBindingMode parameter in a StorageClass controls when volume binding and dynamic provisioning should occur. Setting it to WaitForFirstConsumer delays volume binding and provisioning until a Pod using the PVC is scheduled.

187
MCQhard

An administrator configures an EgressFirewall in a namespace to deny all external traffic except for a specific CIDR block. In what order are the rules in an EgressFirewall evaluated?

A.Allow rules are evaluated first, followed by deny rules.
B.Deny rules always take precedence over allow rules regardless of order.
C.In sequential order (top to bottom), stopping at the first matching rule.
D.Alphabetically by rule description.
AnswerC

EgressFirewall rules are processed strictly in order, similar to traditional firewall ACLs.

Why this answer

EgressFirewall rules are evaluated in sequential order from top to bottom, and the first matching rule dictates whether traffic is allowed or denied.

188
Multi-Selectmedium

Which TWO deployment triggers are supported by a DeploymentConfig?

Select 2 answers
A.Manual
B.ConfigChange
C.ImageChange
D.Cron
E.Webhook
AnswersB, C

Triggers on DC changes.

Why this answer

DeploymentConfigs natively support ImageChange and ConfigChange triggers.

189
Multi-Selecteasy

Which TWO commands are used to check the health and status of the cluster networking operator? (Choose TWO)

Select 2 answers
A.oc get routes --all-nodes
B.oc describe clusteroperator network
C.oc adm network status
D.oc get clusteroperators
E.oc top network
AnswersB, D

Provides detailed status and error conditions for the network operator.

Why this answer

oc get clusteroperators and oc describe clusteroperator network are correct.

190
MCQhard

A cluster uses a CSI driver that does not support volume expansion. A user edits an existing PVC to request a larger size. What action does the OpenShift API server take?

A.The resize request fails or is marked with an error condition because expansion is unsupported.
B.The PVC size is updated in Kubernetes metadata, but physical storage is left unchanged.
C.OpenShift automatically converts the PVC to use a default storage class that supports expansion.
D.The pod is immediately terminated and restarted on a node with more disk space.
AnswerA

CSI capability checks prevent unauthorized or unsupported volume expansions.

Why this answer

If expansion is not supported by the driver or allowed by the StorageClass, the API server rejects the update or the resize controller marks the expansion condition as unsupported/failed.

191
MCQhard

An OpenShift cluster is configured with a custom Cluster Network CIDR. An administrator needs to verify the cluster network subnet settings and host subnet assignments. Which operator status or configuration resource contains this cluster-wide network configuration?

A.network.operator.openshift.io named 'default'
B.networks.config.openshift.io named 'cluster'
C.cluster-network.openshift.io
D.sdn.openshift.io/config
AnswerB

This cluster-scoped configuration resource defines the cluster network CIDRs and network type.

Why this answer

The networks.config.openshift.io cluster singleton resource holds the cluster network, service network, and CNI provider configuration.

192
MCQmedium

A pod in the 'production' namespace is crashing repeatedly due to a segmentation fault in the application binary. The administrator needs to inspect the file system of the crashing container without altering the deployment spec permanently. Which command is most appropriate?

A.oc logs pod/my-app-6b79f-abcde --previous
B.oc rsh deployment/my-app
C.oc exec -it pod/my-app-6b79f-abcde -- /bin/sh
D.oc debug pod/my-app-6b79f-abcde
AnswerD

oc debug creates a troubleshooting container attached to the pod namespace for inspection.

Why this answer

oc debug with a pod target creates a debugging pod that shares the namespace and mounts the containers of the target pod, allowing file system inspection.

193
Multi-Selecteasy

An administrator wants to check the status of all api-server instances in the cluster. Which TWO commands are helpful? (Choose TWO)

Select 2 answers
A.oc get storageclass
B.oc get pods -n openshift-kube-apiserver
C.oc get clusteroperator kube-apiserver
D.oc adm top storage
E.oc get routes --all-namespaces
AnswersB, C

Lists the running API server pods across control plane nodes.

Why this answer

Checking the kube-apiserver cluster operator and listing API server pods provides status information.

194
MCQhard

An OpenShift cluster's Ingress controller is failing to route external traffic because the router pods are crashing with 'Bind: address already in use'. What is the most likely cause that an administrator should investigate?

A.Another service or daemon on the worker node is already binding to host ports 80 or 443.
B.The OAuth client secret is invalid.
C.The default router deployment replica count is set to zero.
D.The wildcard DNS record for the cluster points to the wrong IP address.
AnswerA

Binding collisions happen when ports 80/443 are already occupied on the host network namespace.

Why this answer

HostPort or hostNetwork conflicts occur when multiple router replicas or daemonsets attempt to bind to ports 80 and 443 on the same worker node interface.

195
MCQeasy

A developer deploys an application using a Route that terminates TLS using the Edge termination strategy. The developer wants to ensure that all insecure HTTP traffic to the route is automatically redirected to HTTPS. Where must this setting be configured?

A.By modifying the haproxy.config global template ConfigMap in the openshift-ingress namespace.
B.In the Route resource spec.tls.insecureEdgeTerminationPolicy field set to Redirect.
C.In the IngressController custom resource under spec.routeAdmission.wildcardPolicy.
D.In the Service resource annotations using route.openshift.io/termination: redirect.
AnswerB

Setting insecureEdgeTerminationPolicy to Redirect instructs the router to send a 301 redirect for HTTP requests.

Why this answer

Insecure edge termination policy can be set on the Route resource itself using the spec.tls.insecureEdgeTerminationPolicy field set to Redirect.

196
Multi-Selectmedium

Which THREE parameters are commonly found in the SCC 'spec' section?

Select 3 answers
A.seLinuxContext
B.namespaceSelector
C.runAsUser
D.imagePullPolicy
E.allowedCapabilities
AnswersA, C, E

This controls SELinux labels.

Why this answer

SCCs control security via fields like 'seLinuxContext', 'runAsUser', and 'capabilities'.

197
MCQmedium

An administrator needs to drain a worker node safely for hardware maintenance, but some pods have local emptyDir storage that would be permanently deleted. Which flag must be added to the drain command to allow eviction of these pods?

A.--allow-local-volumes
B.--ignore-daemonsets=false
C.--delete-emptydir-data
D.--force-local-storage
AnswerC

This flag allows draining nodes even when pods contain local emptyDir volumes.

Why this answer

Pods with emptyDir volumes are protected by default during drains. The --delete-emptydir-data flag overrides this protection.

198
MCQmedium

An administrator wants to check whether any worker nodes in an OpenShift 4.14 cluster are currently unschedulable (cordoned). Which command provides this information quickly?

A.oc get machineconfigpool --cordoned
B.oc describe clusteroperator scheduling
C.oc get nodes
D.oc adm show-cordoned
AnswerC

Cordoned nodes show 'SchedulingDisabled' in the STATUS column of 'oc get nodes'.

Why this answer

The 'oc get nodes' command displays node status, including whether scheduling is disabled (SchedulingDisabled).

199
MCQeasy

An administrator needs to expose an existing deployment using a quick command without writing a YAML manifest. Which command exposes port 8080 of a deployment named 'my-app' as a Service?

A.oc expose deployment my-app --port=8080
B.oc expose pod my-app --port=8080
C.oc service create my-app --port=8080
D.oc create service my-app --port=8080
AnswerA

This command correctly exposes the deployment on port 8080.

Why this answer

The oc expose deployment command creates a service matching the deployment's pods and exposes the specified port.

200
MCQmedium

When configuring a custom build strategy, where do you define the Dockerfile to use?

A.In the strategy block of the BuildConfig
B.In the DeploymentConfig
C.In the Build object
D.In the ImageStream
AnswerA

The strategy section contains the build process details including the Dockerfile source.

Why this answer

In the BuildConfig, under the 'strategy' block, you can specify the Dockerfile context or explicitly define the Dockerfile source.

201
MCQhard

An administrator is troubleshooting a service account named 'cicd-bot' in the 'ci-cd' namespace that is failing to read pods in the 'production' namespace, despite a RoleBinding existing. Upon inspection, the RoleBinding references a Role (not a ClusterRole) in the 'ci-cd' namespace. Why is the service account failing to access resources in 'production'?

A.Standard Roles are namespace-scoped and cannot grant permissions to resources in another namespace
B.Roles cannot reference service accounts as subjects unless they are in the openshift-infra namespace
C.Service accounts cannot use RoleBindings, they require ClusterRoleBindings for any authorization
D.The service account token has expired and must be manually regenerated using oc adm ca
AnswerA

Correct. Namespaced Roles only apply to the namespace in which they are created.

Why this answer

A standard Role and RoleBinding are strictly namespace-scoped. A Role in namespace A cannot grant permissions to resources in namespace B. To grant cross-namespace access, a ClusterRole must be used with either a RoleBinding (in the target namespace) or a ClusterRoleBinding.

202
MCQeasy

When draining a worker node in OpenShift 4.14, which type of pod running on the node will typically be blocked from eviction unless explicitly ignored or handled?

A.Static pods
B.StatefulSet pods
C.Pods not backed by a controller (naked pods)
D.DaemonSet pods
AnswerC

Naked pods will prevent eviction unless '--force' is supplied because losing them results in immediate workload termination.

Why this answer

Pods that are not managed by a ReplicationController, ReplicaSet, Job, DaemonSet, or StatefulSet (often called naked pods) are not safely replicated and require '--force' or special handling during drainage.

203
Multi-Selecthard

An administrator needs to restrict a user group named 'contractors' so they can view pods and services, but cannot view secrets across the 'staging' namespace. Which THREE of the following steps or configurations are valid and necessary to achieve this? (Choose THREE)

Select 3 answers
A.Create a ClusterRoleBinding referencing the view ClusterRole and set an exclusion filter for secrets
B.Create a custom Role in the staging namespace that explicitly includes rules for verbs get, list, watch on resources pods and services
C.Bind the custom Role to the contractors group using a RoleBinding in the staging namespace
D.Assign the cluster-admin ClusterRole to the contractors group with a negative weight annotation
E.Omit 'secrets' from the resources list in the custom Role definition
AnswersB, C, E

Correct. A custom Role defines the exact API permissions permitted within the namespace.

Why this answer

To implement custom restrictions when predefined roles are too broad, an administrator must create a custom Role with explicit rules (allowing pods and services, denying or omitting secrets), and bind it to the contractors group via a RoleBinding in the staging namespace.

204
MCQeasy

When configuring an OAuth identity provider of type HTPasswd, which object type must be created to store the username and hashed password pairs?

A.A ServiceAccount with special token annotations
B.A Secret containing the htpasswd flat-file data
C.A ConfigMap containing plain-text user credentials
D.A custom resource of kind HTPasswdProvider in the openshift-config namespace
AnswerB

An HTPasswd identity provider references a Secret containing the htpasswd formatted file.

Why this answer

HTPasswd identity providers require a Secret containing the htpasswd file data referenced by the OAuth configuration.

205
MCQmedium

An administrator needs to provision persistent storage dynamically using an NFS server. Which provisioner is required in the StorageClass definition since OpenShift removed the in-tree NFS provisioner?

A.nfs.csi.k8s.io
B.kubernetes.io/nfs
C.sig-storage.k8s.io/nfs-subdir-external-provisioner
D.openshift.io/nfs-dynamic
AnswerC

This external provisioner correctly supports dynamic NFS provisioning via subdirectories.

Why this answer

OpenShift removed in-tree provisioners. The external NFS subdir external provisioner is the standard Red Hat-supported way to dynamically provision NFS volumes.

206
MCQeasy

An administrator needs to tail the logs of all pods with the label 'tier=frontend' across the current namespace. Which command should be used?

A.oc watch logs tier=frontend
B.oc logs pods --selector=tier=frontend -f
C.oc logs -l tier=frontend
D.oc tail -l tier=frontend
AnswerC

The -l flag allows filtering logs by label selector across matching pods.

Why this answer

oc logs with the label selector flag (-l) streams logs from all matching pods simultaneously.

207
MCQmedium

A security audit requires identifying all users who have direct cluster-admin privileges assigned via individual user bindings rather than groups. How can an administrator inspect the cluster-admin ClusterRoleBinding subjects?

A.oc describe clusterrolebinding cluster-admin --users-only
B.oc get users --filter='cluster-admin'
C.oc adm policy list-cluster-admins
D.oc get clusterrolebinding cluster-admin -o jsonpath='{.subjects[*]}'
AnswerD

This command prints all subjects bound to the cluster-admin cluster role, allowing filtering for kind: User.

Why this answer

Inspecting the 'cluster-admin' ClusterRoleBinding object using jsonpath or yaml output displays all subjects (users, groups, service accounts).

208
MCQeasy

Which command allows an administrator to view details of a specific project named 'web-app', including its annotations and status?

A.oc inspect project web-app
B.oc describe project web-app
C.oc show project web-app
D.oc get project web-app --details
AnswerB

Describing a project resource outputs its full status, labels, annotations, and associated namespace details.

Why this answer

The 'oc describe project web-app' command displays detailed information about the project resource.

209
Multi-Selecteasy

Which TWO service accounts have special roles in OpenShift projects regarding SCCs?

Select 2 answers
A.oauth-proxy
B.kube-system
C.default
D.builder
E.system-admin
AnswersC, D

The default service account is used by pods.

Why this answer

The 'default' and 'builder' service accounts are commonly used and often have pre-configured roles.

210
MCQmedium

An administrator notices that the Cluster Version Operator (CVO) is blocked during an upgrade because a cluster operator is missing version annotations. Which command allows checking the current status and payload version of the CVO?

A.oc get clusterversion
B.oc adm upgrade status
C.oc get clusteroperators
D.oc version
AnswerA

oc get clusterversion displays the cluster's upgrade progress, version, and working status.

Why this answer

oc get clusterversion provides the high-level status of the cluster upgrade, available updates, and active version history.

211
MCQhard

An administrator is troubleshooting a multi-tenant environment where a project administrator of the 'team-a' namespace attempts to bind the cluster-admin ClusterRole to a user in their namespace using a RoleBinding. What is the expected outcome of this operation?

A.The operation succeeds, and the user receives admin privileges restricted solely to the 'team-a' namespace.
B.The API server rejects the request because RoleBindings cannot reference ClusterRoles.
C.The operation succeeds, but the authorization webhook automatically strips dangerous privileges like secret reading.
D.The operation succeeds, and the user receives cluster-admin privileges across the entire cluster.
AnswerA

Using a RoleBinding to reference the cluster-admin ClusterRole grants full administrative permissions within that specific namespace only.

Why this answer

A RoleBinding can reference a ClusterRole, which grants the permissions of that ClusterRole scoped to that namespace. However, binding cluster-admin via a RoleBinding grants full admin privileges *within that namespace*, not cluster-wide.

212
MCQmedium

An administrator wants to check the status of all Certificate Signing Requests (CSRs) in an OpenShift 4.14 cluster, specifically looking for pending node certificates. Which command should be used?

A.oc adm certificate-status
B.oc get csr
C.oc describe clusteroperator pkcs
D.oc get certificates --all-namespaces
AnswerB

oc get csr lists certificate requests and their approval status.

Why this answer

The 'oc get csr' command lists all certificate signing requests, allowing administrators to approve pending node bootstrapping certificates if necessary.

213
Multi-Selectmedium

When configuring a NetworkPolicy in OpenShift, which THREE options represent valid components or fields within a NetworkPolicy specification? (Choose THREE)

Select 3 answers
A.podSelector
B.routeSelector
C.clusterIP
D.ingress
E.policyTypes
AnswersA, D, E

podSelector determines which pods the policy applies to.

Why this answer

NetworkPolicy specifications include podSelector, policyTypes, and ingress/egress rule blocks.

214
Multi-Selecthard

Which THREE items are contained within a Helm Chart structure?

Select 3 answers
A.Dockerfile
B.values.yaml
C.Chart.yaml
D.templates/ directory
E.ImageStream
AnswersB, C, D

The default configuration file.

Why this answer

A chart contains metadata (Chart.yaml), templates, and values.

215
MCQmedium

An administrator needs to verify that the cluster autoscaler is successfully scaling worker nodes in response to pending pods. Which custom resource should the administrator inspect to check the autoscaler configuration and status?

A.NodeScalingOperator resource
B.MachineConfigPool autoscaler status
C.ClusterAutoscaler and MachineAutoscaler
D.ClusterVersion autoscaling spec
AnswerC

ClusterAutoscaler defines cluster-wide autoscaling limits, and MachineAutoscaler targets specific MachineSets.

Why this answer

Cluster scaling parameters and status are managed and viewed via the ClusterAutoscaler and MachineAutoscaler custom resources in OpenShift.

216
MCQhard

An administrator needs to ensure that if a worker node freezes or becomes unresponsive for more than 5 minutes, the cluster automatically remediates it by deleting and recreating the underlying virtual machine instance. Which OpenShift 4.14 feature should the administrator configure?

A.NodeAutoscaler
B.MachineConfigPool
C.ClusterAutoscaler
D.MachineHealthCheck
AnswerD

A MachineHealthCheck monitors node conditions and triggers remediation (machine deletion/recreation) if nodes fail.

Why this answer

MachineHealthCheck allows administrators to define criteria (such as node not ready conditions) and automatically remediate unhealthy nodes by deleting their corresponding Machine objects.

217
MCQmedium

You need to assign the 'cluster-reader' ClusterRole to an LDAP group named 'ldap-auditors' across the entire cluster. Which command accomplishes this?

A.oc set cluster-role cluster-reader --group=ldap-auditors
B.oc adm policy add-role-to-group cluster-reader ldap-auditors --global
C.oc adm policy add-cluster-role-to-group cluster-reader ldap-auditors
D.oc create rolebinding ldap-auditors --clusterrole=cluster-reader --group=ldap-auditors --cluster
AnswerC

This command creates a ClusterRoleBinding associating the cluster-reader role with the specified LDAP group.

Why this answer

The 'oc adm policy add-cluster-role-to-group' command correctly binds a cluster role to a group cluster-wide.

218
MCQmedium

Which tool should be used to troubleshoot why an SCC is being rejected for a pod?

A.oc adm top scc
B.oc adm policy scc-review
C.oc get scc --debug
D.oc explain scc
AnswerB

This tool reviews pod specifications against available SCCs.

Why this answer

The 'oc adm policy scc-review' command helps determine why an SCC is or is not being assigned.

219
MCQeasy

An administrator needs to check the cluster events across all namespaces sorted by timestamp to identify recent infrastructure warnings. Which command should they use?

A.oc get events --sort-by='.metadata.creationTimestamp'
B.oc adm events --all
C.oc show events --recent
D.oc cluster-events
AnswerA

This command sorts cluster events chronologically to trace recent issues.

Why this answer

oc get events --sort-by='.metadata.creationTimestamp' lists all events ordered by creation time.

220
MCQmedium

You need to assign a custom ClusterRole named 'operator-viewer' to all authenticated users cluster-wide. Which command accomplishes this?

A.oc adm policy add-cluster-role-to-group operator-viewer system:authenticated
B.oc adm policy add-cluster-role-to-user operator-viewer --all-users
C.oc set role operator-viewer --cluster --to-all
D.oc create clusterrolebinding all-users --clusterrole=operator-viewer --user=system:everyone
AnswerA

Binding the role to the 'system:authenticated' group via a ClusterRoleBinding applies it to all logged-in users cluster-wide.

Why this answer

The 'oc adm policy add-cluster-role-to-group' command binding to the 'system:authenticated' group achieves this.

221
MCQmedium

An administrator observes that a specific node has high CPU utilization and wants to identify which processes or containers are consuming the most resources on that host directly. Which command-line tool executed inside an oc debug session on the node is best suited for interactive process monitoring?

A.oc exec node/<node-name> -- ps aux
B.oc debug node/<node-name> -- chroot /host top
C.oc adm monitor node
D.oc adm top node --use-protocol-buffers
AnswerB

Spawning a debug shell with chroot /host allows running standard Linux diagnostic utilities like top.

Why this answer

Running 'top' or 'htop' inside an oc debug chroot environment provides real-time CPU and memory consumption of processes on the host.

222
MCQmedium

You need to create a Role that allows reading and writing ConfigMaps and Secrets only within the 'database' project. Which API groups and resource types should be included in the rules?

A.apiGroups: ['rbac.authorization.k8s.io'], resources: ['roles', 'rolebindings'], verbs: ['*']
B.apiGroups: [''], resources: ['configmaps', 'secrets'], verbs: ['get', 'list', 'watch', 'create', 'update', 'patch', 'delete']
C.apiGroups: [''], resources: ['pods/exec'], verbs: ['create']
D.apiGroups: ['apps'], resources: ['configmaps', 'secrets'], verbs: ['*']
AnswerB

The core API group handles ConfigMaps and Secrets, and these verbs cover full read/write access.

Why this answer

ConfigMaps and Secrets belong to the core API group ('') and their resource names are 'configmaps' and 'secrets'.

223
MCQmedium

A developer needs to configure a Pod where multiple containers need concurrent read-write access to the exact same PersistentVolumeClaim. Which access mode is mandatory on the PVC?

A.ReadOnlyMany
B.ReadWriteOnce
C.ReadWriteMany
D.ReadWriteOncePod
AnswerC

ReadWriteMany allows mounting by multiple nodes/pods for concurrent read-write access.

Why this answer

ReadWriteMany (RWX) or ReadWriteOncePod (RWOP) can be used, but for multiple containers across nodes (or even multiple containers on the same node wanting shared concurrent write access without conflict), RWX is required. Wait, multiple containers in the *same* pod can share a single RWO volume because they share the same node and mount namespace context. However, across pods or when explicitly sharing, RWX is the classic answer.

Let's frame it as multiple pods or general multi-reader/writer access.

224
MCQmedium

You are examining a PersistentVolume in OpenShift and notice its status is Released. What does this indicate?

A.The PV is currently bound to an active PVC and is in use by a running pod.
B.The PV has failed its health check and has been quarantined by the CSI driver.
C.The PV is available for binding by any new incoming PVC request.
D.The PVC associated with the PV has been deleted, but the volume has not yet been reclaimed.
AnswerD

Released means the claim is gone, waiting for automated recycling/deletion or manual admin handling.

Why this answer

The Released status means the PVC that was bound to the PV has been deleted, but the volume has not yet been reclaimed according to its reclaim policy.

225
MCQhard

A developer deploys a pod with an emptyDir volume. The application running inside writes temporary files. What happens to these files when the container crashes and restarts within the same pod?

A.The files are backed up to the cluster control plane automatically.
B.The files are preserved because emptyDir lifetime is tied to the pod, not individual containers.
C.The files are deleted immediately because the container filesystem is ephemeral.
D.The volume is unmounted and reattached via the CSI driver.
AnswerB

Container restarts do not clear emptyDir storage; only pod termination does.

Why this answer

An emptyDir volume survives container crashes and restarts; it is only deleted when the pod itself is removed from the node.

Page 2

Page 3 of 7

Page 4

All pages