Courseiva

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

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

Page 1

Page 2 of 7

Page 3
76
MCQeasy

An application pod requires concurrent read and write access to the same storage volume from multiple worker nodes simultaneously. Which access mode must be specified in the PersistentVolumeClaim to satisfy this requirement?

A.ReadWriteMany
B.ReadWriteOnce
C.ReadOnlyMany
D.WriteOncePod
AnswerA

Correct. ReadWriteMany enables multiple nodes to mount the volume concurrently with read and write permissions.

Why this answer

ReadWriteMany (RWX) allows the volume to be mounted as read-write by multiple nodes simultaneously.

77
MCQeasy

An administrator needs to view the rollout history of a DeploymentConfig named web-frontend. Which command accomplishes this?

A.oc rollout history dc/web-frontend
B.oc describe dc/web-frontend
C.oc get revisions dc/web-frontend
D.oc log rollout dc/web-frontend
AnswerA

oc rollout history lists past revisions and configurations for the specified deployment resource.

Why this answer

The oc rollout history command displays the revision history for a Deployment or DeploymentConfig.

78
Multi-Selecteasy

Which TWO of the following are valid built-in default project roles in OpenShift that can be assigned to users within a namespace? (Choose TWO)

Select 2 answers
A.admin
B.security-admin
C.edit
D.node-admin
E.cluster-admin
AnswersA, C

'admin' is a standard default project-level role granting full management control over a project.

Why this answer

OpenShift provides standard default project roles including 'admin', 'edit', 'view', and 'basic-user'.

79
MCQeasy

Which namespace houses the core Cluster Version Operator (CVO) in an OpenShift 4.14 cluster?

A.openshift-machine-api
B.openshift-operator-lifecycle-manager
C.openshift-cluster-version
D.openshift-config
AnswerC

openshift-cluster-version is the designated namespace for CVO pods and related resources.

Why this answer

The Cluster Version Operator runs in the openshift-cluster-version namespace.

80
MCQeasy

An administrator needs to deploy a containerized web application using a Git repository as the source without writing a Dockerfile. Which OpenShift build strategy should be used?

A.Source-to-Image (S2I) strategy
B.Docker strategy
C.Custom strategy
D.Pipeline strategy
AnswerA

S2I allows building runnable images from source code without a Dockerfile.

Why this answer

The Source-to-Image (S2I) build strategy builds reproducible container images from source code without requiring a Dockerfile, injecting the source code into a builder image.

81
MCQmedium

An administrator is troubleshooting a failed cluster upgrade in OpenShift 4.14. The upgrade channel is set to 'stable-4.14', but the cluster refuses to update to the latest target version. The administrator runs 'oc get clusterversion' and notes that a specific ClusterOperator reports 'Degraded=True'. What is the recommended next step?

A.Switch the upgrade channel to 'fast-4.14' to bypass the degraded check.
B.Delete the Cluster Version Operator deployment to force a reset of the upgrade state machine.
C.Force the upgrade by running 'oc adm upgrade --to=<version> --force-ignore-degraded'.
D.Describe or inspect the degraded ClusterOperator to identify the root cause and resolve its configuration or resource issues.
AnswerD

Resolving degraded cluster operators is necessary since the CVO prevents upgrades when operators are unhealthy.

Why this answer

Before proceeding with an upgrade, any degraded or failing ClusterOperator must be investigated and resolved because the CVO will block upgrades if core components are not healthy.

82
MCQmedium

A cluster administrator suspects that an API rate-limiting issue is causing intermittent client timeouts. Which component logs should be inspected to confirm that clients are exceeding their API request limits?

A.oc logs -n openshift-kube-apiserver pod/kube-apiserver-<node-name>
B.oc get events --all-namespaces
C.oc logs -n openshift-ingress-operator deployment/ingress-operator
D.oc logs -n openshift-kube-apiserver-operator deployment/cluster-kube-apiserver-operator
AnswerA

The kube-apiserver pods log client requests and can indicate request rejection due to rate limiting.

Why this answer

The Kubernetes API server logs record throttling and rate-limiting events when clients exceed request limits.

83
MCQeasy

An administrator needs to grant read-only access to pods across all namespaces to a specific service account named 'monitor-sa' in the 'monitoring' project. Which RBAC resource configuration is required?

A.A SecurityContextConstraints object assigned to the ServiceAccount
B.A ClusterRole and a RoleBinding in the monitoring namespace
C.A ClusterRole and a ClusterRoleBinding
D.A Role and a RoleBinding in the monitoring namespace
AnswerC

ClusterRoles combined with ClusterRoleBindings provide cluster-wide permissions such as reading pods in all namespaces.

Why this answer

A ClusterRole grants cluster-wide permissions, and a ClusterRoleBinding is required to bind this ClusterRole to a ServiceAccount located in a specific namespace.

84
MCQhard

An OVN-Kubernetes clustered OpenShift environment requires troubleshooting packet flows between namespaces. Which tool is installed on the cluster nodes that allows administrators to inspect OVN database contents and flow tables?

A.ovn-sbctl
B.iptables-save
C.nft
D.firewall-cmd
AnswerA

ovn-sbctl is the command-line utility used to query and manage the OVN southbound database.

Why this answer

OVN-Kubernetes utilizes OVN northbound and southbound databases, which can be queried using the ovn-sbctl and ovn-nbctl utilities from within the ovn-controlplane or node pods.

85
Multi-Selecthard

Which THREE actions are required when manually setting up a pre-provisioned PersistentVolume backed by an existing storage asset?

