EX280 Practice Exam

3.25 hours
  • 5 Learning Objectives

About this Hands-on Lab

The Red Hat Certified Specialist in OpenShift Administration exam tests your knowledge, skills, and ability to create, configure, and manage a cloud application platform using Red Hat OpenShift Container Platform. Now that you’ve gone through all the objectives, it is time to test your newfound knowledge on the practice exam to prepare for the real exam and hopefully guide you to earning your Red Hat Certified Specialist in OpenShift Administration! In this lab, you will be asked to download OpenShift on CodeReady Containers and set up your cluster for the exam. After that, you will perform a series of tasks similar to what you will be asked to do in the actual exam. Good luck, and please use this practice exam as many times as you need before taking the exam.

*This course is not approved or sponsored by Red Hat.*

Learning Objectives

Successfully complete this lab by achieving the following learning objectives:

Install OpenShift on CodeReady Containers

This must be installed on your laptop or desktop since we are unable to run the cluster in our lab environment.

  1. Create your Red Hat login, or just log in.
  2. Download CodeReady Containers.
  3. Set up CodeReady Containers to use 12 GB of memory.
  4. Enable cluster monitoring.
  5. Start your cluster and enable the OpenShift client tools.
Set Up htpasswd as the Identity Provider and Add Users and Permissions
  1. Create htpasswd file with these users with the password doubletap:
    • columbus
    • wichita
    • littlerock
    • tallahassee
    • admin
  2. Create HTPasswd Secret from file.
  3. Download the HTPasswd Custom Resource (using the link provided on the lab page).
  4. Add the name of your HTPasswd Secret to the file.
  5. Apply your custom resource to your cluster.
  6. Create a project called zLand.
  7. Give columbus admin permissions to the zLand project.
  8. Give wichita and littlerock edit permissions to the zLand project.
  9. Give tallahassee basic user permissions to the zLand project.
  10. Give admin cluster admin permissions.
  11. Remove the kubeadmin user from the cluster.
Role-Based Access and Groups
  1. Create a project called twinkies.
  2. Create a group called yum.
  3. Add columbus, wichita, and littlerock to the yum group.
  4. Grant admin access to the yum group for the project twinkies.
  5. Create a custom resource that allows tallahassee to get pod information from the twinkies project and call it gettwinkies.
Quotas and Resource Limits
  1. Download the quota and resource limit templates (using the links provided on the lab page).
  2. Modify the quota.yaml file with the following values:
    • Max number of pods = 3
    • Max amount of memory = 2 GB
    • Max number of replication controllers = 2
    • Max number of services allowed = 8
  3. Create quota and apply it to the zLand project.
  4. Modify the resource_limits.yaml file with the following values:
    • Max number of pods = 4
    • Requested cpus = 1
    • Requested memory = 1 GB
    • Requested Ephemeral storage = 2 GB
    • Limit cpus to 4
    • Limit memory to 4 GB
    • Limit Ephemeral storage to 8 GB
  5. Create resource limit and apply it to the twinkies project.
Application Creation and Management

Note: Use https://github.com/sclorg/cakephp-ex example app to create applications

  • Create test-app1, test-app2, test-app3, test-app4, and test-app5 projects.
  • Create an application named cake and make sure it is accessible to the outside world in project test-app1.
  • Create an application using a route called twinkiesforall in the test-app2 project.
  • Create an application using a secured route called mytwinkie in the test-app3 project. Use self-signed cert from lab repo to secure the route (the links are provided on the lab page).
  • Create an application that can use the dont-tell secret project test-app4.
  • Create a secret called dont-tell in the test-app4 project. Download the secret.yaml file (using the link provided on the lab page).
    1. Populate with the user dXN1ci1uYW11 and password dGHcz4dvCmQ=.
  • Create a service account called madison in the test-app5 project.
  • Create an application that can be edited by the madison service account in the test-app5 project.
  • Manually scale the application in the test-app2 project to 2 pods.
  • Set an autoscaler for min of 1 pod and a max of 3 pods based of 75% CPU utilization for the application in the test-app5 project.

Additional Resources

If you don't already have a Red Hat login, then please register.

Download CodeReady Containers here: https://cloud.redhat.com/openshift/install/crc/installer-provisioned

You will need to install CodeReady Containers locally. We are not able to run the cluster in our lab environment.

Here are the YAML files you'll need for the lab:

Here are the self-signed cert and key files you'll need for the lab:

What are Hands-on Labs

Hands-on Labs are real environments created by industry experts to help you learn. These environments help you gain knowledge and experience, practice without compromising your system, test without risk, destroy without fear, and let you learn from your mistakes. Hands-on Labs: practice your skills before delivering in the real world.

Sign In
Welcome Back!

Psst…this one if you’ve been moved to ACG!

Get Started
Who’s going to be learning?