Welcome to ExamTopics
ExamTopics Logo
- Expert Verified, Online, Free.
exam questions

Exam Professional Cloud Developer All Questions

View all questions & answers for the Professional Cloud Developer exam

Exam Professional Cloud Developer topic 1 question 110 discussion

Actual exam question from Google's Professional Cloud Developer
Question #: 110
Topic #: 1
[All Professional Cloud Developer Questions]

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?

  • A. Create a new feature branch, and ask the build team to rebuild the image.
  • B. Shut down the deployed virtual machine, export the disk, and then mount the disk locally to access the boot logs.
  • C. Install Packer locally, build the Compute Engine image locally, and then run it in your personal Google Cloud project.
  • D. Check Compute Engine OS logs using the serial port, and check the Cloud Logging logs to confirm access to the serial port.
Show Suggested Answer Hide Answer
Suggested Answer: D 🗳️

Comments

Chosen Answer:
This is a voting comment (?). It is better to Upvote an existing comment if you don't have anything to add.
Switch to a voting comment New
scaenruy
Highly Voted 2 years, 10 months ago
I vote D https://cloud.google.com/compute/docs/troubleshooting/troubleshooting-using-serial-console
upvoted 9 times
Blueocean
2 years, 10 months ago
Agree with Option D
upvoted 4 times
...
...
thewalker
Most Recent 4 months, 1 week ago
Selected Answer: 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.
upvoted 1 times
thewalker
4 months, 1 week ago
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.
upvoted 1 times
...
...
jnas
1 year, 4 months ago
Selected Answer: D
D is the answer - the other are too long.
upvoted 1 times
...
omermahgoub
1 year, 10 months ago
Selected Answer: 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.
upvoted 2 times
...
zellck
1 year, 11 months ago
Selected Answer: 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.
upvoted 1 times
...
ash_meharun
1 year, 11 months ago
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?
upvoted 1 times
...
TNT87
2 years ago
https://cloud.google.com/compute/docs/troubleshooting/troubleshooting-using-serial-console#connecting_to_a_serial_console_with_a_login_prompt Answer D
upvoted 1 times
...
tomato123
2 years, 3 months ago
Selected Answer: D
D is correct
upvoted 3 times
...
ParagSanyashiv
2 years, 10 months ago
Selected Answer: D
D is more suitable
upvoted 3 times
GCPCloudArchitectUser
2 years, 9 months ago
This is interesting to learn that if a compute engine isn’t bootable and you can connect still
upvoted 4 times
...
...
Community vote distribution
A (35%)
C (25%)
B (20%)
Other
Most Voted
A voting comment increases the vote count for the chosen answer by one.

Upvoting a comment with a selected answer will also increase the vote count towards that answer by one. So if you see a comment that you already agree with, you can upvote it instead of posting a new comment.

SaveCancel
Loading ...