WorksheetsCO5 MCQ Assessment on Linux
Total questions: 100
Worksheet time: 50mins
Primary function of the Linux kernel in modern computing systems involves:
File operations
Managing hardware resources
UI rendering
Driver compilation
Command responsible for displaying currently active processes in Linux is:
ls
ps
mkdir
rm
Definition of a container within Linux-based environments refers to:
A virtual machine
An isolated lightweight process
A shared memory buffer
A backup mechanism
Docker command used to list all containers (active and inactive):
docker run
docker ps
docker ps -a
docker restart
Linux features enabling Docker’s container isolation capabilities are:
Hypervisor & threads
Namespaces & cgroups
Disk quotas
Bash shell isolation
Key architectural distinction between Docker and Podman involves:
Docker runs rootless
Podman operates without daemon
Docker is daemonless
Podman requires root
Common shared component in containers that differentiates them from VMs is the:
Kernel
Complete OS image
Network card
BIOS
Identify the configuration file used for storing user account details in Linux systems. This file plays a vital role in user authentication and identity management.
/etc/user
/etc/passwd
/etc/logs
/etc/sudoers
Point out the correct role of the /etc/fstab configuration file. It automates the mounting of file systems during system boot.
Mount file systems
Start daemons
Update kernel modules
Track user sessions
Determine the command that modifies the ownership of a file. This operation is essential in managing file permissions and access control.
chmod
usermod
chown
touch
Apply the command that lists running processes with real-time updates. This helps in monitoring system performance.
ps aux
top
who
uptime
Select the tool that helps in creating partitions on a hard disk. Disk management requires creating and resizing partitions.
chmod
fdisk
diff
echo
Choose the effect of the chmod 755 file.sh command. This sets execute permissions for the owner and read-execute for others.
Owner can only read
Everyone can execute
Only root can modify
Owner can write and execute
Puppet uses which language to define configuration files?
Ruby
YAML
JSON
Python
What port is used by Puppet Agent to communicate with the Puppet Master?
8140
443
22
8080
Which file in Ansible is used to define host groups?
inventory
hosts.cfg
ansible.cfg
group_vars
What will be the output of print(myFunction(4)) given: myFunction <- function(a, b = 2){ result <- a * b; return(result) }?
Error due to missing argument
8
6
Null
In Ansible, which module is used to install a package on Debian-based systems?
yum
apt
dnf
install
Which Ansible directive is used to define variables for all hosts?
group_vars
host_vars
all_vars
common_vars
What is the output of ansible all -m ping if SSH is misconfigured?
pong
success
unreachable
success with warning
A TTL of 3600 seconds implies caching for how long?
60 min
30 min
1.5 hr
45 min
A DNS query travels 4 hops each taking 10 ms. What is the round-trip time?
20 ms
40 ms
80 ms
100 ms
A server sends 500 DNS requests per minute. How many requests in 2 hours?
30,000
60,000
15,000
10,000
8 devices each need 2 DNS lookups per minute. How many total in 30 minutes?
240
480
60
120
A DNS cache is valid for 24 hours. After 6 hours, what percent time remains?
25%
50%
75%
90%
Each A record response is 60 bytes. How much bandwidth is used for 1,000 queries?
60 KB
600 KB
6 MB
60 MB
If one DNS server fails 25% of the time, what's the success rate over 4 queries?
31.60%
25%
75%
31.25%
Which of the following best defines virtualization?
Physical separation of services
Creating virtual versions of hardware
Manual resource allocation
Using multiple servers for one task
A company wants to host multiple isolated applications on a single physical server with minimal overhead. Which of the following technologies is most suitable?
Full virtualization using VMware ESXi
Dual-boot configuration
OS-level virtualization using Docker
Installing multiple OSes on different hard disks
Which deployment model allows both public and private cloud usage?
Private Cloud
Hybrid Cloud
Community Cloud
Distributed Cloud
Which technology underlies cloud resource abstraction?
Encryption
Virtualization
Data replication
Firewalling
A company uses a cloud service to develop and deploy its apps without managing infrastructure. What model is this?
SaaS
PaaS
IaaS
BaaS
You are a system admin tasked with scaling web servers during high traffic. Which cloud feature helps automate this?
Disaster Recovery
Vertical Scaling
Auto-scaling
Load dumping
Which scenario demonstrates elasticity in cloud computing?
Paying fixed monthly fees
Automatic increase in VMs during demand spike
Manual addition of servers
Switching between cloud vendors
What distinguishes Type 1 hypervisor from Type 2?
Type 1 runs on OS, Type 2 on bare-metal
Type 2 uses containerized architecture
Type 1 runs directly on hardware
Type 2 offers hardware pass-through
Primary deployment advantage of using containers over virtual machines is:
Reduced reliability
Consistent environments
Dependence on GUI
Manual resource scaling
Storage driver most commonly used by Docker for efficient image layering is:
ext4
OverlayFS
ZFS
NTFS
Security frameworks like SELinux and AppArmor enforce container protection by:
Logging access
Encrypting filesystem
Applying access control
Blocking TCP traffic
Startup latency comparison between containers and VMs indicates containers are:
Slower to start
Faster to start
Equal in performance
OS-independent
Core component shared by all containers on a single host system is the:
Shell
Kernel
User account
Cron job
Docker command used for building container images from source files is:
docker init
docker build
docker fork
docker snapshot
Analyze the impact of runlevel misconfiguration. This may prevent proper system startup.
Fails to boot GUI
Disables sudo
Corrupts filesystem
Locks the BIOS
Evaluate the purpose of /etc/sudoers in user permission control. Misuse can compromise security.
Stores passwords
Grants root-like privileges
Defines user limits
Monitors user behavior
Select the command that updates the system package list in Ubuntu. It ensures latest versions are checked.
rpm update
yum install
apt update
dpkg upgrade
Identify the result of incorrectly editing /etc/fstab. Mounting file systems may fail during boot.
Blue screen
Kernel panic
Boot failure
Login loop
Identify the command that shows all active network interfaces. Useful in troubleshooting network connectivity.
ifconfig
ping
route
host
Highlight the risk of granting sudo access to all users. This compromises the principle of least privilege.
Fast boot
Increased security
Unauthorized access
Enhanced logging
What output does factorial <- function(n){if(n==1)return(1);return(n*factorial(n-1))}; factorial(5) produce in R?
15
120
60
720
What is the full path to Ansible's default inventory file?
/etc/ansible/hosts
/home/ansible/hosts
/etc/ansible.cfg
/var/ansible/hosts
What is the purpose of id command in Linux cloud server?
Shows UID/GID
Lists users
Kills processes
Renames users
Which command installs Ansible on Ubuntu?
sudo yum install ansible
sudo apt install ansible
install ansible
get ansible
How is a Puppet manifest file extension denoted?
.json
.pp
.puppet
.dsl
You have 3 hosts and run 2 parallel tasks per host. How many total executions?
6
3
2
1
If 30% of DNS records are A, 20% MX, rest CNAME, what % is CNAME?
50%
60%
70%
80%
Which component of SOA record increases with every DNS update?
TTL
Serial Number
Refresh
Retry
What’s the formula for calculating available IPs in subnet /n?
2(32−n)−2
2n
n2
2(n−24)
What’s the effect of setting TTL to 0?
Infinite cache
No caching
Fast transfer
Block DNS
A packet sniffer shows repeated DNS queries. What’s likely cause?
High TTL
DNS flood attack
Low latency
DHCP error
Xen uses what type of virtualization for best performance with paravirtualized guests?
Emulation
Binary translation
Full virtualization
Paravirtualization
You are tasked with installing a Linux VM on Xen. What must be installed first?
DomU
Guest agent
Dom0
Docker
VMware on Linux allows which of the following benefits over traditional dual-booting methods?
Faster kernel upgrades
Higher GPU performance
Running multiple OS instances concurrently
Booting into bare-metal Linux
During VM creation, Xen throws an error “Unable to find kernel image.” What is the solution?
Install Docker
Restart Dom0
Point to valid kernel/initrd in config
Reboot network interface
An admin wants better I/O for a Xen guest. Which device driver type should be enabled?
IDE
emulated NIC
paravirtualized drivers (PV drivers)
SCSI bridge
You want to expose a service to external traffic in Kubernetes. Which type of service do you create?
ClusterIP
Internal
NodePort
Volatile
In Kubernetes, which component ensures containers are running in a Pod?
Controller Manager
Scheduler
Kubelet
Kube-proxy
You run a Docker container with a memory limit of 512 MB. If the container’s memory usage grows at 8 MB per minute, how long before it hits the limit?
64 min
72 min
60 min
68 min
A Linux server has 250 users. If each user needs 150 MB of home directory space, how much disk space is required for home directories?
37.5 GB
25 GB
45 GB
30 GB
An Ansible playbook takes 3 seconds per host to run. How long will it take to run on 120 hosts?
6 minutes
4 minutes
5 minutes
7 minutes
A Kubernetes deployment specifies 5 replicas per pod. If each pod uses 200 MB RAM, how much total RAM will 5 replicas consume?
2 GB
1.2 GB
0.8 GB
1 GB
You create 4 VMs, each with 20 GB disk images. If the host has 100 GB free disk, how much space remains after VM creation?
25 GB
20 GB
30 GB
40 GB
A Linux cloud server has 16 CPU cores. You allocate 4 cores to each VM. What’s the max number of VMs you can run simultaneously?
3
4
5
6
Deploying Puppet modules to 50 servers takes 8 minutes total. On average, how much time does each server take?
10
8
9.6
12
An NFS server serves 40 clients simultaneously. Each client requires 15 Mbps. What total bandwidth is needed?
600 Mbps
500 Mbps
550 MBPS
650 Mbps
A Docker image is 1.2 GB. After optimization, image size reduces by 35%. What is the new size?
800 MB
780 MB
700 MB
850 MB
You must design a cluster to support 500 pods, each requiring 250 MB RAM. Each node has 16 GB RAM, reserving 2 GB for system processes. How many nodes are required?
12
10
15
11
A KVM hypervisor schedules 3 VMs on 2 CPUs. VM1 uses 60% CPU, VM2 30%, VM3 50%. What is the total CPU overcommitment percentage?
70%
140%
110%
90%
Automating tasks on 200 servers saves 15 minutes per server weekly. What is total time saved monthly (4 weeks)?
200 hours
150 hours
100 hours
300 hours
DNS cache hit rate improves from 60% to 85%. If 5000 queries are made, how many fewer external queries happen?
1250
1000
1500
1100
Google Filestore charges $0.30/GB monthly. A server’s storage grows 25 GB monthly. How much more will it cost after 6 months?
$45
$40
$50
$30
You allocate 2 GB memory to each Xen VM on a host with 32 GB RAM. If the host reserves 4 GB for itself, what is the maximum number of VMs?
16
17
12
14
A host has 800 CPU shares. Container A has 200 shares, and container B has 600. If both are busy, what percentage of CPU will container B receive?
75%
66%
80%
25%
Backup speed is 120 MB/s and the system size is 900 GB. How long will the backup take to complete?
2.08 hours
1.5 hours
2.5 hours
3 hours
A cloud server has 99.9% uptime monthly. Calculate the maximum downtime allowed in minutes assuming a 30‑day month.
50 minutes
43.2 minutes
40 minutes
30 minutes
A VMware VM runs at 2000 IOPS with a 4 KB block size. What is the resulting throughput in MB/s?
8 MB/s
6 MB/s
7.81 MB/s
9 MB/s
A Podman image is 850 MB. After removing unnecessary layers, the size reduces by 20%. What is the new size?
650 MB
700 MB
720 MB
680 MB
A Linux system has 120 users distributed equally among 4 groups. How many users are in each group?
40
25
30
15
An Ansible playbook runs on 60 hosts with a fork count of 15. How many hosts will run concurrently?
30
15
60
25
A DNS server handles 1200 queries per minute. If 25% are cached, how many queries hit the authoritative server?
900
800
1100
1000
Azure Blob Storage charges $0.18 per GB per month. A company stores 2000 GB. What is the monthly cost?
$360
$180
$200
$400
A host has 64 GB RAM. Six VMs are allocated 10 GB each. What is the percentage of memory utilization relative to physical RAM?
90%
60%
6%
40%
A Kubernetes node has 32 CPU cores. Each pod requests 2 cores. What is the maximum number of pods per node based on CPU?
20
16
15
14
If DNS TTL is lowered from 3600 seconds to 900 seconds, by what factor does the cache refresh frequency increase?
2 times
3 times
4 times
5 times
Deploying Puppet on 80 nodes takes 6 minutes. What is the average time per node?
3 seconds
4.5 seconds
5 seconds
6 seconds
An NFS server delivers 1 Gbps bandwidth and 50 clients equally share it. What bandwidth does each client get?
10 Mbps
15 Mbps
20 Mbps
25 Mbps
You plan to scale Docker containers to use 48 GB RAM in total. If each container uses 2.5 GB, how many containers can you run?
16
18
19
20
A VMware host has 24 physical cores and runs 10 VMs, each with 4 vCPUs. What is the CPU overcommit ratio (vCPU:physical core)?
1.25
1.5
1.67
2
Backup time drops from 3 hours to 2 hours after cloud migration. What is the percentage reduction in backup time?
25%
33.33%
40%
50%
You must run 300 pods, each requiring 400 MB. Each node has 24 GB RAM and reserves 3 GB for the system. How many nodes are needed?
5
6
7
8
A DNS server receives 10,000 queries per minute. After caching, 70% hit the cache. How many queries go to the upstream server?
2500
3000
3500
4000
A disk reads at 150 MB/s. For a 2 TB disk, how long does it take to read the entire disk?
3 hours
3.5 hours
3.7 hours
4 hours
