Free GCP-ACE Sample Questions — Google Cloud Platform - Associate Cloud Engineer

Free GCP-ACE sample questions for the Google Cloud Platform - Associate Cloud Engineer exam. No account required: study at your own pace.

Want an interactive quiz? Take the full GCP-ACE practice test

Looking for more? Click here to get the full PDF with 314+ practice questions for $10 for offline study and deeper preparation.

Question 1

You are deploying a production application on Compute Engine. You want to prevent anyone from accidentally destroying the instance by clicking the wrong button. What should you do?

  • A. Disable the flag "Delete boot disk when instance is deleted."
  • B. Enable delete protection on the instance
  • C. Disable Automatic restart on the instance
  • D. Enable Preemptibility on the instance
Show Answer
Correct Answer:
B. Enable delete protection on the instance
Question 2

Your Dataproc cluster runs in a single Virtual Private Cloud (VPC) network in a single subnetwork with range 172.16.20.128/25. There are no private IP addresses available in the subnetwork. You want to add new VMs to communicate with your cluster using the minimum number of steps. What should you do?

  • A. Modify the existing subnet range to 172.16.20.0/24.
  • B. Create a new Secondary IP Range in the VPC and configure the VMs to use that range
  • C. Create a new VPC network for the VMs. Enable VPC Peering between the VMs'VPC network and the Dataproc cluster VPC network
  • D. Create a new VPC network for the VMs with a subnet of 172.32.0.0/16. Enable VPC network Peering between the Dataproc VPC network and the VMs VPC network. Configure a custom Route exchange
Show Answer
Correct Answer:
A. Modify the existing subnet range to 172.16.20.0/24.
Question 3

You are managing the security configuration of your company’s Google Cloud organization. The Operations team needs specific permissions on both a Google Kubernetes Engine (GKE) cluster and a Cloud SQL instance. Two predefined Identity and Access Management (IAM) roles exist that contain a subset of the permissions needed by the team. You need to configure the necessary IAM permissions for this team while following Google-recommended practices. What should you do?

  • A. Create a custom IAM role that combines the permissions from the two relevant predefined roles
  • B. Grant the team the two predefined IAM roles
  • C. Create a custom IAM role that includes only the required permissions from the predefined roles
  • D. Grant the team the IAM roles of Kubernetes Engine Admin and Cloud SQL Admin
Show Answer
Correct Answer:
C. Create a custom IAM role that includes only the required permissions from the predefined roles
Question 4

You have deployed an application on a single Compute Engine instance. The application writes logs to disk. Users start reporting errors with the application. You want to diagnose the problem. What should you do?

  • A. Navigate to Cloud Logging and view the application logs
  • B. Connect to the instance's serial console and read the application logs
  • C. Configure a Health Check on the instance and set a Low Healthy Threshold value
  • D. Install and configure the Cloud Logging Agent and view the logs from Cloud Logging
Show Answer
Correct Answer:
D. Install and configure the Cloud Logging Agent and view the logs from Cloud Logging
Question 5

You are about to deploy a new Enterprise Resource Planning (ERP) system on Google Cloud. The application holds the full database in-memory for fast data access, and you need to configure the most appropriate resources on Google Cloud for this application. What should you do?

  • A. Provision preemptible Compute Engine instances
  • B. Provision Compute Engine instances with GPUs attached
  • C. Provision Compute Engine instances with local SSDs attached
  • D. Provision Compute Engine instances with M1 machine type
Show Answer
Correct Answer:
D. Provision Compute Engine instances with M1 machine type
Question 6

You are building an application that stores relational data from users. Users across the globe will use this application. Your CTO is concerned about the scaling requirements because the size of the user base is unknown. You need to implement a database solution that can scale with your user growth with minimum configuration changes. Which storage solution should you use?

  • A. Cloud SQL
  • B. Firestore
  • C. Cloud Spanner
  • D. Bigtable
Show Answer
Correct Answer:
C. Cloud Spanner
Question 7

