home / exams / Google / gcp-ace / Practice Test 1
gcp-ace Google

Google Associate Cloud Engineer - Practice Test 1

Question #11
Compute

You have deployed a Linux-based application on a Google Compute Engine instance. An external contractor needs secure access to this instance. The contractor is connected to your corporate network via a VPN but does not possess a Google account. What is the most appropriate method to grant them access?

A. Instruct the external contractor to use the gcloud compute ssh command-line tool with Identity-Aware Proxy to access the instance.
B. Instruct the external contractor to generate an SSH key pair, request their public key, add it to the instance, and have them access the instance via SSH with their private key.
C. Instruct the external contractor to use the gcloud compute ssh command-line tool by providing them with the public IP address of the instance to access it directly.
D. Instruct the external contractor to generate an SSH key pair, request their private key, add it to the instance, and have them access the instance via SSH with their public key.
Question #12
Networking

A VM instance is deployed in a Google Cloud VPC with single-stack subnets. To enable consistent communication from other services within the same VPC, the VM requires a fixed IP address. Which Google-recommended and cost-effective approach should be taken?

A. Promote the existing IP address of the VM to become a static external IP address.
B. Promote the existing IP address of the VM to become a static internal IP address.
C. Reserve a new static external IPv6 address and assign it to the VM.
D. Reserve a new static external IP address and assign it to the VM.
Question #13
Networking

You are designing a network architecture for an application on Google Cloud Compute Engine. You need to deploy production virtual machines (VMs) and development VMs. The production VMs must reside in a distinct subnet from the development VMs. All VMs, regardless of their environment, need to communicate with each other using internal IP addresses without requiring additional routing configurations. You plan to set up a Virtual Private Cloud (VPC) and two subnets to meet these requirements. Which configuration best satisfies these conditions?

A. Create a single custom VPC with two subnets. Place each subnet in a different region and assign them distinct CIDR ranges.
B. Create a single custom VPC with two subnets. Place each subnet in the same region and assign them identical CIDR ranges.
C. Create two separate custom VPCs, each containing a single subnet. Place each subnet in a different region and assign them distinct CIDR ranges.
D. Create two separate custom VPCs, each containing a single subnet. Place each subnet in the same region and assign them identical CIDR ranges.
Question #14
Security & Identity

Your organization's Google Cloud environment recently underwent an audit, revealing that several resources are shared with users whose email addresses do not belong to your corporate Google Workspace domain. You need to implement a solution to prevent future sharing with external domains and also address the existing mismatched users. Which approach should you take?

A. Implement a Cloud Scheduler job to periodically scan all projects and automatically remove any users with non-compliant email addresses.
B. Configure an organizational policy constraint to restrict identities by domain, and then manually remove the users who currently do not meet the domain criteria.
C. Set an organizational policy constraint to limit identities by domain, which will automatically revoke access for all existing mismatched users.
D. Develop a Cloud Function triggered by IAM policy changes to validate user domains and remove non-compliant users in real-time.
Question #15
Storage

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 the available bandwidth for a rapid transfer, how should you proceed with the upload?

A. Utilize the Google Cloud Console for the transfer instead of the gsutil command-line tool.
B. Enable parallel composite uploads using gsutil during the file transfer operation.
C. Reduce the TCP window size on the machine initiating the upload.
D. Change the storage class of the target bucket from Nearline to Multi-Regional.
Back to gcp-ace 50 questions - page 3 of 10