20:00

Quiz EX280: Red Hat Certified Specialist in OpenShift Administration

Free Test
/ 10

Quiz

1/10
SIMULATION
Configure an identity provider
Configure your OpenShift cluster to use an HTPasswd identity provider with the following
requirements:
The name of the identity provider is: ex280-htpasswd The name of the secret is: ex280-idp-secret
The user account armstrong=indionce The user account collins=veraster The user account
aldrin=roonkere The user account jobs=sestiver
The user account wozniak=glegunge
Select the answer
1 correct answer
Solution:
$ sudo yum install httpd-tools -y
$ htpasswd -c -B -b htpasswd-file-upload armstrong indionce
$ htpasswd -B -b htpasswd-file collins veraster
$ htpasswd -B -b htpasswd-file aldrin roonkere
$ htpasswd -B -b htpasswd-file jobs sestiver
$ htpasswd -B -b htpasswd-file wozniak glegunge
$ oc create secret generic ex280-idp-secret --from-file
htpasswd=htpasswd-file -n openshift-config
$ oc get oauth/cluster -o yaml> oauth.yaml
$ vim oauth.yaml
$
esc--> type :set paste --> enter --> insert --> then paste the content for correct indent pasting
spec:
identityProviders:
- name: ex280-htpasswd mappingMethod: claim type: HTPasswd htpasswd:
fileData:
name: ex280-idp-secret
$ oc replace -f oauth.yaml
$ oc login -u armstrong -p indionce
$ oc login -u collins -p veraster
$ oc login -u aldrin roonkere
$ oc login -u jobs sestiver
$ oc login -u wozniak -p glegunge
#This below part of operation is completely optional and done just for handy login purpose
$ alias _kube="oc login -u kubeadmin -p ${kube_pass} ${api_url}"
$ alias _armstrong="oc login -u armstrong -p ${armstrong}
${api_url}"
$ alias _collins="oc login -u collins -p ${collins} ${api_url}"
$ alias _aldrin="oc login -u aldrin -p ${aldrin} ${api_url}"
$ alias _jobs="oc login -u jobs -p ${jobs} ${api_url}"
$ alias _wozniak="oc login -u wozniak -p ${wozniak} ${api_url}"
$ _armstrong;_armstrong;_collins;_aldrin;_jobs;_wozniak;

Quiz

2/10
SIMULATION
Configure cluster permissions
Configure your OpenShift cluster to meet the following requirements: The user account jobs can
perform cluster administration tasks The user account wozniak can create projects
The user account wozniak cannot perform cluster administration tasks The user account armstrong
cannot create projects
The user account kubeadmin is not present
Select the answer
1 correct answer
Solution:
$ oc adm policy add-cluster-role-to-user cluster-admin jobs
$ oc adm policy remove-cluster-role-from-group self-provisioner
system:authenticated:oauth
$ oc adm policy add-cluster-role-to-user self-provisioner wozniak
$ oc delete secret kubeadmin -n kube-system

Quiz

3/10
SIMULATION
Configure project permissions
Configure your OpenShift cluster to meet the following requirements: The following projects exist:
apollo manhattan gemini bluebook titan
The user account armstrong is an administrator for project apollo and project gemini
The user account wozniak can view project titan but not administer or delete it
Select the answer
1 correct answer
Solution:
$ oc new-project apollo
$ oc new-project manhattan
$ oc new-project gemini
$ oc new-project bluebook
$ oc new-project titan
$ oc adm policy add-role-to-user admin armstrong -n apollo
$ oc adm policy add-role-to-user admin armstrong -n gemini
$ oc adm policy add-role-to-user view wozniak -n titan

Quiz

4/10
SIMULATION
Configure groups
Configure your OpenShift cluster to meet the following requirements: The user account armstrong is
a member of the commander group The user account collins is a member of the pilot group
The user account aldrin is a member of the pilot group
Members of the commander group have edit permission in the apollo project Members of the pilot
group have view permission in the apollo project
Select the answer
1 correct answer
Solution:
$ oc adm groups new commander
$ oc adm groups new pilot
$ oc adm groups add-users commander armstrong
$ oc adm groups add-users pilot collins
$ oc adm groups add-users pilot aldrin
$ oc adm policy add-role-to-group edit commander -n apollo
$ oc adm policy add-role-to-group view pilot -n apollo

