Skip to the content.
GCP Associate Cloud Engineer (ACE)

Practice Exam 1

Click on the Answer button for the correct answer and its explanation.

If this practice exam has been helpful to you please share it with others.


  1. You significantly changed a complex Deployment Manager template and want to confirm that the dependencies of all defined resources are properly met before committing it to the project. You want the most rapid feedback on your changes. What should you do?
    • A. Use granular logging statements within a Deployment Manager template authored in Python.
    • B. Monitor activity of the Deployment Manager execution on the Stackdriver Logging page of the GCP Console.
    • C. Execute the Deployment Manager template against a separate project with the same configuration, and monitor for failures.
    • D. Execute the Deployment Manager template using the C-preview option in the same project, and observe the state of interdependent resources.
    Answer

    Correct answer: D

  2. Your company has a 3-tier solution running on Compute Engine. The configuration of the current infrastructure is shown below. Each tier has a service account that is associated with all instances within it. You need to enable communication on TCP port 8080 between tiers as follows: Instances in tier #1 must communicate with tier #2. Instances in tier #2 must communicate with tier #3. What should you do?

    3-tier solution running on Compute Engine

    • A. 1. Create an ingress firewall rule with the following settings: Targets: all instances. Source filter: IP ranges (with the range set to 10.0.2.0/24). Protocols: allow all. 2. Create an ingress firewall rule with the following settings: Targets: all instances. Source filter: IP ranges (with the range set to 10.0.1.0/24). Protocols: allow all.
    • B. 1. Create an ingress firewall rule with the following settings: Targets: all instances with tier #2 service account. Source filter: all instances with tier #1 service account. Protocols: allow TCP: 8080. 2. Create an ingress firewall rule with the following settings: Targets: all instances with tier #3 service account. Source filter: all instances with tier #2 service account. Protocols: allow TCP: 8080.
    • C. 1. Create an ingress firewall rule with the following settings: Targets: all instances with tier #2 service account. Source filter: all instances with tier #1 service account. Protocols: allow all. 2. Create an ingress firewall rule with the following settings: Targets: all instances with tier #3 service account. Source filter: all instances with tier #2 service account. Protocols: allow all.
    • D. 1. Create an egress firewall rule with the following settings: Targets: all instances. Source filter: IP ranges (with the range set to 10.0.2.0/24). Protocols: allow TCP: 8080. 2. Create an egress firewall rule with the following settings: Targets: all instances. Source filter: IP ranges (with the range set to 10.0.1.0/24). Protocols: allow TCP: 8080.
    Answer

    Correct answer: B

  3. You are analyzing Google Cloud Platform service costs from three separate projects. You want to use this information to create service cost estimates by service type, daily and monthly, for the next six months using standard query syntax. What should you do?
    • A. Export your bill to a Cloud Storage bucket, and then import into Cloud Bigtable for analysis.
    • B. Export your bill to a Cloud Storage bucket, and then import into Google Sheets for analysis.
    • C. Export your transactions to a local file, and perform analysis with a desktop tool.
    • D. Export your bill to a BigQuery dataset, and then write time window-based SQL queries for analysis.
    Answer

    Correct answer: D

  4. You want to send and consume Cloud Pub/Sub messages from your App Engine application. The Cloud Pub/Sub API is currently disabled. You will use a service account to authenticate your application to the API. You want to make sure your application can use Cloud Pub/Sub. What should you do?
    • A. Enable the Cloud Pub/Sub API in the API Library on the GCP Console.
    • B. Rely on the automatic enablement of the Cloud Pub/Sub API when the Service Account accesses it.
    • C. Use Deployment Manager to deploy your application. Rely on the automatic enablement of all APIs used by the application being deployed.
    • D. Grant the App Engine Default service account the role of Cloud Pub/Sub Admin. Have your application enable the API on the first connection to Cloud Pub/Sub.
    Answer

    Correct answer: A

  5. You have a website hosted on App Engine standard environment. You want 1% of your users to see a new test version of the website. You want to minimize complexity.
    • A. Deploy the new version in the same application and use the –-migrate option.
    • B. Deploy the new version in the same application and use the –-splits option to give a weight of 99 to the current version and a weight of 1 to the new version.
    • C. Create a new App Engine application in the same project. Deploy the new version in that application. Use the App Engine library to proxy 1% of the requests to the new version.
    • D. Create a new App Engine application in the same project. Deploy the new version in that application. Configure your network load balancer to send 1% of the traffic to that new application.
    Answer

    Correct answer: B

  6. Your organization is a financial company that needs to store audit log files for 3 years. Your organization has hundreds of Google Cloud projects. You need to implement a cost-effective approach for log file retention.
    • A. Create an export to the sink that saves logs from Cloud Audit to BigQuery.
    • B. Create an export to the sink that saves logs from Cloud Audit to a Coldline Storage bucket.
    • C. Write a custom script that uses logging API to copy the logs from Stackdriver logs to BigQuery.
    • D. Export these logs to Cloud Pub/Sub and write a Cloud Dataflow pipeline to store logs to Cloud SQL.
    Answer

    Correct answer: B

  7. You built an application on Google Cloud that uses Cloud Spanner. Your support team needs to monitor the environment but should not have access to table data. You need a streamlined solution to grant the correct permissions to your support team, and you want to follow Google-recommended practices. What should you do?
    • A. Add the support team group to the roles/monitoring.viewer role.
    • B. Add the support team group to the roles/spanner.databaseUser role.
    • C. Add the support team group to the roles/spanner.databaseReader role.
    • D. Add the support team group to the roles/stackdriver.accounts.viewer role.
    Answer

    Correct answer: A

  8. You want to run a single caching HTTP reverse proxy on GCP for a latency-sensitive website. This specific reverse proxy consumes almost no CPU. You want to have a 30-GB in-memory cache, and need an additional 2 GB of memory for the rest of the processes. You want to minimize cost. How should you run this reverse proxy?
    • A. Create a Cloud Memorystore for Redis instance with 32-GB capacity.
    • B. Run it on Compute Engine, and choose a custom instance type with 6 vCPUs and 32 GB of memory.
    • C. Package it in a container image, and run it on Kubernetes Engine, using n1-standard-32 instances as nodes.
    • D. Run it on Compute Engine, choose the instance type n1-standard-1, and add an SSD persistent disk of 32 GB.
    Answer

    Correct answer: A

  9. You have a single binary application that you want to run on Google Cloud Platform. You decided to automatically scale the application based on underlying infrastructure CPU usage. Your organizational policies require you to use virtual machines directly. You need to ensure that the application scaling is operationally efficient and completed as quickly as possible. What should you do?
    • A. Create a Google Kubernetes Engine cluster, and use horizontal pod autoscaling to scale the application.
    • B. Create an instance template, and use the template in a Managed Instance Group with autoscaling configured.
    • C. Create an instance template, and use the template in a Managed Instance Group that scales up and down based on the time of day.
    • D. Use a set of third-party tools to build automation around scaling the application up and down, based on Stackdriver CPU usage monitoring.
    Answer

    Correct answer: B

  10. You need to set up permissions for a set of Compute Engine instances to enable them to write data into a particular Cloud Storage bucket. You want to follow Google-recommended practices. What should you do?
    Answer

    Correct answer: C

  11. You have an object in a Cloud Storage bucket that you want to share with an external company. The object contains sensitive data. You want access to the content to be removed after four hours. The external company does not have a Google account to which you can grant specific user-based access privileges. You want to use the most secure method that requires the fewest steps. What should you do?
    • A. Create a signed URL with a four-hour expiration and share the URL with the company.
    • B. Set object access to ‘public’ and use object lifecycle management to remove the object after four hours.
    • C. Configure the storage bucket as a static website and furnish the object’s URL to the company. Delete the object from the storage bucket after four hours.
    • D. Create a new Cloud Storage bucket specifically for the external company to access. Copy the object to that bucket. Delete the bucket after four hours have passed.
    Answer

    Correct answer: A

  12. You need to create an autoscaling Managed Instance Group for an HTTPS web application. You want to make sure that unhealthy VMs are recreated. What should you do?
    • A. Create a health check on port 443 and use that when creating the Managed Instance Group.
    • B. Select Multi-Zone instead of Single-Zone when creating the Managed Instance Group.
    • C. In the Instance Template, add the label ‘health-check’.
    • D. In the Instance Template, add a startup script that sends a heartbeat to the metadata server.
    Answer

    Correct answer: A

  13. You are deploying an application to a Compute Engine VM in a Managed Instance Group. The application must be running at all times, but only a single instance of the VM should run per GCP project. How should you configure the instance group?
    • A. Set autoscaling to On, set the minimum number of instances to 1, and then set the maximum number of instances to 1.
    • B. Set autoscaling to Off, set the minimum number of instances to 1, and then set the maximum number of instances to 1.
    • C. Set autoscaling to On, set the minimum number of instances to 1, and then set the maximum number of instances to 2.
    • D. Set autoscaling to Off, set the minimum number of instances to 1, and then set the maximum number of instances to 2.
    Answer

    Correct answer: A

  14. You have production and test workloads that you want to deploy on Compute Engine. Production VMs need to be in a different subnet than the test VMs. All the VMs must be able to reach each other over internal IP without creating additional routes. You need to set up VPC and the 2 subnets. Which configuration meets these requirements?
    • A. Create a single custom VPC with 2 subnets. Create each subnet in a different region and with a different CIDR range.
    • B. Create a single custom VPC with 2 subnets. Create each subnet in the same region and with the same CIDR range.
    • C. Create 2 custom VPCs, each with a single subnet. Create each subnet is a different region and with a different CIDR range.
    • D. Create 2 custom VPCs, each with a single subnet. Create each subnet in the same region and with the same CIDR range.
    Answer

    Correct answer: A

  15. You have an instance group that you want to load balance. You want the load balancer to terminate the client SSL session. The instance group is used to serve a public web application over HTTPS. You want to follow Google-recommended practices. What should you do?
    • A. Configure an HTTP(S) load balancer.
    • B. Configure an internal TCP load balancer.
    • C. Configure an external SSL proxy load balancer.
    • D. Configure an external TCP proxy load balancer.
    Answer

    Correct answer: A

  16. You have a web application deployed as a Managed Instance Group. You have a new version of the application to gradually deploy. Your web application is currently receiving live web traffic. You want to ensure that the available capacity does not decrease during the deployment. What should you do?
    • A. Perform a rolling-action start-update with maxSurge set to 0 and maxUnavailable set to 1.
    • B. Perform a rolling-action start-update with maxSurge set to 1 and maxUnavailable set to 0.
    • C. Create a new Managed Instance Group with an updated instance template. Add the group to the backend service for the load balancer. When all instances in the new Managed Instance Group are healthy, delete the old Managed Instance Group.
    • D. Create a new instance template with the new application version. Update the existing Managed Instance Group with the new instance template. Delete the instances in the Managed Instance Group to allow the Managed Instance Group to recreate the instance using the new instance template.
    Answer

    Correct answer: B

  17. You need to grant access for three users so that they can view and edit table data on a Cloud Spanner instance. What should you do?
    • A. Run gcloud iam roles describe roles/spanner.databaseUser. Add the users to the role.
    • B. Run gcloud iam roles describe roles/spanner.databaseUser. Add the users to a new group. Add the group to the role.
    • C. Run gcloud iam roles describe roles/spanner.viewer –project my-project. Add the users to the role.
    • D. Run gcloud iam roles describe roles/spanner.viewer –project my-project. Add the users to a new group. Add the group to the role.
    Answer

    Correct answer: B

  18. You need to create a new billing account and then link it with an existing Google Cloud Platform project. What should you do?
    • A. Verify that you are Project Billing Manager for the GCP project. Update the existing project to link it to the existing billing account.
    • B. Verify that you are Project Billing Manager for the GCP project. Create a new billing account and link the new billing account to the existing project.
    • C. Verify that you are Billing Administrator for the billing account. Create a new project and link the new project to the existing billing account.
    • D. Verify that you are Billing Administrator for the billing account. Update the existing project to link it to the existing billing account.
    Answer

    Correct answer: B

  19. You have sensitive data stored in three Cloud Storage buckets and have enabled data access logging. You want to verify activities for a particular user for these buckets, using the fewest possible steps. You need to verify the addition of metadata labels and which files have been viewed from those buckets. What should you do?
    • A. Using the GCP Console, filter the Activity log to view the information.
    • B. Using the GCP Console, filter the Stackdriver log to view the information.
    • C. View the bucket in the Storage section of the GCP Console.
    • D. Create a trace in Stackdriver to view the information.
    Answer

    Correct answer: A

  20. You need to run an important query in BigQuery but expect it to return a lot of records. You want to find out how much it will cost to run the query. You are using on-demand pricing. What should you do?
    • A. Arrange to switch to Flat-Rate pricing for this query, then move back to on-demand.
    • B. Use the command line to run a dry run query to estimate the number of bytes read. Then convert that bytes estimate to dollars using the Pricing Calculator.
    • C. Use the command line to run a dry run query to estimate the number of bytes returned. Then convert that bytes estimate to dollars using the Pricing Calculator.
    • D. Run a select count (*) to get an idea of how many records your query will look through. Then convert that number of rows to dollars using the Pricing Calculator.
    Answer

    Correct answer: B

  21. You need to monitor resources that are distributed over different projects in Google Cloud Platform. You want to consolidate reporting under the same Stackdriver Monitoring dashboard. What should you do?
    • A. Use Shared VPC to connect all projects, and link Stackdriver to one of the projects.
    • B. For each project, create a Stackdriver account. In each project, create a service account for that project and grant it the role of Stackdriver Account Editor in all other projects.
    • C. Configure a single Stackdriver account, and link all projects to the same account.
    • D. Configure a single Stackdriver account for one of the projects. In Stackdriver, create a Group and add the other project names as criteria for that Group.
    Answer

    Correct answer: C

  22. You need a dynamic way of provisioning VMs on Compute Engine. The exact specifications will be in a dedicated configuration file. You want to follow Google’s recommended practices. Which method should you use?
    • A. Deployment Manager.
    • B. Cloud Composer.
    • C. Managed Instance Group.
    • D. Unmanaged Instance Group.
    Answer

    Correct answer: A

  23. You created an instance of SQL Server 2017 on Compute Engine to test features in the new version. You want to connect to this instance using the fewest number of steps. What should you do?
    • A. Install a RDP client on your desktop. Verify that a firewall rule for port 3389 exists.
    • B. Install a RDP client in your desktop. Set a Windows username and password in the GCP Console. Use the credentials to log in to the instance.
    • C. Set a Windows password in the GCP Console. Verify that a firewall rule for port 22 exists. Click the RDP button in the GCP Console and supply the credentials to log in.
    • D. Set a Windows username and password in the GCP Console. Verify that a firewall rule for port 3389 exists. Click the RDP button in the GCP Console, and supply the credentials to log in.
    Answer

    Correct answer: B

  24. You are the organization and billing administrator for your company. The engineering team has the Project Creator role on the organization. You do not want the engineering team to be able to link projects to the billing account. Only the finance team should be able to link a project to a billing account, but they should not be able to make any other changes to projects. What should you do?
    • A. Assign the finance team only the Billing Account User role on the billing account.
    • B. Assign the engineering team only the Billing Account User role on the billing account.
    • C. Assign the finance team the Billing Account User role on the billing account and the Project Billing Manager role on the organization.
    • D. Assign the engineering team the Billing Account User role on the billing account and the Project Billing Manager role on the organization.
    Answer

    Correct answer: A

  25. You are creating a Google Kubernetes Engine (GKE) cluster with a cluster autoscaler feature enabled. You need to make sure that each node of the cluster will run a monitoring pod that sends container metrics to a third-party monitoring solution. What should you do?
    • A. Deploy the monitoring pod in a StatefulSet object.
    • B. Deploy the monitoring pod in a DaemonSet object.
    • C. Reference the monitoring pod in a Deployment object.
    • D. Reference the monitoring pod in a cluster initializer at the GKE cluster creation time.
    Answer

    Correct answer: B

  26. You create a new Google Kubernetes Engine (GKE) cluster and want to make sure that it always runs a supported and stable version of Kubernetes. What should you do?
    • A. Enable the Node Auto-Repair feature for your GKE cluster.
    • B. Enable the Node Auto-Upgrades feature for your GKE cluster.
    • C. Select the latest available cluster version for your GKE cluster.
    • D. Select ‘Container-Optimized OS (cos)’ as a node image for your GKE cluster.
    Answer

    Correct answer: B

  27. Your company uses Cloud Storage to store application backup files for disaster recovery purposes. You want to follow Google’s recommended practices. Which storage option should you use?
    • A. Multi-Regional Storage.
    • B. Regional Storage.
    • C. Nearline Storage.
    • D. Coldline Storage.
    Answer

    Correct answer: D

  28. You need to set up a policy so that videos stored in a specific Cloud Storage Regional bucket are moved to Coldline after 90 days, and then deleted after one year from their creation. How should you set up the policy?
    • A. Use Cloud Storage Object Lifecycle Management using Age conditions with SetStorageClass and Delete actions. Set the SetStorageClass action to 90 days and the Delete action to 275 days (365-90).
    • B. Use Cloud Storage Object Lifecycle Management using Age conditions with SetStorageClass and Delete actions. Set the SetStorageClass action to 90 days and the Delete action to 365 days.
    • C. Use gsutil rewrite and set the Delete action to 275 days (365-90).
    • D. Use gsutil rewrite and set the Delete action to 365 days.
    Answer

    Correct answer: B

  29. Your company has an existing GCP organization with hundreds of projects and a billing account. Your company recently acquired another company that also has hundreds of projects and its own billing account. You would like to consolidate all GCP costs of both GCP organizations onto a single invoice. You would like to consolidate all costs as of tomorrow. What should you do?
    • A. Link the acquired company’s projects to your company’s billing account.
    • B. Configure the acquired company’s billing account and your company’s billing account to export the billing data into the same BigQuery dataset.
    • C. Migrate the acquired company’s projects into your company’s GCP organization. Link the migrated projects to your company’s billing account.
    • D. Create a new GCP organization and a new billing account. Migrate the acquired company’s projects and your company’s projects into the new GCP organization and link the projects to the new billing account.
    Answer

    Correct answer: A

  30. You want to configure 10 Compute Engine instances for availability when maintenance occurs. Your requirements state that these instances should attempt to automatically restart if they crash. Also, the instances should be highly available including during system maintenance. What should you do?
    • A. Create an instance template for the instances. Set the ‘Automatic Restart’ to on. Set the ‘On-host maintenance’ to Migrate VM instance. Add the instance template to an instance group.
    • B. Create an instance template for the instances. Set ‘Automatic Restart’ to off. Set ‘On-host maintenance’ to Terminate VM instances. Add the instance template to an instance group.
    • C. Create an instance group for the instances. Set the ‘Autohealing’ health check to healthy (HTTP).
    • D. Create an instance group for the instance. Verify that the ‘Advanced creation options’ setting for ‘do not retry machine creation’ is set to off.
    Answer

    Correct answer: A

  31. You have a development project with appropriate IAM roles defined. You are creating a production project and want to have the same IAM roles on the new project, using the fewest possible steps. What should you do?
    • A. Use gcloud iam roles copy and specify the production project as the destination project.
    • B. Use gcloud iam roles copy and specify your organization as the destination organization.
    • C. In the Google Cloud Platform Console, use the ‘create role from role’ functionality.
    • D. In the Google Cloud Platform Console, use the ‘create role’ functionality and select all applicable permissions.
    Answer

    Correct answer: A

  32. You are using multiple configurations for gcloud. You want to review the configured Kubernetes Engine cluster of an inactive configuration using the fewest possible steps. What should you do?
    • A. Use gcloud config configurations describe to review the output.
    • B. Use gcloud config configurations activate and gcloud config list to review the output.
    • C. Use kubectl config get-contexts to review the output.
    • D. Use kubectl config use-context and kubectl config view to review the output.
    Answer

    Correct answer: D

  33. You need to configure IAM access audit logging in BigQuery for external auditors. You want to follow Google-recommended practices. What should you do?
    • A. Add the auditors group to the ‘logging.viewer’ and ‘bigQuery.dataViewer’ predefined IAM roles.
    • B. Add the auditors group to two new custom IAM roles.
    • C. Add the auditor user accounts to the ‘logging.viewer’ and ‘bigQuery.dataViewer’ predefined IAM roles.
    • D. Add the auditor user accounts to two new custom IAM roles.
    Answer

    Correct answer: A

  34. You need to create a custom VPC with a single subnet. The subnet’s range must be as large as possible. Which range should you use?
    • A. 0.0.0.0/0.
    • B. 10.0.0.0/8.
    • C. 172.16.0.0/12.
    • D. 192.168.0.0/16.
    Answer

    Correct answer: B

  35. You recently deployed a new version of an application to App Engine and then discovered a bug in the release. You need to immediately revert to the prior version of the application. What should you do?
    • A. Run gcloud app restore.
    • B. On the App Engine page of the GCP Console, select the application that needs to be reverted and click Revert.
    • C. On the App Engine Versions page of the GCP Console, route 100% of the traffic to the previous version.
    • D. Deploy the original version as a separate application. Then go to App Engine settings and split traffic between applications so that the original version serves 100% of the requests.
    Answer

    Correct answer: C

  36. You want to configure Autohealing for network load balancing for a group of Compute Engine instances that run in multiple zones, using the fewest possible steps. You need to configure re-creation of VMs if they are unresponsive after 3 attempts of 10 seconds each. What should you do?
    • A. Create an HTTP load balancer with a backend configuration that references an existing instance group. Set the health check to healthy (HTTP).
    • B. Create an HTTP load balancer with a backend configuration that references an existing instance group. Define a balancing mode and set the maximum RPS to 10.
    • C. Create a Managed Instance Group. Set the Autohealing health check to healthy (HTTP).
    • D. Create a Managed Instance Group. Verify that the autoscaling setting is on.
    Answer

    Correct answer: C

  37. You have a Linux VM that must connect to Cloud SQL. You created a service account with the appropriate access rights. You want to make sure that the VM uses this service account instead of the default Compute Engine service account. What should you do?
    • A. When creating the VM via the web console, specify the service account under the ‘Identity and API Access’ section.
    • B. Download a JSON Private Key for the service account. On the Project Metadata, add that JSON as the value for the key compute-engine-service-account.
    • C. Download a JSON Private Key for the service account. On the Custom Metadata of the VM, add that JSON as the value for the key compute-engine-service-account.
    • D. Download a JSON Private Key for the service account. After creating the VM, ssh into the VM and save the JSON under ~/.gcloud/compute-engine-service-account.json.
    Answer

    Correct answer: A

  38. You have one project called proj-sa where you manage all your service accounts. You want to be able to use a service account from this project to take snapshots of VMs running in another project called proj-vm. What should you do?
    • A. Download the private key from the service account, and add it to each VMs custom metadata.
    • B. Download the private key from the service account, and add the private key to each VM’s SSH keys.
    • C. Grant the service account the IAM role of Compute Storage Admin in the project called proj-vm.
    • D. When creating the VMs, set the service account’s API scope for Compute Engine to read/write.
    Answer

    Correct answer: C

  39. You have one GCP account running in your default region and zone and another account running in a non-default region and zone. You want to start a new Compute Engine instance in these two Google Cloud Platform accounts using the command line interface. What should you do?
    • A. Create two configurations using gcloud config configurations create [NAME]. Run gcloud config configurations activate [NAME] to switch between accounts when running the commands to start the Compute Engine instances.
    • B. Create two configurations using gcloud config configurations create [NAME]. Run gcloud configurations list to start the Compute Engine instances.
    • C. Activate two configurations using gcloud configurations activate [NAME]. Run gcloud config list to start the Compute Engine instances.
    • D. Activate two configurations using gcloud configurations activate [NAME]. Run gcloud configurations list to start the Compute Engine instances.
    Answer

    Correct answer: A

  40. Every employee of your company has a Google account. Your operational team needs to manage a large number of instances on Compute Engine. Each member of this team needs only administrative access to the servers. Your security team wants to ensure that the deployment of credentials is operationally efficient and must be able to determine who accessed a given instance. What should you do?
    • A. Generate a new SSH key pair. Give the private key to each member of your team. Configure the public key in the metadata of each instance.
    • B. Ask each member of the team to generate a new SSH key pair and to send you their public key. Use a configuration management tool to deploy those keys on each instance.
    • C. Ask each member of the team to generate a new SSH key pair and to add the public key to their Google account. Grant the ‘compute.osAdminLogin’ role to the Google group corresponding to this team.
    • D. Generate a new SSH key pair. Give the private key to each member of your team. Configure the public key as a project-wide public SSH key in your Cloud Platform project and allow project-wide public SSH keys on each instance.
    Answer

    Correct answer: C

  41. You need to deploy an application, which is packaged in a container image, in a new project. The application exposes an HTTP endpoint and receives very few requests per day. You want to minimize costs. What should you do?
    • A. Deploy the container on Cloud Run.
    • B. Deploy the container on Cloud Run on GK.
    • C. Deploy the container on App Engine Flexible.
    • D. Deploy the container on Google Kubernetes Engine, with cluster autoscaling and horizontal pod autoscaling enabled.
    Answer

    Correct answer: A

  42. Your development team needs a new Jenkins server for their project. You need to deploy the server using the fewest steps possible. What should you do?
    • A. Download and deploy the Jenkins Java WAR to App Engine Standard.
    • B. Create a new Compute Engine instance and install Jenkins through the command line interface.
    • C. Create a Kubernetes cluster on Compute Engine and create a deployment with the Jenkins Docker image.
    • D. Use GCP Marketplace to launch the Jenkins solution.
    Answer

    Correct answer: D

  43. 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. Cloud Spanner.
    • C. Cloud Firestore.
    • D. Cloud Datastore.
    Answer

    Correct answer: B

  44. You are using Deployment Manager to create a Google Kubernetes Engine cluster. Using the same Deployment Manager deployment, you also want to create a DaemonSet in the kube-system namespace of the cluster. You want a solution that uses the fewest possible services.
    • A. Add the cluster’s API as a new Type Provider in Deployment Manager, and use the new type to create the DaemonSet.
    • B. Use the Deployment Manager Runtime Configurator to create a new Config resource that contains the DaemonSet definition.
    • C. With Deployment Manager, create a Compute Engine instance with a startup script that uses kubectl to create the DaemonSet.
    • D. In the cluster’s definition in Deployment Manager, add a metadata that has kube-system as key and the DaemonSet manifest as value.
    Answer

    Correct answer: A

  45. You have a virtual machine that is currently configured with 2 vCPUs and 4 GB of memory. It is running out of memory. You want to upgrade the virtual machine to have 8 GB of memory. What should you do?
    • A. Rely on live migration to move the workload to a machine with more memory.
    • B. Use gcloud to add metadata to the V. Set the key to required-memory-size and the value to 8 GB.
    • C. Stop the VM, change the machine type to n1-standard-8, and start the VM.
    • D. Stop the VM, increase the memory to 8 GB, and start the VM.
    Answer

    Correct answer: D

  46. You created a Google Cloud Platform project with an App Engine application inside the project. You initially configured the application to be served from the us-central region. Now you want the application to be served from the asia-northeast1 region. What should you do?
    • A. Change the default region property setting in the existing GCP project to asia-northeast1.
    • B. Change the region property setting in the existing App Engine application from us-central to asia-northeast1.
    • C. Create a second App Engine application in the existing GCP project and specify asia-northeast1 as the region to serve your application.
    • D. Create a new GCP project and create an App Engine application inside this new project. Specify asia-northeast1 as the region to serve your application.
    Answer

    Correct answer: D

  47. Several employees at your company have been creating projects with Cloud Platform and paying for it with their personal credit cards, which the company reimburses. The company wants to centralize all these projects under a single, new billing account. What should you do?
    • A. Contact [email protected] with your bank account details and request a corporate billing account for your company.
    • B. Create a ticket with Google Support and wait for their call to share your credit card details over the phone.
    • C. In the Google Platform Console, go to the Resource Manage and move all projects to the root Organization.
    • D. In the Google Cloud Platform Console, create a new billing account and set up a payment method.
    Answer

    Correct answer: D

  48. You have a Dockerfile that you need to deploy on Kubernetes Engine. What should you do?
    • A. Use kubectl app deploy <dockerfilename>.
    • B. Use gcloud app deploy <dockerfilename>.
    • C. Create a docker image from the Dockerfile and upload it to Container Registry. Create a Deployment YAML file to point to that image. Use kubectl to create the deployment with that file.
    • D. Create a docker image from the Dockerfile and upload it to Cloud Storage. Create a Deployment YAML file to point to that image. Use kubectl to create the deployment with that file.
    Answer

    Correct answer: C

  49. You have a project for your App Engine application that serves a development environment. The required testing has succeeded and you want to create a new project to serve as your production environment. What should you do?
    • A. Use gcloud to create the new project, and then deploy your application to the new project.
    • B. Use gcloud to create the new project and to copy the deployed application to the new project.
    • C. Create a Deployment Manager configuration file that copies the current App Engine deployment into a new project.
    • D. Deploy your application again using gcloud and specify the project parameter with the new project name to create the new project.
    Answer

    Correct answer: A

  50. You are building an application that will run in your data center. The application will use Google Cloud Platform (GCP) services like AutoML. You created a service account that has appropriate access to AutoML. You need to enable authentication to the APIs from your on-premises environment. What should you do?
    • A. Use service account credentials in your on-premises application.
    • B. Use gcloud to create a key file for the service account that has appropriate permissions.
    • C. Set up direct interconnect between your data center and Google Cloud Platform to enable authentication for your on-premises applications.
    • D. Go to the IAM & admin console, grant a user account permissions similar to the service account permissions, and use this user account for authentication from your data center.
    Answer

    Correct answer: B

Please feel free to contact us if any information is inaccurate or if any answers need correction.

Exam List