Courseiva

EX280 · domain

Security And SCC

This domain covers OpenShift security primitives: SCCs, service accounts, RBAC, identity providers, secrets, and TLS-secured Routes. On EX280 you perform hands-on tasks with oc and YAML manifests, such as creating SCCs, binding roles, configuring htpasswd or OIDC identity providers, and applying certificates to Routes.

48 questions14 easy20 medium14 hard

Focused practice

Practice Security And SCC questions

Scored sessions drawing only from this domain — pick a length below.

Start 20-question practice test →

What this domain covers

What to know about Security And SCC

Be able to create SCCs, bind them to ServiceAccounts with oc adm policy, configure OAuth identity providers, and secure Routes with custom TLS certificates. The critical thing is attaching SCCs and pull secrets to the correct ServiceAccount, not to users or Deployments directly.

Creating and applying custom SCCs, then binding them to ServiceAccounts via oc adm policy add-scc-to-user

Configuring identity providers such as htpasswd or OIDC in the OAuth custom resource

Securing Routes with edge, passthrough, or reencrypt TLS termination and custom certificates

Managing Secrets for image pull credentials and referencing them in ServiceAccounts or Pod specs

Watch out for

Common Security And SCC exam traps

  • ▸Binding a custom SCC directly to a user instead of to the ServiceAccount the pod actually runs as
  • ▸Placing TLS certificate and key in the wrong Route field, such as spec.tls instead of the correct termination stanza
  • ▸Forgetting that OIDC requires issuer URL, client ID, and client secret, and omitting the required claims or secret reference

Question index

All Security And SCC questions (48)

Click any question to see the full explanation, or start a practice session above.

1

An administrator is troubleshooting an OAuth authentication failure where users receive an error indicating invalid credentials against an HTPasswd provider. Which TWO steps or checks are critical for resolving this issue? (Choose TWO)

Hard
2

An administrator creates a new custom Security Context Constraint (SCC) named restrict-root. After creating the SCC resource, users complain that pods using a ServiceAccount tied to this SCC are still falling back to the restricted-v2 SCC. What is the most likely cause?

Medium
3

Which TWO methods can an administrator use to inspect or troubleshoot Security Context Constraint (SCC) assignments for a specific ServiceAccount in a namespace?

Medium
4

An administrator needs to view the current list of active Security Context Constraints installed in an OpenShift cluster. Which command should be executed?

Easy
5

An administrator is configuring authentication in OpenShift. Which TWO of the following identity provider types are natively supported by the OpenShift OAuth server? (Choose TWO)

Medium
6

You are integrating an external LDAP identity provider. Which secret must be created to store the bind password for the LDAP server?

Hard
7

An administrator is managing service accounts and wants to understand how tokens work in OpenShift 4.14+. Which TWO statements are correct regarding ServiceAccount tokens in this version? (Choose TWO)

Medium
8

An administrator is auditing Security Context Constraints and wants to identify which settings can be controlled within a custom SCC definition. Which THREE fields are valid configuration options inside an SCC resource? (Choose THREE)

Hard
9

Which TWO authentication methods are supported by the OpenShift OAuth server?

Medium
10

A security team requires that a specific ServiceAccount `app-sa` in project `prod` be allowed to run pods that use the `hostNetwork` namespace, while all other ServiceAccounts in `prod` must remain restricted. The administrator creates a new SCC `hostnet-scc` with `allowHostNetwork: true` and binds it only to `app-sa`. A developer then creates a pod using the `default` ServiceAccount with `hostNetwork: true` in its manifest. What is the result?

Hard
11

What happens if a pod does not match any SCC?

Medium
12

An administrator needs to troubleshoot an image pull failure caused by missing credentials. Which TWO locations or methods can be used to associate an image pull secret with a workload in OpenShift? (Choose TWO)

Hard
13

Which TWO of the following are valid ways to secure a route?

Medium
14

A developer deploys an application using a Route that terminates TLS using the Edge termination strategy. The developer wants to ensure that all insecure HTTP traffic to the route is automatically redirected to HTTPS. Where must this setting be configured?

Easy
15

Which THREE parameters are commonly found in the SCC 'spec' section?

Medium
16

When configuring an OAuth identity provider of type HTPasswd, which object type must be created to store the username and hashed password pairs?

Easy
17

An administrator is reviewing why a pod in the `legacy` namespace runs as UID 1000070000 even though the pod manifest does not specify a `runAsUser`. The namespace annotation `openshift.io/sa.scc.uid-range` is `1000070000/10000`. Which SCC behavior explains the observed UID?

Medium
18

Which tool should be used to troubleshoot why an SCC is being rejected for a pod?

Medium
19

An administrator is preparing a custom Security Context Constraint (SCC) that will be granted to a specific ServiceAccount used by a log-forwarding DaemonSet. The DaemonSet pods must be able to mount a hostPath volume at /var/log but must not run as UID 0 and must not use the host network. Which SCC field combination must the administrator set to allow only the hostPath mount while still blocking privileged escalation and host networking?

Medium
20

