Installing Software on Compute Engine Instance in Highly Secured Environment

Installing Software on Compute Engine Instance

Question

You are working in a highly secured environment where public Internet access from the Compute Engine VMs is not allowed.

You do not yet have a VPN connection to access an on-premises file server.

You need to install specific software on a Compute Engine instance.

How should you install the software?

Answers

Explanations

Click on the arrows to vote for the correct answer

A. B. C. D.

B.

The correct answer is A: Upload the required installation files to Cloud Storage. Configure the VM on a subnet with a Private Google Access subnet. Assign only an internal IP address to the VM. Download the installation files to the VM using gsutil.

Explanation: The scenario described in the question assumes that the Compute Engine VMs are not allowed to access the public internet. Therefore, we need to find an alternative way to install software on the Compute Engine instance.

Option A suggests that we upload the required installation files to Cloud Storage. Cloud Storage is a highly available and durable object storage service provided by Google Cloud. By uploading the installation files to Cloud Storage, we can access them from our Compute Engine VMs even if they do not have access to the public internet.

Additionally, we can configure the Compute Engine instance to be on a subnet with Private Google Access. Private Google Access enables the Compute Engine instance to access Google Cloud services like Cloud Storage over an internal IP address instead of going over the public internet.

By assigning only an internal IP address to the Compute Engine VM, we ensure that it cannot communicate with the public internet. This aligns with the highly secured environment described in the question.

Finally, we can download the installation files from Cloud Storage to the Compute Engine VM using the gsutil command-line tool. Gsutil is a command-line tool that enables us to interact with Cloud Storage from our Compute Engine VM.

Option B is incorrect because it suggests using firewall rules to block all traffic except the IP address range for Cloud Storage. This would require opening up access to the public internet, which is not allowed in the highly secured environment described in the question.

Option C is incorrect because it suggests using Cloud Source Repositories to upload the installation files. Cloud Source Repositories is a Git repository hosting service provided by Google Cloud. While it is possible to upload installation files to Cloud Source Repositories, it is not the most efficient or appropriate way to transfer large files like software installations.

Option D is incorrect because it suggests using firewall rules to block all traffic except the IP address range for Cloud Source Repositories. Similar to option B, this would require opening up access to the public internet, which is not allowed in the highly secured environment described in the question. Additionally, using Cloud Source Repositories to upload installation files is not the most efficient or appropriate way to transfer large files.