Skip to main content

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)

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.