Redhat EX280 Exam
Volume: 29 Questions +12 Labs
Question: 1
Select OpenShift Container Platform packages used for managing updates.
Choose the 2 correct answers:
A. oadm
B. atomic-openshift-docker-excluder
C. atomic-openshift-utils
D. atomic-openshift-excluder
Answer: BD
Explanation:
The atomic-openshift-excluder & atomic-openshift-docker-excluder packages are included in
atomic-openshift-utils to lock OpenShift & Docker versions by adding an exclusion to
/etc/yum.conf.
Question: 2
Community versions of official OpenShift Docker images are publicly accessible at:
Choose the correct answer:
A. centos.org/containers/origin
B. examkiller.com
C. docker.io/origin
D. images.redhat.com/community
Answer: C
Explanation:
OpenShift Origin images are publicly available on docker.io.
Question: 3
What is the name of the commandline tool used to install OpenShift Container Platform?
Leading the way in IT testing and certification tools, www.examkiller.net
Redhat EX280 Exam
Choose the correct answer:
A. atomic-openshift-installer
B. ocp-deploy
C. oc
D. oc-adm
Answer: A
Explanation:
The atomic-openshift-installer launches an interactive configuration screen that launches
installation of OpenShift Container Platform based on user input using a series of Ansible
playbooks.
Question: 4
Docker storage configuration details can be examined in the file:
Choose the correct answer:
A. /etc/containers/config
B. /etc/docker/storage
C. /var/log/docker/docker.log
D. /etc/sysconfig/docker-storage
Answer: D
Explanation:
Once the docker-storage-setup utility has been run, details on how storage is configured can be
found by printing out the contents of /etc/sysconfig/docker-storage.
Question: 5
OpenShift Container Platform is a mixture of ____ & _____? (choose all correct answers)
Choose the 2 correct answers:
A. Container images
Leading the way in IT testing and certification tools, www.examkiller.net
Redhat EX280 Exam
B. .qcow2 images
C. .tar files
D. RPM packages
Answer: AD
Question: 6
Select valid Red Hat Enterprise Linux 7 entitlements needed to install OpenShift Container
Platform.
Choose the 3 correct answers:
A. rhel-7-server-ocp-rpms
B. rhel-7-server-optional-rpms
C. rhel-7-server-extras-rpms
D. rhel-7-server-ose-rpms
Answer: BCD
Explanation:
In order to install OpenShift Container Platform you will need three Red Hat entitlements
(rhel-7-server-ose-rpms, rhel-7-server-optional-rpms, rhel-7-server-extras-rpms).
rhel-7-server-ocp-rpms does not exist.
Question: 7
OpenShift depends on which utility to manage DNS configuration.
Choose the correct answer:
A. DNS-utils
B. DNSmasq
C. Bind
D. Linux bridges
Answer: B
Leading the way in IT testing and certification tools, www.examkiller.net
Redhat EX280 Exam
using kubectl and docker commands, but that was not the answer I am looking for.
Question: 29
A container image on disk is simply a _____ where each folder is an image layer.
Choose the correct answer:
A. .tar file
B. directory
C. pod
D. .iso file
Answer: A
Explanation:
Docker container images are basically a filesystem compressed into a .tar file.
Lab1. Installing Docker
The following instructions are to be completed on all nodes in the OpenShift cluster, including
the master node, before launching the installation of OpenShift.
Task:
1. Log in to all nodes, including master, in your OpenShift cluster.
2. On all nodes, install docker-1.12.6. Do not start Docker after installation completes.
3. Add --insecure-registry 172.30.0.0/16 to /etc/sysconfig/docker.
4. If enabled, disable the LVM cluster feature.
5. Edit docker-storage-setup to use storage mounted on /dev/[x]vdb, then complete the
installation using the proper command-line tools.
6. Verify that storage is configured properly with any preferred tool at your disposal.
7. Start and enable Docker on all OpenShift nodes.
Solution:
1. Log in to all nodes, including master, in your OpenShift cluster.
$ ssh root@$IP
2. On all nodes, install docker-1.12.6. Do not start Docker after installation completes.
$ yum -y install docker-1.12.6
3. Add --insecure-registry 172.30.0.0/16 to /etc/sysconfig/docker.
Leading the way in IT testing and certification tools, www.examkiller.net
Redhat EX280 Exam
$ vim /etc/sysconfig/docker
Edit the following line:
OPTIONS='--selinux-enabled --insecure-registry 172.30.0.0/16 --log-driver=journald
--signature-verification=false'
4. If enabled, disable the LVM cluster feature.
$lvmconf --disable-cluster
5. Edit docker-storage-setup to use storage mounted on /dev/[x]vdb, then complete the
installation using the proper command-line tools.
$ vim /etc/sysconfig/docker-storage-setup
The file should contain only the following:
DEVS=/xvdb
VG=docker-vg
Save and close the file.
$ docker-sorage-setup
6. Verify that storage is configured properly with any preferred tool at your disposal.
$ lvs /dev/docker-vg/docker-pool
7. Start and enable Docker on all OpenShift nodes.
$ systemctl enable docker && systemctl start docker
Lab2. Install OpenShift Container Platform on Red Hat Enterprise Linux 7
In this lab, you'll go through the process of installing OpenShift Container Platform v3.5 on your
workstation.
To complete this lab, you will need two KVM servers with the following minimum system
resources:
Master
. At least 4 GB RAM
. At least 2 vCPU
. 40 GB root disk
. 20 GB data disk
Node1
. At least 2GB RAM
. At least 2 vCPU
. 40 GB root disk
. 20 GB data disk
This lab is written with the assumption that the workstation has been configured to use official
Leading the way in IT testing and certification tools, www.examkiller.net
Redhat EX280 Exam
Red Hat Enterprise Linux 7 repositories. Open source community versions of OpenShift can be
installed in the same manner, but there may be slight cosmetic differences in the installer.
Before installing OpenShift Container Platform, be sure that you have installed docker-1.12.6
and have run the docker-storage-setup utility on both the master and node1.
Task:
1. Log in to the master via the terminal.
2. Before installation, verify that both the master and node1 server have proper DNS resolution
configured.
3. On the master, install all needed packages for the OCP v3.5 installation.
4. On the master and node1, remove OpenShift exclusions from /etc/yum.conf.
5. Install the OpenShift Container Platform using tools provided in the atomic-openshift-utils
package. Installation will take 20-45 minutes depending on system resources.
6. When the installation completes, re-add exclusions to /etc/yum.conf.
7. Verify that all nodes and pods are in "Running/Ready" status.
8. Verify that atomic-openshift-master and atomic-openshift-node are running on master server
and that atomic-openshift-node is running on the node1 server.
Solution:
1. Log in to the master via the terminal.
ssh root@master
2. Before installation, verify that both the master and node1 server have proper DNS resolution
configured.
[root@master ~]# host $(hostname)
[root@node1 ~]# host $(hostname)
3. On the master, install all needed packages for the OCP v3.5 installation.
[root@master ~]# yum -y install atomic-openshift-docker-excluder \
atomic-openshift-excluder atomic-openshift-utils \
bind-utils bridge-utils git \
iptables-services net-tools wget
4. On the master and node1, remove OpenShift exclusions from /etc/yum.conf.
[root@master ~]# atomic-openshift-excluder unexclude
[root@node1 ~]# atomic-openshift-excluder unexclude
5. Install the OpenShift Container Platform using tools provided in the atomic-openshift-utils
package. Installation will take 20-45 minutes depending on system resources.
[root@master ~]# atomic-openshift-installer install
6. When the installation completes, re-add exclusions to /etc/yum.conf.
[root@master ~]# atomic-openshift-excluder exclude
[root@node1 ~]# atomic-openshift-excluder exclude
7. Verify that all nodes and pods are in "Running"/"Ready" status.
[root@master ~]# oc get pods
NAME READY STATUS RESTARTS AGE
Leading the way in IT testing and certification tools, www.examkiller.net
Redhat EX280 Exam
docker-registry-1-fc7h9 1/1 Running 0 3m
registry-console-1-5xmlv 1/1 Running 0 3m
router-1-45xqw 1/1 Running 0 3m
[root@master ~]#
[root@master ~]# oc get nodes
NAME STATUS AGE
master Ready,SchedulingDisabled 13m
node1 Ready 13m
8. Verify that atomic-openshift-master and atomic-openshift-node are running on master server
and that atomic-openshift-node is running on the node1 server.
master
[root@master ~]# systemctl status | grep openshift
│ └─38938 grep --color=auto openshift
├─atomic-openshift-node.service
│ ├ ─ 33079 /usr/bin/openshift start node
--config=/etc/origin/node/node-config.yaml --loglevel=2
├─atomic-openshift-master.service
│ └ ─ 4765 /usr/bin/openshift start master
--config=/etc/origin/master/master-config.yaml --loglevel=2
node1
[root@node1 ~]# systemctl status | grep openshift
│ └─18197 grep --color=auto openshift
│ ├─15504 /usr/bin/openshift-router
├─atomic-openshift-node.service
│ ├ ─ 14442 /usr/bin/openshift start node
--config=/etc/origin/node/node-config.yaml --loglevel=2
Lab3. Configure Authentication with htpasswd
In this lab, we will practice configuring basic authentication using the htpasswd utility.
Task:
1. Log in to the master node.
2. If not already installed, install the httpd-tools package.
3. Once the install completes, edit the master-config file to enable authentication using
HTPasswd with credentials stored in /etc/origin/openshift-passwd. Save and close the file.
4. Create the credential file under /etc/origin/openshift-passwd.
Leading the way in IT testing and certification tools, www.examkiller.net