Quiz

5/10
SIMULATION
Configure quotas
Configure your OpenShift cluster to use quotas in the manhattan project with the following
requirements:
The name of the ResourceQuota resource is: ex280-quota
The amount of memory consumed across all containers may not exceed 1Gi
The total amount of CPU usage consumed across all containers may not exceed
2 full cores
The maximum number of replication controllers does not exceed 3 The maximum number of pods
does not exceed 3
The maximum number of services does not exceed 6
Select the answer
1 correct answer
Solution:
$ oc project manhattan
$ oc create quota ex280-quota --
hard=memory=1Gi,cpu=2,pods=3,services=6,replicationcontrollers=3
$ oc get resourcequota

Quiz

6/10
SIMULATION
Configure limits
Configure your OpenShift cluster to use limits in the bluebook project with the following
requirements:
The name of the LimitRange resource is: ex280-limits
The amount of memory consumed by a single pod is between 5Mi and 300Mi The amount of
memory consumed by a single container is between 5Mi and
300Mi with a default request value of 100Mi
The amount of CPU consumed by a single pod is between 10m and 500m
The amount of CPU consumed by a single container is between 10m and 500m with a default request
value of 100m
Select the answer
1 correct answer
Solution:
$ vim limit.yaml
# Edit the yaml file like below mentioned
apiVersion: "v1" kind: "LimitRange" metadata:
name: "resource-limits" spec:
limits:
- type: "Pod"
max:
cpu: "500m" memory: "300Mi"
min:
cpu: "10m" memory: "5Mi"
- type: "Container" max:
cpu: "500m" memory: "300Mi"
min:
cpu: "10m" memory: "5Mi"
defaultRequest: cpu: "100m" memory: "100Mi"
$ oc create -f limit.yaml --save-config -n bluebook
$ oc describe limitranges -n bluebook

Quiz

