Linux+ V8 Namespaces and Cgroups Basics Quiz

Reviewed by Joshua Gelman
Joshua Gelman, CompTIA Certified |
CompTIA Expert
Review Board Member
Joshua G. is a cybersecurity specialist and instructor with over a decade of hands-on experience in incident response, secure system design, and risk management. He holds CompTIA Security+, CySA+, SecurityX (CASP+), CSAP, and CSAE certifications, as well as the CISSP, and teaches cybersecurity as an adjunct instructor at Texas A&M Engineering Extension Service (TEEX). He earned his MS in Information Science from the University of Pittsburgh.
, CompTIA Certified
By Thames
T
Thames
Community Contributor
Quizzes Created: 11982 | Total Attempts: 187,298
| Attempts: 11 | Questions: 20 | Updated: Aug 14, 2026
Please wait...
Question 1 / 21
🏆 Rank #-- ▾
0 %
0/100
Score 0/100

1. What command is used to create a namespace for a process?

Explanation

The `unshare` command starts a process in one or more new Linux namespaces, separating its view of system resources—such as processes, mounts, or networking—from the caller’s. By contrast, `nsenter` joins existing namespaces, while cgroups manage resource limits and accounting rather than creating namespaces.

Submit
Please wait...
About This Quiz
Linux+ V8 Namespaces and Cgroups Basics Quiz - Quiz

This quiz evaluates your understanding of Linux namespaces and cgroups, two critical containerization technologies covered in CompTIA Linux+ V8. You'll explore how namespaces isolate system resources and how cgroups manage resource allocation. Mastering these concepts is essential for system administration, container deployment, and cloud infrastructure management.

2.

What first name or nickname would you like us to use?

You may optionally provide this to label your report, leaderboard, or certificate.

2. The devices cgroup subsystem controls access to which resources?

Explanation

The devices cgroup subsystem restricts processes’ access to device files by controlling permitted operations, such as reading, writing, or creating device nodes. It applies to character and block devices, rather than managing network interfaces, memory pages, or CPU cores.

Submit

3. Namespaces and cgroups together enable what technology?

Explanation

Namespaces isolate processes, users, networks, and other system resources, while cgroups limit and monitor resource usage such as CPU and memory. Together, they provide the isolation and resource controls that underpin containers and other resource-isolated environments.

Submit

4. Which cgroup version is the default in modern Linux systems?

Explanation

Modern Linux distributions generally default to cgroups v2, which uses a unified hierarchy to manage and monitor system resources. Some older systems or specially configured installations may still use cgroups v1 or hybrid mode.

Submit

5. The ____ namespace allows containers to have separate process trees.

Explanation

The PID namespace isolates process identifiers between containers. Each container can have its own process ID space, so processes inside it see a separate process hierarchy and cannot directly view or manage processes in other PID namespaces. This provides process isolation while allowing the host to track container processes.

Submit

6. What is the purpose of the freezer cgroup subsystem?

Explanation

The freezer cgroup subsystem can suspend all processes in a cgroup and later resume them. This is useful for temporarily pausing groups of tasks without terminating them, such as during system maintenance or when managing containers.

Submit

7. Which file in /proc contains namespace information for a process?

Explanation

The `/proc/[pid]/ns` directory contains symbolic links representing the namespaces to which a process belongs, such as its network, mount, and PID namespaces. Inspecting these links helps identify or compare a process’s namespace memberships.

Submit

8. How many major namespaces exist in Linux?

Explanation

Linux uses namespaces to isolate system resources between processes and containers. The eight major types are cgroup, IPC, network, mount, PID, time, user, and UTS. Each gives a process or group a separate view of a resource, such as process IDs, network interfaces, host names, or mounted filesystems, improving isolation without requiring separate kernels.

Submit

9. What does the IPC namespace isolate?

Explanation

An IPC namespace provides processes with a separate set of inter-process communication resources, such as System V message queues, semaphore sets, and shared memory segments. Processes in different IPC namespaces cannot see or use one another’s IPC objects, helping isolate applications and their resources.

Submit

10. Which cgroup subsystem limits memory usage for a process group?

Explanation

The memory cgroup subsystem monitors and controls memory consumption for processes grouped under a cgroup. Administrators can configure limits on RAM usage, track current consumption, and influence reclaim behavior when a group approaches its limit. This helps prevent one process group from exhausting memory available to other workloads or the system overall.

