nerdexam
Google

PROFESSIONAL-CLOUD-DEVELOPER · Question #316

You are developing a web application using Cloud Run and Cloud Storage. You are notified of a production issue that you need to troubleshoot immediately. You need to implement a workaround that…

The correct answer is C. Connect to the Google Cloud console and open Cloud Shell on your personal computer. Clone. Cloud Shell (option C) is the fastest and most cost-effective solution here. It is a fully managed, browser-based development environment accessible from any computer via the Google Cloud console. It comes pre-installed with the gcloud CLI, Git, and common development tools…

Monitoring, logging, and troubleshooting applications

Question

You are developing a web application using Cloud Run and Cloud Storage. You are notified of a production issue that you need to troubleshoot immediately. You need to implement a workaround that requires you to execute a script on a Git repository. Your corporate laptop is unavailable but you have your personal computer. You can use your corporate credentials to access the required Git repository and Google Cloud resources. You want to fix the issue as quickly and efficiently as possible while minimizing additional cost. What should you do?

Options

  • ACreate and launch a workstation with Cloud Workstations on your personal computer.
  • BInstall VS Code and the extension Cloud Code for VS Code on your personal computer. Check
  • CConnect to the Google Cloud console and open Cloud Shell on your personal computer. Clone
  • DDownload and install the gcloud CLI on your personal computer. Authenticate and set up API

How the community answered

(37 responses)
  • A
    14% (5)
  • B
    8% (3)
  • C
    76% (28)
  • D
    3% (1)

Explanation

Cloud Shell (option C) is the fastest and most cost-effective solution here. It is a fully managed, browser-based development environment accessible from any computer via the Google Cloud console. It comes pre-installed with the gcloud CLI, Git, and common development tools, requires zero installation or configuration on the personal machine, and authenticates using your corporate Google identity. You simply open a browser, navigate to the Cloud Console, launch Cloud Shell, clone the repository, and run the script. Option A (Cloud Workstations) works but is slower to provision and incurs additional cost. Option B (installing VS Code + Cloud Code) requires downloading software, which takes time and leaves corporate tooling on a personal machine. Option D (installing the gcloud CLI) also requires installation and setup time, and leaves credentials on a personal device.

Topics

#Cloud Shell#Developer Tools#Troubleshooting#Cost Optimization

Community Discussion

No community discussion yet for this question.

Full PROFESSIONAL-CLOUD-DEVELOPER Practice