0% found this document useful (0 votes)
588 views6 pages

EX288 Red Hat Exam Practice Questions

This document provides a set of practice questions for the EX288 exam, designed to mirror the actual exam's structure and topics. It includes topic-focused questions, accurate answer keys, and is intended for personal study only. Additional resources and a complete question bank are available at CertQuestionsBank.com.
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
588 views6 pages

EX288 Red Hat Exam Practice Questions

This document provides a set of practice questions for the EX288 exam, designed to mirror the actual exam's structure and topics. It includes topic-focused questions, accurate answer keys, and is intended for personal study only. Additional resources and a complete question bank are available at CertQuestionsBank.com.
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
You are on page 1/ 6

This PDF contains a set of carefully selected practice questions for the

EX288 exam. These questions are designed to reflect the structure,


difficulty, and topics covered in the actual exam, helping you reinforce
your understanding and identify areas for improvement.

What's Inside:

1. Topic-focused questions based on the latest exam objectives


2. Accurate answer keys to support self-review
3. Designed to simulate the real test environment
4. Ideal for final review or daily practice

Important Note:

This material is for personal study purposes only. Please do not


redistribute or use for commercial purposes without permission.

For full access to the complete question bank and topic-wise explanations, visit:
CertQuestionsBank.com

Our YouTube: https://www.youtube.com/@CertQuestionsBank

FB page: https://www.facebook.com/certquestionsbank
Share some EX288 exam online questions below.
1.How does Kustomize ensure non-destructive updates to Kubernetes resources?
A. By overriding the existing manifest
B. By applying patches incrementally
C. By creating a new deployment version
D. By using templating engines
Answer: B
Explanation:
Kustomize applies patches incrementally, ensuring updates do not overwrite or destructively modify
existing Kubernetes resource files.

2.What is the purpose of the oc new-build command in OpenShift? (Choose two.)


A. To create a build configuration
B. To deploy a container image directly
C. To trigger an image build
D. To configure an image stream
Answer: A, C
Explanation:
The oc new-build command creates a build configuration and triggers a new image build based on
source code, templates, or existing images.

3.Which of the following commands lists all projects a user has access to?
A. oc get projects
B. oc get namespaces
C. oc projects
D. kubectl get namespaces
Answer: C
Explanation:
The oc projects command lists all projects accessible to the user, making it easier to navigate
between OpenShift projects.

4.Which configuration file in Git specifies repository-level settings?


A. .gitignore
B. .gitconfig
C. .gitsettings
D. config.yml
Answer: B
Explanation:
The .gitconfig file stores repository-level settings, including user information and aliases, to manage
Git configurations effectively.

5.What does the oc get bc command display in OpenShift?


A. Build logs
B. Build configurations
C. Image streams
D. Completed builds
Answer: B
Explanation:
The oc get bc command lists all build configurations in the current OpenShift project, along with their
statuses.

6.How can you trigger a manual build in OpenShift?


A. oc start-build <buildconfig>
B. oc trigger-build <buildconfig>
C. oc create build <buildconfig>
D. oc set build <buildconfig>
Answer: A
Explanation:
The oc start-build command manually triggers a build using the specified BuildConfig, bypassing any
automated triggers.

7.Which OpenShift resource ensures that image streams are updated automatically when a new
image is available?
A. DeploymentConfig
B. ImageStreamTag
C. Image Change Trigger
D. BuildConfig
Answer: C
Explanation:
Image Change Triggers monitor image streams for updates and automatically apply changes to
associated deployments or builds.

8.What type of health probe should you use to ensure an application is fully initialized before starting
other processes?
A. Liveness Probe
B. Readiness Probe
C. Startup Probe
D. Initialization Probe
Answer: C
Explanation:
Startup probes validate that an application has initialized completely before it starts accepting
requests or liveness probes are applied.

9.What is the primary purpose of the .gitignore file in Git?


A. To prevent untracked files from being deleted
B. To ignore specific files from being added to a repository
C. To restrict access to the repository
D. To track changes to ignored files
Answer: B
Explanation:
The .gitignore file specifies patterns for files that should not be added to the repository, keeping
irrelevant or sensitive data out of version control.
10.How do you push a local image to the OpenShift internal registry?
A. Use docker push
B. Use oc tag
C. Use oc image push
D. Use podman push
Answer: D
Explanation:
The podman push command pushes a local container image to the OpenShift internal registry,
provided the registry login credentials are configured.

11.Which component in a Helm chart defines the resources to be created?


A. values.yaml
B. Chart.yaml
C. templates/
D. requirements.yaml
Answer: C
Explanation:
The templates/ directory in a Helm chart contains resource definitions for Kubernetes objects,
rendered based on the values specified in values.yaml.

12.How do you ensure that a build configuration uses the latest version of a base image? (Choose
two.)
A. Enable Image Change Triggers in the BuildConfig
B. Set the latest tag in the from field of the build strategy
C. Manually rebuild the image
D. Use a webhook to trigger updates
Answer: A, B
Explanation:
Enabling Image Change Triggers and specifying the latest tag ensures the BuildConfig uses the most
recent version of the base image.

13.What is the default image pull policy in OpenShift if the image tag is latest?
A. Always
B. IfNotPresent
C. Never
D. OnDemand
Answer: A
Explanation:
The default pull policy for the latest tag is Always, ensuring the image is re-pulled to check for
updates.

14.What is the purpose of Horizontal Pod Autoscaler (HPA) in OpenShift? (Choose two.)
A. Scale pods based on CPU usage
B. Scale pods based on memory usage
C. Manage persistent volumes
D. Monitor pod health
Answer: A, B
Explanation:
HPA dynamically adjusts the number of pods based on resource usage such as CPU and memory,
maintaining application performance during fluctuating workloads.

15.What is the purpose of the Dockerfile in creating a container image?


A. To define the environment variables for Kubernetes pods
B. To specify the instructions for building the image
C. To configure the runtime of the container
D. To set up OpenShift image streams
Answer: B
Explanation:
A Dockerfile specifies instructions for building a container image, including base images,
dependencies, and runtime configurations.

16.1.Which command creates a new project in OpenShift?


A. oc create project <name>
B. oc new-project <name>
C. oc create ns <name>
D. kubectl create namespace <name>
Answer: B
Explanation:
The oc new-project command creates a new project in OpenShift and switches to it. It sets up the
environment automatically, making it the preferred command for project creation.

17.Which command deploys an application directly from source code in OpenShift?


A. oc new-build
B. oc new-app
C. oc create deploy
D. kubectl apply
Answer: B
Explanation:
The oc new-app command automates application deployment from source code or an image, creating
the required resources like pods, services, and routes.

18.What is the purpose of the resources field in kustomization.yaml?


A. To define the target Kubernetes cluster
B. To list Kubernetes resource manifests
C. To specify namespace mappings
D. To store configuration values
Answer: B
Explanation:
The resources field lists Kubernetes resource manifests that Kustomize manages, applying
customizations and patches as needed.
Get EX288 exam dumps full version.

Powered by TCPDF (www.tcpdf.org)

You might also like