Free EX280 Questions for RedHat Red Hat Certified Specialist in OpenShift Administration EX280 Exam as PDF & Practice Test Engine
Deploy an application
Deploy the application called oranges in the apples project so that the following conditions are true:
The application uses the ex280sa service account
No additional configuration components have been added or removed The application produces output
Deploy the application called oranges in the apples project so that the following conditions are true:
The application uses the ex280sa service account
No additional configuration components have been added or removed The application produces output
Correct Answer:
See the solution below in Explanation.
Explanation:
Solution:
$ oc project mercury
$ oc get pods
$ oc get all | grep deploy
$ oc describe deployment.apps/atlas | grep -L memory
$ oc set resources deployment.apps/atlas --resources=memory=80Mi
Explanation:
Solution:
$ oc project mercury
$ oc get pods
$ oc get all | grep deploy
$ oc describe deployment.apps/atlas | grep -L memory
$ oc set resources deployment.apps/atlas --resources=memory=80Mi
Configure a service account
Configure a service account in the apples project to meet the following requirements:
The name of the account is ex280sa
The account allows pods to be run as any available user
Configure a service account in the apples project to meet the following requirements:
The name of the account is ex280sa
The account allows pods to be run as any available user
Correct Answer:
See the solution below in Explanation.
Explanation:
Solution:
$ oc project apples
$ oc create sa ex280sa
$ oc adm policy add-scc-to-user anyuid -z ex280sa
Explanation:
Solution:
$ oc project apples
$ oc create sa ex280sa
$ oc adm policy add-scc-to-user anyuid -z ex280sa
Deploy Application in the Project QED
Task information Details:
Set the service account for the specified deployment in project qed to project1-sa .
Task information Details:
Set the service account for the specified deployment in project qed to project1-sa .
Correct Answer:
See the solution below in Explanation.
Explanation:
Solution:
* Ensure you are in the correct project:
oc project qed
* Set the service account on the deployment:
oc set serviceaccount deployment/gitlab-skdjfklj project1-sa
* Verify:
oc get deployment gitlab-skdjfklj -o yaml | grep serviceAccount
oc describe deployment gitlab-skdjfklj
* If required, restart rollout:
oc rollout restart deployment/gitlab-skdjfklj
This task checks workload identity assignment through service accounts.
Explanation:
Solution:
* Ensure you are in the correct project:
oc project qed
* Set the service account on the deployment:
oc set serviceaccount deployment/gitlab-skdjfklj project1-sa
* Verify:
oc get deployment gitlab-skdjfklj -o yaml | grep serviceAccount
oc describe deployment gitlab-skdjfklj
* If required, restart rollout:
oc rollout restart deployment/gitlab-skdjfklj
This task checks workload identity assignment through service accounts.
Scale Application Manually
Task information Details:
Scale the httpd deployment to 5 replicas .
Task information Details:
Scale the httpd deployment to 5 replicas .
Correct Answer:
See the solution below in Explanation.
Explanation:
Solution:
* Scale the deployment:
oc scale deployment httpd --replicas=5
* Verify:
oc get deployment httpd
oc get pods -l app=httpd
* Confirm the desired, current, and available replica counts match.
This task checks direct workload scaling using the OpenShift CLI.
Explanation:
Solution:
* Scale the deployment:
oc scale deployment httpd --replicas=5
* Verify:
oc get deployment httpd
oc get pods -l app=httpd
* Confirm the desired, current, and available replica counts match.
This task checks direct workload scaling using the OpenShift CLI.
0
0
0
10
