Limited-Time Offer: Enjoy 50% Savings! - Ends In 0d 00h 00m 00s Coupon code: 50OFF
Free Exam Questions

EX380 Exam Questions & Answers

Red Hat Certified Specialist in OpenShift Automation and Integration  •  RedHat

42 Questions Updated Sep 2026 99% Pass Rate
Get Full Access

100% money-back guarantee

Sample EX380 Questions

Practice with real exam-style questions, each with the verified correct answer and explanation.

Q1 MultipleChoice

SIMULATION

Task SIMULATION 11

Kubeconfig Management -- Use Context

Correct Answer: A
Explanation:

Step 1: Make sure the context already exists in the kubeconfig file.

This follows the context creation Task SIMULATION.

Step 2: Run the command:

oc config use-context audit --kubeconfig audit.config

Step 3: Confirm the active context switches successfully.

The lab output shows:

Switched to context 'audit'.

Detailed explanation:

This command activates the audit context inside the specified kubeconfig file. Once selected, subsequent oc commands using that kubeconfig will default to the cluster, user, and namespace associated with that context. This is operationally important because many administration mistakes come from running commands against the wrong cluster or project. Using explicit context switching reduces that risk and makes the kubeconfig usable for the intended audit workflow. In exams and real environments alike, the context is what turns separate kubeconfig elements into a working session configuration. Without switching to the correct context, even a well-formed kubeconfig may not be used as expected.

Q2 MultipleChoice

SIMULATION

Task SIMULATION 5

Backup and Restore -- Fix SCC for Restored Application

Correct Answer: A
Explanation:

Step 1: Identify the application namespace after restore.

The lab shows the namespace as my-app-namespace.

Step 2: Run the SCC assignment command:

oc adm policy add-scc-to-user anyuid -z default -n my-app-namespace

Step 3: Confirm the role binding is applied.

The lab output shows:

clusterrole.rbac.authorization.k8s.io/system:openshift:scc:anyuid added: 'default'

Detailed explanation:

After a restore, the application may fail if its pods require a security context not permitted by the default SCC allocation. This command grants the anyuid SCC to the default service account in the my-app-namespace project. The -z default syntax targets the default service account, which many restored workloads use if no custom service account is defined. The anyuid SCC allows containers to run with arbitrary user IDs, which some legacy or prebuilt images require. In OpenShift, SCC mismatches commonly cause pods to remain in pending or crash-related states. Assigning the proper SCC resolves those admission issues so workloads can start successfully. This step is therefore a post-restore operational fix to align security policy with application requirements.

Q3 MultipleChoice

SIMULATION

Task SIMULATION 7

Service Accounts and RBAC -- Grant Cluster Reader Role

Correct Answer: A
Explanation:

Step 1: Confirm the service account exists in auth-audit.

It must exist before a role can be assigned to it.

Step 2: Run the command:

oc adm policy add-cluster-role-to-user cluster-reader system:serviceaccount:auth-audit:audit

Step 3: Verify the binding is added.

The lab output shows:

clusterrole.rbac.authorization.k8s.io/cluster-reader added: 'system:serviceaccount:auth-audit:audit'

Detailed explanation:

This binds the cluster-reader cluster role to the audit service account. The full subject format system:serviceaccount:namespace:name is required because OpenShift RBAC needs the exact service account identity. The cluster-reader role is broader than a project-scoped view role because it allows read-level access across cluster resources. This is appropriate for auditing or inspection use cases where the account must observe but not modify. The distinction between cluster roles and namespaced roles is important: cluster roles apply to non-namespaced resources and broad cluster visibility, while local roles are limited to individual projects. This Task is a classic RBAC operation that combines identity creation with controlled privilege assignment.

Q4 MultipleChoice

SIMULATION

Task SIMULATION 8

Create and use a service account token via kubeconfig

Task Information: Create SA ci-bot in ci namespace and generate a kubeconfig that authenticates using its token.

Correct Answer: A
Explanation:

Create namespace and service account

oc new-project ci

oc -n ci create sa ci-bot

The SA will represent automation access.

Grant permissions (example: edit in namespace)

oc -n ci policy add-role-to-user edit system:serviceaccount:ci:ci-bot

Without permissions, token auth succeeds but API actions are denied.

Generate token (TokenRequest)