Submit

11. What is the primary purpose of Linux namespaces?

Explanation

Linux namespaces provide process-level isolation by giving groups of processes separate views of system resources, such as process IDs, network interfaces, mount points, and hostnames. This separation is a key foundation of containers, allowing them to operate independently without directly seeing or interfering with one another’s resources.

Submit

12. The mount (mnt) namespace isolates what?

Explanation

A mount namespace gives processes their own view of the filesystem’s mounted directories. Mounting or unmounting filesystems in one namespace does not necessarily affect others, and mount propagation settings control whether mount events are shared between namespaces.

Submit

13. Which cgroup subsystem manages block device I/O operations?

Explanation

The `blkio` cgroup subsystem controls and monitors input/output operations for block devices, such as hard drives and SSDs. It can limit or prioritize the amount of disk I/O processes or groups are allowed to perform.

Submit

14. What is the purpose of the user namespace?

Explanation

The user namespace maps user and group IDs inside a container to different IDs on the host. This lets processes appear to have privileges within the container while limiting their permissions on the host, improving isolation and security.

Submit

15. The UTS namespace isolates which system identifiers?

Explanation

The UTS namespace gives a process or container its own hostname and NIS domain name, separate from those seen by processes in other namespaces. This lets containers use distinct system identifiers without changing the host’s hostname or domain name. User and group IDs, network settings, and mount points are isolated by other namespace types.

Submit

16. Which cgroup subsystem controls CPU scheduling?

Explanation

The `cpu` cgroup subsystem manages CPU scheduling by controlling how processor time is allocated among groups of processes. It supports settings such as CPU shares and time quotas, helping regulate each group’s access to CPU resources.

Submit

17. What is the primary function of cgroups?

Explanation

Cgroups (control groups) organize processes into groups and allocate or restrict resources such as CPU, memory, and disk I/O. They also enable monitoring of each group’s resource usage, helping prevent processes from consuming more than their permitted share.

Submit

18. Which command displays the namespaces of a running process?

Explanation

The `lsns` command lists namespaces currently in use on the system and can show which processes are associated with them. It helps inspect a running process’s namespace memberships, such as its mount, network, and PID namespaces.

Submit

19. What does the PID namespace isolate?

Explanation

A PID namespace gives a group of processes its own process ID numbering and process hierarchy. Processes inside the namespace see only processes within that view, while the same processes may have different IDs when viewed from another namespace. This isolation helps containers manage processes independently.

Submit

20. Which namespace is responsible for isolating network interfaces and routing tables?

Explanation

The network (net) namespace isolates networking resources for a process, including network interfaces, IP addresses, routing tables, and firewall rules. This lets processes or containers use separate network configurations without affecting the host or other namespaces.

Submit
×
Saved
Thank you for your feedback!
View My Results
Joshua Gelman |CompTIA Certified |
CompTIA Expert
Joshua G. is a cybersecurity specialist and instructor with over a decade of hands-on experience in incident response, secure system design, and risk management. He holds CompTIA Security+, CySA+, SecurityX (CASP+), CSAP, and CSAE certifications, as well as the CISSP, and teaches cybersecurity as an adjunct instructor at Texas A&M Engineering Extension Service (TEEX). He earned his MS in Information Science from the University of Pittsburgh.
Cancel
  • All
    All (20)
  • Unanswered
    Unanswered ()
  • Answered
    Answered ()
What command is used to create a namespace for a process?
The devices cgroup subsystem controls access to which resources?
Namespaces and cgroups together enable what technology?
Which cgroup version is the default in modern Linux systems?
The ____ namespace allows containers to have separate process trees.
What is the purpose of the freezer cgroup subsystem?
Which file in /proc contains namespace information for a process?
How many major namespaces exist in Linux?
What does the IPC namespace isolate?
Which cgroup subsystem limits memory usage for a process group?
What is the primary purpose of Linux namespaces?
The mount (mnt) namespace isolates what?
Which cgroup subsystem manages block device I/O operations?
What is the purpose of the user namespace?
The UTS namespace isolates which system identifiers?
Which cgroup subsystem controls CPU scheduling?
What is the primary function of cgroups?
Which command displays the namespaces of a running process?
What does the PID namespace isolate?
Which namespace is responsible for isolating network interfaces and...
play-Mute sad happy unanswered_answer up-hover down-hover success oval cancel Check box square blue
Alert!