Associate Cloud Engineer practice question · Setting up a cloud solution environment
A developer wants their custom dotfiles and small utility scripts to stay available in later Cloud Shell sessions…
A developer wants their custom dotfiles and small utility scripts to stay available in later Cloud Shell sessions without re-uploading them. Which statement correctly describes how Cloud Shell handles this?
- AFiles saved in $HOME persist on a 5 GB per-user disk across sessions, but are deleted after 120 days without Cloud Shell access
- BFiles saved anywhere on the instance, including /usr/local/bin, persist because the same VM is kept running between sessions
- CFiles saved in $HOME persist across sessions, but separately per project, so scripts saved in one project are missing in another
- DFiles persist only if copied to a Cloud Storage bucket, because $HOME is reset to a default image at each session start
Show the answer and explanation
Correct answer: A) Files saved in $HOME persist on a 5 GB per-user disk across sessions, but are deleted after 120 days without Cloud Shell access
Cloud Shell keeps $HOME on a 5 GB per-user persistent disk that carries over between sessions and across projects. Files outside $HOME are lost, and $HOME is deleted after 120 days without Cloud Shell access.
Why each option is right or wrong
- A) Correct. Cloud Shell gives each user 5 GB of free persistent disk storage mounted as $HOME. That storage carries over between sessions and is available in every project. If Cloud Shell isn't accessed for 120 days, the $HOME directory is deleted, and you get an email notice before that happens.
- B) Incorrect. The Cloud Shell VM is temporary and is replaced between sessions. Only the $HOME directory is on persistent storage, so files saved outside it, such as in system directories, are lost.
- C) Incorrect. The persistent $HOME storage belongs to the user and is available across projects, so the same dotfiles and scripts show up no matter which project Cloud Shell is opened in.
- D) Incorrect. $HOME is not reset between sessions. It sits on a persistent disk, so the developer doesn't need to copy files to Cloud Storage to keep them.
- Exam domain
- Setting up a cloud solution environment · ~20% of Associate Cloud Engineer
- Question type
- Multiple choice (one answer)
Related Associate Cloud Engineer questions
- A team wants to quickly launch a ready-made, vendor-packaged software solution, such as a common CMS stack, on Google…Setting up a cloud solution environment
- A retailer on Google Cloud Enhanced Support finds that checkout on its production web store, which runs on generally…Setting up a cloud solution environment
- A developer reads that a new Compute Engine flag is now available at the Beta launch stage.Setting up a cloud solution environment
- A company runs an on-premises Active Directory and wants new and deleted AD users and groups to show up in its Cloud…Setting up a cloud solution environment
All 60 free Associate Cloud Engineer questions by domain · 15 sample questions on one page
Practise the full Associate Cloud Engineer exam
This question is one of a small free sample from the CertRidge Associate Cloud Engineer bank. Full practice exams match the real exam's length, time limit and domain weights, explain every option, and Review Mode re-drills the questions you miss.
Original question written from the official exam guide. Not affiliated with Google Cloud; never copied from the real exam.