GCP ACE v1.1.0 Practice Tests PDF
Document Details
Uploaded by SimplifiedGyrolite2154
UTSA
Tags
Summary
This document contains practice questions and answers for the Google Cloud Platform (GCP) Associate Cloud Engineer (ACE) certification. It's aimed at professionals preparing for the exam and covers various topics related to GCP services.
Full Transcript
GCP_ACE_v1.1.0.md 2023-11-02 ⬆ Google Cloud Platform (GCP) Associate Cloud Engineer (ACE) Practice Tests Exams Questions & Answers Table of Contents No. Questions You significantly changed a complex Deplo...
GCP_ACE_v1.1.0.md 2023-11-02 ⬆ Google Cloud Platform (GCP) Associate Cloud Engineer (ACE) Practice Tests Exams Questions & Answers Table of Contents No. Questions You significantly changed a complex Deployment Manager template and want to confirm that the 1 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? 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 2 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? You are analyzing Google Cloud Platform service costs from three separate projects. You want to 3 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? You want to send and consume Cloud Pub/Sub messages from your App Engine application. The 4 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? 1 / 70 GCP_ACE_v1.1.0.md 2023-11-02 No. Questions 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. Your organization is a financial company that needs to store audit log files for 3 years. Your 6 organization has hundreds of Google Cloud projects. You need to implement a cost-effective approach for log file retention. You built an application on Google Cloud that uses Cloud Spanner. Your support team needs to 7 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? You want to run a single caching HTTP reverse proxy on GCP for a latency-sensitive website. This 8 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? 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 9 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? You need to set up permissions for a set of Compute Engine instances to enable them to write 10 data into a particular Cloud Storage bucket. You want to follow Google-recommended practices. What should you do? 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 11 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? 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? You are deploying an application to a Compute Engine VM in a Managed Instance Group. The 13 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? You have production and test workloads that you want to deploy on Compute Engine. Production 14 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? You have an instance group that you want to load balance. You want the load balancer to 15 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? 2 / 70 GCP_ACE_v1.1.0.md 2023-11-02 No. Questions You have a web application deployed as a Managed Instance Group. You have a new version of 16 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? 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? 18 You need to create a new billing account and then link it with an existing Google Cloud Platform project. What should you do? You have sensitive data stored in three Cloud Storage buckets and have enabled data access 19 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? You need to run an important query in BigQuery but expect it to return a lot of records. You want 20 to find out how much it will cost to run the query. You are using on-demand pricing. What should you do? You need to monitor resources that are distributed over different projects in Google Cloud 21 Platform. You want to consolidate reporting under the same Stackdriver Monitoring dashboard. What should you do? You need a dynamic way of provisioning VMs on Compute Engine. The exact specifications will be 22 in a dedicated configuration file. You want to follow Google's recommended practices. Which method should you use? You created an instance of SQL Server 2017 on Compute Engine to test features in the new 23 version. You want to connect to this instance using the fewest number of steps. What should you do? 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 24 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? You are creating a Google Kubernetes Engine (GKE) cluster with a cluster autoscaler feature 25 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? 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? Your company uses Cloud Storage to store application backup files for disaster recovery 27 purposes. You want to follow Google's recommended practices. Which storage option should you use? 3 / 70 GCP_ACE_v1.1.0.md 2023-11-02 No. Questions You need to set up a policy so that videos stored in a specific Cloud Storage Regional bucket are 28 moved to Coldline after 90 days, and then deleted after one year from their creation. How should you set up the policy? Your company has an existing GCP organization with hundreds of projects and a billing account. 29 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? You want to configure 10 Compute Engine instances for availability when maintenance occurs. 30 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? You have a development project with appropriate IAM roles defined. You are creating a production 31 project and want to have the same IAM roles on the new project, using the fewest possible steps. What should you do? 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? 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? 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? You recently deployed a new version of an application to App Engine and then discovered a bug in 35 the release. You need to immediately revert to the prior version of the application. What should you do? You want to configure Autohealing for network load balancing for a group of Compute Engine 36 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? You have a Linux VM that must connect to Cloud SQL. You created a service account with the 37 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? You have one project called proj-sa where you manage all your service accounts. You want to be 38 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? You have one GCP account running in your default region and zone and another account running 39 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? 4 / 70 GCP_ACE_v1.1.0.md 2023-11-02 No. Questions 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 40 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? You need to deploy an application, which is packaged in a container image, in a new project. The 41 application exposes an HTTP endpoint and receives very few requests per day. You want to minimize costs. What should you do? 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? You are building an application that stores relational data from users. Users across the globe will 43 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? You are using Deployment Manager to create a Google Kubernetes Engine cluster. Using the 44 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. You have a Virtual Machine that is currently configured with 2 vCPUs and 4 GB of memory. It is 45 running out of memory. You want to upgrade the Virtual Machine to have 8 GB of memory. What should you do? You created a Google Cloud Platform project with an App Engine application inside the project. 46 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? Several employees at your company have been creating projects with Cloud Platform and paying 47 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? 48 You have a Dockerfile that you need to deploy on Kubernetes Engine. What should you do? You have a project for your App Engine application that serves a development environment. The 49 required testing has succeeded and you want to create a new project to serve as your production environment. What should you do? You are building an application that will run in your data center. The application will use Google 50 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? You host a static website on Cloud Storage. Recently, you began to include links to PDF files on this site. Currently, when users click on the links to these PDF files, their browsers prompt them to 51 save the file onto their local system. Instead, you want the clicked PDF files to be displayed within the browser window directly, without prompting the user to save the file locally. What should you do? 5 / 70 GCP_ACE_v1.1.0.md 2023-11-02 No. Questions You have an application that looks for its licensing server on the IP 10.0.3.21. You need to deploy 52 the licensing server on Compute Engine. You do not want to change the configuration of the application and want the application to be able to reach the licensing server. What should you do? You are deploying an application to App Engine. You want the number of instances to scale based 53 on request rate. You need at least 3 unoccupied instances at all times. Which scaling type should you use? You are the project owner of a GCP project and want to delegate control to colleagues to manage 54 buckets and files in Cloud Storage. You want to follow Google-recommended practices. Which IAM roles should you grant your colleagues? 55 You need to update a deployment in Deployment Manager without any resource downtime in the deployment. Which command should you use? You are running an application on multiple Virtual Machines within a Managed Instance Group and have autoscaling enabled. The autoscaling policy is configured so that additional instances are added to the group if the CPU utilization of instances goes above 80%. VMs are added until the instance group reaches its maximum limit of five VMs or until CPU utilization of instances lowers 56 to 80%. The initial delay for HTTP health checks against the instances is set to 30 seconds. The Virtual Machine instances take around three minutes to become available for users. You observe that when the instance group autoscales, it adds more instances then necessary to support the levels of end-user traffic. You want to properly maintain instance group sizes when autoscaling. What should you do? You have 32 GB of data in a single file that you need to upload to a Nearline Storage bucket. The 57 WAN connection you are using is rated at 1 Gbps, and you are the only one on the connection. You want to use as much of the rated 1 Gbps as possible to transfer the file rapidly. How should you upload the file? You deployed an App Engine application using gcloud app deploy, but it did not deploy to the 58 intended project. You want to find out why this happened and where the application deployed. What should you do? 59 You want to verify the IAM users and roles assigned within a GCP project named my-project. What should you do? You need to select and configure compute resources for a set of batch processing jobs. These 60 jobs take around 2 hours to complete and are run nightly. You want to minimize service costs. What should you do? You want to select and configure a cost-effective solution for relational data on Google Cloud 61 Platform. You are working with a small set of operational data in one geographic location. You need to support point-in-time recovery. What should you do? 6 / 70 GCP_ACE_v1.1.0.md 2023-11-02 No. Questions 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 62 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? Your company has a Google Cloud Platform project that uses BigQuery for data warehousing. 63 Your data science team changes frequently and has few members. You need to allow members of this team to perform queries. You want to follow Google-recommended practices. What should you do? You are given a project with a single Virtual Private Cloud (VPC) and a single subnetwork in the us-central1 region. There is a Compute Engine instance hosting an application in this subnetwork. 64 You need to deploy a new instance in the same project in the europe-west1 region. This new instance needs access to the application. You want to follow Google-recommended practices. What should you do? 65 You are building a pipeline to process time-series data. Which Google Cloud Platform services should you put in boxes 1,2,3, and 4? For analysis purposes, you need to send all the logs from all of your Compute Engine instances to 66 a BigQuery dataset called platform-logs. You have already installed the Cloud Logging agent on all the instances. You want to minimize cost. What should you do? 67 You want to deploy an application on Cloud Run that processes messages from a Cloud Pub/Sub topic. You want to follow Google-recommended practices. What should you do? Your projects incurred more costs than you expected last month. Your research reveals that a 68 development GKE container emitted a huge number of logs, which resulted in higher costs. You want to disable the logs quickly using the minimum number of steps. What should you do? You've deployed a microservice called myapp1 to a Google Kubernetes Engine cluster using the 69 YAML file specified below. You need to refactor this configuration so that the database password is not stored in plain text. You want to follow Google-recommended practices. What should you do? You have an application running in Google Kubernetes Engine (GKE) with cluster autoscaling enabled. The application exposes a TCP endpoint. There are several replicas of this application. 70 You have a Compute Engine instance in the same region, but in another Virtual Private Cloud (VPC), called gce-network, that has no overlapping IP ranges with the first VPC. This instance needs to connect to the application on GKE. You want to minimize effort. What should you do? You are using Container Registry to centrally store your company's container images in a separate 71 project. In another project, you want to create a Google Kubernetes Engine (GKE) cluster. You want to ensure that Kubernetes can download images from Container Registry. What should you do? 7 / 70 GCP_ACE_v1.1.0.md 2023-11-02 No. Questions You deployed a new application inside your Google Kubernetes Engine cluster using the YAML file 72 specified below. You check the status of the deployed pods and notice that one of them is still in PENDING status. You want to find out why the pod is stuck in pending status. What should you do? 73 You are setting up a Windows VM on Compute Engine and want to make sure you can log in to the VM via RDP. What should you do? You want to configure an SSH connection to a single Compute Engine instance for users in the 74 dev1 group. This instance is the only resource in this particular Google Cloud Platform project that the dev1 users should be able to connect to. What should you do? 75 You need to produce a list of the enabled Google Cloud Platform APIs for a GCP project using the gcloud command line in the Cloud Shell. The project name is my-project. What should you do? You are building a new version of an application hosted in an App Engine environment. You want 76 to test the new version with 1% of users before you completely switch your application over to the new version. What should you do? You need to provide a cost estimate for a Kubernetes cluster using the GCP pricing calculator for 77 Kubernetes. Your workload requires high IOPs, and you will also be using disk snapshots. You start by entering the number of nodes, average hours, and average days. What should you do next? You are using Google Kubernetes Engine with autoscaling enabled to host a new application. You 78 want to expose this new application to the public, using HTTPS on a public IP address. What should you do? You need to enable traffic between multiple groups of Compute Engine instances that are 79 currently running two different GCP projects. Each group of Compute Engine instances is running in its own VPC. What should you do? 80 You want to add a new auditor to a Google Cloud Platform project. The auditor should be allowed to read, but not modify, all project items. How should you configure the auditor's permissions? You are operating a Google Kubernetes Engine (GKE) cluster for your company where different 81 teams can run non-production workloads. Your Machine Learning (ML) team needs access to Nvidia Tesla P100 GPUs to train their models. You want to minimize effort and cost. What should you do? Your VMs are running in a subnet that has a subnet mask of 255.255.255.240. The current subnet 82 has no more free IP addresses and you require an additional 10 IP addresses for new VMs. The existing and new VMs should all be able to reach each other without additional routes. What should you do? Your organization uses G Suite for communication and collaboration. All users in your 83 organization have a G Suite account. You want to grant some G Suite users access to your Cloud Platform project. What should you do? 8 / 70 GCP_ACE_v1.1.0.md 2023-11-02 No. Questions You have a Google Cloud Platform account with access to both production and development 84 projects. You need to create an automated process to list all compute instances in development and production projects on a daily basis. What should you do? You have a large 5-TB AVRO file stored in a Cloud Storage bucket. Your analysts are proficient 85 only in SQL and need access to the data stored in this file. You want to find a cost-effective way to complete their request as soon as possible. What should you do? 86 You need to verify that a Google Cloud Platform service account was created at a particular time. What should you do? 87 You deployed an LDAP server on Compute Engine that is reachable via TLS through port 636 using UDP. You want to make sure it is reachable by clients over that port. What should you do? You need to set a budget alert for use of Compute Engine services on one of the three Google 88 Cloud Platform projects that you manage. All three projects are linked to a single billing account. What should you do? You are migrating a production-critical on-premises application that requires 96 vCPUs to 89 perform its task. You want to make sure the application runs in a similar environment on GCP. What should you do? You want to configure a solution for archiving data in a Cloud Storage bucket. The solution must 90 be cost-effective. Data with multiple versions should be archived after 30 days. Previous versions are accessed once a month for reporting. This archive data is also occasionally updated at month-end. What should you do? Your company's infrastructure is on-premises, but all machines are running at maximum capacity. 91 You want to burst to Google Cloud. The workloads on Google Cloud must be able to directly communicate to the workloads on-premises using a private IP range. What should you do? You want to select and configure a solution for storing and archiving data on Google Cloud 92 Platform. You need to support compliance objectives for data from one geographic location. This data is archived after 30 days and needs to be accessed annually. What should you do? Your company uses BigQuery for data warehousing. Over time, many different business units in 93 your company have created 1000+ datasets across hundreds of projects. Your CIO wants you to examine all datasets to find tables that contain an employee_ssn column. You want to minimize effort in performing this task. What should you do? You create a Deployment with 2 replicas in a Google Kubernetes Engine cluster that has a single 94 preemptible node pool. After a few minutes, you use kubectl to examine the status of your Pod and observe that one of them is still in Pending status: What is the most likely cause? You want to find out when users were added to Cloud Spanner Identity Access Management 95 (IAM) roles on your Google Cloud Platform (GCP) project. What should you do in the GCP Console? 9 / 70 GCP_ACE_v1.1.0.md 2023-11-02 No. Questions Your company implemented BigQuery as an enterprise data warehouse. Users from multiple 96 business units run queries on this data warehouse. However, you notice that query costs for BigQuery are very high, and you need to control costs. Which two methods should you use? (Choose two.) You are building a product on top of Google Kubernetes Engine (GKE). You have a single GKE 97 cluster. For each of your customers, a Pod is running in that cluster, and your customers can run arbitrary code inside their Pod. You want to maximize the isolation between your customers' Pods. What should you do? Your customer has implemented a solution that uses Cloud Spanner and notices some read 98 latency-related performance issues on one table. This table is accessed only by their users using a primary key. The table schema is shown below. You want to resolve the issue. What should you do? 99 Your finance team wants to view the billing report for your projects. You want to make sure that the finance team does not get additional permissions to the project. What should you do? Your organization has strict requirements to control access to Google Cloud projects. You need to 100 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? You need to host an application on a Compute Engine instance in a project shared with other 101 teams. You want to prevent the other teams from accidentally causing downtime on that application. Which feature should you use? Your organization needs to grant users access to query datasets in BigQuery but prevent them 102 from accidentally deleting the datasets. You want a solution that follows Google-recommended practices. What should you do? You have a developer laptop with the Cloud SDK installed on Ubuntu. The Cloud SDK was 103 installed from the Google Cloud Ubuntu package repository. You want to test your application locally on your laptop with Cloud Datastore. What should you do? Your company set up a complex organizational structure on Google Cloud. The structure includes 104 hundreds of folders and projects. Only a few team members should be able to view the hierarchical structure. You need to assign minimum permissions to these team members, and you want to follow Google-recommended practices. What should you do? Your company has a single sign-on (SSO) identity provider that supports Security Assertion 105 Markup Language (SAML) integration with service providers. Your company has users in Cloud Identity. You would like users to authenticate using your company's SSO provider. What should you do? Your organization has a dedicated person who creates and manages all service accounts for 106 Google Cloud projects. You need to assign this person the minimum role for projects. What should you do? 10 / 70 GCP_ACE_v1.1.0.md 2023-11-02 No. Questions You are building an archival solution for your data warehouse and have selected Cloud Storage to 107 archive your data. Your users need to be able to access this archived data once a quarter for some regulatory requirements. You want to select a cost-efficient option. Which storage option should you use? A team of data scientists infrequently needs to use a Google Kubernetes Engine (GKE) cluster 108 that you manage. They require GPUs for some long-running, nonrestartable jobs. You want to minimize cost. What should you do? Your organization has user identities in Active Directory. Your organization wants to use Active 109 Directory as their source of truth for identities. Your organization wants to have full control over the Google accounts used by employees for all Google services, including your Google Cloud Platform (GCP) organization. What should you do? 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 110 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? Your management has asked an external auditor to review all the resources in a specific project. 111 The security team has enabled the Organization Policy called Domain Restricted Sharing on the organization node by specifying only your Cloud Identity domain. You want the auditor to only be able to view, but not modify, the resources in that project. What should you do? You have a workload running on Compute Engine that is critical to your business. You want to ensure that the data on the boot disk of this workload is backed up regularly. You need to be able 112 to restore a backup as quickly as possible in case of disaster. You also want older backups to be cleaned automatically to save on cost. You want to follow Google-recommended practices. What should you do? You need to assign a Cloud Identity and Access Management (Cloud IAM) role to an external 113 auditor. The auditor needs to have permissions to review your Google Cloud Platform (GCP) Audit Logs and also to review your Data Access logs. What should you do? You are managing several Google Cloud Platform (GCP) projects and need access to all logs for 114 the past 60 days. You want to be able to explore and quickly analyze the log contents. You want to follow Google-recommended practices to obtain the combined logs for all projects. What should you do? You need to reduce GCP service costs for a division of your company using the fewest possible 115 steps. You need to turn off all configured services in an existing GCP project. What should you do? You are configuring service accounts for an application that spans multiple projects. Virtual 116 Machines (VMs) running in the web-applications project need access to BigQuery datasets in crm-databases-proj. You want to follow Google-recommended practices to give access to the service account in the web-applications project. What should you do? 11 / 70 GCP_ACE_v1.1.0.md 2023-11-02 No. Questions An employee was terminated, but their access to Google Cloud Platform (GCP) was not removed 117 until 2 weeks later. You need to find out this employee accessed any sensitive customer information after their termination. What should you do? You need to create a custom IAM role for use with a GCP service. All permissions in the role must 118 be suitable for production use. You also want to clearly share with your organization the status of the custom role. This will be the first version of the custom role. What should you do? Your company has a large quantity of unstructured data in different file formats. You want to 119 perform ETL transformations on the data. You need to make the data accessible on Google Cloud so it can be processed by a Dataflow job. What should you do? You need to manage multiple Google Cloud projects in the fewest steps possible. You want to 120 configure the Google Cloud SDK command line interface (CLI) so that you can easily manage multiple projects. What should you do? Your Managed Instance Group raised an alert stating that new instance creation has failed to 121 create new instances. You need to maintain the number of running instances specified by the template to be able to process expected application traffic. What should you do? Your company is moving from an on-premises environment to Google Cloud. You have multiple 122 development teams that use Cassandra environments as backend databases. They all need a development environment that is isolated from other Cassandra instances. You want to move to Google Cloud quickly and with minimal support effort. What should you do? You have a Compute Engine instance hosting a production application. You want to receive an 123 email if the instance consumes more than 90% of its CPU resources for more than 15 minutes. You want to use Google services. What should you do? You have an application that uses Cloud Spanner as a backend database. The application has a 124 very predictable traffic pattern. You want to automatically scale up or down the number of Spanner nodes depending on traffic. What should you do? Your company publishes large files on an Apache web server that runs on a Compute Engine 125 instance. The Apache web server is not the only application running in the project. You want to receive an email when the egress network costs for the server exceed 100 dollars for the current month as measured by Google Cloud. What should you do? You have designed a solution on Google Cloud that uses multiple Google Cloud products. Your 126 company has asked you to estimate the costs of the solution. You need to provide estimates for the monthly total cost. What should you do? You have an application that receives SSL-encrypted TCP traffic on port 443. Clients for this 127 application are located all over the world. You want to minimize latency for the clients. Which load balancing option should you use? You have an application on a general-purpose Compute Engine instance that is experiencing 128 excessive disk read throttling on its Zonal SSD Persistent Disk. The application primarily reads large files from disk. The disk size is currently 350 GB. You want to provide the maximum amount of throughput while minimizing costs. What should you do? 12 / 70 GCP_ACE_v1.1.0.md 2023-11-02 No. Questions Your Dataproc cluster runs in a single Virtual Private Cloud (VPC) network in a single subnet with 129 range 172.16.20.128/25. There are no private IP addresses available in the VPC network. You want to add new VMs to communicate with your cluster using the minimum number of steps. What should you do? You manage an App Engine Service that aggregates and visualizes data from BigQuery. The application is deployed with the default App Engine Service account. The data that needs to be 130 visualized resides in a different project managed by another team. You do not have access to this project, but you want your application to be able to read data from the BigQuery dataset. What should you do? 131 You need to create a copy of a custom Compute Engine Virtual Machine (VM) to facilitate an expected increase in application traffic due to a business acquisition. What should you do? You have deployed an application on a single Compute Engine instance. The application writes 132 logs to disk. Users start reporting errors with the application. You want to diagnose the problem. What should you do? An application generates daily reports in a Compute Engine Virtual Machine (VM). The VM is in the project corp-iot-insights. Your team operates only in the project corp-aggregate-reports and 133 needs a copy of the daily exports in the bucket corp-aggregate-reports-storage. You want to configure access so that the daily reports from the VM are available in the bucket corp- aggregate-reports-storage and use as few steps as possible while following Google- recommended practices. What should you do? You built an application on your development laptop that uses Google Cloud services. Your application uses Application Default Credentials for authentication and works fine on your 134 development laptop. You want to migrate this application to a Compute Engine Virtual Machine (VM) and set up authentication using Google-recommended practices and minimal changes. What should you do? 135 You need to create a Compute Engine instance in a new project that doesn't exist yet. What should you do? Your company runs one batch process in an on-premises server that takes around 30 hours to 136 complete. The task runs monthly, can be performed offline, and must be restarted if interrupted. You want to migrate this workload to the cloud while minimizing cost. What should you do? You are developing a new application and are looking for a Jenkins installation to build and deploy 137 your source code. You want to automate the installation as quickly and easily as possible. What should you do? You have downloaded and installed the gcloud command line interface (CLI) and have 138 authenticated with your Google Account. Most of your Compute Engine instances in your project run in the europe-west1-d zone. You want to avoid having to specify this zone with each CLI command when managing these instances. What should you do? 13 / 70 GCP_ACE_v1.1.0.md 2023-11-02 No. Questions The core business of your company is to rent out construction equipment at large scale. All the equipment that is being rented out has been equipped with multiple sensors that send event information every few seconds. These signals can vary from engine status, distance traveled, fuel 139 level, and more. Customers are billed based on the consumption monitored by these sensors. You expect high throughput - up to thousands of events per hour per device - and need to retrieve consistent data based on the time of the event. Storing and retrieving individual signals should be atomic. What should you do? 140 You are asked to set up application performance monitoring on Google Cloud projects A, B, and C as a single pane of glass. You want to monitor CPU, memory, and disk. What should you do? You created several resources in multiple Google Cloud projects. All projects are linked to 141 different billing accounts. To better estimate future charges, you want to have a single visual representation of all costs incurred. You want to include new cost data as soon as possible. What should you do? Your company has workloads running on Compute Engine and on-premises. The Google Cloud 142 Virtual Private Cloud (VPC) is connected to your WAN over a Virtual Private Network (VPN). You need to deploy a new Compute Engine instance and ensure that no public Internet traffic can be routed to it. What should you do? Your team maintains the infrastructure for your organization. The current infrastructure requires 143 changes. You need to share your proposed changes with the rest of the team. You want to follow Google's recommended best practices. What should you do? You have a Compute Engine instance hosting an application used between 9 AM and 6 PM on 144 weekdays. You want to back up this instance daily for disaster recovery purposes. You want to keep the backups for 30 days. You want the Google-recommended solution with the least management overhead and the least number of services. What should you do? Your existing application running in Google Kubernetes Engine (GKE) consists of multiple pods 145 running on four GKE n1-standard-2 nodes. You need to deploy additional pods requiring n2- highmem-16 nodes without any downtime. What should you do? You have an application that uses Cloud Spanner as a database backend to keep current state information about users. Cloud Bigtable logs all events triggered by users. You export Cloud 146 Spanner data to Cloud Storage during daily backups. One of your analysts asks you to join data from Cloud Spanner and Cloud Bigtable for specific users. You want to complete this ad hoc request as efficiently as possible. What should you do? You are hosting an application from Compute Engine Virtual Machines (VMs) in us-central1-a. You 147 want to adjust your design to support the failure of a single Compute Engine zone, eliminate downtime, and minimize cost. What should you do? A colleague handed over a Google Cloud Platform project for you to maintain. As part of a 148 security checkup, you want to review who has been granted the Project Owner role. What should you do? 14 / 70 GCP_ACE_v1.1.0.md 2023-11-02 No. Questions You are running multiple VPC-native Google Kubernetes Engine clusters in the same subnet. The 149 IPs available for the nodes are exhausted, and you want to ensure that the clusters can grow in nodes when needed. What should you do? You have a batch workload that runs every night and uses a large number of Virtual Machines 150 (VMs). It is fault-tolerant and can tolerate some of the VMs being terminated. The current cost of VMs is too high. What should you do? You are working with a user to set up an application in a new VPC behind a firewall. The user is 151 concerned about data egress. You want to configure the fewest open egress ports. What should you do? Your company runs its Linux workloads on Compute Engine instances. Your company will be 152 working with a new operations partner that does not use Google Accounts. You need to grant access to the instances to your operations partner so they can maintain the installed tooling. What should you do? 153 You have created a code snippet that should be triggered whenever a new file is uploaded to a Cloud Storage bucket. You want to deploy this code snippet. What should you do? You have been asked to set up Object Lifecycle Management for objects stored in storage 154 buckets. The objects are written once and accessed frequently for 30 days. After 30 days, the objects are not read again unless there is a special need. The objects should be kept for three years, and you need to minimize cost. What should you do? You are storing sensitive information in a Cloud Storage bucket. For legal reasons, you need to be 155 able to record all requests that read any of the stored data. You want to make sure you comply with these requirements. What should you do? You are the team lead of a group of 10 developers. You provided each developer with an 156 individual Google Cloud Project that they can use as their personal sandbox to experiment with different Google Cloud solutions. You want to be notified if any of the developers are spending above $500 per month on their sandbox environment. What should you do? 157 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? Your company uses a large number of Google Cloud services centralized in a single project. All teams have specific projects for testing and development. The DevOps team needs access to all 158 of the production services in order to perform their job. You want to prevent Google Cloud product changes from broadening their permissions in the future. You want to follow Google- recommended practices. What should you do? You are building an application that processes data files uploaded from thousands of suppliers. Your primary goals for the application are data security and the expiration of aged data. You need 159 toGivedesign the application to: Restrict access so that suppliers can access only their own data. suppliers write access to data only for 30 minutes. Delete data that is over 45 days old. You have a very short development cycle, and you need to make sure that the application requires minimal maintenance. Which two strategies should you use? (Choose two.) 15 / 70 GCP_ACE_v1.1.0.md 2023-11-02 No. Questions Your company wants to standardize the creation and management of multiple Google Cloud 160 resources using Infrastructure as Code. You want to minimize the amount of repetitive code needed to manage the environment. What should you do? 161 You are performing a monthly security check of your Google Cloud environment and want to know who has access to view data stored in your Google Cloud Project. What should you? Your company has embraced a hybrid cloud strategy where some of the applications are deployed on Google Cloud. A Virtual Private Network (VPN) tunnel connects your Virtual Private 162 Cloud (VPC) in Google Cloud with your company's on-premises network. Multiple applications in Google Cloud need to connect to an on-premises database server, and you want to avoid having to change the IP configuration in all of your applications when the IP of the database changes. What should you do? You have developed a containerized web application that will serve internal colleagues during 163 business hours. You want to ensure that no costs are incurred outside of the hours the application is used. You have just created a new Google Cloud project and want to deploy the application. What should you do? You have experimented with Google Cloud using your own credit card and expensed the costs to 164 your company. Your company wants to streamline the billing process and charge the costs of your projects to their monthly invoice. What should you do? You are running a data warehouse on BigQuery. A partner company is offering a recommendation engine based on the data in your data warehouse. The partner company is also running their 165 application on Google Cloud. They manage the resources in their own project, but they need access to the BigQuery dataset in your project. You want to provide the partner company with access to the dataset. What should you do? Your web application has been running successfully on Cloud Run for Anthos. You want to 166 evaluate an updated version of the application with a specific percentage of your production users (canary deployment). What should you do? Your company developed a mobile game that is deployed on Google Cloud. Gamers are connecting to the game with their personal phones over the Internet. The game sends UDP 167 packets to update the servers about the gamers' actions while they are playing in multiplayer mode. Your game backend can scale over multiple Virtual Machines (VMs), and you want to expose the VMs over a single IP address. What should you do? You are working for a hospital that stores its medical images in an on-premises data room. The 168 hospital wants to use Cloud Storage for archival storage of these images. The hospital wants an automated process to upload any new medical images to Cloud Storage. You need to design and implement a solution. What should you do? Your auditor wants to view your organization's use of data in Google Cloud. The auditor is most 169 interested in auditing who accessed data in Cloud Storage buckets. You need to help the auditor access the data they need. What should you do? 16 / 70 GCP_ACE_v1.1.0.md 2023-11-02 No. Questions You received a JSON file that contained a private key of a Service Account in order to get access 170 towant several resources in a Google Cloud project. You downloaded and installed the Cloud SDK and to use this private key for authentication and authorization when performing gcloud commands. What should you do? 171 You are working with a Cloud SQL MySQL database at your company. You need to retain a month- end copy of the database for three years for audit purposes. What should you do? You are monitoring an application and receive user feedback that a specific error is spiking. You 172 notice that the error is caused by a Service Account having insufficient permissions. You are able to solve the problem but want to be notified if the problem recurs. What should you do? You are developing a financial trading application that will be used globally. Data is stored and queried using a relational structure, and clients from all over the world should get the exact 173 identical state of the data. The application will be deployed in multiple regions to provide the lowest latency to end users. You need to select a storage option for the application data while minimizing latency. What should you do? You are about to deploy a new Enterprise Resource Planning (ERP) system on Google Cloud. The 174 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? You have developed an application that consists of multiple microservices, with each 175 microservice packaged in its own Docker container image. You want to deploy the entire application on Google Kubernetes Engine so that each microservice can be scaled individually. What should you do? You will have several applications running on different Compute Engine instances in the same 176 project. You want to specify at a more granular level the service account each instance uses when calling Google Cloud APIs. What should you do? You are creating an application that will run on Google Kubernetes Engine. You have identified 177 MongoDB as the most suitable database system for your application and want to deploy a managed MongoDB environment that provides a support SLA. What should you do? You are managing a project for the Business Intelligence (BI) department in your company. A data 178 pipeline ingests data into BigQuery via streaming. You want the users in the BI department to be able to run the custom SQL queries against the latest data in BigQuery. What should you do? Your company is moving its entire workload to Compute Engine. Some servers should be accessible through the Internet, and other servers should only be accessible over the internal 179 network. All servers need to be able to talk to each other over specific ports and protocols. The current on-premises network relies on a demilitarized zone (DMZ) for the public servers and a Local Area Network (LAN) for the private servers. You need to design the networking infrastructure on Google Cloud to match these requirements. What should you do? 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? 17 / 70 GCP_ACE_v1.1.0.md 2023-11-02 Use granular logging statements within a Deployment Manager template authored in Python. Monitor activity of the Deployment Manager execution on the Stackdriver Logging page of the GCP Console. Execute the Deployment Manager template against a separate project with the same configuration, and monitor for failures. Execute the Deployment Manager template using the C-preview option in the same project, and observe the state of interdependent resources. ⬆ Back to Top 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? 18 / 70 GCP_ACE_v1.1.0.md 2023-11-02 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. 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. 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. 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. ⬆ Back to Top 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? Export your bill to a Cloud Storage bucket, and then import into Cloud Bigtable for analysis. Export your bill to a Cloud Storage bucket, and then import into Google Sheets for analysis. Export your transactions to a local file, and perform analysis with a desktop tool. Export your bill to a BigQuery dataset, and then write time window-based SQL queries for analysis. ⬆ Back to Top 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? Enable the Cloud Pub/Sub API in the API Library on the GCP Console. Rely on the automatic enablement of the Cloud Pub/Sub API when the Service Account accesses it. Use Deployment Manager to deploy your application. Rely on the automatic enablement of all APIs used by the application being deployed. 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. ⬆ Back to Top 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. Deploy the new version in the same application and use the –-migrate option. 19 / 70 GCP_ACE_v1.1.0.md 2023-11-02 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. 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. 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. ⬆ Back to Top 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. Create an export to the sink that saves logs from Cloud Audit to BigQuery. Create an export to the sink that saves logs from Cloud Audit to a Coldline Storage bucket. Write a custom script that uses logging API to copy the logs from Stackdriver logs to BigQuery. Export these logs to Cloud Pub/Sub and write a Cloud Dataflow pipeline to store logs to Cloud SQL. ⬆ Back to Top 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? Add the support team group to the roles/monitoring.viewer role. Add the support team group to the roles/spanner.databaseUser role. Add the support team group to the roles/spanner.databaseReader role. Add the support team group to the roles/stackdriver.accounts.viewer role. ⬆ Back to Top 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? Create a Cloud Memorystore for Redis instance with 32-GB capacity. Run it on Compute Engine, and choose a custom instance type with 6 vCPUs and 32 GB of memory. Package it in a container image, and run it on Kubernetes Engine, using n1-standard-32 instances as nodes. Run it on Compute Engine, choose the instance type n1-standard-1, and add an SSD persistent disk of 32 GB. ⬆ Back to Top 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 20 / 70 GCP_ACE_v1.1.0.md 2023-11-02 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? Create a Google Kubernetes Engine cluster, and use horizontal pod autoscaling to scale the application. Create an instance template, and use the template in a Managed Instance Group with autoscaling configured. Create an instance template, and use the template in a Managed Instance Group that scales up and down based on the time of day. Use a set of third-party tools to build automation around scaling the application up and down, based on Stackdriver CPU usage monitoring. ⬆ Back to Top 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? Create a service account with an access scope. Use the access scope 'https://www.googleapis.com/auth/devstorage.write_only'. Create a service account with an access scope. Use the access scope 'https://www.googleapis.com/auth/cloud-platform'. Create a service account and add it to the IAM role 'storage.objectCreator' for that bucket. Create a service account and add it to the IAM role 'storage.objectAdmin' for that bucket. ⬆ Back to Top 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? Create a signed URL with a four-hour expiration and share the URL with the company. Set object access to 'public' and use object lifecycle management to remove the object after four hours. 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. 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. ⬆ Back to Top 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? Create a health check on port 443 and use that when creating the Managed Instance Group. Select Multi-Zone instead of Single-Zone when creating the Managed Instance Group. 21 / 70 GCP_ACE_v1.1.0.md 2023-11-02 In the Instance Template, add the label 'health-check'. In the Instance Template, add a startup script that sends a heartbeat to the metadata server. ⬆ Back to Top 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? Set autoscaling to On, set the minimum number of instances to 1, and then set the maximum number of instances to 1. Set autoscaling to Off, set the minimum number of instances to 1, and then set the maximum number of instances to 1. Set autoscaling to On, set the minimum number of instances to 1, and then set the maximum number of instances to 2. Set autoscaling to Off, set the minimum number of instances to 1, and then set the maximum number of instances to 2. ⬆ Back to Top 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? Create a single custom VPC with 2 subnets. Create each subnet in a different region and with a different CIDR range. Create a single custom VPC with 2 subnets. Create each subnet in the same region and with the same CIDR range. Create 2 custom VPCs, each with a single subnet. Create each subnet is a different region and with a different CIDR range. Create 2 custom VPCs, each with a single subnet. Create each subnet in the same region and with the same CIDR range. ⬆ Back to Top 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? Configure an HTTP(S) load balancer. Configure an internal TCP load balancer. Configure an external SSL proxy load balancer. Configure an external TCP proxy load balancer. ⬆ Back to Top 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. 22 / 70 GCP_ACE_v1.1.0.md 2023-11-02 You want to ensure that the available capacity does not decrease during the deployment. What should you do? Perform a rolling-action start-update with maxSurge set to 0 and maxUnavailable set to 1. Perform a rolling-action start-update with maxSurge set to 1 and maxUnavailable set to 0. 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. 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. ⬆ Back to Top 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? Run gcloud iam roles describe roles/spanner.databaseUser. Add the users to the role. Run gcloud iam roles describe roles/spanner.databaseUser. Add the users to a new group. Add the group to the role. Run gcloud iam roles describe roles/spanner.viewer –project my-project. Add the users to the role. Run gcloud iam roles describe roles/spanner.viewer –project my-project. Add the users to a new group. Add the group to the role. ⬆ Back to Top You need to create a new billing account and then link it with an existing Google Cloud Platform project. What should you do? Verify that you are Project Billing Manager for the GCP project. Update the existing project to link it to the existing billing account. 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. Verify that you are Billing Administrator for the billing account. Create a new project and link the new project to the existing billing account. Verify that you are Billing Administrator for the billing account. Update the existing project to link it to the existing billing account. ⬆ Back to Top 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? Using the GCP Console, filter the Activity log to view the information. Using the GCP Console, filter the Stackdriver log to view the information. View the bucket in the Storage section of the GCP Console. Create a trace in Stackdriver to view the information. 23 / 70 GCP_ACE_v1.1.0.md 2023-11-02 ⬆ Back to Top 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? Arrange to switch to Flat-Rate pricing for this query, then move back to on-demand. 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. 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. 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. ⬆ Back to Top 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? Use Shared VPC to connect all projects, and link Stackdriver to one of the projects. 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. Configure a single Stackdriver account, and link all projects to the same account. 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. ⬆ Back to Top 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? Deployment Manager. Cloud Composer. Managed Instance Group. Unmanaged Instance Group. ⬆ Back to Top 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? Install a RDP client on your desktop. Verify that a firewall rule for port 3389 exists. 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. 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. 24 / 70 GCP_ACE_v1.1.0.md 2023-11-02 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. ⬆ Back to Top 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? Assign the finance team only the Billing Account User role on the billing account. Assign the engineering team only the Billing Account User role on the billing account. Assign the finance team the Billing Account User role on the billing account and the Project Billing Manager role on the organization. Assign the engineering team the Billing Account User role on the billing account and the Project Billing Manager role on the organization. ⬆ Back to Top 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? Deploy the monitoring pod in a StatefulSet object. Deploy the monitoring pod in a DaemonSet object. Reference the monitoring pod in a Deployment object. Reference the monitoring pod in a cluster initializer at the GKE cluster creation time. ⬆ Back to Top 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? Enable the Node Auto-Repair feature for your GKE cluster. Enable the Node Auto-Upgrades feature for your GKE cluster. Select the latest available cluster version for your GKE cluster. Select 'Container-Optimized OS (cos)' as a node image for your GKE cluster. ⬆ Back to Top 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? Multi-Regional Storage. Regional Storage. Nearline Storage. Coldline Storage. 25 / 70 GCP_ACE_v1.1.0.md 2023-11-02 ⬆ Back to Top 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? 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). 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. Use gsutil rewrite and set the Delete action to 275 days (365-90). Use gsutil rewrite and set the Delete action to 365 days. ⬆ Back to Top 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? Link the acquired company's projects to your company's billing account. Configure the acquired company's billing account and your company's billing account to export the billing data into the same BigQuery dataset. Migrate the acquired company's projects into your company's GCP organization. Link the migrated projects to your company's billing account. 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. ⬆ Back to Top 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? 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. 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. Create an instance group for the instances. Set the 'Autohealing' health check to healthy (HTTP). Create an instance group for the instance. Verify that the 'Advanced creation options' setting for 'do not retry machine creation' is set to off. ⬆ Back to Top 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 26 / 70 GCP_ACE_v1.1.0.md 2023-11-02 possible steps. What should you do? Use gcloud iam roles copy and specify the production project as the destination project. Use gcloud iam roles copy and specify your organization as the destination organization. In the Google Cloud Platform Console, use the 'create role from role' functionality. In the Google Cloud Platform Console, use the 'create role' functionality and select all applicable permissions. ⬆ Back to Top 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? Use gcloud config configurations describe to review the output. Use gcloud config configurations activate and gcloud config list to review the output. Use kubectl config get-contexts to review the output. Use kubectl config use-context and kubectl config view to review the output. ⬆ Back to Top You need to configure IAM access audit logging in BigQuery for external auditors. You want to follow Google-recommended practices. What should you do? Add the auditors group to the 'logging.viewer' and 'bigQuery.dataViewer' predefined IAM roles. Add the auditors group to two new custom IAM roles. Add the auditor user accounts to the 'logging.viewer' and 'bigQuery.dataViewer' predefined IAM roles. Add the auditor user accounts to two new custom IAM roles. ⬆ Back to Top 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? 0.0.0.0/0. 10.0.0.0/8. 172.16.0.0/12. 192.168.0.0/16. ⬆ Back to Top 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? Run gcloud app restore. On the App Engine page of the GCP Console, select the application that needs to be reverted and click Revert. On the App Engine Versions page of the GCP Console, route 100% of the traffic to the previous version. 27 / 70 GCP_ACE_v1.1.0.md 2023-11-02 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. ⬆ Back to Top 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? Create an HTTP load balancer with a backend configuration that references an existing instance group. Set the health check to healthy (HTTP). 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. Create a Managed Instance Group. Set the Autohealing health check to healthy (HTTP). Create a Managed Instance Group. Verify that the autoscaling setting is on. ⬆ Back to Top 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? When creating the VM via the web console, specify the service account under the 'Identity and API Access' section. 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. 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. 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. ⬆ Back to Top 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? Download the private key from the service account, and add it to each VMs custom metadata. Download the private key from the service account, and add the private key to each VM's SSH keys. Grant the service account the IAM role of Compute Storage Admin in the project called proj-vm. When creating the VMs, set the service account's API scope for Compute Engine to read/write. ⬆ Back to Top 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? 28 / 70 GCP_ACE_v1.1.0.md 2023-11-02 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. Create two configurations using gcloud config configurations create [NAME]. Run gcloud configurations list to start the Compute Engine instances. Activate two configurations using gcloud configurations activate [NAME]. Run gcloud config list to start the Compute Engine instances. Activate two configurations using gcloud configurations activate [NAME]. Run gcloud configurations list to start the Compute Engine instances. ⬆ Back to Top 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? 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. 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. 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. 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. ⬆ Back to Top 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? Deploy the container on Cloud Run. Deploy the container on Cloud Run on GK. Deploy the container on App Engine Flexible. Deploy the container on Google Kubernetes Engine, with cluster autoscaling and horizontal pod autoscaling enabled. ⬆ Back to Top 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? Download and deploy the Jenkins Java WAR to App Engine Standard. Create a new Compute Engine instance and install Jenkins through the command line interface. 29 / 70 GCP_ACE_v1.1.0.md 2023-11-02 Create a Kubernetes cluster on Compute Engine and create a deployment with the Jenkins Docker image. Use GCP Marketplace to launch the Jenkins solution. ⬆ Back to Top 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? Cloud SQL. Cloud Spanner. Cloud Firestore. Cloud Datastore. ⬆ Back to Top 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. Add the cluster's API as a new Type Provider in Deployment Manager, and use the new type to create the DaemonSet. Use the Deployment Manager Runtime Configurator to create a new Config resource that contains the DaemonSet definition. With Deployment Manager, create a Compute Engine instance with a startup script that uses kubectl to create the DaemonSet. In the cluster's definition in Deployment Manager, add a metadata that has kube-system as key and the DaemonSet manifest as value. ⬆ Back to Top 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? Rely on live migration to move the workload to a machine with more memory. Use gcloud to add metadata to the V. Set the key to required-memory-size and the value to 8 GB. Stop the VM, change the machine type to n1-standard-8, and start the VM. Stop the VM, increase the memory to 8 GB, and start the VM. ⬆ Back to Top 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? Change the default region property setting in the existing GCP project to asia-northeast1. 30 / 70 GCP_ACE_v1.1.0.md 2023-11-02 Change the region property setting in the existing App Engine application from us-central to asia- northeast1. Create a second App Engine application in the existing GCP project and specify asia-northeast1 as the region to serve your application. 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. ⬆ Back to Top 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? Contact [email protected] with your bank account details and request a corporate billing account for your company. Create a ticket with Google Support and wait for their call to share your credit card details over the phone. In the Google Platform Console, go to the Resource Manage and move all projects to the root Organization. In the Google Cloud Platform Console, create a new billing account and set up a payment method. ⬆ Back to Top You have a Dockerfile that you need to deploy on Kubernetes Engine. What should you do? Use kubectl app deploy. Use gcloud app deploy. 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. 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. ⬆ Back to Top 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? Use gcloud to create the new project, and then deploy your application to the new project. Use gcloud to create the new project and to copy the deployed application to the new project. Create a Deployment Manager configuration file that copies the current App Engine deployment into a new project. Deploy your application again using gcloud and specify the project parameter with the new project name to create the new project. ⬆ Back to Top 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 31 / 70 GCP_ACE_v1.1.0.md 2023-11-02 access to AutoML. You need to enable authentication to the APIs from your on-premises environment. What should you do? Use service account credentials in your on-premises application. Use gcloud to create a key file for the service account that has appropriate permissions. Set up direct interconnect between your data center and Google Cloud Platform to enable authentication for your on-premises applications. 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. ⬆ Back to Top You host a static website on Cloud Storage. Recently, you began to include links to PDF files on this site. Currently, when users click on the links to these PDF files, their browsers prompt them to save the file onto their local system. Instead, you want the clicked PDF files to be displayed within the browser window directly, without prompting the user to save the file locally. What should you do? Enable Cloud CDN on the website frontend. Enable 'Share publicly' on the PDF file objects. Set Content-Type metadata to application/pdf on the PDF file objects. Add a label to the storage bucket with a key of Content-Type and value of application/pdf. ⬆ Back to Top You have an application that looks for its licensing server on the IP 10.0.3.21. You need to deploy the licensing server on Compute Engine. You do not want to change the configuration of the application and want the application to be able to reach the licensing server. What should you do? Reserve the IP 10.0.3.21 as a static internal IP address using gcloud and assign it to the licensing server. Reserve the IP 10.0.3.21 as a static public IP address using gcloud and assign it to the licensing server. Use the IP 10.0.3.21 as a custom ephemeral IP address and assign it to the licensing server. Start the licensing server with an automatic ephemeral IP address, and then promote it to a static internal IP address. ⬆ Back to Top You are deploying an application to App Engine. You want the number of instances to scale based on request rate. You need at least 3 unoccupied instances at all times. Which scaling type should you use? Manual Scaling with 3 instances. Basic Scaling with min_instances set to 3. Basic Scaling with max_instances set to 3. Automatic Scaling with min_idle_instances set to 3. ⬆ Back to Top 32 / 70 GCP_ACE_v1.1.0.md 2023-11-02 You are the project owner of a GCP project and want to delegate control to colleagues to manage buckets and files in Cloud Storage. You want to follow Google-recommended practices. Which IAM roles should you grant your colleagues? Project Editor. Storage Admin. Storage Object Admin. Storage Object Creator. ⬆ Back to Top You need to update a deployment in Deployment Manager without any resource downtime in the deployment. Which command should you use? gcloud deployment-manager deployments create –config. gcloud deployment-manager deployments update –config. gcloud deployment-manager resources create –config. gcloud deployment-manager resources update –config. ⬆ Back to Top You are running an application on multiple Virtual Machines within a Managed Instance Group and have autoscaling enabled. The autoscaling policy is configured so that additional instances are added to the group if the CPU utilization of instances goes above 80%. VMs are added until the instance group reaches its maximum limit of five VMs or until CPU utilization of instances lowers to 80%. The initial delay for HTTP health checks against the instances is set to 30 seconds. The Virtual Machine instances take around three minutes to become available for users. You observe that when the instance group autoscales, it adds more instances then necessary to support the levels of end-user traffic. You want to properly maintain instance group sizes when autoscaling. What should you do? Set the maximum number of instances to 1. Decrease the maximum number of instances to 3. Use a TCP health check instead of an HTTP health check. Increase the initial delay of the HTTP health check to 200 seconds. ⬆ Back to Top You have 32 GB of data in a single file that you need to upload to a Nearline Storage bucket. The WAN connection you are using is rated