Google Cloud Professional Cloud Developer — Question 212
You made a typo in a low-level Linux configuration file that prevents your Compute Engine instance from booting to a normal run level. You just created the Compute Engine instance today and have done no other maintenance on it, other than tweaking files. How should you correct this error?
Answer options
- A. Download the file using scp, change the file, and then upload the modified version
- B. Configure and log in to the Compute Engine instance through SSH, and change the file
- C. Configure and log in to the Compute Engine instance through the serial port, and change the file
- D. Configure and log in to the Compute Engine instance using a remote desktop client, and change the file
Correct answer: C
Explanation
The correct answer is C because accessing the instance through the serial port allows you to change the file even when the instance cannot boot to a normal run level. Options A, B, and D are invalid in this scenario since they require the instance to be operational or accessible via standard means, which is not possible due to the boot issue.