Professional Cloud Developer Exam QuestionsBrowse all questions from this exam

Professional Cloud Developer Exam - Question 66


Your application is running on Compute Engine and is showing sustained failures for a small number of requests. You have narrowed the cause down to a single

Compute Engine instance, but the instance is unresponsive to SSH.

What should you do next?

Show Answer
Correct Answer: AB

When a Compute Engine instance becomes unresponsive to SSH, the recommended next step is to enable and check the serial port output. The serial port output provides a log of the instance's boot process and any error messages that might occur during startup. This can help diagnose the issue that is causing the instance to become unresponsive, such as failed boot processes, disk errors, or configuration problems. Rebooting the machine might not resolve the underlying issue, and drastic measures like deleting the machine or taking a snapshot are not the best initial steps for troubleshooting.

Discussion

9 comments
Sign in to comment
donchickOption: B
Dec 21, 2020

Difficult to choose because either B(https://cloud.google.com/compute/docs/troubleshooting/troubleshooting-ssh#debug_with_serial_console) or D(https://cloud.google.com/compute/docs/troubleshooting/troubleshooting-ssh#inspect_vm) is recommended by google. I'd stay with B.

mastodilu
May 20, 2021

Using the first link you provided: https://cloud.google.com/compute/docs/troubleshooting/troubleshooting-ssh#debug_with_serial_console We recommend that you review the logs from the serial console for connection errors. You can access the serial console from your local workstation by using a browser. Enable read/write access to an instance's serial console, so you can log into the console and troubleshoot problems with the instance. This approach is useful when you cannot log in with SSH, or if the instance has no connection to the network. The serial console remains accessible in both of these situations

StelSenOption: B
Feb 20, 2021

Option-B is most suitable: In a real world I will try this and even if doesn't work then I will try Option-D which will help me to troubleshoot in details.

omermahgoubOption: B
Jan 8, 2023

Option B is correct. According to Google Cloud documentation, if a Compute Engine instance is unresponsive to SSH and you have narrowed the cause down to a single instance, you should enable and check the serial port output. The serial port output is a log of system messages and can help you diagnose the issue causing the instance to become unresponsive. To enable and check the serial port output, you can access the serial console as the root user from your local workstation using a browser. This will allow you to review the logs and potentially identify the cause of the problem.

omermahgoub
Jan 8, 2023

Option C is not a good solution because deleting the machine and creating a new one will not resolve the issue that caused the original instance to become unresponsive.

omermahgoub
Jan 8, 2023

Option A is not a good solution because rebooting the machine may not resolve the issue that is causing the instance to become unresponsive.

omermahgoub
Jan 8, 2023

Option D is not a good solution because taking a snapshot of the disk and attaching it to a new machine will not resolve the issue that caused the original instance to become unresponsive.

syu31svcOption: B
Jul 10, 2021

I would take B as the answer "What should you do next?" SSH is port 22 so it makes sense to check for the port

ParagSanyashivOption: B
Jan 8, 2022

B is correct, because it will be the first step to check the serial port 22 is responsive or not.

tomato123Option: B
Aug 20, 2022

B is correct

RajanOption: B
Sep 20, 2023

B is correct.

santoshchauhanOption: B
Mar 8, 2024

B. Enable and check the serial port output. When a Compute Engine instance becomes unresponsive to SSH, one of the best ways to diagnose the issue is to check the serial port output. The serial console can provide valuable information about the state of the instance and any errors that may be occurring at the system level. This is particularly useful when you can't connect via SSH. Google Cloud allows you to enable interactive access to the serial console, which can be a crucial tool for troubleshooting.

thewalkerOption: B
Jul 17, 2024

The best course of action is B. Enable and check the serial port output. Here's why: Serial Port Output: The serial port output provides a log of the instance's boot process and any error messages that might occur during startup. This is a valuable resource for diagnosing issues when an instance is unresponsive to SSH. Troubleshooting: By examining the serial port output, you can often identify the root cause of the unresponsiveness, such as a failed boot process, disk errors, or configuration problems.

thewalker
Jul 17, 2024

Let's look at why the other options are less ideal: A. Reboot the machine: While rebooting might resolve some temporary issues, it doesn't provide any insight into the cause of the problem. If the issue is persistent, rebooting won't solve it. C. Delete the machine and create a new one: This is a drastic measure that should be avoided unless absolutely necessary. It involves data loss and reconfiguration, which can be time-consuming and disruptive. D. Take a snapshot of the disk and attach it to a new machine: This approach can be useful for recovering data, but it doesn't address the underlying issue causing the instance to be unresponsive.