





















































































Study with the several resources on Docsity
Earn points by helping other students or get them with a premium plan
This page cannot be seen from the preview
Don't miss anything!






















































































Question 1. Which initial step is most critical when beginning a troubleshooting session? A) Restarting the system B) Defining the problem clearly C) Installing the latest patches D) Contacting senior staff Answer: B Explanation: A precise problem definition establishes the scope and guides all subsequent investigative actions. Question 2. In the troubleshooting process, what does the “divide and conquer” principle refer to? A) Splitting the work among multiple technicians B) Isolating the faulty component or code segment C) Using parallel processing to speed up analysis D) Delegating tasks to higher support tiers Answer: B Explanation: Divide and conquer means breaking the system into smaller parts to locate the source of the issue more efficiently. Question 3. Which of the following best distinguishes a symptom from a root cause? A) Symptoms appear after the root cause is fixed B) Symptoms are always hardware‑related, root causes are software‑related C) Symptoms are observable effects; root causes are the underlying reasons producing them D) Symptoms are logged, root causes are not Answer: C
Explanation: Symptoms manifest as visible problems, while the root cause is the underlying issue that generates those symptoms. Question 4. When gathering information, which log type is most useful for diagnosing kernel‑level failures on a Linux system? A) Application log B) dmesg output C) Apache access log D) Windows Event Viewer Answer: B Explanation: dmesg displays kernel ring buffer messages, which contain information about hardware and kernel events. Question 5. Which question is most appropriate to ask a user during an interview to help reproduce an intermittent issue? A) “What version of the operating system are you running?” B) “Can you describe the exact steps that lead to the failure?” C) “Do you have administrative rights?” D) “What is your favorite programming language?” Answer: B Explanation: Detailed step‑by‑step reproduction instructions are essential for recreating intermittent problems. Question 6. Which of the following is a primary benefit of documenting each troubleshooting step? A) It reduces the time needed for the next incident B) It eliminates the need for escalation
Question 9. What is the main advantage of using conditional breakpoints in an IDE debugger? A) They automatically fix the bug B) They reduce the number of required breakpoints by stopping only when a condition is true C) They improve code compilation speed D) They generate documentation automatically Answer: B Explanation: Conditional breakpoints pause execution only when specified criteria are met, focusing debugging effort. Question 10. Which log level should be used for messages that indicate a recoverable error that may affect user experience? A) DEBUG B) INFO C) WARN D) FATAL Answer: C Explanation: WARN is appropriate for recoverable issues that could impact functionality but do not cause immediate failure. Question 11. The “5 Whys” technique is primarily used for: A) Prioritizing bug fixes B) Identifying the root cause by repeatedly asking “Why?” C) Measuring performance metrics D) Automating test case generation Answer: B
Explanation: Repeatedly asking “Why?” drives deeper analysis to uncover underlying causes. Question 12. In a fishbone (Ishikawa) diagram, which category would “Insufficient memory allocation” belong to when troubleshooting a crash? A) People B) Process C) Environment D) Resources Answer: D Explanation: Memory allocation is a resource issue, fitting the “Resources” branch of the diagram. Question 13. Which tool would you use to monitor real‑time CPU usage on a Windows machine? A) top B) perfmon C) iostat D) netstat Answer: B Explanation: Performance Monitor (perfmon) provides detailed, real‑time CPU usage statistics on Windows. Question 14. A Linux process is listed as “defunct” in ps. What does this indicate? A) The process is running normally B) The process is a zombie that has completed execution but not been reaped C) The process is waiting for I/O
B) docker-compose.yml C) .env file D) config.json Answer: C Explanation: .env files are commonly used to supply environment variables to Docker containers via docker‑compose. Question 18. Which of the following is a common cause of deadlocks in multithreaded applications? A) Using immutable objects B) Acquiring locks in inconsistent order across threads C) Running garbage collection frequently D) Using thread‑local storage Answer: B Explanation: Inconsistent lock acquisition order can cause circular waiting, leading to deadlocks. Question 19. Which Java tool can generate a heap dump for analyzing memory leaks? A) jstack B) jmap C) javac D) javadoc Answer: B Explanation: jmap - dump:live,format=b,file=heap.bin <pid> creates a heap dump for later analysis.
Question 20. A web page shows a “Cross‑Origin Request Blocked” error in the browser console. Which HTTP header is most likely missing or misconfigured? A) Content-Type B) Authorization C) Access‑Control‑Allow‑Origin D) User-Agent Answer: C Explanation: CORS errors arise when the Access-Control-Allow-Origin header does not permit the requesting origin. Question 21. Which of the following best describes a “minimal reproducer” (SSCCE)? A) A full production deployment of the application B) The smallest, simplest code snippet that still demonstrates the bug C) A performance benchmark suite D) A comprehensive unit test suite covering all code paths Answer: B Explanation: An SSCCE isolates the problem in the minimal amount of code needed to reproduce it. Question 22. When using Postman to test a REST API, which feature helps you verify that the response body matches an expected JSON schema? A) Pre‑request scripts B) Tests tab with pm.expect statements C) Environment variables D) Collection runner Answer: B
C) 403 Forbidden D) 404 Not Found Answer: C Explanation: 403 Forbidden signals that authentication succeeded but the client lacks the required privileges. Question 26. When analyzing a stack trace, what does the topmost line usually represent? A) The entry point of the program (main) B) The most recent method call that threw the exception C) The first method invoked in the call chain D) The line where the program terminated normally Answer: B Explanation: Stack traces list calls from the point of exception outward; the top line is where the exception originated. Question 27. Which Windows command can be used to view active TCP connections and listening ports? A) ipconfig B) netstat - an C) ping - t D) tracert Answer: B Explanation: netstat - an displays all active connections and listening sockets with numeric addresses. Question 28. In performance profiling, what does “hotspot” refer to?
A) A region of code that never executes B) A section of code consuming a disproportionate amount of CPU time C) A memory leak location D) A network latency issue Answer: B Explanation: Hotspots are code areas that dominate execution time and are prime targets for optimization. Question 29. Which of the following is an effective way to reduce the risk of race conditions? A) Using global variables extensively B) Adding random delays in code C) Employing proper synchronization primitives (e.g., mutexes) D) Disabling multithreading altogether Answer: C Explanation: Synchronization mechanisms coordinate access to shared resources, preventing concurrent conflicts. Question 30. A database query runs slowly. Which of the following actions is most likely to provide immediate insight into the cause? A) Restarting the database server B) Examining the query execution plan C) Changing the database password D) Running a full backup Answer: B Explanation: The execution plan reveals how the optimizer will access data, highlighting missing indexes or inefficient joins.
Answer: D Explanation: Accessing the pod’s logs provides direct evidence of why the container is terminating. Question 34. Which HTTP header is used by browsers to cache a response for a specified duration? A) Content-Type B) Set-Cookie C) Cache-Control D) Authorization Answer: C Explanation: Cache-Control directives (e.g., max‑age) instruct browsers how long to store a response. Question 35. When a user reports that a feature works on their machine but not on others, which factor is most likely the cause? A) Incorrect version control branch B) Environment‑specific configuration (e.g., OS, locale) C) Outdated documentation D) Missing unit tests Answer: B Explanation: Environment differences (OS, locale, installed libraries) often lead to inconsistent behavior. Question 36. Which of the following is the best practice for writing log messages that will be parsed by a log‑aggregation system? A) Use free‑form natural language
B) Include timestamps, severity level, and a structured format (e.g., JSON) C) Write logs only at the INFO level D) Log only successful operations Answer: B Explanation: Structured logs with consistent fields enable automated parsing, searching, and alerting. Question 37. In a Windows environment, which tool provides detailed information about driver failures and hardware events? A) Task Manager B) Event Viewer → System log C) Resource Monitor D) Disk Defragmenter Answer: B Explanation: The System log in Event Viewer records driver and hardware‑related events. Question 38. Which of the following is a common cause of “Connection reset by peer” errors in networked applications? A) DNS cache poisoning B) The remote server abruptly closing the TCP connection C) Incorrect IP address formatting D) Using UDP instead of TCP Answer: B Explanation: The remote endpoint closing the socket without a graceful shutdown triggers this error.
Explanation: PUT replaces the target resource and can be called multiple times with the same result, making it idempotent. Question 42. Which of the following is a sign that a thread is blocked waiting for a monitor lock in Java? A) The thread is in the RUNNABLE state B) The thread is in the BLOCKED state C) The thread is in the TERMINATED state D) The thread is in the WAITING state Answer: B Explanation: BLOCKED indicates the thread is waiting to acquire a monitor lock. Question 43. When analyzing a slow‑loading web page, which metric should you prioritize to improve perceived performance? A) Time To First Byte (TTFB) B) DNS lookup time C) Number of HTTP requests D) All of the above Answer: D Explanation: All three affect page load speed; optimizing each yields better perceived performance. Question 44. Which Linux command can be used to display the amount of free and used memory in a human‑readable format? A) df - h B) free - h C) lsblk
D) du - sh Answer: B Explanation: free - h reports total, used, and free memory with appropriate units. Question 45. In a microservices architecture, which pattern helps isolate failures to a single service rather than cascading across the system? A) Monolithic deployment B) Circuit breaker C) Direct database sharing D) Global exception handling Answer: B Explanation: A circuit breaker stops calls to a failing service, preventing failure propagation. Question 46. Which of the following is an effective way to test whether a firewall is blocking outbound traffic on port 443? A) ping google.com B) telnet telnet or nc) directly tests firewall rules for that port. Question 47. When a Java application throws NullPointerException at line 42, which debugging step is most appropriate? A) Increase the heap size
Question 50. When a database connection pool is exhausted, which symptom is most likely observed in the application? A) Immediate successful queries B) Long wait times or time‑outs when acquiring a connection C) Increased CPU usage on the client D) Automatic reconnection without errors Answer: B Explanation: Exhausted pools cause threads to wait for a free connection, often resulting in time‑outs. Question 51. Which of the following best describes a “broken build” in a CI pipeline? A) A build that completes faster than expected B) A build that fails due to compilation errors, test failures, or script issues C) A build that produces no artifacts D) A build that runs on an outdated OS version Answer: B Explanation: A broken build indicates a failure during any stage of the pipeline, requiring immediate attention. Question 52. In Python, which built‑in module provides functions for inspecting the call stack at runtime? A) os B) sys C) inspect D) logging Answer: C
Explanation: The inspect module offers utilities like stack() and getframeinfo() for stack inspection. Question 53. Which of the following is a common indicator of a misconfigured proxy causing HTTP request failures? A) DNS resolution succeeds but connections time out B) HTTP 200 OK responses with empty bodies C) HTTP 407 Proxy Authentication Required D) TCP SYN packets never leave the host Answer: C Explanation: A 407 status indicates the client must authenticate with the proxy, suggesting proxy misconfiguration. Question 54. When troubleshooting a flaky test, what is the most effective first step? A) Increase test timeout values arbitrarily B) Run the test repeatedly to identify patterns or environmental factors C) Delete the test permanently D) Disable the CI pipeline temporarily Answer: B Explanation: Repeating the test helps reveal nondeterministic behavior and possible external dependencies. Question 55. Which of the following is the most appropriate way to handle sensitive data (e.g., passwords) in log files? A) Log them in plain text for debugging convenience B) Mask or redact the sensitive fields before logging C) Store them in a separate log file with higher permissions