You need to allow a specific service account to run pods as root. Which command should you use to associate the 'privileged' SCC with the 'default' service account in the 'web-apps' namespace?

Easy
21

A cluster administrator wants to prevent any pod in the `finance` namespace from requesting the `NET_RAW` capability, which is not needed by the applications there. The administrator plans to modify the SCC bound to the namespace's default ServiceAccount. Which SCC field should be used to explicitly drop `NET_RAW`?

Easy
22

An administrator wants to pull container images from a private container registry that requires authentication for a specific deployment. Where must the image pull secret be referenced so that the deployment pods can successfully pull the image?

Easy
23

An administrator is preparing a custom SecurityContextConstraints (SCC) named app-scc to allow pods to run with a specific user ID and to use the host network. Which two fields must be set in the SCC to achieve these requirements? (Choose two.)

Medium
24

A security team wants to ensure that all pods in a new namespace called secure-apps run with a specific SELinux context level. They create a custom SCC named selinux-scc with seLinuxContext: MustRunAs and a specific level. After binding the SCC to the default service account in secure-apps, pods still fail to start with an SELinux relabeling error. What is the most likely cause?

Hard
25

You are configuring an OAuth identity provider using 'htpasswd'. Which secret must contain the file?

Hard
26

Which service account is used by default for pods that do not specify a service account in their manifest?

Easy
27

How do you view the currently active OAuth identity providers in an OpenShift cluster?

Easy
28

Which THREE components are involved in TLS termination for routes?

Medium
29

How can you view the list of all SCCs available in the cluster?

Easy
30

Which THREE of the following are required when configuring an OIDC identity provider?

Hard
31

Where do you define the default image pull secrets for all service accounts in a namespace?

Easy
32

An administrator needs to configure re-encrypt TLS termination on a Route. In addition to the router certificate, what other certificate component must typically be provided in the route configuration?

Easy
33

A developer needs to expose a service via a route with re-encryption. What is required in the Route configuration?

Hard
34

When creating a custom SCC, what is the best practice for assigning it to users?

Medium
35

An application deployed in a secured namespace requires access to the Kubernetes API to query pod statuses. The administrator wants to follow the principle of least privilege. How should the administrator configure the ServiceAccount and RBAC?

Hard
36

An administrator needs to secure a Route with edge termination using a custom TLS certificate and private key. Which section of the Route manifest must contain these certificate details?

Medium
37

An administrator is securing routes in an OpenShift cluster. Which THREE TLS termination types are supported natively by OpenShift Routes? (Choose THREE)

Hard
38

When using OIDC for authentication, what does the 'issuer' field in the configuration represent?

Hard
39

An administrator needs to restrict pod creation based on Pod Security Standards namespaces. Which TWO of the following are valid Pod Security Standard levels defined by Kubernetes and supported in OpenShift? (Choose TWO)

Medium
40

An administrator needs to configure an authentication mechanism where users logging into the OpenShift web console are authenticated via an external corporate directory using LDAP. Which resource object should the administrator configure?

Medium
41

Which TWO security standards are natively tracked in OpenShift?

Easy
42

Which SCC is assigned by default to authenticated users who are not service accounts?

Easy
43

An administrator is reviewing the default Security Context Constraints in OpenShift 4.14+. Which THREE of the following SCCs are built-in and provided out-of-the-box by OpenShift? (Choose THREE)

Medium
44

Which TWO actions are required when configuring an external OpenID Connect (OIDC) identity provider in OpenShift Container Platform?

Medium
45

A cluster administrator needs to grant a Deployment in the production namespace permission to pull images from a private container registry. The image pull secret is named my-registry-secret. Which step must be performed so that pods created by this Deployment can successfully pull the image?

Easy
46

You need to terminate TLS for a route using a custom certificate. Which object must contain the TLS key and certificate?

Hard
47

A cluster administrator wishes to enforce the restricted Pod Security Standard across an entire namespace named auditing-ns. Which label should the administrator apply to the namespace to enforce this policy while generating audit warnings for non-compliant pods?

Medium
48

Which TWO things must be configured to use a Private Image Registry?

Hard

Frequently asked questions

What does the Security And SCC domain cover on the EX280 exam?
Be able to create SCCs, bind them to ServiceAccounts with oc adm policy, configure OAuth identity providers, and secure Routes with custom TLS certificates. The critical thing is attaching SCCs and pull secrets to the correct ServiceAccount, not to users or Deployments directly.
How many questions are in this domain?
This page lists all 48 Security And SCC questions in the EX280 question bank. The actual exam draws from this domain proportionally to its weighting in the official exam blueprint.
What is the best way to practise this domain?
Start with a short focused session (10 questions) to identify gaps, then work through explanations. Repeat with a longer session once the weak areas feel solid.
Can I practise only Security And SCC questions?
Yes — the session launcher on this page filters questions to this domain only. Choose any session length for inline explanations and scoring.
Red Hat Certified OpenShift Administrator (EX280, OpenShift Container Platform 4.14+) (EX280) Security And SCC Practice Questions