Google Cloud Professional Cloud DevOps Engineer — Question 190

You are developing a Node.js utility on a workstation in Cloud Workstations by using Code OSS. The utility is a simple web page, and you have already confirmed that all necessary firewall rules are in place. You tested the application by starting it on port 3000 on your workstation in Cloud Workstations, but you need to be able to access the web page from your local machine. You need to follow Google-recommended security practices. What should you do?

Answer options

Correct answer: D

Explanation

The correct answer is D because clicking the preview link in Code OSS allows you to access your web application securely, following Google’s recommended practices. Option A is not ideal as it complicates access without necessity, B is not needed since the preview link suffices, and C violates the principle of least privilege by exposing the application to public access.