Select 3 answers
A.Set allowVolumeExpansion to false on all namespaces.
B.Specify spec.accessModes to match expected claim requirements.
C.Provide the specific volume source configuration (e.g., csi or nfs parameters).
D.Define spec.capacity.storage matching the underlying storage size.
E.Create a matching VolumeSnapshotClass before defining the PV.
AnswersB, C, D

Access modes must align with incoming PVC requests.

Why this answer

Manual PV setup requires defining the capacity, setting the correct access modes, and specifying the appropriate volume plugin source (such as nfs, csi, etc.).

86
Multi-Selecteasy

Which TWO components are core parts of the OpenShift DNS architecture for cluster resolution? (Choose TWO)

Select 2 answers
A.CoreDNS
B.Cluster DNS Operator
C.BIND9
D.HAProxy DNS module
E.Keepalived DNS plugin
AnswersA, B

CoreDNS pods handle internal cluster DNS queries.

Why this answer

CoreDNS is deployed by the Cluster DNS Operator to provide internal name resolution for pods and services.

87
MCQeasy

An administrator needs to collect cluster-wide diagnostic information from an OpenShift 4.14 cluster for a Red Hat support case. Which command should be executed?

A.oc adm diagnose
B.oc adm must-gather
C.oc cluster-info dump
D.oc get clusteroperators -o yaml
AnswerB

This is the correct command to collect diagnostic logs and data for Red Hat Support.

Why this answer

The oc adm must-gather command collects debugging information from the cluster, including logs, cluster operator status, and node details, packaging them into a compressed archive for Red Hat Support.

88
Multi-Selectmedium

When managing application lifecycles and rollouts using standard Kubernetes Deployments in OpenShift 4.14, which TWO parameters are explicitly configurable under the rollingUpdate strategy settings? (Choose two.)

Select 2 answers
A.maxSurge
B.minReadySeconds
C.timeoutSeconds
D.rollbackWindow
E.maxUnavailable
AnswersA, E

maxSurge defines the maximum number of pods that can be created over the desired number of pods during a update.

Why this answer

The rollingUpdate strategy for deployments supports maxSurge and maxUnavailable parameters to control the pace and capacity during updates.

89
MCQmedium

An application pod in OpenShift needs to determine its own IP address and the cluster DNS servers dynamically. Where does CoreDNS look or how are pods configured to resolve cluster DNS?

A.By querying the OpenShift API server directly on port 6443 for DNS records
B.Through an environment variable named CLUSTER_DNS injected into every container
C.By parsing the /etc/hosts file updated dynamically by the OpenShift SDN controller
D.Via the /etc/resolv.conf file automatically managed inside the pod container
AnswerD

Kubelet configures the /etc/resolv.conf file for each pod to point to the cluster DNS service IP address.

Why this answer

Kubernetes automatically injects the nameserver configuration into the /etc/resolv.conf file of every container based on the cluster DNS configuration.

90
MCQeasy

An administrator needs to test DNS resolution from inside a running pod. Which command run inside a container uses the standard Linux DNS lookup utility?

A.nslookup backend.production.svc.cluster.local
B.route lookup backend
C.oc get dns
D.ping -dns backend.production.svc.cluster.local
AnswerA

nslookup is widely available and queries DNS names successfully.

Why this answer

nslookup or dig are standard utilities used for DNS querying.

91
Multi-Selecthard

When troubleshooting network policies or container connectivity in an OVN-Kubernetes environment, which THREE tools or logs are useful for diagnosing packet drops and flow issues? (Choose THREE)

Select 3 answers
A.Querying the OVN southbound database using ovn-sbctl
B.Running systemctl restart firewalld on all worker nodes simultaneously
C.Checking logs of the ovn-controller pods in the openshift-ovn-kubernetes namespace
D.Editing the master /etc/hosts file to add custom pod IP mappings
E.Reviewing network policy controller logs within the cluster-kube-apiserver or network operator
AnswersA, C, E

ovn-sbctl inspects logical flows and datapath bindings.

Why this answer

OVN-Kubernetes logs, node ovn-controller logs, and ovn-sbctl are key diagnostic tools.

92
MCQeasy

What is the primary function of the Machine Config Operator (MCO) in OpenShift 4.14?

A.Managing operating system configurations, file system changes, and software updates for cluster nodes.
B.Handling external DNS records and cluster ingress routing.
C.Provisioning cloud provider virtual machines for cluster scaling.
D.Managing container image registries and secure image signing.
AnswerA

The MCO coordinates OS updates, Ignition config generation, and node reboots.

Why this answer

The MCO manages and applies configuration changes to the operating system on control plane and worker nodes, such as updates to system files, certs, and kernel parameters.

93
MCQmedium

An administrator wants to inspect the ignition configuration generated for worker nodes by the Machine Config Operator. Which command or resource should the administrator examine?

A.Run 'oc adm inspect ignition-configs'.
B.Check the ConfigMap named 'ignition-worker' in the default namespace.
C.View the ClusterVersion status conditions.
D.Inspect the rendered MachineConfig objects (e.g., rendered-worker-*) managed by the MCO.
AnswerD

Rendered MachineConfigs contain the combined ignition specifications applied to nodes.

Why this answer

Ignition configs are generated and stored inside ControllerConfigs or rendered MachineConfigs managed by the MCO.

94
Multi-Selectmedium

Which TWO options describe characteristics of OVN-Kubernetes compared to the legacy OpenShift SDN? (Choose TWO)

Select 2 answers
A.It provides native support for EgressIP and EgressFirewall custom resources.
B.It relies exclusively on traditional Linux iptables rules without OVS flow tables.
C.It requires the flannel CNI plugin to function.
D.It uses Open Virtual Network (OVN) with OVS for routing and switching.
E.It does not support NetworkPolicies.
AnswersA, D

