Domain 4.1: Managing Compute Engine resources
21 questions across 7 exams
Exams covering this topic
All questions (21)
You need to securely connect to a Compute Engine Linux instance using SSH from your local terminal without managing SSH keys manually. Which command should you use?
A Compute Engine instance is running out of disk space. You have increased the size of the persistent disk in the Google Cloud Console. What is the next step you MUST perform to make the new space usable by the OS?
You want to create a custom 'golden image' from an existing Compute Engine instance to use for future deployments. Which TWO steps are recommended best practices before creating the image? (Select TWO)
A developer accidentally misconfigured a Compute Engine instance, and it is now unresponsive. You need to restart the instance using the gcloud CLI. Which command should you use?
You need to create a backup of a persistent disk attached to a Compute Engine instance. You want to ensure that you can quickly create new VMs in different regions using this exact disk state. What should you create?
You have a Compute Engine instance that does NOT have an external public IP address. You need to SSH into this instance securely from your local laptop over the internet. Which TWO actions must you take to enable this using Identity-Aware Proxy (IAP)? (Select TWO)
You need to temporarily halt a Compute Engine instance named 'dev-server' to stop incurring compute charges over the weekend. You want to keep the boot disk intact so you can resume work on Monday. Which command should you use?
You are about to perform a major OS upgrade on a critical Compute Engine instance. You want to ensure you can quickly revert the disk to its exact current state if the upgrade fails. What should you do FIRST?
You need to securely SSH into a Compute Engine instance that does NOT have an external public IP address. You want to use Identity-Aware Proxy (IAP) for TCP forwarding to achieve this. Which TWO configurations are required to make this work? (Select TWO)
You have a Compute Engine instance that you only use during business hours. To save costs, you want to shut it down overnight. You want to ensure that you are NOT billed for the vCPU and memory while it is not in use, but you want to keep the data on the boot disk. What action should you take?
You need to perform a major OS upgrade on a critical Compute Engine instance. You want to ensure you can quickly roll back to the exact current state if the upgrade fails. What is the MOST efficient way to achieve this?
You have a Compute Engine instance that does NOT have an external public IP address. You need to connect to this instance via SSH from your local workstation over the internet securely. Which TWO actions must you take to enable this using Identity-Aware Proxy (IAP)? (Select TWO)
A Compute Engine instance named `data-cruncher` has finished its processing task. You want to shut it down to stop incurring compute charges, but you need to keep its boot disk intact so you can start it again next week. Which command should you use?
You need to implement a disaster recovery strategy for a critical Compute Engine instance. You want to capture the state of its persistent disk every night at midnight so you can restore it if data corruption occurs. What is the MOST efficient way to achieve this?
You are configuring autoscaling for a Managed Instance Group (MIG). You want the group to automatically add instances when the average CPU utilization exceeds 70%. Which TWO parameters MUST you define when setting up this autoscaler? (Select TWO)
You have a Compute Engine instance that you only use during business hours. To save costs, you stop the instance every evening and start it every morning. What happens to the data on the instance's attached Persistent Disk when the instance is stopped?
You need to create a backup of a critical Compute Engine instance's boot disk before performing a major OS upgrade. You want to ensure that if the upgrade fails, you can quickly restore the disk or create a new instance from the backup. Which TWO statements about disk snapshots and custom images are correct? (Select TWO)
You are troubleshooting an issue and need to see a list of all Compute Engine instances currently running in your project, along with their internal and external IP addresses. Which gcloud command provides this inventory?
You need to SSH into a Compute Engine instance that does not have an external public IP address. Your local workstation is not connected to the VPC via VPN or Interconnect. What is the most secure and Google-recommended way to connect to this instance?
You are about to perform a major software upgrade on a critical Compute Engine instance. You want to ensure you can quickly revert to the current state if the upgrade fails. What should you do FIRST?
You have a Managed Instance Group (MIG) running version 1 of your application. You have created a new Instance Template containing version 2 of your application. You want to update the MIG to use the new version without experiencing downtime. Which TWO actions are part of the process to perform a rolling update? (Select TWO)
Practice these questions with detailed guidance
Full answers, grading, and explanations on why each answer is correct.
Expert