Entry questions
CI/CD 3 questions
- #1Environment-Gated Deployment
A repository at
/home/interview/repocontains a deployment pipeline defined in.github/workflows/deploy.yml. Currently, the pipeline deploys to both Staging and Production environments automatically on every push. This is risky because unstable code could break the Production environment immediately. - #2GitHub Actions Retry Logic
A repository at
/home/interview/repocontains a deployment workflow that occasionally fails due to transient issues. A deployment step running./scripts/flaky-deploy.shfails on first attempt but succeeds on retry. The workflow needs automatic retry configuration to handle transient failures. A starter workflow file has been created at.github/workflows/deploy.ymlwith the basic structure. - #3GitHub Actions Timeout Enforcement
A repository at
/home/interview/repocontains a deployment workflow that occasionally hangs due to network issues or unresponsive external services. Jobs must be automatically terminated if they exceed a time limit to prevent resource waste. A starter workflow file has been created at.github/workflows/deploy.ymlwith the basic structure.
Cloud 7 questions
- #4Audit and Enforce Least-Privilege IAM Permissions
A security audit has flagged the IAM user
app-deployerfor havingAdministratorAccesspolicy with far more permissions than needed. The user only needs access to:- S3: Read (GetObject) and Add objects (PutObject), list buckets (ListBucket).
- CloudWatch Logs: Create log groups (CreateLogGroup), log streams (CreateLogStream), and put log events (PutLogEvents).
- #5Create a Hello World Lambda Function
Your team needs a simple Lambda function for a greeting microservice.
- #6Create AWS IAM Admin User with Group and Policy
You need to set up a new administrative user account for regular use instead of using the root account.
- #7Create IAM Role for EC2 with Full IAM Access
Your team needs an EC2 instance to manage IAM resources programmatically. To follow AWS security best practices, you should use an IAM role instead of embedding credentials.
- #8Create Route 53 Health Checks
Your infrastructure has two application endpoints requiring distinct monitoring strategies through Route 53 health checks, each with different protocols, ports, health check intervals, and failure thresholds.
- #9Create Route 53 Hosted Zone and DNS Records
Your team is launching a new application and needs DNS configured in Route 53 for the domain
example.com. - #10Launch an EC2 Web Server Instance
A basic landing page needs to be delivered via an EC2 instance accessible over HTTP with its own security group.
Containers 5 questions
- #11Container CPU Limit Configuration
You have a container named
cpu_testrunning from the imagemyapp:cputhat performs CPU-intensive computations. When monitoring with docker stats, the container regularly spikes to 150-200% CPU usage, consuming multiple CPU cores and impacting other services on the host. - #12Docker Binary Architecture
You have a container image
myapp:dualfixbuilt from/home/interview/Dockerfilethat fails during execution. - #13Docker Multi Architecture Image
You have a Dockerfile at
/home/interview/Dockerfilethat needs to be built for multiple architectures to support different hardware platforms. Currently, building withdocker buildonly creates images for the host architecture. - #14Docker Volume Cross Platform Consistency
You need to create a Docker volume named
myvoland demonstrate cross-platform consistency - that data written from one container is readable by a different container using a different base image. - #15Log Rotation Size Limit Configuration
A container image
myapp:logappcontinuously writes logs to stdout. Without log rotation configured, Docker's log files grow unbounded, consuming disk space and potentially filling up the filesystem.
Git 13 questions
- #16Apply Specific Stash from Multiple Stashes
You have multiple work-in-progress states saved in your Git stash stack and need to retrieve code from an older snapshot.
- #17Checkout Single File from Another Branch
You are working on the
mainbranch and need to updateconfig.jsonwith changes that currently exist only on thefeature-settingsbranch, without switching your current context. - #18Cherry Pick Specific Commit
You have a Git repository at
/home/interview/repoon the main branch. A commit on thefeaturebranch contains a bug fix you need onmain, but you don't want to merge the entire feature branch. - #19Convert Remote from HTTPS to SSH
You have a Git repository at
/home/interview/repowhere the remote origin is currently configured with an HTTPS URL (https://github.com/user/repo.git). - #20Merge Feature Branch and Delete
You have a Git repository at
/home/interview/repowhere you've completed work on thefeature-loginbranch. The feature is ready to be integrated into themainbranch. - #21Rebase Branch with Reversed Commit Order
You have a Git repository at
/home/interview/repowhere yourfeature-refactorbranch has four commits in the wrong logical order. The commits should be reversed (oldest to newest becomes newest to oldest) to make more sense for code review. You need to rebase this branch onto the latestmainbranch while reversing the commit order. - #22Rebase Feature Branch
You have a Git repository at
/home/interview/repowhere yourfeature-paymentbranch is 32 commits behind main. You need to rebase the feature branch onto the latest main and resolve conflicts that occur during the process. - #23Rebase Feature Branch Onto Correct Base
A Git repository at
/home/interview/repohas a feature branchfeature-loginwith several commits, but it was created from the wrong base branch. - #24Remove Last Commit and Discard Changes
You have created a commit locally that contains incorrect changes and you want to completely erase it from history.
- #25Shallow Clone Limited to Latest Commit
A deployment pipeline is experiencing slow build times because it performs full history clones.
- #26Stage Only Specific Files
You have a Git repository at
/home/interview/repowhere you modified three files:app.js,style.css, andconfig.json. - #27Undo Commits but Keep Changes
You have a Git repository at
/home/interview/repowith three recent commits on themainbranch that were premature and need to be reorganized. - #28View Unique Commits Between Branch and Origin
A Git repository at
/home/interview/repohas afeature-apibranch that was created fromorigin/mainsome time ago. The branch has your commits plus merge commits from pulling updates, making it difficult to identify which commits are unique to your branch.
Kubernetes 7 questions
- #29Create Namespace
You need to create a new namespace for deploying applications.
- #30Dynamic Volume Expansion
An application requires persistent storage that can be resized without downtime.
- #31Job Failure
A Job manifest at
/home/interview/fail-job.yamlis failing with a non-zero exit status. The Job has limited retries configured. - #32Multi Key ConfigMap
An application requires multiple configuration values mounted as files.
- #33Pod Viewer Access
A monitoring application needs read-only access to pods in the
demonamespace. - #34Pod With Readiness Probe
You need to deploy a web application that only receives traffic when it's ready to serve requests.
- #35Pod With Resource Limits
An application needs guaranteed resources and limits to prevent overconsumption.
Linux 14 questions
- #36CPU Resource Management Priority
During peak traffic hours, a background
data-processingjob that is started by userdevopsis consuming too much CPU and slowing down user-facing services. Stopping it isn't an option because it would interrupt ongoing workflows, but you need to limit its CPU usage temporarily. - #37Diagnose Nginx CPU Bottleneck
The web server has become sluggish and users are experiencing timeout errors. Multiple worker processes are running under the
nginxuser, and one of them is consuming excessive CPU resources, causing the entire application to slow down. - #38Handling Large Log Archives
During an incident investigation, you pulled a massive log export from
/var/log/app/access.logthat's several gigabytes in size. Your analysis tools and editors can't handle the entire file at once. - #39Log File Volume Assessment
The
/vardirectory contains logs from multiple applications, and cleanup planning is needed. Some applications create their own subdirectories with nested log files. - #40Managing High I/O Processes
Users are complaining about slow file access. System metrics show high disk utilization.
- #41Port Conflict Resolution
An application
/home/interview/server.shfails to start. - #42Purge Empty Folders
The
/tmpdirectory has accumulated numerous leftover folders from previous application runs and temporary scripts. Many of these directories are now empty and can be safely removed. - #43Recursive Database File Backup
Before performing a system-wide database schema migration, you've been asked to ensure that all existing
.dbfiles are safely backed up. These files may be scattered across multiple subdirectories, and simply renaming them isn't enough. You must create backup copies with the.db.bakextension, preserving directory structure and permissions. - #44Recursive Keyword Finder
Multiple applications write logs under
/var/log, and you need to quickly check if any recent errors have been recorded. - #45Sorted Log Aggregation
You have a log file
/tmp/app_combined.logwith entries from multiple servers in mixed order. Each line contains: timestamp, hostname, and action. - #46Throttle High I/O Process
A server is experiencing latency spikes and intermittent timeouts. CPU and memory appear normal, suggesting a disk I/O bottleneck from a runaway process.
- #47Tracing Log File Writes
The
/var/log/messagesfile has been growing unusually fast, filling up disk space within hours. - #48Track Forking Process Hierarchies
System resources are being consumed by an unusually large process tree. You need to identify the parent process with the most children and document its hierarchy.
- #49Uptime and Load Average Audit
A Linux server is under review for stability and recent performance evaluation.
Networking 5 questions
- #50Network Packet Loss Diagnosis
Users are reporting random timeouts. You need to determine whether packet loss occurs on the local network, upstream gateway, or public internet.
- #51Network Port Service Cleanup
A security audit found several unauthorized applications listening on high ports (range
8000-9000). - #52Network Socket Usage Analysis
Network latency issues were reported due to opening too many TCP connections.
- #53Temporary Route Configuration
You need to reach a remote subnet that isn't covered by the default route, but you don't want to make any permanent configuration changes.
- #54Validating DNS Consistency
Your monitoring alerts indicate that DNS resolution might be inconsistent across servers, and you need to confirm both IPv4 and IPv6 records for a given domain.