OVN-Kubernetes natively implements EgressIP and EgressFirewall.

Why this answer

OVN-Kubernetes is the default CNI in OpenShift 4.12+ (and 4.14+), provides native support for EgressIP, and uses OVS flow tables.

95
MCQhard

An OpenShift cluster experiences severe etcd latency spikes, causing leader elections to fail. Which metric or diagnostic tool should be used to inspect etcd peer round-trip times directly from the command line within the cluster?

A.oc adm inspect etcd
B.oc adm diagnostics etcd-latency
C.oc rsh -n openshift-etcd pod/etcd-<node-name> etcdctl endpoint health
D.oc get etcd -o yaml
AnswerC

Executing etcdctl inside an etcd pod directly tests endpoint health and connectivity.

Why this answer

etcd provides built-in tooling and metrics. The etcdctl endpoint health or etcdctl check perf commands can be run from within an etcd pod to verify cluster performance.

96
MCQmedium

An administrator is configuring an OAuth identity provider and needs to map claims from an external provider to OpenShift usernames. Which field in the OAuth configuration specifies the claim to use as the username?

A.metadata.annotations['oauth.openshift.io/username-claim']
B.mappingMethod and attributes.username
C.spec.identityProviders.providerConfig.userField
D.status.providerStatus.usernameMapping
AnswerB

The attributes.username field specifies which token claim maps to the OpenShift username.

Why this answer

When configuring identity providers like OpenID in the OAuth resource, the mapping is defined using attributes such as username for claims.

97
MCQeasy

Which component in OpenShift is responsible for watching PersistentVolumeClaims and dynamically provisioning PersistentVolumes when supported by a StorageClass?

A.kube-scheduler
B.crio
C.etcd
D.kube-controller-manager
AnswerD

The persistent volume controller runs inside the kube-controller-manager and drives PV/PVC binding and provisioning.

Why this answer

The Kubernetes persistent volume controller (part of kube-controller-manager) watches PVCs and handles dynamic provisioning coordination.

98
MCQmedium

An administrator wants to prevent developers from creating pods that run as the root user across the entire cluster. Which OpenShift resource or admission mechanism is best suited to enforce this restriction globally?

A.Disabling the ServiceAccount controller in the cluster operator configuration
B.Adding a cluster-wide ValidatingWebhookConfiguration that intercepts Route creations
C.Creating a global ConfigMap in the openshift-config namespace named root-blocker
D.Modifying the restricted-v2 SCC to ensure root execution is disallowed via user ID restrictions
AnswerD

The restricted-v2 SCC is applied by default and restricts root execution cluster-wide for unprivileged workloads.

Why this answer

OpenShift enforces user restrictions cluster-wide primarily through Security Context Constraints (SCC) where runAsUser.type is set to MustRunAsRange or MustRunAs, restricting root execution.

99
MCQhard

An administrator has modified a KubeletConfig resource to adjust the pod eviction thresholds on worker nodes. After applying the change, the administrator observes that some worker nodes are updating while others belonging to a custom worker pool are not. What is the most likely reason?

A.KubeletConfig objects are only supported on control plane nodes in OpenShift 4.14.
B.The cluster storage size is insufficient to hold the new kubelet configuration.
C.The kubelet service must be manually restarted on every node using SSH.
D.The KubeletConfig's machineConfigPoolSelector does not match the labels on the custom MachineConfigPool.
AnswerD

KubeletConfig objects use selectors to determine which MachineConfigPools to target.

Why this answer

KubeletConfig resources target specific MachineConfigPools using machineConfigPoolSelector labels. If the custom worker pool does not match the selector, it will not receive the configuration.

100
MCQhard

An administrator is troubleshooting an Operator installed via OperatorHub whose pods are failing to pull images because the Operator's subscription namespace lacks access to the global pull secret. How can the administrator configure OLM to use a custom pull secret for an Operator in a specific namespace?

A.Modify the global ClusterVersion resource with the namespace-specific pull secret.
B.Edit the CatalogSource resource to inject credentials into the CSV.
C.Annotate the OperatorGroup with 'olm.openshift.io/pull-secret=true'.
D.Add the image pull secret to the ServiceAccount used by the Operator deployment in the target namespace.
AnswerD

Kubernetes pods pull images using credentials attached to their ServiceAccount via imagePullSecrets.

Why this answer

Administrators can link a pull secret to the ServiceAccount used by the Operator's CSV or patch the operator's deployment/subscription depending on OLM version, or add the pull secret to the default ServiceAccount in that namespace.

101
Multi-Selectmedium

An administrator wants to verify node configuration application status. Which TWO indicators show that a MachineConfigPool has successfully finished applying a new MachineConfig? (Choose TWO)

Select 2 answers
A.The 'ClusterVersion' status reads 'Updating'.
B.The 'UpdatedMachineCount' equals the 'MachineCount' in the pool status.
C.The 'Updating' condition status is False.
D.The pool status condition 'Paused' is set to True.
E.The 'DegradedMachineCount' is greater than zero.
AnswersB, C

Equal counts indicate all machines in the pool have received the latest configuration.

Why this answer

A successfully updated MachineConfigPool will show Updating=False and Updated=<total-nodes> matching machine counts.

102
Multi-Selecteasy

Which TWO commands or tools can an administrator use to inspect cluster logs or events when troubleshooting node or pod issues? (Choose TWO)

Select 2 answers
A.oc adm cluster-logs --tail=all
B.oc logs <pod-name>
C.oc system-log dump
D.oc adm tail-events
E.oc get events
AnswersB, E

oc logs retrieves container log output.

Why this answer

Administrators use 'oc logs' and 'oc get events' to investigate pod and cluster activities.

