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.

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
    • Little Rock
    • 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 Little Rock 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 Little Rock 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?