Quiz: SRE / Platform Engineer
SRE / Platform Engineer questions from real interviews as a quiz, with an explanation for every option.
Try it: 5 questions
Loading…
Sample questions
Which factors should be considered when choosing the number of Kafka topic partitions? Select three.
- Expected throughput, data volume, and message size
- To preserve message order, create a separate partition for every key
- Required processing parallelism and the number of consumer instances
- The partition count must always match the number of brokers
- Broker capacity and the overhead of having many partitions
Which three OS or distribution–package manager pairs are correct?
- Gentoo —
emerge - Arch Linux —
pacman - Void Linux —
apt - FreeBSD —
dnf - Alpine Linux —
apk
- Gentoo —
What does this pipeline do with a gzipped Redis log?
zcat redis.log.gz | awk '{print $3}' | grep SET | sort | uniq -c | sort -nr- Extracts the third field, keeps values containing
SET, and counts them in descending order. - Extracts every line containing
SET, removes duplicates, and sorts the lines by time. - Decompresses the log, replaces each
SETwith its occurrence count, and saves the result to a file. - Counts all log lines containing
SETand prints one overall total.
- Extracts the third field, keeps values containing
On Linux, how can you find the number of OS threads used by a Go service when you know its PID?
- Check the memory size in
/proc/<PID>/statm - Read the
Threadsfield in/proc/<PID>/status - Call
runtime.NumGoroutine() - Count the files in
/proc/<PID>/fd
- Check the memory size in
How can ArgoCD permissions be separated so that some users can only view applications while others can trigger syncs?
- Use a Kubernetes ServiceAccount for each application to separate permissions
- Allow all users to sign in and enforce restrictions only in the Git repository
- Run a separate ArgoCD server for each user group
- Define roles and policies in
argocd-rbac-cm, then assign roles to users or groups
What do containers in the same Kubernetes Pod have in common? Select all that apply.
- They are managed as part of one Pod lifecycle.
- They share a network namespace and can reach one another via
localhost. - Each container has its own IP address, separate from the Pod's IP.
- They automatically use a shared filesystem.
- They always run on the same node.
Which statements about signals in Unix-like systems and the difference between
SIGTERMandSIGKILLare correct? Select three.- Signals asynchronously notify processes about events.
- A process can handle
SIGTERMand perform cleanup before exiting. SIGKILLcannot be caught or ignored.SIGTERMcannot be caught, so it always terminates a process immediately.- A process can catch
SIGKILLand exit gracefully.
What is the main difference between
whenandtagsin Ansible?whensets a condition for a task to run, whiletagshelp select tasks when running a playbook.whensets the order of tasks, whiletagsdetermine which operating systems they run on.whenselects tasks when running a playbook, whiletagsset conditions based on variables.whenandtagsare equivalent ways to skip tasks based on a condition.
What is AppArmor in Linux?
- An ACL system that assigns file permissions to users
- A filesystem encryption mechanism
- A MAC system that restricts applications using profiles
- A tool for backing up system configuration files
Which of the following are examples of Linux pseudo-filesystems? Select all that apply.
- NFS, mounted from network storage
sysfs, mounted at/sysprocfs, mounted at/procext4, commonly used for disk partitionstmpfs, often used for/run