You are working with a user to set up an application in a new VPC behind a firewall. The user is concerned about data egress. You want to configure the fewest open egress ports. What should you do?

  • A. Set up a low-priority (65534) rule that blocks all egress and a high-priority rule (1000) that allows only the appropriate ports
  • B. Set up a high-priority (1000) rule that pairs both ingress and egress ports
  • C. Set up a high-priority (1000) rule that blocks all egress and a low-priority (65534) rule that allows only the appropriate ports
  • D. Set up a high-priority (1000) rule to allow the appropriate ports
Show Answer
Correct Answer:
A. Set up a low-priority (65534) rule that blocks all egress and a high-priority rule (1000) that allows only the appropriate ports
Question 8

Your continuous integration and delivery (CI/CD) server can’t execute Google Cloud actions in a specific project because of permission issues. You need to validate whether the used service account has the appropriate roles in the specific project. What should you do?

  • A. Open the Google Cloud console, and check the Identity and Access Management (IAM) roles assigned to the service account at the project or inherited from the folder or organization levels
  • B. Open the Google Cloud console, and check the organization policies
  • C. Open the Google Cloud console, and run a query to determine which resources this service account can access
  • D. Open the Google Cloud console, and run a query of the audit logs to find permission denied errors for this service account
Show Answer
Correct Answer:
A. Open the Google Cloud console, and check the Identity and Access Management (IAM) roles assigned to the service account at the project or inherited from the folder or organization levels
Question 9

You have been asked to set up the billing configuration for a new Google Cloud customer. Your customer wants to group resources that share common IAM policies. What should you do?

  • A. Use labels to group resources that share common IAM policies
  • B. Use folders to group resources that share common IAM policies
  • C. Set up a proper billing account structure to group IAM policies
  • D. Set up a proper project naming structure to group IAM policies
Show Answer
Correct Answer:
B. Use folders to group resources that share common IAM policies
Question 10

You are hosting an application on bare-metal servers in your own data center. The application needs access to Cloud Storage. However, security policies prevent the servers hosting the application from having public IP addresses or access to the internet. You want to follow Google-recommended practices to provide the application with access to Cloud Storage. What should you do?

  • A. 1. Use nslookup to get the IP address for storage.googleapis.com. 2. Negotiate with the security team to be able to give a public IP address to the servers. 3. Only allow egress traffic from those servers to the IP addresses for storage.googleapis.com.
  • B. 1. Using Cloud VPN, create a VPN tunnel to a Virtual Private Cloud (VPC) in Google Cloud. 2. In this VPC, create a Compute Engine instance and install the Squid proxy server on this instance. 3. Configure your servers to use that instance as a proxy to access Cloud Storage
  • C. 1. Use Migrate for Compute Engine (formerly known as Velostrata) to migrate those servers to Compute Engine. 2. Create an internal load balancer (ILB) that uses storage.googleapis.com as backend. 3. Configure your new instances to use this ILB as proxy
  • D. 1. Using Cloud VPN or Interconnect, create a tunnel to a VPC in Google Cloud. 2. Use Cloud Router to create a custom route advertisement for 199.36.153.4/30. Announce that network to your on-premises network through the VPN tunnel. 3. In your on-premises network, configure your DNS server to resolve *.googleapis.com as a CNAME to restricted.googleapis.com.
Show Answer
Correct Answer:
D. 1. Using Cloud VPN or Interconnect, create a tunnel to a VPC in Google Cloud. 2. Use Cloud Router to create a custom route advertisement for 199.36.153.4/30. Announce that network to your on-premises network through the VPN tunnel. 3. In your on-premises network, configure your DNS server to resolve *.googleapis.com as a CNAME to restricted.googleapis.com.
Question 11

Your company is modernizing its applications and refactoring them to containerized microservices. You need to deploy the infrastructure on Google Cloud so that teams can deploy their applications. The applications cannot be exposed publicly. You want to minimize management and operational overhead. What should you do?

  • A. Provision a Google Kubernetes Engine (GKE) Autopilot cluster
  • B. Provision a fleet of Compute Engine instances and install Kubernetes
  • C. Provision a Standard regional Google Kubernetes Engine (GKE) cluster
  • D. Provision a Standard zonal Google Kubernetes Engine (GKE) cluster
Show Answer
Correct Answer:
A. Provision a Google Kubernetes Engine (GKE) Autopilot cluster
Question 12

