Google Cloud Professional Cloud Developer — Question 119
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?
Answer options
- 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.
Correct answer: D
Explanation
The correct answer, D, is effective because it allows direct access to the OS logs, which can provide insights into why the image isn't booting. Options A and C do not directly address the boot issue and may delay troubleshooting, while option B, although useful for accessing logs, is more cumbersome and time-consuming than checking the logs through the serial port.