103
MCQhard

An OVN-Kubernetes clustered environment requires configuring egress IP functionality for a specific namespace so that all outgoing traffic from pods in that namespace appears to originate from a designated external IP address. Which custom resource must be configured?

A.ClusterNetwork
B.HostSubnet
C.EgressRouter
D.EgressIP
AnswerD

The EgressIP custom resource is used by OVN-Kubernetes to assign dedicated IPs for egress traffic.

Why this answer

In OVN-Kubernetes, EgressIP is a native custom resource used to assign a dedicated external IP to specific pods or namespaces.

104
MCQmedium

A DeploymentConfig in OpenShift has a Rolling strategy defined. Which parameter in the strategy configuration controls the maximum number of pods that can be created above the desired replica count during the update?

A.interval
B.maxSurge
C.updatePeriodSeconds
D.maxUnavailable
AnswerB

maxSurge specifies the maximum number of extra pods allowed during the rollout.

Why this answer

maxSurge controls how many pods can be scheduled above the desired number of pods during a rolling update.

105
MCQmedium

You need to ensure that a specific ServiceAccount named 'builder-sa' in the 'cicd' project can use the 'privileged' SecurityContextConstraints. Which command accomplishes this?

A.oc annotate serviceaccount builder-sa scc=privileged -n cicd
B.oc adm policy add-scc-to-user privileged system:serviceaccount:cicd:builder-sa
C.oc set scc privileged --serviceaccount=builder-sa -n cicd
D.oc create rolebinding privileged-binding --clusterrole=privileged --serviceaccount=cicd:builder-sa
AnswerB

This command adds the service account to the 'privileged' SCC's users list, allowing pods using that service account to run with privileged constraints.

Why this answer

Using the 'oc adm policy add-scc-to-user' command with the service account reference grants it access to the specified SCC.

106
Multi-Selecteasy

Which TWO namespaces are standard system namespaces in OpenShift 4.14 that contain core cluster operators and platform components? (Choose TWO)

Select 2 answers
A.openshift-user-workloads
B.kube-public-custom
C.openshift-cluster-version
D.openshift-machine-config-operator
E.openshift-custom-catalog
AnswersC, D

Contains the Cluster Version Operator.

Why this answer

openshift-cluster-version and openshift-machine-config-operator are core platform namespaces.

107
MCQmedium

An administrator wants to view the available recommended upgrade paths for an OpenShift 4.14 cluster from the command line. Which command should the administrator run?

A.oc adm upgrade
B.oc describe upgrade-channel
C.oc get clusterversion --recommendations
D.oc cluster-version check
AnswerA

Running 'oc adm upgrade' displays the current version, available updates, and recommended target versions.

Why this answer

The 'oc adm upgrade' command displays available updates and recommended upgrade paths for the cluster.

108
MCQhard

An administrator needs to prune or reclaim dangling VolumeSnapshotContent objects whose parent VolumeSnapshots have already been deleted, but the reclaim policy was set incorrectly. How can this be resolved?

A.Recreate the deleted VolumeSnapshot with the exact same UID.
B.Restart the snapshot-controller deployment.
C.Run 'oc prune snapshots --force'.
D.Manually delete the orphaned VolumeSnapshotContent object or remove its finalizers if stuck.
AnswerD

Orphaned snapshot contents require manual cleanup if retain policies left them behind.

Why this answer

If the snapshot content is orphaned due to deletion policy misconfiguration, the administrator can manually edit the VolumeSnapshotContent object to remove its finalizers or delete it directly.

109
MCQeasy

Which default OpenShift cluster role grants full administrative privileges to manage all resources within a specific project when bound via a RoleBinding?

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

The 'admin' role allows a user to view, modify, and delete most resources within a project.

Why this answer

The 'admin' default ClusterRole grants comprehensive control over most resources in a project, including managing roles and role bindings.

110
MCQmedium

An administrator creates a Route with a specific hostname, but multiple Ingress controllers exist in the cluster. How does the Route know which Ingress controller should serve it?

A.By adding the Ingress controller IP directly to the Route spec targetPort.
B.By specifying the corresponding label selector in the Route spec under 'wildcardPolicy' or router selection annotations.
C.All routes are automatically served by every Ingress controller without exception.
D.Routes cannot be assigned to specific Ingress controllers.
AnswerB

Routes can target specific router shards using router selector labels or annotations like 'router.openshift.io/detour'. (Wait, routers are matched via route labels and IngressController RouteSelector).

Why this answer

Routes specify which Ingress controller should serve them using the 'ingressControllers' label selector or by referencing the router name in the route spec / namespace annotations.

111
MCQhard

An OpenShift cluster administrator needs to ensure that custom S2I builder images stored in an insecure internal registry can be successfully pulled by build pods without failing TLS verification. Where must the insecure registry be defined?

A.In the OAuth client definition
B.In the cluster Image resource configuration (imageregistry.config.openshift.io/cluster or image.config.openshift.io)
C.In the individual BuildConfig strategy environment variables
D.In the Project request template metadata
AnswerB

Cluster-wide image configuration defines registries that are insecure or require specific trust stores.

Why this answer

Insecure registries must be configured in the cluster-wide Image.config.openshift.io/cluster resource (or registry configuration) so the container runtime and build machinery trust the registry.

112
MCQmedium

You need to verify whether a particular ServiceAccount in your project has permissions to read Secrets. Which command tests this authorization?

A.oc auth can-i get secrets --as=system:serviceaccount:<namespace>:<serviceaccount-name>
B.oc describe rolebinding --serviceaccount=<serviceaccount-name>
C.oc check secrets --serviceaccount=<serviceaccount-name>
D.oc adm verify-sa <serviceaccount-name>
AnswerA

