Welcome to ExamTopics
ExamTopics Logo
- Expert Verified, Online, Free.
exam questions

Exam Professional Cloud Architect All Questions

View all questions & answers for the Professional Cloud Architect exam

Exam Professional Cloud Architect topic 1 question 42 discussion

Actual exam question from Google's Professional Cloud Architect
Question #: 42
Topic #: 1
[All Professional Cloud Architect Questions]

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?

  • A. ~/bin
  • B. Cloud Storage
  • C. /google/scripts
  • D. /usr/local/bin
Show Suggested Answer Hide Answer
Suggested Answer: A 🗳️

Comments

Chosen Answer:
This is a voting comment (?) , you can switch to a simple comment.
Switch to a voting comment New
ffk
Highly Voted 5 years ago
A is correct https://cloud.google.com/shell/docs/how-cloud-shell-works Cloud Shell provisions 5 GB of free persistent disk storage mounted as your $HOME directory on the virtual machine instance. This storage is on a per-user basis and is available across projects. Unlike the instance itself, this storage does not time out on inactivity. All files you store in your home directory, including installed software, scripts and user configuration files like .bashrc and .vimrc, persist between sessions. Your $HOME directory is private to you and cannot be accessed by other users.
upvoted 72 times
Jambalaja
3 years, 7 months ago
Maybe also to mention is that ~/bin is located in the $HOME directory
upvoted 17 times
zanfo
3 years, 2 months ago
cd ~/ is egual at cd $HOME ~/bin is egual a cd $HOME/bin the persistent disk in cloud shell is for $HOME
upvoted 9 times
...
AzureDP900
2 years, 1 month ago
Agree. A is right
upvoted 1 times
...
...
akoti
4 years ago
$HOME is not ~/bin. So 'C' is the answer.
upvoted 1 times
zanfo
3 years, 2 months ago
cd ~/ is egual at cd $HOME ~/bin is egual a cd $HOME/bin the persistent disk in cloud shell is for $HOME
upvoted 10 times
...
...
Shabje
4 years, 6 months ago
Won’t the persistent disk be auto-delete enabled by default, whereby the work maybe lost. Would that not be sufficient reason to consider Cloud storage instead. Thanks
upvoted 2 times
kaush
4 years, 5 months ago
The virtual machine instance that backs your Cloud Shell session is not permanently allocated to a Cloud Shell session and terminates if the session is inactive for an hour. After the instance is terminated, any modifications that you made to it outside your $HOME are lost.
upvoted 3 times
...
zanfo
3 years, 2 months ago
Cloud Shell provisions 5 GB of free persistent disk storage mounted as your $HOME
upvoted 1 times
...
...
...
Eroc
Highly Voted 5 years ago
Well, I just double checked and if they were referring to the PATH variable then /usr/local/bin is also a correct answer........................................
upvoted 21 times
...
Ekramy_Elnaggar
Most Recent 4 days, 13 hours ago
Selected Answer: A
1. Cloud Shell's home directory: ~/bin is a subdirectory within your Cloud Shell home directory. Files placed in this directory are automatically added to your PATH environment variable, making them accessible from anywhere in your Cloud Shell session. 2. Persistence: Your Cloud Shell home directory is persistent across sessions. This means any files you store there, including those in ~/bin, will remain available even if you close and reopen Cloud Shell. 3. Convenience: This option is the most straightforward. It doesn't require any extra configuration or interaction with other services. Why D i snot correct? because /usr/local/bin: is a common directory for system-wide binaries, but in Cloud Shell, your home directory's
upvoted 1 times
...
thewalker
1 year ago
Selected Answer: D
/usr/local/bin is the place where the files will persist across sessions. Hence, D.
upvoted 2 times
...
heretolearnazure
1 year, 3 months ago
A is correct!
upvoted 1 times
...
moota
1 year, 9 months ago
I tested this. Although ~/bin is not in the default $PATH, choice D is definitely not persisting across sessions.
upvoted 2 times
Flight1976
1 year, 5 months ago
1. When logging in to cloud shell for the first time, the ~/bin directory does not exist 2. mkdir ~/bin 3. After re-login to the cloud shell, $PATH will automatically add ~/bin So A is the correct answer
upvoted 4 times
...
...
FI22
1 year, 10 months ago
At this moment default directory cant be set as Cloud storage bucket, so no C. A will be correct as zonal PD with preinstalled tools 5gb available that does not timeout!
upvoted 2 times
...
omermahgoub
1 year, 11 months ago
The recommended location for storing a custom utility file that you want to use in Cloud Shell and that should be in the default execution path and persist across sessions is option A: ~/bin. The ~/bin directory is a personal directory that is in the default execution path for all users in Cloud Shell. Any executable files that you place in this directory will be available to you whenever you log in to Cloud Shell, and they will persist across sessions.
upvoted 3 times
omermahgoub
1 year, 11 months ago
Option B: Cloud Storage is not a suitable location for storing a custom utility file that you want to use in Cloud Shell, as it is not in the default execution path and would require additional steps to make it accessible. Option C: The /google/scripts directory is not a suitable location for storing a custom utility file, as it is not in the default execution path and is intended for use by Google Cloud system processes. Option D: The /usr/local/bin directory is a system directory that is in the default execution path for all users, but it is not a suitable location for storing a custom utility file, as any files that you place in this directory may be deleted or overwritten during system updates.
upvoted 3 times
...
...
Jailbreaker
2 years ago
Selected Answer: A
For sure correct answer is A
upvoted 1 times
...
megumin
2 years ago
Selected Answer: A
ok for A
upvoted 1 times
...
minmin2020
2 years, 1 month ago
Selected Answer: A
A. ~/bin
upvoted 1 times
...
vpatiltech
2 years, 9 months ago
Selected Answer: A
Cloud Shell provisions 5 GB of persistent disk storage mounted as your $HOME directory on the Cloud Shell instance. All files you store in your home directory, including scripts and user configuration files like .bashrc and .vimrc, persist between sessions. Reference- https://cloud.google.com/shell/?utm_source=google&utm_medium=cpc&utm_campaign=japac-IN-all-en-dr-bkwsrmkt-all-all-trial-e-dr-1009882&utm_content=text-ad-none-none-DEV_c-CRE_442449534611-ADGP_Hybrid%20%7C%20BKWS%20-%20EXA%20%7C%20Txt%20~%20Management%20Tools%20~%20Cloud%20Shell_cloud%20shell-general%20-%20Products-KWID_43700054972141701-kwd-837034669893&userloc_9302140-network_g&utm_term=KW_gcp%20cloud%20shell&gclsrc=ds&gclsrc=ds
upvoted 4 times
...
OrangeTiger
2 years, 10 months ago
I think D is correct.ummm
upvoted 2 times
...
vincy2202
2 years, 11 months ago
A is the correct answer
upvoted 1 times
...
exam_war
3 years ago
A is for sure. ~ stands for user's home
upvoted 1 times
...
MamthaSJ
3 years, 4 months ago
Answer is A
upvoted 1 times
...
kopper2019
3 years, 4 months ago
hey guys check Q3 for new Qs, 49 New Qs
upvoted 1 times
...
Community vote distribution
A (35%)
C (25%)
B (20%)
Other
Most Voted
A voting comment increases the vote count for the chosen answer by one.

Upvoting a comment with a selected answer will also increase the vote count towards that answer by one. So if you see a comment that you already agree with, you can upvote it instead of posting a new comment.

SaveCancel
Loading ...