21 questions across 7 exams
Which gcloud command is used to create a new Compute Engine virtual machine instance named 'web-server-1'?
You need to ensure that a specific Compute Engine instance always restarts automatically if it crashes or is terminated by a system event (like hardware failure). What should you do?
You are creating a Managed Instance Group (MIG) that needs to scale automatically based on CPU utilization. Which TWO resources must you create before or during the MIG creation? (Select TWO)
You need to create a new Compute Engine instance named 'web-server-01' in the 'us-central1-a' zone using the e2-medium machine type. The instance should use a specific custom service account: 'web-sa@my-project.iam.gserviceaccount.com'. Which gcloud command should you use?
You are deploying a web application on Compute Engine. You want the application to automatically scale out (add more instances) when CPU utilization exceeds 70%, and scale in when traffic drops. You also want instances to be automatically recreated if they crash. What is the correct sequence of resources you need to create?
Your security team requires that all SSH access to Compute Engine instances be tied to users' Google Cloud IAM identities, rather than managing individual SSH keys manually. You need to configure this for a new project. Which TWO steps should you take to implement this? (Select TWO)
You need to quickly launch a new Compute Engine virtual machine named 'web-server-01' in the us-central1-a zone using the e2-medium machine type. Which gcloud command should you use?
You have deployed a web application on a Managed Instance Group (MIG). You want the group to automatically add more instances when the average CPU utilization across the group exceeds 70%, and remove instances when it drops below that threshold. How should you configure the MIG?
An external contractor needs SSH access to a specific Compute Engine instance named 'db-admin-vm' to perform maintenance. You do not want to grant them IAM access to the GCP project, and you do not want to use OS Login. You have generated an SSH key pair. Which TWO steps must you take to grant them access using this key pair? (Select TWO)
You need to create a new Compute Engine virtual machine named 'web-server-01' in the 'us-east1-b' zone using the e2-medium machine type. Which gcloud command should you use?
You want to deploy a fleet of identical web servers that automatically scale up when CPU utilization exceeds 70%. If a server crashes, it should be automatically recreated. What is the correct sequence of steps to configure this in Compute Engine?
You are deploying a machine learning model on Compute Engine that requires GPU acceleration. You have created a VM and attached an NVIDIA Tesla T4 GPU. Which TWO additional steps MUST you perform before your application can utilize the GPU? (Select TWO)
You need to create a new Compute Engine instance using the gcloud CLI. The instance must run under a specific custom service account (`app-sa@my-project.iam.gserviceaccount.com`) and have access to the `cloud-platform` API scope. Which gcloud command flags should you use?
You have a Managed Instance Group (MIG) running a web application. You need to update the OS image for all instances in the group to patch a critical security vulnerability, without causing downtime. Which TWO steps should you take? (Select TWO)
Your security team requires that SSH access to Compute Engine instances be managed centrally using IAM roles. They want to ensure that when an employee leaves the company, their SSH access is automatically revoked when their Google Workspace account is suspended. They also want to disable project-wide SSH keys. Which TWO actions should you take? (Select TWO)
You need to quickly launch a new Compute Engine instance named 'web-server-01' using the e2-medium machine type in the us-central1-a zone. Which gcloud command should you use?
You want to deploy a fleet of identical web servers that automatically scale up when CPU utilization exceeds 70%. Which TWO components must you create to implement this architecture? (Select TWO)
An external contractor needs SSH access to a specific Compute Engine instance named 'db-admin-vm' to perform maintenance. You do not want to grant them IAM access to the Google Cloud project. How should you provide them access?
You need to deploy a fleet of identical web servers on Compute Engine that will automatically scale up when CPU utilization exceeds 70%. What is the correct sequence of resources you must create to achieve this?
A third-party contractor needs SSH access to a specific Compute Engine instance named 'db-admin-vm'. You do not want to grant them IAM access to the Google Cloud project. You have their public SSH key. How should you grant them access to this specific VM?
You are deploying a machine learning model on Compute Engine and need to attach NVIDIA GPUs to the instance to accelerate training. Which TWO requirements must be met to successfully use GPUs on Compute Engine? (Select TWO)
Full answers, grading, and explanations on why each answer is correct.