This command evaluates if the specified service account can get secrets.

Why this answer

Using 'oc auth can-i' with the '--as' flag pointing to the service account tests its permissions.

113
Multi-Selecthard

An administrator is configuring automated node remediation and scaling in OpenShift 4.14. Which THREE objects or custom resources are involved in machine management, autoscaling, and health checking? (Choose THREE)

Select 3 answers
A.MachineSet
B.ClusterVersion
C.OperatorGroup
D.ClusterAutoscaler
E.MachineHealthCheck
AnswersA, D, E

MachineSet manages machine replica sets for compute nodes.

Why this answer

Machine, ClusterAutoscaler, and MachineHealthCheck are core resources involved in machine lifecycle and health management.

114
MCQmedium

A cluster administrator has created a custom ClusterRole named 'pod-debugger' with permissions to execute commands in pods. They want to ensure that only users in the 'development' group can utilize this role within the 'app-dev' project. How should they configure this?

A.Modify the 'pod-debugger' ClusterRole directly to include a namespace selector for 'app-dev'.
B.Create a Role in the 'app-dev' namespace and assign it to the 'pod-debugger' subject.
C.Create a RoleBinding in the 'app-dev' namespace referencing the 'pod-debugger' ClusterRole and the 'development' group.
D.Create a ClusterRoleBinding for the 'development' group pointing to 'pod-debugger'.
AnswerC

Referencing a ClusterRole in a namespace-scoped RoleBinding effectively grants those permissions only within that specific namespace.

Why this answer

A RoleBinding created within the 'app-dev' project referencing the 'pod-debugger' ClusterRole and the 'development' group correctly scopes the cluster-wide permissions to that single namespace.

115
MCQhard

You need to update the CA certificate used for the web console. Where is this configured?

A.In the cluster config map
B.In the authentication operator
C.In the 'ingress' operator configuration
D.In the 'console' operator configuration
AnswerD

The console operator manages the certificates used for the web console.

Why this answer

The console CA is configured via the 'console' operator object in 'openshift-console' namespace.

116
Multi-Selectmedium

An administrator is configuring authentication in OpenShift. Which TWO of the following identity provider types are natively supported by the OpenShift OAuth server? (Choose TWO)

Select 2 answers
A.HTPasswd
B.LDAP
C.CustomDatabaseProvider
D.LocalFileAuthService
E.ActiveDirectoryNativeProtocol
AnswersA, B

HTPasswd is a natively supported identity provider type using flat files and htpasswd generated secrets.

Why this answer

OpenShift natively supports multiple identity providers including HTPasswd, LDAP, OpenID Connect, GitHub, and Keystone.

117
MCQhard

An administrator needs to deploy a Helm chart into an OpenShift cluster while overriding specific chart values using a local YAML file. Which Helm CLI command should be executed?

A.helm push my-chart --override overrides.yaml
B.helm install my-release my-chart --values overrides.yaml
C.helm deploy my-release my-chart --values overrides.yaml
D.helm apply -f overrides.yaml my-chart
AnswerB

helm install creates a release from a chart and accepts custom values files via --values.

Why this answer

The helm install command with the -f or --values flag allows supplying a YAML file to override default chart values.

118
MCQmedium

An OpenShift administrator needs to trigger a rollback of a Deployment to its previous working revision after a failed update. Which oc command should be used?

A.oc update deployment/my-app --revision=previous
B.oc rollout undo deployment/my-app
C.oc revert deployment/my-app
D.oc rollback deployment/my-app
AnswerB

oc rollout undo reverts the deployment to the previous or specified revision.

Why this answer

The oc rollout undo command reverts a deployment back to a previous revision in the rollout history.

119
MCQeasy

Which access mode specifies that a volume can be mounted as read-write by a single node?

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

ReadWriteOnce restricts volume mounting to a single node for read-write access.

Why this answer

ReadWriteOnce (RWO) allows a volume to be mounted as read-write by a single node.

120
MCQhard

You are integrating an external LDAP identity provider. Which secret must be created to store the bind password for the LDAP server?

A.A secret in the 'openshift-authentication' namespace
B.A project-level secret in the target application namespace
C.A secret in the 'kube-system' namespace
D.A generic secret in the 'openshift-config' namespace
AnswerD

The secret containing the bind password must be in the 'openshift-config' namespace for the OAuth operator to read it.

Why this answer

OpenShift requires the LDAP bind password to be stored in a secret referenced by the OAuth configuration.

121
Multi-Selecteasy

Which THREE fields are critical for controlling pod volume access in an SCC?

Select 3 answers
A.privileged
B.readOnlyRootFilesystem
C.fsGroup
D.hostNetwork
E.volumes
AnswersB, C, E

This enforces a read-only root.

Why this answer

SCCs use 'volumes', 'fsGroup', and 'readOnlyRootFilesystem' to control filesystem access.

122
MCQeasy

An administrator needs to inspect all StorageClasses available in an OpenShift cluster using the OpenShift CLI. Which command should be executed?

A.oc describe storageclasses
B.oc get pvc
C.oc get sc
D.oc get pv
AnswerC

oc get sc is the correct shorthand command to list StorageClasses.

Why this answer

The 'oc get storageclass' (or sc) command lists all StorageClasses defined in the cluster.

123
Multi-Selectmedium

An administrator is managing service accounts and wants to understand how tokens work in OpenShift 4.14+. Which TWO statements are correct regarding ServiceAccount tokens in this version? (Choose TWO)