7/10
SIMULATION
Deploy an application
Deploy the application called rocky in the bullwinkle project so that the following conditions are true:
The application is reachable at the following address: [http://rocky.apps.domainXX.example.com](http://rocky.apps.domainXX.example.com)
The application produces output
Select the answer
1 correct answer
Solution:
$ oc project bullwinkle
$ oc get pods
$ oc get all | grep deploy
$ oc get nodes
$ oc describe nodes | grep -i taint
$ oc adm taint nodes worker0 key1=value1:NoSchedule-
$ oc adm taint nodes worker1 key1=value1:NoSchedule-
$ oc describe nodes | grep -i taint
$ oc get route
$ oc delete route rocky
$ oc expose svc rocky --hostname rocky.apps.domainxx.example.com
$ oc get route

Quiz

8/10
SIMULATION
Scale an application manually
Manually scale the minion application in the gru project to a total of 5 replicas.
Select the answer
1 correct answer
Solution:
$ oc project gru
$ oc get pods
$ oc get all | grep deployment
$ oc scale --replicas=5 deployment.apps/minion
$ oc get pods

Quiz

9/10
SIMULATION
Scale an application automatically
Automatically scale the hydra application deployment configuration in the lerna project with the
following requirements:
Minimum number of replicas: 6 Maximum number of replicas: 9
Target average CPU utilization: 60 percent Container CPU resource request: 25m Container CPU
resource limit: 100m
Select the answer
1 correct answer
Solution:
$ oc project lerna
$ oc get pods
$ oc get all | grep deployment
$ oc autoscale deployment.apps/hydra --max=9 --min=6 --cpu-percent=60
$ oc get hpa
$ oc set resources deployment.apps/hydra --limits=cpu=100m -- requests=cpu=25m
$ oc describe deployment.apps/hydra | grep Limits -A3

Quiz

10/10
SIMULATION
Configure a secure route
Configure the oxcart application in the area51 project with the following requirements:
The application uses a route called oxcart
The application uses a CA signed certificate with the following subject fields:
/C=US/ST=NV/L=Hiko/O=CIA/OU=USAF/CN=classified.apps.domainxx.example.com The application
is reachable only at the following address: [https://classified.apps.domainxx.example.com](https://classified.apps.domainxx.example.com)
The application produces output
A utility script called newcert has been provided to create the CA signed certificate. You may enter
the certificate parameters manually or pass the subject as a parameter.
Your certificate signing request will be uploaded to the CA where it will immediately be signed and
then downloaded to your current directory.
Select the answer
1 correct answer
Solution:
$ oc project area51
$ oc get pods
$ oc get all | grep deployment
$ oc get route
$ oc delete route oxcart
$ openssl genrsa -out ex280.key 2048
$ openssl req -new -key ex280.key -out ex280.csr -subj
"/C=US/ST=NV/L=Hiko/O=CIA/OU=USAF/CN=classified.apps.domainxx.example.com"
$ openssl x509 -req -in ex280.csr -signkey ex280.key -out ex280.crt
$ oc create route edge oxcart --service oxcart --key ex280.key --cert ex280.crt --hostname
classified.apps.domainxx.example.com
$ oc get route
$ oc get svc
Looking for more questions?Buy now

EX280: Red Hat Certified Specialist in OpenShift Administration Practice test unlocks all online simulator questions

Thank you for choosing the free version of the EX280: Red Hat Certified Specialist in OpenShift Administration practice test! Further deepen your knowledge on RedHat Simulator; by unlocking the full version of our EX280: Red Hat Certified Specialist in OpenShift Administration Simulator you will be able to take tests with over 33 constantly updated questions and easily pass your exam. 98% of people pass the exam in the first attempt after preparing with our 33 questions.

BUY NOW

What to expect from our EX280: Red Hat Certified Specialist in OpenShift Administration practice tests and how to prepare for any exam?

The EX280: Red Hat Certified Specialist in OpenShift Administration Simulator Practice Tests are part of the RedHat Database and are the best way to prepare for any EX280: Red Hat Certified Specialist in OpenShift Administration exam. The EX280: Red Hat Certified Specialist in OpenShift Administration practice tests consist of 33 questions and are written by experts to help you and prepare you to pass the exam on the first attempt. The EX280: Red Hat Certified Specialist in OpenShift Administration database includes questions from previous and other exams, which means you will be able to practice simulating past and future questions. Preparation with EX280: Red Hat Certified Specialist in OpenShift Administration Simulator will also give you an idea of the time it will take to complete each section of the EX280: Red Hat Certified Specialist in OpenShift Administration practice test . It is important to note that the EX280: Red Hat Certified Specialist in OpenShift Administration Simulator does not replace the classic EX280: Red Hat Certified Specialist in OpenShift Administration study guides; however, the Simulator provides valuable insights into what to expect and how much work needs to be done to prepare for the EX280: Red Hat Certified Specialist in OpenShift Administration exam.

BUY NOW

EX280: Red Hat Certified Specialist in OpenShift Administration Practice test therefore represents an excellent tool to prepare for the actual exam together with our RedHat practice test . Our EX280: Red Hat Certified Specialist in OpenShift Administration Simulator will help you assess your level of preparation and understand your strengths and weaknesses. Below you can read all the quizzes you will find in our EX280: Red Hat Certified Specialist in OpenShift Administration Simulator and how our unique EX280: Red Hat Certified Specialist in OpenShift Administration Database made up of real questions:

Info quiz:

  • Quiz name:EX280: Red Hat Certified Specialist in OpenShift Administration
  • Total number of questions:33
  • Number of questions for the test:50
  • Pass score:80%

You can prepare for the EX280: Red Hat Certified Specialist in OpenShift Administration exams with our mobile app. It is very easy to use and even works offline in case of network failure, with all the functions you need to study and practice with our EX280: Red Hat Certified Specialist in OpenShift Administration Simulator.

Use our Mobile App, available for both Android and iOS devices, with our EX280: Red Hat Certified Specialist in OpenShift Administration Simulator . You can use it anywhere and always remember that our mobile app is free and available on all stores.

Our Mobile App contains all EX280: Red Hat Certified Specialist in OpenShift Administration practice tests which consist of 33 questions and also provide study material to pass the final EX280: Red Hat Certified Specialist in OpenShift Administration exam with guaranteed success. Our EX280: Red Hat Certified Specialist in OpenShift Administration database contain hundreds of questions and RedHat Tests related to EX280: Red Hat Certified Specialist in OpenShift Administration Exam. This way you can practice anywhere you want, even offline without the internet.

BUY NOW