Exam Professional Cloud Developer All QuestionsBrowse all questions from this exam
Question 110

You are a developer working with the CI/CD team to troubleshoot a new feature that your team introduced. The CI/CD team used HashiCorp Packer to create a new Compute Engine image from your development branch. The image was successfully built, but is not booting up. You need to investigate the issue with the CI/

CD team. What should you do?

    Correct Answer: D

    To troubleshoot a Compute Engine instance that is not booting up, the most effective approach is to check the OS logs using the instance's serial port. This will capture valuable boot messages and system-level information that can help identify the root cause of the issue. Additionally, confirming access to the serial port through Cloud Logging ensures that any errors or access issues are visible and can be addressed promptly. This method provides direct insight into the boot process and is less disruptive and time-consuming compared to other options like creating a new feature branch, exporting the disk, or building the image locally.

Discussion
scaenruyOption: D

I vote D https://cloud.google.com/compute/docs/troubleshooting/troubleshooting-using-serial-console

Blueocean

Agree with Option D

tomato123Option: D

D is correct

ParagSanyashivOption: D

D is more suitable

GCPCloudArchitectUser

This is interesting to learn that if a compute engine isn’t bootable and you can connect still

omermahgoubOption: D

Answer is D If the Compute Engine image is not booting up, one of the first steps to troubleshoot the issue would be to check the OS logs to see what might be causing the problem. Compute Engine provides access to the serial console logs of a virtual machine, which can be accessed through the Cloud Console or the gcloud command-line tool. This will allow you to see the output of the virtual machine's boot process and identify any errors or issues that might be preventing it from starting up. Additionally, you should also check the Cloud Logging logs to confirm that you have access to the serial port. It may be possible that the firewall rules or IAM permissions are blocking access to the serial port and causing the image not to boot. So, you should check the logs for any errors related to access or firewall rules. By checking the OS logs and the Cloud Logging logs, you and the CI/CD team can get a better understanding of what might be causing the issue and take steps to fix it.

thewalkerOption: D

The best approach here is D. Check Compute Engine OS logs using the serial port and check the Cloud Logging logs to confirm access to the serial port. Here's why: Serial Port Logs: Compute Engine instances have a serial port that captures boot messages and other system-level information. This is often the most valuable source of information when troubleshooting boot failures. Cloud Logging: If you've enabled serial port logging in your project, the boot messages will be captured and sent to Cloud Logging. This provides a centralized location for reviewing the logs.

thewalker

Let's look at why the other options are less ideal: A. Create a new feature branch and ask the build team to rebuild the image: This is a time-consuming and potentially unnecessary step. It's better to investigate the issue with the existing image first. B. Shut down the deployed virtual machine, export the disk, and then mount the disk locally to access the boot logs: This is a complex and potentially disruptive process. It's better to leverage the serial port logs for initial troubleshooting. C. Install Packer locally, build the Compute Engine image locally, and then run it in your personal Google Cloud project: This approach might help isolate the issue, but it doesn't address the root cause of the problem in the CI/CD pipeline.

jnasOption: D

D is the answer - the other are too long.

zellckOption: D

D is the answer. https://cloud.google.com/compute/docs/troubleshooting/vm-startup#identify_the_reason_why_the_boot_disk_isnt_booting Identify the reason why the boot disk isn't booting - Examine your virtual machine instance's serial port output. An instance's BIOS, bootloader, and kernel prints their debug messages into the instance's serial port output, providing valuable information about any errors or issues that the instance experienced. If you enable serial port output logging to Cloud Logging, you can access this information even when your instance is not running.

ash_meharunOption: D

In option D, what does it mean by "confirm access to the serial port"? If I need to see the boot logs, then how the checking the access to serial port gonna help?

TNT87Option: D

https://cloud.google.com/compute/docs/troubleshooting/troubleshooting-using-serial-console#connecting_to_a_serial_console_with_a_login_prompt Answer D