Select 2 answers
A.Service accounts are now deprecated in favor of OAuth user objects.
B.Tokens must be stored in plaintext ConfigMaps for pods to read them.
C.Service accounts can no longer authenticate against the Kubernetes API server.
D.Long-lived API tokens are no longer automatically created as secrets when a new ServiceAccount is created.
E.Bound service account tokens are ephemeral and time-bound by default using TokenRequest API.
AnswersD, E

To avoid unbounded token risks, automatic secret creation for service accounts is disabled by default in 4.14+.

Why this answer

In OpenShift 4.14+, bound service account tokens are audience-bound and ephemeral by default, while legacy long-lived secrets are no longer automatically created for new service accounts.

124
MCQmedium

An administrator needs to troubleshoot an application that fails to resolve internal cluster service names. They decide to run an interactive shell inside a temporary debugging pod with DNS tools installed. Which command creates this diagnostic pod?

A.oc debug service/my-svc
B.oc adm tcp-dump
C.oc rsh net-debug
D.oc run net-debug --rm -it --image=quay.io/openshift/origin-cli:latest -- /bin/bash
AnswerD

This command spins up a temporary interactive pod with OpenShift CLI tools for network debugging.

Why this answer

oc run with --rm -it allows spinning up an ephemeral container (such as busybox) for interactive network troubleshooting.

125
MCQeasy

An administrator needs to list all persistent volume claims in the cluster that are currently stuck in the 'Pending' state. Which command can be combined with grep or custom formatting to identify them?

A.oc get pvc --all-namespaces
B.oc describe storage-cluster
C.oc adm storage pending
D.oc get pv --status=Pending
AnswerA

This lists all PVCs cluster-wide, allowing the administrator to check for Pending status.

Why this answer

oc get pvc --all-namespaces lists all PVCs across the cluster, which can be inspected for their status.

126
Multi-Selecthard

An administrator is analyzing a severe networking issue where pod-to-pod communication across different worker nodes fails. Which THREE diagnostic utilities or commands should they execute inside an oc debug session on the nodes? (Choose THREE)

Select 3 answers
A.oc adm upgrade status
B.tcpdump -i <interface>
C.ovs-ofctl dump-flows br-int
D.etcdctl endpoint health
E.ip route show
AnswersB, C, E

Captures raw packets traversing node network interfaces.

Why this answer

Checking OVS flows, interface configurations, and routing tables via oc debug node sessions diagnoses cross-node networking failures.

127
Multi-Selecthard

An administrator is auditing Security Context Constraints and wants to identify which settings can be controlled within a custom SCC definition. Which THREE fields are valid configuration options inside an SCC resource? (Choose THREE)

Select 3 answers
A.routeAdmissionLimit
B.networkPolicyMode
C.requiredDropCapabilities
D.allowPrivilegedContainer
E.volumes
AnswersC, D, E

requiredDropCapabilities specifies Linux capabilities that must be dropped from containers.

Why this answer

Valid SCC fields include allowPrivilegedContainer, requiredDropCapabilities, and volumes.

128
MCQhard

An administrator has added a new custom worker MachineConfigPool and wants existing worker nodes to be migrated into this new pool based on specific labels. How does an administrator move a node from the default worker pool to a custom MachineConfigPool?