TOKEN=$(oc -n ci create token ci-bot)

OCP issues a short-lived token by default (good practice).

Create kubeconfig using the token

oc config set-cluster lab --server='$(oc whoami --show-server)' \

--insecure-skip-tls-verify=true --kubeconfig=ci-bot.kubeconfig

oc config set-credentials ci-bot --token='$TOKEN' --kubeconfig=ci-bot.kubeconfig

oc config set-context ci --cluster=lab --user=ci-bot --namespace=ci \

--kubeconfig=ci-bot.kubeconfig

oc config use-context ci --kubeconfig=ci-bot.kubeconfig

This produces a self-contained kubeconfig for CI automation.

Test access

oc --kubeconfig=ci-bot.kubeconfig get pods

Q5 MultipleChoice

SIMULATION

Task SIMULATION 9

Create and use client certificates with kubeconfig (CSR flow)

Task Information: Generate a client key/CSR for audit2, approve it, extract the signed cert, and build a kubeconfig using that cert.

Correct Answer: A
Explanation:

Generate private key and CSR

openssl genrsa -out audit2.key 2048

openssl req -new -key audit2.key -out audit2.csr -subj '/CN=audit2/O=auditors'

CN becomes username; O can map to groups in some setups.

Base64 encode CSR for the API object

CSR=$(base64 -w0 audit2.csr)

Kubernetes CSR object expects base64-encoded request data.

Create the CSR object

cat <<EOF | oc apply -f -

apiVersion: certificates.k8s.io/v1

kind: CertificateSigningRequest

metadata:

name: audit2-csr

spec:

request: ${CSR}

signerName: kubernetes.io/kube-apiserver-client

usages:

- client auth

EOF

Approve the CSR

oc adm certificate approve audit2-csr

Approval triggers certificate issuance.

Extract the signed certificate

oc get csr audit2-csr -o jsonpath='{.status.certificate}' | base64 -d > audit2.crt

Produces the client certificate file.

Build kubeconfig using cert/key

oc config set-credentials audit2 \

--client-certificate=audit2.crt --client-key=audit2.key \

--embed-certs=true --kubeconfig=audit2.kubeconfig

oc config set-cluster lab \

--server='$(oc whoami --show-server)' \

--insecure-skip-tls-verify=true \

--kubeconfig=audit2.kubeconfig

oc config set-context audit2 \

--cluster=lab --user=audit2 --namespace=default \

--kubeconfig=audit2.kubeconfig

Creates a kubeconfig that authenticates using client certificates.

Test

oc --kubeconfig=audit2.kubeconfig get ns

Get access to all 42 verified questions with detailed answers.

Unlock All EX380 Questions

Frequently Asked Questions

The EX380 is Red Hat's Certified Specialist in OpenShift Automation and Integration exam. It validates your skills in automating and integrating applications on Red Hat OpenShift Container Platform using Ansible and integration technologies.

The exam covers OpenShift automation, containerization, integration patterns, Ansible playbooks for OpenShift management, and deploying integrated applications. It also includes topics related to API management, message queues, and service mesh technologies within the OpenShift ecosystem.

Red Hat recommends having experience with OpenShift, Ansible, and containerization concepts. You should ideally have hands-on experience as an OpenShift administrator or developer, though formal prerequisites like completing DO380 course are not strictly required.

The EX380 exam is typically a 3.5-hour practical, performance-based test where you complete real-world tasks on live OpenShift systems. The passing score is usually around 70%, though Red Hat uses scaled scoring so the exact percentage may vary.

Red Hat's official DO380 course (Automation and Integration with Red Hat OpenShift) is the primary recommended resource. Additionally, hands-on practice with OpenShift clusters, studying official Red Hat documentation, and reviewing Ansible and integration concepts are essential for success.
Exam Details
  • Exam CodeEX380
  • VendorRedHat
  • Total Questions42
  • LanguageEnglish
  • Last UpdatedSep 3, 2026
4.9/5

Pass EX380 First Time

Get all 42 exam questions with verified answers and 90-day free updates.

Buy Now & Pass
  • PDF + Practice Test Bundle
  • 90-Day Free Updates
  • 100% Money-Back Guarantee
  • Instant Download
  • 24/7 Customer Support
99% Pass Rate Trusted by 50,000+ IT professionals