Exam Information
Free practice questions with explanations
RedHat EX380 Practice Questions
Answer a question to see the correct answer and the explanation, or click Show answer. Newest questions first.
- Questions
- 10
- Answered
- 0
- Correct
- 0
- Score
- -
-
1 Question 1 Single choice Back up and restore applications with OpenShift API for Data Protection (OADP)
A financial services company runs a PostgreSQL database on OpenShift 4.14 using a CSI-backed PersistentVolumeClaim. The team must back up the application namespace nightly, including the PVC data, and must be able to restore into a different cluster in the same region. Their storage vendor supports CSI snapshots, but the platform team has been asked not to change the StorageClass used by the database. The OADP operator is installed and a DataProtectionApplication resource exists pointing to an S3-compatible bucket. The backup must capture both Kubernetes resources and volume data, and the restore must not depend on snapshot objects remaining in the source cluster. Which configuration meets these requirements?
Correct Answer: AExplanationSetting defaultVolumesToFsBackup to true tells OADP to use Restic or Kopia file-system backup for volumes without requiring CSI snapshot support, and the data is written to the object storage bucket so it does not depend on source-cluster snapshot objects. Disabling snapshotVolumes (option B) gives up volume data entirely, since the provisioner does not replicate data for the backup. Backing up only Secrets and ConfigMaps with a manual rsync (option C) misses PVC contents and is not an OADP-managed restore. Relying on VolumeSnapshot objects (option D) keeps the recovery tied to the source cluster's snapshot resources, violating the stated constraint.
-
2 Question 2 Single choice Configure and manage OpenShift Authentication and Identities
A retail company is migrating its OpenShift 4.15 cluster from a local htpasswd identity provider to LDAP. During the cutover, the security team requires that existing htpasswd users keep their cluster-admin rights until the LDAP accounts are verified, and that no user is ever mapped to two identities. The LDAP directory uses the uid attribute for login names, which collides with a few htpasswd usernames. The administrator has added an LDAP identity provider to the OAuth cluster configuration with the mappingMethod set to claim. Logins from LDAP users whose names already exist as htpasswd users are failing with an error about the identity being already associated with another user. What is the BEST action to resolve this while meeting the constraints?
Correct Answer: AExplanationWith the add mapping method, OpenShift associates a new identity with an existing User object if one exists, and the lookup method requires pre-created identity mappings, which the scenario does not have. The claim method rejects logins when the username is already linked to a different identity, which is the error seen here. Setting mappingMethod to add, as option A describes, allows the LDAP identity to be attached to the existing User, so both providers can coexist without duplicating users. Deleting the htpasswd User objects (option B) breaks the requirement to keep cluster-admin rights for existing users. Removing the htpasswd provider (option C) would cut off access before LDAP accounts are verified. The generate method (option D) creates usernames that do not match the directory, causing confusion and failing the verification step.
-
3 Question 3 Single choice Implement OpenShift GitOps
A platform team manages several clusters with OpenShift GitOps 1.12. The cluster administrators want a single Argo CD instance in the openshift-gitops namespace to manage cluster-scoped configuration, such as OAuth settings and ClusterRoleBindings, from a Git repository. Application teams should deploy their own Helm charts into their namespaces through the same instance, but they must not be able to modify cluster-scoped resources or change the Argo CD configuration. The security team also requires that Argo CD cannot grant itself more privileges than those assigned to the target namespace. Which configuration BEST meets these requirements?
Correct Answer: BExplanationAppProject resources in OpenShift GitOps let you limit source repositories, destination namespaces and allowed cluster-scoped resource kinds per project, so team applications are confined to their namespaces while a dedicated project handles cluster configuration. Granting cluster-admin to the controller (option A) gives every application full cluster privileges, violating the constraint that Argo CD must not exceed the target namespace's rights. Spinning up separate Argo CD instances (option C) is not what the scenario asks and adds operational overhead without addressing the per-project restriction. Leaving the default project wide open (option D) relies on manual review instead of enforced policy.
-
4 Question 4 Single choice Manage cluster monitoring and metrics
An e-commerce company runs an OpenShift 4.16 cluster. Its on-call team received a PrometheusRule alert named KubePodCrashLooping for a payments workload during a planned maintenance window of 02:00 to 04:00 UTC, when the crash loop is expected because a dependent database is being restarted. The alert is routed by Alertmanager to a pager, which is causing unnecessary wake-ups. The team must suppress notifications only for this alert and only for the maintenance window, must not disable the alert rule for other namespaces, and must keep a record of the silence for audit. Which action should the administrator take?
Correct Answer: BExplanationAlertmanager silences match on labels such as alertname and namespace and can be given a start and end time, so the payment-namespace crash loop notifications are muted for exactly the window while other namespaces keep alerting. Disabling the rule cluster-wide (option A) removes detection for everyone and violates the scope requirement. Deleting the PrometheusRule (option C) loses the rule definition and leaves no audit record of the suppression. An inhibit rule on severity (option D) affects far more alerts than the one named and is a routing mechanism rather than a time-bounded silence.
-
5 Question 5 Single choice Manage workloads with cluster partitioning
A healthcare provider runs an OpenShift 4.14 cluster and needs to dedicate six worker nodes with high-memory instance types to an in-memory analytics workload. The nodes must be provisioned and replaced automatically when hardware is retired, and they must receive a kernel argument that enables hugepages for the analytics pods. The cluster is installed on AWS using machine API. The platform team wants the configuration to be declarative and to roll the nodes in a controlled way when the setting changes. Which combination of resources should the administrator create?
Correct Answer: CExplanationA custom MachineConfigPool that selects a node label lets the Machine Config Operator roll changes to only those nodes in a controlled way, and a KubeletConfig can set the hugepages allocation through the operator's pipeline. The scenario also requires that nodes are provisioned automatically, which needs MachineSets, so option C is incomplete on its own. Option A correctly pairs machine provisioning with a MachineConfig, but a MachineConfig for kernel arguments needs a matching MachineConfigPool to isolate the change to the analytics nodes. Editing nodes manually with oc debug and grubby (option B) is not declarative and is overwritten or drifted by the operator. The Cluster Autoscaler and a ConfigMap (option D) cannot set kernel arguments and do not provide a controlled rollout.
-
6 Question 6 Single choice Manage workloads with pod scheduling
A logistics company runs an OpenShift 4.15 cluster where six nodes are labeled workload=batch and tainted with dedicated=batch:NoSchedule. A batch processing namespace named nightly-etl must run only on those nodes, and the team wants the nightly jobs to still be able to schedule even when some of those nodes are cordoned for patching. A separate team's web application in the namespace storefront must never land on the batch nodes, even if an administrator later adds a toleration to its deployment by mistake. Which configuration satisfies these requirements?
Correct Answer: BExplanationA toleration allows a pod onto a tainted node, and a nodeAffinity matching workload=batch pins the pods to the labelled nodes; combined, they route nightly-etl pods correctly even while some nodes are cordoned. Setting a NotIn affinity on storefront keeps those pods off the batch nodes regardless of any toleration added later, which a node selector alone would not enforce if the affinity is misconfigured. Option A relies on a project-wide node selector, which is not how project scheduling works and does not guarantee exclusion. Option C uses a project toleration on storefront, which grants access rather than preventing it, and removing the taint breaks the dedication. Option D is a PodDisruptionBudget that governs voluntary evictions, not scheduling, and would block patching entirely.
-
7 Question 7 Multiple choice Provision and inspect cluster logging
A government agency runs OpenShift 4.14 and must forward application and infrastructure logs to an external SIEM that accepts syslog over TLS. Only the platform team may read audit logs, and audit logs must be kept in the external SIEM for 365 days but must not be stored in the cluster for more than 7 days. The cluster has the Red Hat OpenShift Logging operator installed with Vector and Loki deployed for short-term retention. Which TWO actions together meet these requirements? (Choose two.)
Correct Answer: A, BExplanationA ClusterLogForwarder with a syslog output that references a TLS secret and an audit input sends audit records off-cluster as required, while LokiStack retention controls how long data is kept locally, so setting 7 days there and relying on the SIEM for 365 days satisfies both retention limits. Sending audit logs only to the default store (option C) would keep them in the cluster and fail the SIEM requirement. Elasticsearch index lifecycle policies (option D) do not apply to the Vector and Loki deployment described. Granting read access to audit files (option E) for the collector is not the mechanism that restricts who can read logs and does not control retention.
-
8 Question 8 Single choice Configure and manage OpenShift Authentication and Identities
A software company operates an OpenShift 4.16 cluster integrated with Red Hat build of Keycloak as an OIDC provider. A group named engineering-admins is synchronized from the directory into Keycloak and must map to the OpenShift group of the same name, which should receive the cluster-admin role. An automation job runs on a jump host and needs a kubeconfig that expires after 8 hours, cannot be used after the employee leaves the company, and does not store long-lived static credentials on the host. The security team forbids exporting the cluster-admin certificate. Which approach should the administrator use?
Correct Answer: DExplanationLogging in through the OIDC provider with oc login issues a bearer token tied to the Keycloak identity, and that token expires according to the provider's session lifetime, so it does not require storing static credentials and can be revoked by disabling the user in Keycloak. A long-lived ServiceAccount token (option A) violates the expiry and offboarding constraints. Issuing a 10-year client certificate (option C) breaks the expiry requirement and contradicts the security team's rules around exported certificates. Creating a ServiceAccount token from the OIDC user (option B) does not bind to the employee identity and creates a credential that outlives the employee's access.
-
9 Question 9 Single choice Back up and restore applications with OpenShift API for Data Protection (OADP)
A media company runs an OpenShift 4.15 cluster with OADP 1.3 installed. A nightly Schedule backs up the namespace video-pipeline, including volumes via file-system backup. Last night's backup shows PartiallyFailed status, and the restore test failed with messages that the restored pods cannot mount their volumes. The logs show the node-agent pods on two worker nodes are in CrashLoopBackOff with permission denied errors when reading the kubelet pod volume directory. The company's compliance policy requires no changes to the application's security context or to the namespace's pod security labels. Which action is the FIRST step to resolve the backup failure?
Correct Answer: CExplanationThe node-agent DaemonSet needs privileged access to the kubelet pod volume path, and OADP's operator sets up an SCC binding for it; permission denied errors on specific nodes usually point to a missing or overridden SCC or SELinux labeling on those hosts. Relabeling the application namespace (option A) changes pod security labels, which the compliance policy forbids and would not fix the node-agent issue. Granting anyuid (option B) is the wrong SCC for a host-path access need and does not address the node-level cause. Turning off snapshot volumes (option D) disables the volume data backup entirely and does not diagnose the failure.
-
10 Question 10 Single choice Manage workloads with pod scheduling
A telecom operator runs an OpenShift 4.16 cluster with a three-zone worker layout. A stateful messaging application has five replicas, and the operations team must ensure that no two replicas run on the same node and that at least four replicas remain available during voluntary node drains. The cluster administrator is preparing a voluntary drain of a node for kernel patching next week. The team is concerned that the rule for spreading replicas and the budget for drains might conflict and block the drain. Which configuration BEST meets both requirements without changing the replica count?
Correct Answer: BExplanationA required hostname anti-affinity rule guarantees at most one replica per node, and a PodDisruptionBudget with maxUnavailable 1 allows a voluntary drain to evict one pod at a time while keeping at least four available, which matches the requirement without blocking the drain. A preferred anti-affinity rule (option A) is not enforced at scheduling time, so replicas could still share a node. A zone-level anti-affinity with minAvailable 5 (option C) fails to spread across nodes and leaves no room for any voluntary eviction, blocking the drain. Pinning each replica with a nodeSelector and setting maxUnavailable 0 (option D) prevents the drain from ever completing and removes scheduling flexibility.
These are 10 of the 42 questions in the full EX380 pack.
Get All 42 QuestionsGet all 42 questions & answers
Full access options for RedHat EX380
Self-study
PDF Version
- 42 actual exam questions
- Compatible with all devices
- Printable PDF format
- No download limits
- 90 days free updates
- 24/7 customer support
Best value
Bundle Pack
- Discounted PDF + online access
- 42 actual exam questions
- Both PDF and online practice test
- Free 90 days updates
- No download or practice limits
- 24/7 customer support
Exam simulation
Online Practice Test
- 42 actual exam questions
- Actual exam environment
- 90 days free updates
- Browser-based software
- 24/7 customer support
100% Money Back Guarantee
Your success comes first
At DumpsProvider, we give you a 100% money back guarantee on all of our exam dumps. For us, your success is the #1 priority and we are more than confident that our exam material will help you pass the EX380 Exam (Red Hat Certified Specialist in OpenShift Automation and Integration) on your very first attempt.
In a rare case, if you fail your exam, we will refund your amount without asking a single question.