A.Modify the cluster-wide node migration ConfigMap.
B.Apply the corresponding role label to the node (e.g., 'oc label node worker-01 node-role.kubernetes.io/custom-worker='').
C.Edit the MachineSet to change its target pool name.
D.Run 'oc adm migrate node worker-01 --to-pool=custom-worker'.
AnswerB

MachineConfigPools select nodes based on matching node role labels.

Why this answer

To move a node to a custom MachineConfigPool, the administrator must label the node with the role label matching the custom MachineConfigPool (e.g., node-role.kubernetes.io/<pool-name>='').

129
MCQeasy

Which command is used to list all users who currently have the 'cluster-admin' role assigned via ClusterRoleBindings?

A.oc get users --role=cluster-admin
B.oc adm who-is cluster-admin
C.oc describe clusterrole cluster-admin
D.oc get clusterrolebindings cluster-admin -o jsonpath='{.subjects}'
AnswerD

Inspecting the subjects of the cluster-admin ClusterRoleBinding reveals all users and groups with cluster-admin access.

Why this answer

The 'oc adm policy who-can' command inspects who can perform actions or who is bound to a specific role.

130
Multi-Selectmedium

Which TWO authentication methods are supported by the OpenShift OAuth server?

Select 2 answers
A.Htpasswd
B.Local file system user list
C.LDAP
D.Custom SSH keys
E.Direct database connection
AnswersA, C

Htpasswd is a supported provider.

Why this answer

OpenShift natively supports various identity providers including LDAP and Htpasswd.

131
MCQeasy

An administrator wants to check the cluster-wide resource consumption of nodes (CPU and Memory percentages). Which command provides this tabular overview?

A.oc get nodes --metrics
B.oc adm top nodes
C.oc cluster-capacity
D.oc describe nodes --usage
AnswerB

oc adm top nodes reports current CPU and memory usage statistics for all nodes.

Why this answer

oc adm top nodes displays real-time CPU and memory utilization across all cluster nodes.

132
MCQeasy

An application pod needs to discover other pods behind the same headless service. What characteristic defines a headless service?

A.It automatically creates an external Route resource.
B.It has spec.clusterIP set to None.
C.It does not have any selector defined in its specification.
D.It disables internal container DNS resolution entirely.
AnswerB

Setting clusterIP to None makes the service headless.

Why this answer

A headless service is created by setting clusterIP: None, which disables load balancing and returns the IP addresses of the individual pods via DNS.

133
Multi-Selecthard

Which TWO fields are mandatory when defining a standard Kubernetes NetworkPolicy object? (Choose TWO)

Select 2 answers
A.spec.ingress
B.metadata
C.spec.egress.to.ipBlock
D.metadata.namespace
E.spec.podSelector
AnswersB, E

All Kubernetes objects require standard metadata (like name).

Why this answer

A NetworkPolicy requires 'apiVersion', 'kind', 'metadata', and 'spec' (with podSelector). From the specific choices, spec.podSelector and metadata are essential.

134
MCQeasy

An administrator wants to expose a Deployment via a NodePort service. What is the default port range allocated for NodePort services in OpenShift if not explicitly configured otherwise?

A.1024-65535
B.80-443
C.30000-32767
D.8000-9000
AnswerC

The default NodePort range in Kubernetes/OpenShift is 30000 to 32767.

Why this answer

Kubernetes and OpenShift allocate NodePort services within the standard port range of 30000-32767.

135
MCQeasy

A developer reports that their pod is unable to start because it cannot mount a persistent volume claim (PVC). Where should the administrator look to diagnose volume attachment issues related to the CSI driver?

A.oc get events -n openshift-storage
B.oc describe pvc my-pvc
C.oc debug node/worker-0
D.oc logs -n openshift-cluster-storage-operator deployment/csi-snapshot-controller-operator
AnswerB

Describe PVC provides immediate feedback on binding status, events, and CSI mount errors.

Why this answer

The cluster-wide CSI provisioner and attacher controllers log storage attachment issues, typically found in the logs of the pods within the openshift-cluster-storage-operator namespace or the specific CSI driver namespace.

136
MCQmedium

You need to configure a ServiceAccount named 'app-runner' in the 'finance' namespace so that its authentication token does not automatically expire or get automatically generated as a short-lived token (in OCP 4.16+, tokens are bound to service account token volume projection). If you need to create a long-lived API token secret for this ServiceAccount manually, how should you do it?

A.oc create token app-runner -n finance --duration=8760h
B.Edit the service account YAML to set 'automountServiceAccountToken: true'.
C.oc create secret generic my-token --type=kubernetes.io/service-account-token -n finance
D.oc adm create-token app-runner --permanent
AnswerA

The 'oc create token' command generates a timed or long-lived token directly for a service account.

Why this answer

In modern OpenShift versions, long-lived tokens are no longer automatically created for ServiceAccounts. To create one, you must create a Secret of type 'kubernetes.io/service-account-token' with an annotation pointing to the service account.

137
Multi-Selectmedium

Which THREE of the following components are involved in authenticating a user via an external OAuth identity provider in OpenShift? (Choose THREE)

Select 3 answers
A.Kubelet node agent
B.OpenShift OAuth Server
C.External Identity Provider (e.g., LDAP or OIDC server)
D.Cluster Storage Operator
E.OpenShift API Server
AnswersB, C, E

The built-in OAuth server handles authentication requests and token issuance.

Why this answer

OAuth authentication involves the client/browser, the OpenShift OAuth server, and the external identity provider (such as HTPasswd or OIDC).

138
MCQmedium

You are troubleshooting project requests. A developer runs 'oc new-project test-proj' and receives an error that project requests are disabled or forbidden. Where is the global project request template or configuration managed?

A.In the 'kube-system' namespace as a Secret
B.In the 'openshift-config' namespace as a ConfigMap named 'project-request'
C.In the OAuth configuration file on master nodes
D.In the cluster-scoped 'project.config.openshift.io/cluster' resource
AnswerD

The project configuration resource defines project request behavior and templates cluster-wide.

Why this answer

Project request configurations are managed via the 'Project' cluster operator configuration resource ('cluster' instance of project.config.openshift.io).

139
Multi-Selectmedium

An administrator wants to prevent automatic updates for an Operator installed via OLM while still allowing manual installation of new versions when desired. Which TWO actions or configurations should be performed? (Choose TWO)

Select 2 answers
A.Approve generated InstallPlans selectively using 'oc patch installplan' or via the web console when an update is desired.
B.Scale the OLM operator pods to zero.
C.Delete the CatalogSource resource entirely.
D.Set 'spec.installPlanApproval: Manual' in the Operator Subscription.
E.Annotate the Subscription with 'olm.openshift.io/block-updates=true'.
AnswersA, D

Administrators review and approve pending install plans manually.

Why this answer

To prevent automatic updates, set installPlanApproval to Manual and approve install plans manually when ready.

140
MCQmedium

A pod requires access to the hostPath volume. Which SCC field must be configured to allow this?

A.allowHostPath: true
B.privileged: true
C.mounts: host
D.volumes: ["hostPath"]
AnswerD

This allows the pod to mount hostPath volumes.

Why this answer

The 'volumes' field in the SCC must include 'hostPath'.

141
MCQmedium

An administrator wants to pause rollouts on a DeploymentConfig named backend-api to make multiple configuration changes without triggering intermediate builds or rollouts. Which command pauses the rollout?

A.oc patch dc/backend-api --type=json -p='[{"op": "add", "path": "/spec/paused", "value": true}]'
B.oc suspend dc/backend-api
C.oc stop rollout dc/backend-api
D.oc rollout pause dc/backend-api
AnswerD

oc rollout pause marks the deployment as paused, preventing automatic rollouts until resumed.

Why this answer

The oc rollout pause command suspends rollout updates on a Deployment or DeploymentConfig.

142
Multi-Selecteasy

Which TWO commands are typically used to check the status of an application rollout?

Select 2 answers
A.oc get dc
B.oc rollout status
C.oc build logs
D.oc trigger
E.oc watch
AnswersA, B

Lists the current state of DeploymentConfigs.

Why this answer

Both 'oc rollout status' and 'oc get dc' provide insight into the current state of a deployment.

143
MCQmedium

A developer deploys a headless service (ClusterIP set to None) in OpenShift. What is the primary characteristic of a headless service?

A.It prevents any external routes from binding to the service.
B.It routes traffic exclusively via NodePort across worker nodes.
C.It does not allocate a ClusterIP, and DNS returns the individual pod IPs directly.
D.It provisions an external cloud load balancer automatically.
AnswerC

Headless services facilitate direct peer discovery by resolving to pod IPs via DNS.

Why this answer

Headless services do not allocate a cluster IP; instead, DNS returns the IP addresses of the individual pods backing the service directly.

144
MCQeasy

An administrator needs to modify the SSH key used for debugging worker nodes across an OpenShift 4.14 cluster. Which resource type should the administrator edit or create to apply this change cluster-wide to all worker nodes?

A.Modify the ClusterVersion custom resource spec field.
B.Edit the kubelet configuration map in the kube-system namespace.
C.Update the authentication.config.openshift.io cluster operator resource.
D.Create or modify a MachineConfig object that targets the worker role and specifies the sshKey field.
AnswerD

MachineConfig resources are specifically designed by the Machine Config Operator to deliver OS-level settings like SSH keys.

Why this answer

MachineConfig objects allow administrators to manage node-level configuration changes, including injecting authorized SSH keys for the core user.

145
MCQmedium

A container inside a pod is failing with 'ImagePullBackOff'. The administrator verifies the image tag exists. What is the next most logical troubleshooting step to check authentication or registry access?

A.Inspect the etcd cluster operator status.
B.Run 'oc debug' to inspect the container file system.
C.Check if a pull secret is correctly configured and bound to the service account.
D.Restart the cluster version operator.
AnswerC

Missing or incorrect pull secrets lead to unauthorized image pulls, resulting in ImagePullBackOff.

Why this answer

Checking the ImageStream or Secret associated with image pull credentials (such as dockercfg secrets) is necessary when pulling from private registries.

146
MCQhard

A user creates a VolumeSnapshot and notices that the resulting VolumeSnapshotContent status is marked as readyToUse: false. What is the most likely cause?

A.The VolumeSnapshot object must be manually promoted before it becomes ready.
B.The PVC being snapshotted has active writes and the storage backend is still synchronizing snapshot data.
C.The VolumeSnapshotClass is missing the deletionPolicy parameter.
D.The PVC must be unmounted from all running pods before a snapshot can be marked ready.
AnswerB

Asynchronous storage backends or heavy write loads can delay the readiness of a snapshot.

Why this answer

The CSI driver or storage backend has not finished creating the snapshot or data protection sync, or the underlying storage controller hasn't reported back readiness yet.

147
Multi-Selecthard

An administrator needs to configure a Deployment strategy in OpenShift. Which THREE deployment strategy types are natively supported by standard Kubernetes/OpenShift Deployments? (Choose three.)

Select 3 answers
A.Rolling (for DeploymentConfigs) / RollingUpdate (for Deployments)
B.BlueGreen
C.Recreate
D.Canvas
E.RollingUpdate
AnswersA, C, E

Rolling / RollingUpdate is a standard strategy across Deployment and DeploymentConfig objects.

Why this answer

Standard Kubernetes Deployments support RollingUpdate. OpenShift-specific DeploymentConfigs support Rolling, Recreate, and Custom strategies. Standard Deployments specifically use RollingUpdate natively.

Recreate is also supported by standard Deployments. (Note: Standard Deployments support Recreate and RollingUpdate strategies under .spec.strategy.type).

148
Multi-Selecthard

An administrator is managing cluster machine configurations and needs to understand how Ignition configuration files are processed. Which THREE statements are correct regarding Ignition and the Machine Config Operator in OpenShift 4.14? (Choose THREE)

Select 3 answers
A.The Machine Config Daemon runs on every node to apply updates delivered by the MCO.
B.Ignition configuration is used by the operating system during initial node provisioning and first boot.
C.The Machine Config Operator merges multiple MachineConfigs into a single rendered MachineConfig for each pool.
D.Ignition files are stored directly inside etcd without encryption or serialization.
E.Ignition configs are dynamically parsed and executed continuously by a background daemon every 5 seconds during normal runtime.
AnswersA, B, C

The daemon applies ignition specifications and manages node reboots.

Why this answer

Ignition provisions nodes on first boot, rendered MachineConfigs combine configs, and the Machine Config Daemon applies them.

149
Multi-Selecteasy

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

Select 2 answers
A.NetworkPort
B.ClusterIP
C.RouteIP
D.ContainerPort
E.NodePort
AnswersB, E

ClusterIP is a valid and default service type.

Why this answer

Kubernetes and OpenShift support several standard service types, among which ClusterIP and NodePort are core native types.

150
MCQmedium

You need to deploy a Node.js application from a Git repository using Source-to-Image (S2I) on OpenShift 4.14, and you want to ensure the build triggers automatically whenever a new image is pushed to the dependent base ImageStream. Which BuildConfig strategy and configuration element achieves this?

A.Configure a Docker build with a ConfigChange trigger on the DeploymentConfig.
B.Configure a Source build with an ImageChange trigger on the input ImageStreamTag.
C.Configure a Pipeline build referencing a Tekton pipeline with manual execution parameters.
D.Configure a Custom build with a GitHub webhook trigger referencing the source repository.
AnswerB

An ImageChange trigger monitors the base ImageStreamTag and automatically initiates a new build when the base image updates.

Why this answer

Using the source strategy in a BuildConfig along with triggers of type ImageChange allows the build to automatically run when the referenced ImageStreamTag changes.

Page 1

Page 2 of 7

Page 3

All pages