You have successfully created a development environment in a project for an application. This application uses Compute Engine and Cloud SQL. Now you need to create a production environment for this application. The security team has forbidden the existence of network routes between these 2 environments and has asked you to follow Google-recommended practices. What should you do?

  • A. Create a new project, enable the Compute Engine and Cloud SQL APIs in that project, and replicate the setup you have created in the development environment
  • B. Create a new production subnet in the existing VPC and a new production Cloud SQL instance in your existing project, and deploy your application using those resources
  • C. Create a new project, modify your existing VPC to be a Shared VPC, share that VPC with your new project, and replicate the setup you have in the development environment in that new project in the Shared VPC
  • D. Ask the security team to grant you the Project Editor role in an existing production project used by another division of your company. Once they grant you that role, replicate the setup you have in the development environment in that project
Show Answer
Correct Answer:
A. Create a new project, enable the Compute Engine and Cloud SQL APIs in that project, and replicate the setup you have created in the development environment
Question 13

You are planning to migrate your on-premises VMs to Google Cloud. You need to set up a landing zone in Google Cloud before migrating the VMs. You must ensure that all VM in your production environment can communicate with each other through private IP addresses. You need to allow all VMs in your Google Cloud organization to accept connections on specific TCP ports. You want to follow Google-recommended practices, and you need to minimize your operational costs. What should you do?

  • A. Create individual VPCs per Google Cloud project. Peer all he VPC together. Apply organization policies on the organization level
  • B. Create individual VPCs for each Google Cloud project. Peer ail ne VPCs together. Apply hierarchical firewall policies on the organization level
  • C. Create a host VPC project with each production project as its service project. Apply organization policies on the organization level
  • D. Create a host VPC project with each production project as its service project. Apply hierarchical firewall policies on the organization level
Show Answer
Correct Answer:
D. Create a host VPC project with each production project as its service project. Apply hierarchical firewall policies on the organization level
Question 14

Your company uses a multi-cloud strategy that includes Google Cloud. You want to centralize application logs in a third-party software-as-a-service (SaaS) tool from all environments. You need to integrate logs originating from Cloud Logging, and you want to ensure the export occurs with the least amount of delay possible. What should you do?

  • A. Create a Cloud Logging sink and configure BigQuery as the destination. Configure the SaaS tool to query BigQuery to retrieve the logs
  • B. Create a Cloud Logging sink and configure Pub/Sub as the destination. Configure the SaaS tool to subscribe to the Pub/Sub topic to retrieve the logs
  • C. Create a Cloud Logging sink and configure Cloud Storage as the destination. Configure the SaaS tool to read the Cloud Storage bucket to retrieve the logs
  • D. Use a Cloud Scheduler cron job to trigger a Cloud Function that queries Cloud Logging and sends the logs to the SaaS tool
Show Answer
Correct Answer:
B. Create a Cloud Logging sink and configure Pub/Sub as the destination. Configure the SaaS tool to subscribe to the Pub/Sub topic to retrieve the logs
Question 15

Your organization has strict requirements to control access to Google Cloud projects. You need to enable your Site Reliability Engineers (SREs) to approve requests from the Google Cloud support team when an SRE opens a support case. You want to follow Google-recommended practices. What should you do?

  • A. Add your SREs to roles/iam.roleAdmin role
  • B. Add your SREs to roles/accessapproval.approver role
  • C. Add your SREs to a group and then add this group to roles/iam.roleAdmin.role.
  • D. Add your SREs to a group and then add this group to roles/accessapproval.approver role
Show Answer
Correct Answer:
D. Add your SREs to a group and then add this group to roles/accessapproval.approver role
Question 16

You are the Organization Administrator for your company's Google Cloud resources. Your company has strict compliance rules that require you to be notified about any modifications to files and documents hosted on Cloud Storage. In a recent incident, one of your team members was able to modify files and you did not receive any notifications, causing other production jobs to fail. You must ensure that you receive notifications for all changes to files and documents in Cloud Storage while minimizing management overhead. What should you do?

  • A. View Cloud Audit logs for all Cloud Storage files in Logs Explorer. Filter by Admin Activity logs
  • B. Enable Cloud Storage object versioning on your bucket. Configure Pub/Sub notifications for your Cloud Storage buckets
  • C. Enable versioning on the Cloud Storage bucket. Set up a custom script that scans versions of Cloud Storage objects being modified and alert the admin by using the script
  • D. Configure Object change notifications on the Cloud Storage buckets. Send the events to Pub/Sub
