Limited-Time Offer: Enjoy 50% Savings! Ends in 00h 00m 00s Coupon code: 50OFF
Skip to content

Free RedHat Red Hat Certified Specialist in OpenShift Automation and Integration EX380 Exam Questions

Page: 1 / 7 Total 42 questions

Want more questions? Get Premium Access.

Question 1

SIMULATION

Task SIMULATION 14

GitOps and MachineConfig -- Trigger Argo CD Synchronization by Repository Update

Correct Answer: A. See thesolution below in Explanation
Explanation:

Step 1: Confirm that the repository being pushed to is the same repository watched by the GitOps/Argo CD application.

This linkage is essential because GitOps acts only on configured source repositories and paths.

Step 2: Commit the MachineConfig changes.

The lab uses:

git commit -am 'Add MachineConfig for motd'

Step 3: Push the changes to the tracked branch.

The lab uses:

git push origin main

Step 4: Allow Argo CD to detect the repository change and begin synchronization.

In a standard GitOps model, the controller compares the Git repository to the cluster state and applies drift correction or new desired resources.

Detailed explanation:

This subTask SIMULATION is the operational purpose behind the previous Git command Task SIMULATION. The point is not merely to store a file in Git; it is to update the declarative source that Argo CD uses to reconcile the cluster. Once the repository is updated, Argo CD detects the new commit and syncs the MachineConfig into the cluster according to its application definition. This demonstrates a core automation principle in OpenShift GitOps: administrators do not treat the cluster as the primary editable surface. Instead, they modify Git and let the automation layer enforce state. That provides traceability, peer review potential, rollback capability, and consistency across environments.


Question 2

SIMULATION

Task SIMULATION 13

GitOps and MachineConfig -- Push MachineConfig to Git

Correct Answer: A. See thesolution below in Explanation
Explanation:

Step 1: Make sure the MachineConfig YAML has already been created or modified in the local Git repository.

This Task assumes the file change is ready to be committed.

Step 2: Run the command:

git commit -am 'Add MachineConfig for motd' && git push origin main

Step 3: Verify the commit succeeds and the push goes to the main branch.

The lab output shows:

[main 8d32a1] Add MachineConfig for motd

Detailed explanation:

This Task is part of a GitOps workflow. Instead of manually applying changes directly to the cluster, the desired configuration is stored in Git, and a GitOps controller such as Argo CD synchronizes the cluster to match the repository state. The command commits all tracked modified files with the message Add MachineConfig for motd and then pushes the change to the main branch. In this model, Git becomes the source of truth. A MachineConfig is typically used to manage node-level operating system configuration in OpenShift, so pushing it through GitOps ensures the change is auditable, repeatable, and reconciled declaratively. If the commit does not include the intended YAML, the synchronization mechanism will not apply the desired change.


Question 3

SIMULATION

Task SIMULATION 26

Silence an alert in Alertmanager

Task Information: Create an Alertmanager silence for a noisy alert for 2 hours, then confirm it's silenced.

Correct Answer: A. See thesolution below in Explanation
Explanation:

Find the alert name and labels

Web console: Observe Alerts click the alert to view label set.

Open Alertmanager silences

Observe Alerting Alertmanager Silences Create silence

Create the silence

Add matcher: alertname = <ALERT_NAME>

Duration: 2 hours

Save.

Verify the alert shows as silenced

The alert should indicate it is silenced in the UI.


Question 4

SIMULATION

Task SIMULATION 2

Identity Management -- Create HTPasswd Secret

Correct Answer: A. See thesolution below in Explanation
Explanation:

Step 1: Open a terminal with oc access to the cluster.

This Task is CLI-driven and targets the openshift-config namespace.

Step 2: Run the command:

oc create secret generic rhds-ldap-secret --from-literal bindPassword=redhatocp -n openshift-config

Step 3: Verify that the secret is created successfully.

The lab output shows:

secret/rhds-ldap-secret created

Detailed explanation:

This step creates a generic secret named rhds-ldap-secret in the openshift-config namespace. The secret stores a key called bindPassword with the value redhatocp. In an identity-provider or LDAP integration workflow, the bind password is used by OpenShift when connecting to the external directory service. Storing this value in a secret is the correct operational pattern because authentication material should not be embedded directly into configuration objects. The openshift-config namespace is specifically important because cluster authentication configuration commonly references secrets and configmaps from that namespace. If the secret name or key is wrong, the authentication configuration that depends on it may fail to validate or connect properly.


Question 5

SIMULATION

Task SIMULATION 23

Create and apply a MachineConfig (set MOTD on workers)

Task Information: Create a MachineConfig that writes /etc/motd on worker nodes.

Correct Answer: A. See thesolution below in Explanation
Explanation:

Create the MachineConfig YAML (example content encoded in base64)

apiVersion: machineconfiguration.openshift.io/v1

kind: MachineConfig

metadata:

name: 99-worker-motd

labels:

machineconfiguration.openshift.io/role: worker

spec:

config:

ignition:

storage:

files:

- path: /etc/motd

mode: 0644

contents:

source: data:text/plain;charset=utf-8;base64,VGhpcyBpcyBhIHdvcmtlciBub2RlLg==

MachineConfig uses Ignition format; file content is typically base64.

Apply it

oc apply -f 99-worker-motd.yaml

Watch worker MachineConfigPool roll out

oc get mcp worker

MCP will show Updating then Updated.

Validate on a worker node (if you have node access)

Confirm /etc/motd contains the expected text.


Question 6

SIMULATION

Task SIMULATION 19

Add tolerations to a deployment

Task Information: Update payments/api deployment to tolerate dedicated=payments:NoSchedule.

Correct Answer: A. See thesolution below in Explanation
Explanation:

Patch deployment with toleration

oc -n payments patch deploy api --type=merge -p '{

'spec':{'template':{'spec':{'tolerations':[

{'key':'dedicated','operator':'Equal','value':'payments','effect':'NoSchedule'}

]}}}

}'

Toleration allows pods to schedule onto tainted nodes.

Verify scheduling

oc -n payments get pods -o wide