Free EX188 sample questions
Real questions from the Red Hat Certified Specialist in Containers practice bank, with the correct answer and an explanation for each one. No junk, no filler.
Try them in the simulator Same questions, with study, timed and flashcard modes.
Showing 6 of 12 free sample questions.
A DevOps engineer is optimizing a Containerfile for a Python application. The application source code changes frequently, but the dependencies (requirements.txt) change rarely. The current Containerfile rebuilds all dependencies every time the code changes. How should the engineer restructure the Containerfile to maximize build cache efficiency? flowchart TD Start([Start Build]) --> Layer1[Base Image] Layer1 --> Layer2[Install Sys Deps] Layer2 --> Layer3[?] Layer3 --> Layer4[?] Layer4 --> Layer5[CMD Run App]
You are writing a Containerfile for a web server that must not run as the root user for security compliance. You have created a user named `webuser` with ID 1001. Which instruction sequence correctly configures the container to run as this user?
A security audit requires that a specific directory `/opt/app/data` in your container image be pre-populated with data from a tarball named `assets.tar.gz`. The archive is located in the build context. You want the archive to be automatically extracted into the destination directory inside the image. Which Containerfile instruction should you use?
You are creating a custom database container that needs to initialize a data directory at runtime. You want to ensure that if the user mounts a host directory to `/var/lib/db`, the appropriate SELinux context is applied so the container can write to it. Which Containerfile instruction defines this mount point to inform container runtimes of its purpose?
A developer is building a container that needs to accept a configuration value at build time to select a specific software version, but this value should NOT persist as an environment variable in the final running container. Which instruction should be used?
6 more free samples are waiting
Create a free account to unlock the whole EX188 sample bank, or get full access to all 160 practice questions in the simulator.