Show Answer
Correct Answer:
D. Configure Object change notifications on the Cloud Storage buckets. Send the events to Pub/Sub
Question 17

You need to update a deployment in Deployment Manager without any resource downtime in the deployment. Which command should you use?

  • A. gcloud deployment-manager deployments create --config <deployment-config-path>
  • B. gcloud deployment-manager deployments update --config <deployment-config-path>
  • C. gcloud deployment-manager resources create --config <deployment-config-path>
  • D. gcloud deployment-manager resources update --config <deployment-config-path>
Show Answer
Correct Answer:
B. gcloud deployment-manager deployments update --config <deployment-config-path>
Question 18

You have a Bigtable instance that consists of three nodes that store personally identifiable information (PII) data. You need to log all read or write operations, including any metadata or configuration reads of this database table, in your company’s Security Information and Event Management (SIEM) system. What should you do?

  • A. • Navigate to Cloud Monitoring in the Google Cloud console, and create a custom monitoring job for the Bigtable instance to track all changes. • Create an alert by using webhook endpoints, with the SIEM endpoint as a receiver
  • B. • Navigate to the Audit Logs page in the Google Cloud console, and enable Admin Write logs for the Bigtable instance. • Create a Cloud Functions instance to export logs from Cloud Logging to your SIEM
  • C. • Navigate to the Audit Logs page in the Google Cloud console, and enable Data Read, Data Write and Admin Read logs for the Bigtable instance. • Create a Pub/Sub topic as a Cloud Logging sink destination, and add your SIEM as a subscriber to the topic
  • D. • Install the Ops Agent on the Bigtable instance during configuration. • Create a service account with read permissions for the Bigtable instance. • Create a custom Dataflow job with this service account to export logs to the company’s SIEM system
Show Answer
Correct Answer:
C. • Navigate to the Audit Logs page in the Google Cloud console, and enable Data Read, Data Write and Admin Read logs for the Bigtable instance. • Create a Pub/Sub topic as a Cloud Logging sink destination, and add your SIEM as a subscriber to the topic
Question 19

You need to reduce GCP service costs for a division of your company using the fewest possible steps. You need to turn off all configured services in an existing GCP project. What should you do?

  • A. 1. Verify that you are assigned the Project Owners IAM role for this project. 2. Locate the project in the GCP console, click Shut down and then enter the project ID
  • B. 1. Verify that you are assigned the Project Owners IAM role for this project. 2. Switch to the project in the GCP console, locate the resources and delete them
  • C. 1. Verify that you are assigned the Organizational Administrator IAM role for this project. 2. Locate the project in the GCP console, enter the project ID and then click Shut down
  • D. 1. Verify that you are assigned the Organizational Administrators IAM role for this project. 2. Switch to the project in the GCP console, locate the resources and delete them
Show Answer
Correct Answer:
A. 1. Verify that you are assigned the Project Owners IAM role for this project. 2. Locate the project in the GCP console, click Shut down and then enter the project ID
Question 20

You recently received a new Google Cloud project with an attached billing account where you will work. You need to create instances, set firewalls, and store data in Cloud Storage. You want to follow Google-recommended practices. What should you do?

  • A. Use the gcloud CLI services enable cloudresourcemanager.googleapis.com command to enable all resources
  • B. Use the gcloud services enable compute.googleapis.com command to enable Compute Engine and the gcloud services enable storage-api.googleapis.com command to enable the Cloud Storage APIs
  • C. Open the Google Cloud console and enable all Google Cloud APIs from the API dashboard
  • D. Open the Google Cloud console and run gcloud init --project in a Cloud Shell
Show Answer
Correct Answer:
B. Use the gcloud services enable compute.googleapis.com command to enable Compute Engine and the gcloud services enable storage-api.googleapis.com command to enable the Cloud Storage APIs

Aced these? Get the Full Exam

Download the complete GCP-ACE study bundle with 314+ questions in a single printable PDF.