Google Cloud Professional Cloud Architect — Question 61

You are using Cloud Shell and need to install a custom utility for use in a few weeks. Where can you store the file so it is in the default execution path and persists across sessions?

Answer options

Correct answer: A

Explanation

The correct answer is A, ~/bin, as it is a directory specifically designed to hold user scripts and executables that persist across Cloud Shell sessions. Options B and C do not provide persistent execution paths within Cloud Shell, while D is not writable by the user in Cloud Shell, making it unsuitable for storing custom utilities.