Google Associate Cloud Engineer - Practice Test 2
You need to modify an existing Deployment Manager deployment without causing any service interruptions or downtime to the deployed resources. Which `gcloud` command should you use to achieve this?
The `gcloud deployment-manager deployments update` command is specifically designed to modify an existing Deployment Manager deployment. When executed, Deployment Manager intelligently determines the necessary changes (create, update, or delete resources) to align with the new configuration, aiming to do so without causing downtime to the deployed resources. The other options are for creating new deployments or managing individual resources, not for updating an entire deployment seamlessly.
You manage several Google Cloud projects, each linked to a different billing account. You need a unified, real-time visualization of all incurred costs across these projects to better estimate future charges. What is the most effective approach to achieve this?
Configuring Billing Data Export to BigQuery allows for a centralized and comprehensive collection of detailed billing data from multiple projects and billing accounts. This data can then be visualized in Data Studio (now Looker Studio) to create custom, real-time dashboards for cost analysis. This approach provides the flexibility and immediacy required for a unified cost representation.
You need to upload a 32 GB file to a Google Cloud Storage Nearline bucket. Your network connection provides a consistent 1 Gbps bandwidth, and you are the sole user. To maximize the utilization of your available bandwidth for a rapid transfer, which method should you employ?
For large single files and high-bandwidth connections, gsutil's parallel composite uploads are highly effective. This feature splits the file into smaller parts and uploads them concurrently, significantly accelerating the transfer. This method efficiently utilizes the available 1 Gbps bandwidth.
You manage two Google Cloud Platform projects: one in your default region/zone and another in a non-default region/zone. You need to provision new Compute Engine instances in both projects using the `gcloud` command-line interface. What is the most efficient way to manage this process?
To manage multiple GCP accounts or projects efficiently with the gcloud CLI, you should create separate configurations for each using `gcloud config configurations create`. You can then switch between these configurations using `gcloud config configurations activate [NAME]` to ensure subsequent commands are executed within the context of the desired account/project. Options B, C, and D are incorrect because `gcloud configurations list` and `gcloud config list` are used for viewing configurations, not for creating or starting Compute Engine instances.
You have successfully created a new Google Cloud project and linked it to a billing account using the `gcloud` CLI. Your next task is to provision a new Compute Engine virtual machine instance via the command line. Before you can create the instance, which prerequisite step must you complete?
Before you can use any Google Cloud service, including Compute Engine, its corresponding API must be enabled within the project. Attempting to create resources without enabling the API will result in an error. While other steps like creating a VPC network or granting IAM roles are important for specific configurations and permissions, enabling the API is the foundational prerequisite for interacting with the service itself.