X Interview Questions (8+ Questions)

Last Updated: June 23, 2026 β€’ 8 Questions β€’ Real Company Interviews

Prepare for your X interview with our comprehensive collection of 8+ real interview questions and detailed answers. These questions have been curated from actual X technical interviews across various roles including DevOps Engineer, Data Engineer, QA Engineer, and more.

8
Interview Questions
1
Categories
2
Difficulty Levels

Table of Contents

Our X interview questions cover a wide range of technical topics and difficulty levels, from entry-level positions to senior roles. Each question includes detailed explanations and answers to help you understand the concepts and prepare effectively for your interview.

πŸ’‘ Pro Tips for X Interviews

  • Practice each question and understand the underlying concepts
  • Review X's specific technologies and methodologies
  • Prepare follow-up questions and edge cases
  • Practice explaining your solutions clearly and concisely

Interview Questions & Answers

1. Recursive Keyword Finder

Company: X Difficulty: easy Categories: Devops, Data analysis, Data engineering, Quality assurance

We have multiple applications that write their logs under var slash log. An issue with this approach is that since multiple logs file are constantly being written to this folder, checking them one by one would be slow and inefficient. We want to use this file to consolidate all the lines that contain errors and write them here. We can use grep and we'll use recursive flag to get error lines in var slash log folder, and it will include only files that are in dot log extension. What we left to do is send this into the consolidated error logs file.

2. Fix Port Exhaustion for High-Speed Scraper

Company: X Difficulty: medium Categories: Devops

We have a web scraper service that runs in systemd and we get an error indicating that connections cannot be established even though everything is fine with our server, services accessible and network is fine. Connection three zeros means that we cannot allocate the port and this could happen because of port exhaustion. Port exhaustion happens when we have a certain range of ports on our machine and every time we make an outbound connection, we need that port. And that port usually becomes blocked for 60 seconds and cannot be reused. When we have more connections within 60 seconds than we have allocated port pool, we will get this kind of error. To confirm this, we can run SS, so it's TCP all numbers state time wait, and we can count lines with WC line. In order to fix this problem, we'll use kernel time wait reuse flag. We'll use sysctl net IPV four ip local port range. This gives us the range of ports that we currently have available on our machine. The reuse status is zero. In order to fix this, we need to use reuse one.

3. Resolve Merge Conflict Keeping Changes

Company: X Difficulty: easy πŸ”’ Premium Categories: Devops

Handle merge conflicts by manually combining changes from both branches. Resolve conflicts in app.js by keeping both processData and validateInput functions, complete the merge with a commit, and maintain all work from both team members. Essential for team collaboration, preventing code loss during merges, combining parallel development efforts, and maintaining code quality during integration.

4. Find Overlapping Date Ranges

Company: X Difficulty: medium Categories: Data analysis, Data engineering

We have one table that is called assignments. Each row represents one employee assigned to one project with start date and end date. We need to find those employees who are assigned to multiple projects at the same time, or in other words, who face an overlap. The final result must contain all the columns from the input and sort it out by project ID primarily, and then by employee ID in ascending order. Two date ranges overlap when they share at least one day in common. We need to compare each assignment to another one for the same employee, which basically means that we reference the same table twice. This means that we'll use self join here. We take assignments table and give it alias a1. Then we join it with a2 copy that will search for overlapping assignments. The first condition is that assignment a1 must start before or on the same day that assignment a2 ends, because if a1 starts after a2 already ended, no overlap is possible. The role of distinct function here is removing those duplicates and making sure that each assignment appears only once in the final result.

5. Conditional Count with FILTER

Company: X Difficulty: medium πŸ”’ Premium Categories: Data analysis, Data engineering

Interview Question: Generate a Summary of Orders by Category

Objective:
You are provided with a table named orders that contains the following columns:

  • id: an integer representing the unique identifier for each order.
  • category: a string indicating the category of the order.
  • amount...

πŸ”’ Premium Content

Detailed explanation and solution available for premium members.

Upgrade to Premium β†’

6. CASE Statement for Conditional Logic

Company: X Difficulty: medium πŸ”’ Premium Categories: Data analysis, Data engineering

Crafting the Perfect SQL Query to Categorize and Sort Orders

Objective

Your task is to write a powerful SQL query that categorizes orders based on their total amount and sorts them in descending order. We'll label orders with a total amount greater than 1000 as 'Large' and those with a tot...


πŸ”’ Premium Content

Detailed explanation and solution available for premium members.

Upgrade to Premium β†’

7. Group Customers by City

Company: X Difficulty: medium πŸ”’ Premium Categories: Data analysis, Data engineering

Objective

Write an SQL query to determine the number of customers residing in each city. The result should list each city alongside the corresponding count of customers, sorted in descending order based on the customer count.

Additional Information

  • The customers table includes the fol...

πŸ”’ Premium Content

Detailed explanation and solution available for premium members.

Upgrade to Premium β†’

8. JavaScript Alert Interaction and Validation

Company: X Difficulty: medium πŸ”’ Premium Categories: Quality assurance

Master JavaScript alert handling with Selenium. Learn to automate alert, confirm, and prompt dialogs with proper wait strategies....


πŸ”’ Premium Content

Detailed explanation and solution available for premium members.

Upgrade to Premium β†’


Ready to Practice More?

Explore interview questions from other companies or try our hands-on labs to build practical experience.