🎧 New: AI-Generated Podcasts Turn your study notes into engaging audio conversations. Learn more

GCP-ACE Exam_05012024266M.pdf

Loading...
Loading...
Loading...
Loading...
Loading...
Loading...
Loading...

Document Details

RealizableAgate9163

Uploaded by RealizableAgate9163

Tags

cloud computing google cloud compute engine

Full Transcript

xmexam.taobao.com Topic 1 Question#1Topic1: Every employee of your company has a Google account. Your operational team needs to manage a large number of instances o...

xmexam.taobao.com Topic 1 Question#1Topic1: 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 in who accessed a given instance. What should you do? m/ A. Generate a new SSH key pair. Give the private key to each member er of your yo team. Configure co the public key in the metadata of each instance. o. B. Ask each member of the team to generate a new SSH key pair air and an to send you their public key. Use a configuration management tool to deploy those keys eys on each instance. ba C. Ask each member of the team to generate a new SSH H key pair pa and to add the public key to their Google account. Grant the ‫ג‬€compute.osAdminLogin‫ג‬€ ao Login‫ג‬€ role to the Google group corresponding to this team..t D. Generate a new SSH key pair. Give the private keye to each member of your team. Configure the public key as a project-wide public SSH key in your Cloud Platform project and allow am project-wide public SSH keys on each instance. stance. ex Correct Answer: C xm https://cloud.google.com/compute/docs/instances/managing-instance-access e/docs/ins // Question #2 Topic 1 s: Question#2Topic1: You need ed to create a custom VPC with a single subnet. The subnet's poss range must be as large as possible. Which range should you use? tp A. 0.0.0.0/0 ht B. 10.0.0.0/8 /8 C. 172.16.0.0/12 D. 192.168.0.0/16 Correct Answer: B B is correct. Pay attention to the question, is talking about custom VPC subnet and is not mentioning you will use automatic subnet mode creation. If you set subnet to custom, the minimum size is /8. Question #3 Topic 1 Question#3Topic1: You want to select and configure a cost-effective solution for relational data on Google Cloud 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? 1/110 xmexam.taobao.com A. Select Cloud SQL (MySQL). Verify that the enable binary logging option is selected. B. Select Cloud SQL (MySQL). Select the create failover replicas option. C. Select Cloud Spanner. Set up your instance with 2 nodes. D. Select Cloud Spanner. Set up your instance as multi-regional. Correct Answer: A Reference: https://cloud.google.com/sql/docs/mysql/backup-recovery/restore Question #4 Topic 1 Question#4Topic1: You want to configure autohealing for network load balancing for a os group of Compute Engine instances that run in multiple zones, using the fewest possible steps. o 10 seconds You need to configure re-creation of VMs if they are unresponsive after 3 attempts of / each. What should you do? om A. Create an HTTP load balancer with a backend configuration that references efer an existing.c instance group. Set the health check to healthy (HTTP) B. Create an HTTP load balancer with a backend configurationon that references an existing ao ximum RPS to 10. instance group. Define a balancing mode and set the maximum ob C. Create a managed instance group. Set the Autohealingng health he check to healthy (HTTP) D. Create a managed instance group. Verify that the he autoscaling auto setting is on. ta Correct Answer: C m. reference : https://cloud.google.com/compute/docs/tutorials/high-availability-autohealing docs/tu Pro Tip: Use xa separate health checks for load balancing and nd for autohealing. Health checks for load balancing me detect unresponsive instances and direct ct traffic away from them. Health checks for autohealing detect and recreate failed instances,s, so they the should be less aggressive than load balancing health /x checks. Using the same health checkheck for fo these services would remove the distinction between iled instances, unresponsive instances and failed i causing unnecessary latency and unavailability for your / s: users. Question #5 tp Topic 1 pic1: Yo Question#5Topic1: You are using multiple configurations for gcloud. You want to review ht the configured Kubernetes ubern 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. Correct Answer: D Reference: https://medium.com/google-cloud/kubernetes-engine-kubectl-config-b6270d2b656c Question #6 2/110 xmexam.taobao.com Question#6Topic1: Your company uses Cloud Storage to store application backup files for disaster recovery purposes. You want to follow Google's recommended practices. Which Topic 1 storage option should you use? A. Multi-Regional Storage B. Regional Storage C. Nearline Storage D. Coldline Storage Correct Answer: D Reference: https://cloud.google.com/storage/docs/storage-classes#nearline Question #7 / Topic 1 om Question#7Topic1: Several employees at your company have been creating projects proje with com Cloud Platform and paying for it with their personal credit cards, which the company reimburses. The.c company wants to centralize all these projects under a single, new billing ling account. a What should you do? ao ob A. Contact [email protected] with your bank account count details d and request a corporate billing account for your company. ta B. Create a ticket with Google Support and wait forr their call to share your credit card details over the phone. m. C. In the Google Platform Console, go to the he Resource Reso Manage and move all projects to the xa root Organizarion. D. In the Google Cloud Platform Console, nsole, create c a new billing account and set up a payment me method. /x Correct Answer: C / nt for the organization and all projects under that organization are linked there will be 1 billing account s: to single billing account. tp Question #8 Topic 1 ht Question#8Topic1:pic1: YYou have an application that looks for its licensing server on the IP 10.0.3.21. You need d 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? A. Reserve the IP 10.0.3.21 as a static internal IP address using gcloud and assign it to the licensing server. B. Reserve the IP 10.0.3.21 as a static public IP address using gcloud and assign it to the licensing server. C. Use the IP 10.0.3.21 as a custom ephemeral IP address and assign it to the licensing server. D. Start the licensing server with an automatic ephemeral IP address, and then promote it to a static internal IP address. 3/110 xmexam.taobao.com Correct Answer: A Question #9 Topic 1 Question#9Topic1: 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? A. Manual Scaling with 3 instances. B. Basic Scaling with min_instances set to 3. C. Basic Scaling with max_instances set to 3. D. Automatic Scaling with min_idle_instances set to 3. Correct Answer: D / Reference: om are-ma https://cloud.google.com/appengine/docs/standard/python/how-instances-are-managed.c Question #10 Topic 1 ao propriate IAM roles defined. Question#10Topic1: You have a development project with appropriate me IAM You are creating a production project and want to have the same IA roles on the new project, using the fewest possible steps. What should you do? ob ta A. Use gcloud iam roles copy and specify the production ctio project as the destination project. m. B. Use gcloud iam roles copy and specify your ur organization orga as the destination organization. C. In the Google Cloud Platform Console,, use the th 'create role from role' functionality. xa D. In the Google Cloud Platform Console, ole, use us the 'create role' functionality and select all applicable permissions. me /x Correct Answer: A / A is correct because the gcloudd iam roles copy command is used to copy IAM roles from one project s: cause the requirement here is to copy roles to another project and not the to another. B is incorrect because whole organization. tp Question #11 Topic 1 ht Question#11Topic1: ic1: 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 Correct Answer: A A is correct because the deployment manager is the Infrastructure as code tool for GCP. Google Cloud Deployment Manager allows you to specify all the resources needed for your application using 4/110 xmexam.taobao.com yaml syntax. Question #12 Topic 1 Question#12Topic1: You have a Dockerfile that you need to deploy on Kubernetes Engine. What should you do? A. Use kubectl app deploy. B. Use gcloud app deploy. 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 y with that file. / om Correct Answer: C.c Reference - p https://cloud.google.com/kubernetes-engine/docs/tutorials/hello-app ao Question #13 ob Topic 1 Question#13Topic1: Your development team needs a new w Jenkins Jenk server for their project. ta ossible What should you do? You need to deploy the server using the fewest steps possible. m. A. Download and deploy the Jenkins Java WAR to App Engine Standard. B. Create a new Compute Engine instancece and install Jenkins through the command line xa interface. me C. Create a Kubernetes cluster on n Compute Comp Engine and create a deployment with the Jenkins Docker image. /x D. Use GCP Marketplace too launch the Jenkins solution. / Correct Answer: D s: Reference: tp.com/s https://cloud.google.com/solutions/using-jenkins-for-distributed-builds-on-compute-engine ht Question #14 Topic 1 Question#14Topic1: You need to update a deployment in Deployment Manager without any resource downtime in the deployment. Which command should you use? A. gcloud deployment-manager deployments create --config B. gcloud deployment-manager deployments update --config C. gcloud deployment-manager resources create --config D. gcloud deployment-manager resources update --config Correct Answer: B 5/110 xmexam.taobao.com Reference: https://cloud.google.com/sdk/gcloud/reference/deployment-manager/deployments/update Question #15 Topic 1 Question#15Topic1: 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 willll look loo through. Then / convert that number of rows to dollars using the Pricing Calculator. om Correct Answer: B.c Reference: ao https://cloud.google.com/bigquery/docs/estimate-costs ob Question #16 Topic 1 ta Question#16Topic1: You have a single binary application on that tha you want to run on Google a Cloud Platform. You decided to automatically scale the application based on underlying infrastructure m. CPU usage. Your organizational policies require you to use virtual machines directly. You need to xa ensure that the application scaling is operationally nally efficient e and completed as quickly as possible. What should you do? me A. Create a Google Kubernetes es Engine Engin cluster, and use horizontal pod autoscaling to scale the /x application. B. Create an instance template, mplat and use the template in a managed instance group with / s: autoscaling configured. d. C. Create an instance tance template, tem and use the template in a managed instance group that scales tp up and down based on the time of day. D. Use a set of thi third-party tools to build automation around scaling the application up and ht down, based d on Stackdriver CPU usage monitoring. Correct Answer: B Question #17 Topic 1 Question#17Topic1: 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. 6/110 xmexam.taobao.com D. Export your bill to a BigQuery dataset, and then write time window-based SQL queries for analysis. Correct Answer: D Question #18 Topic 1 Question#18Topic1: 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 conditionss with om SetStorageClass and Delete actions. Set the SetStorageClass action to 90 days da and the Delete action to 365 days..c C. Use gsutil rewrite and set the Delete action to 275 days (365-90). 90). D. Use gsutil rewrite and set the Delete action to 365 days. ao ob Correct Answer: B ta There should be no reason to recalculate the time needed ed to delete d after a year. Question #19 m. Topic 1 Question#19Topic1: You have a Linux VM thatt must connect to Cloud SQL. You created a xa service account with the appropriate accesss rights. rights You want to make sure that the VM uses this service account instead of the default Compute ompute Engine service account. What should you do? me /x A. When creating the VM via ia 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 s: JSON as the value for the key compute-engine-service- account. C. Download a JSON SON Private P Key for the service account. On the Custom Metadata of the VM, tp add that JSON N as the th value for the key compute-engine- service-account. ht D. Download oad a JSON J Private Key for the service account. After creating the VM, ssh into the VM and save the t JSON under ~/.gcloud/compute-engine-service- account.json. Correct Answer: A Reference: https://cloud.google.com/compute/docs/access/create-enable-service-accounts-for-instances Question #20 Topic 1 Question#20Topic1: 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? 7/110 xmexam.taobao.com 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. Correct Answer: B Reference: https://medium.com/falafel-software/sql-server-in-the-google-cloud-a17e8a1f11ce Question #21 / Topic 1 om egion and Question#21Topic1: You have one GCP account running in your default region a zone o start and another account running in a non-default region and zone. You want to sta a new.c Compute Engine instance in these two Google Cloud Platform accountsnts using us the command line ao interface. What should you do? ob A. Create two configurations using gcloud config configurations uratio create [NAME]. Run gcloud tween accounts config configurations activate [NAME] to switch between a when running the ta commands to start the Compute Engine instances. m. B. Create two configurations using gcloud config nfig configurations co create [NAME]. Run gcloud ngine instances. configurations list to start the Compute Engine in xa C. Activate two configurations using gcloud cloud configurations co activate [NAME]. Run gcloud config tances list to start the Compute Engine instances. me D. Activate two configurations using gcloud gc configurations activate [NAME]. Run gcloud /x configurations list to start the he Compute Compu Engine instances. / Correct Answer: A s: Question #22 tp Topic 1 Question#22Topic1: opic1: YYou significantly changed a complex Deployment Manager template ht and want to confirmrm that th 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 ‫ג‬€"-preview option in the same project, and observe the state of interdependent resources. Correct Answer: D 8/110 xmexam.taobao.com Reference: https://cloud.google.com/deployment-manager/docs/deployments/updating-deployments Question #23 Topic 1 Question#23Topic1: 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? m / /x A. Cloud Pub/Sub, Cloud Dataflow, Data Cloud Datastore, BigQuery s: B. Firebase Messages,s, Cloud Clou Pub/Sub, Cloud Spanner, BigQuery C. Cloud Pub/Sub, ub, Cloud Storage, BigQuery, Cloud Bigtable tp D. Cloud Pub/Sub, /Sub, Cloud Clo Dataflow, Cloud Bigtable, BigQuery ht Correct Answer: D Reference: https://cloud.google.com/solutions/correlating-time-series-dataflow Question #24 Topic 1 Question#24Topic1: 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. 9/110 xmexam.taobao.com 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. Correct Answer: A Question #25 Topic 1 Question#25Topic1: 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 p IAM roles. / B. Add the auditors group to two new custom IAM roles. om C. Add the auditor user accounts to the 'logging.viewer' and 'bigQuery.dataViewer' ataVie predefined IAM roles..c D. Add the auditor user accounts to two new custom IAM roles. ao Correct Answer: A ob As per google best practices it is recommended to use predefined defined roles and create groups to control ta access to multiple users with same responsibility Question #26 m. Topic 1 Question#26Topic1: You need to set up permissions issions for a set of Compute Engine xa instances to enable them to write data into a particular partic Cloud Storage bucket. You want to follow Google-recommended practices. What shouldhould you y do? me /x A. Create a service accountt with an access scope. Use the access scope m/aut 'https://www.googleapis.com/auth/devstorage.write_only'. / B. Create a service account count with w an access scope. Use the access scope s: apis.co 'https://www.googleapis.com/auth/cloud-platform'. C. Create a service ice acc account and add it to the IAM role 'storage.objectCreator' for that bucket. tp D. Create a service ervice a account and add it to the IAM role 'storage.objectAdmin' for that bucket. ht Correct Answer: C As per as the least privileage recommended by google, C is the correct Option, A is incorrect because the scope doesnt exist. B incorrect because it will give him full of control Question #27 Topic 1 Question#27Topic1: 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. 10/110 xmexam.taobao.com 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. Correct Answer: A Question #28 Topic 1 Question#28Topic1: 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? A. Project Editor B. Storage Admin / C. Storage Object Admin om D. Storage Object Creator.c Correct Answer: B ao Question #29 Topic 1 ob Question#29Topic1: You have an object in a Cloud Storage e bucket bucke that you want to share Y want access to the content to be with an external company. The object contains sensitive data. You ta ha a Google account to which you can removed after four hours. The external company does not have m. ant to use the most secure method that requires grant specific user-based access privileges. You want the fewest steps. What should you do? xa A. Create a signed URL with a four-hour hour expiration ex and share the URL with the company. me B. Set object access to 'public' c' and use object lifecycle management to remove the object after /x four hours. C. Configure the storage bucket cket as a static website and furnish the object's URL to the / company. Delete the object bject from fro the storage bucket after four hours. s: D. Create a new Cloudoud Storage St bucket specifically for the external company to access. Copy the object to thatt bucket. bucke Delete the bucket after four hours have passed. tp ht er: A Correct Answer: Question #30 Topic 1 Question#30Topic1: 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. 11/110 xmexam.taobao.com Correct Answer: B Question #31 Topic 1 Question#31Topic1: 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 ti enablement of all APIs used by the application being deployed. / D. Grant the App Engine Default service account the role of Cloud Pub/Sub Sub Admin. Adm Have your om application enable the API on the first connection to Cloud Pub/ Sub..c Correct Answer: A ao Question #32 Topic 1 Question#32Topic1: You need to monitor resources that are ob re distributed dist over different ta projects in Google Cloud Platform. You want to consolidate ate reporting rep under the same Stackdriver Monitoring dashboard. What should you do? m. A. Use Shared VPC to connect all projects, ts, and link Stackdriver to one of the projects. xa B. For each project, create a Stackdriverver account. acc In each project, create a service account for Stackd that project and grant it the role of Stackdriver Account Editor in all other projects. me C. Configure a single Stackdriverver account, acco and link all projects to the same account. /x D. Configure a single Stackdriver kdriver account ac for one of the projects. In Stackdriver, create a Group and add the other projectt names as criteria for that Group. / s: Correct Answer: C tp rrect, Groups First of all D is incorrect, Gro are used to define alerts on set of resources(such as VM instances, ht databases, and load balancers). ba FYI tried adding Two projects into a group it did not allowed me as ite for the group failed with this combination of resources. C is correct because, the "AND"/"OR" criteria When you intially click on Monitoring(Stackdriver Monitoring) it creates a workspac(a stackdriver account) linked to the ACTIVE(CURRENT) Project from which it was clicked. Now if you change the project and again click onto Monitoring it would create an another workspace(a stackdriver account) linked to the changed ACTIVE(CURRENT) Project, we don't want this as this would not consolidate our result into a single dashboard(workspace/stackdriver account). If you have accidently created two diff workspaces merge them under Monitoring > Settings > Merge Workspaces > MERGE. If we have only one workspace and two projects we can simply add other GCP Project under Monitoring > Settings > GCP Projects > Add GCP Projects. In both of these cases we did not create a GROUP, we just linked GCP Project to the workspace(stackdriver account). Question #33 Topic 1 12/110 xmexam.taobao.com Question#33Topic1: 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. Correct Answer: A / om Question #34 Topic 1.c Question#34Topic1: You want to verify the IAM users and roles assigned gned within a GCP project named my-project. What should you do? ao ob A. Run gcloud iam roles list. Review the output section. B. Run gcloud iam service-accounts list. Review the output section. ta C. Navigate to the project and then to the IAM section tion in the GCP Console. Review the members and roles. m. D. Navigate to the project and then to the Roles section s in the GCP Console. Review the roles xa and status. me Correct Answer: C /x Question #35 Topic 1 / Question#35Topic1: You needeed to ccreate a new billing account and then link it with an s: atform project. What should you do? existing Google Cloud Platform tp A. Verify that you are P Project Billing Manager for the GCP project. Update the existing project to ht link it to the existing billing account. he existin B. Verify thatt yyou 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. Correct Answer: B Question #36 Topic 1 13/110 xmexam.taobao.com Question#36Topic1: 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. Correct Answer: C / om Question #37 Topic 1.c Question#37Topic1: You created a Google Cloud Platform project with th an App Engine n to be served from the us- central application inside the project. You initially configured the application ao ia-north region. Now you want the application to be served from the asia-northeast1 region. What should you ob do? ta A. Change the default region property setting in the e existing exis GCP project to asia-northeast1. B. Change the region property setting in the existing xistin App Engine application from us-central to m. asia-northeast1. xa C. Create a second App Engine applicationtion in the existing GCP project and specify asia- ur application. northeast1 as the region to serve your appl me D. Create a new GCP project and create creat an App Engine application inside this new project. Specify asia-northeast1 as the region to serve your application. /x Correct Answer: D / s: here ca Option D is correct, as there can be only one App Engine application inside a project. C is incorrect, tp as GCP can't have two o app engine e applications.. Question #38 ht Topic 1 Question#38Topic1: 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. Correct Answer: B 14/110 xmexam.taobao.com I think it should be B, setup a group first are suggested way from Google. Question #39 Topic 1 Question#39Topic1: 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. Correct Answer: B Question #40 Topic 1 / Question#40Topic1: You have an instance group that you want to load balance. om nce. You Yo want the load balancer to terminate the client SSL session. The instance group iss used to serve a public.c web application over HTTPS. You want to follow Google-recommended d practices. pract What should you do? ao A. Configure an HTTP(S) load balancer. B. Configure an internal TCP load balancer. ob ta C. Configure an external SSL proxy load balancer. D. Configure an external TCP proxy load balancer. m. Correct Answer: A xa Reference: me ncing/docs https://cloud.google.com/load-balancing/docs/https/ /x Question #41 Topic 1 / Question#41Topic1: You have e 32 GB G of data in a single file that you need to upload to a s: Nearline Storage bucket. Thehe WAN WA connection you are using is rated at 1 Gbps, and you are the only one on the connection. ction. You Yo want to use as much of the rated 1 Gbps as possible to transfer the tp file rapidly. How should ould you upload u the file? ht A. Use the GCP Console to transfer the file instead of gsutil. B. Enable parallel composite uploads using gsutil on the file transfer. C. Decrease the TCP window size on the machine initiating the transfer. D. Change the storage class of the bucket from Nearline to Multi-Regional. Correct Answer: B Question #42 Topic 1 Question#42Topic1: You've deployed a microservice called myapp1 to a Google Kubernetes Engine cluster using the YAML file specified below: 15/110 xmexam.taobao.com You need to refactor this configuration so that the database ase password pass is not stored in plain text. You want to follow Google-recommended practices. What should ould you do? A. Store the database password inside the Docker Docke image of the container, not in the YAML file. B. Store the database password inside a Secret Secre object. Modify the YAML file to populate the DB_PASSWORD environment variable e from the Secret. C. Store the database password inside nside a ConfigMap object. Modify the YAML file to populate the DB_PASSWORD environmentonment variable va from the ConfigMap. D. Store the database password word in a file inside a Kubernetes persistent volume, and use a o mount persistent volume claim to mo the volume to the container. Correct Answer: B o use Secrets it is good practice to S for confidential data (like API keys) and ConfigMaps for non- confidential data (like port numbers). B is correct. Question #43 Topic 1 Question#43Topic1: 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? 16/110 xmexam.taobao.com A. Set the maximum number of instances to 1. B. Decrease the maximum number of instances to 3. C. Use a TCP health check instead of an HTTP health check. D. Increase the initial delay of the HTTP health check to 200 seconds. Correct Answer: D Question #44 Topic 1 Question#44Topic1: You need to select and configure compute resources for a set of batch processing jobs. These jobs take around 2 hours to complete and are run nightly. You want to minimize service costs. What should you do? A. Select Google Kubernetes Engine. Use a single-node cluster with a small instance in type. / B. Select Google Kubernetes Engine. Use a three-node cluster with micro o instance insta types. om C. Select Compute Engine. Use preemptible VM instances of the appropriate priate standard machine type..c D. Select Compute Engine. Use VM instance types that support micro bursting. ao Correct Answer: C Question #45 ob Topic 1 ta Question#45Topic1: You recently deployed a new version n of o an application to App Engine m. d to immediately and then discovered a bug in the release. You need im revert to the prior version of the application. What should you do? xa A. Run gcloud app restore. me B. On the App Engine page off the GCP Console, select the application that needs to be /x reverted and click Revert. C. On the App Engine Versions ons page p of the GCP Console, route 100% of the traffic to the / previous version. s: D. Deploy the originalal version vers as a separate application. Then go to App Engine settings and een applications split traffic between app so that the original version serves 100% of the requests. tp ht er: C Correct Answer: correct is C NOT D. Option A is wrong as gcloud app restore was used for backup and restore and has been deprecated.Option B is wrong as there is no application revert functionality available.Option D is wrong as App Engine maintains version and need not be redeployed. Question #46 Topic 1 Question#46Topic1: You deployed an App Engine application using gcloud app deploy, but it did not deploy to the intended project. You want to find out why this happened and where the application deployed. What should you do? A. Check the app.yaml file for your application and check project settings. B. Check the web-application.xml file for your application and check project settings. 17/110 xmexam.taobao.com C. Go to Deployment Manager and review settings for deployment of applications. D. Go to Cloud Shell and run gcloud config list to review the Google Cloud configuration used for deployment. Correct Answer: D I would opt option D : as it would help to check the config details and Option A is not correct, as app.yaml would have only the runtime and script to run parameters and not the Project details Question #47 Topic 1 Question#47Topic1: You want to configure 10 Compute Engine instances for availability when maintenance occurs. Your requirements state that these instances should attempt to c automatically restart if they crash. Also, the instances should be highly available including during system maintenance. What should you do? / om A. Create an instance template for the instances. Set the 'Automatic Restart' start' to t on. Set the 'On- host maintenance' to Migrate VM instance. Add the instance template e to an instance group..c B. Create an instance template for the instances. Set 'Automaticc Restart' Res to off. Set 'On-host maintenance' to Terminate VM instances. Add the instance template emplate to an instance group. ao C. Create an instance group for the instances. Set the 'Autohealing' utoheal health check to healthy ob (HTTP). D. Create an instance group for the instance. Verifyy that the t 'Advanced creation options' setting ta for 'do not retry machine creation' is set to off. m. Correct Answer: A xa ances/ https://cloud.google.com/compute/docs/instances/setting-instance-scheduling-options me onHostMaintenance: Determines the behaviorehavior when a maintenance event occurs that might cause IGRATE which causes Compute Engine to live migrate an your instance to reboot. [Default] MIGRATE, /x instance when there is a maintenance ance event. ev TERMINATE, which stops an instance instead of migrating it. automaticRestart: Determines Dete the behavior when an instance crashes or is stopped by / s: the system. [Default] true, so Compute Engine restarts an instance if the instance crashes or is o Com stopped. false, so Compute mpute Engine En does not restart an instance if the instance crashes or is stopped. tp https://cloud.google.com/compute/docs/instances/setting-instance-scheduling-options.com/com Question #48 ht Topic 1 Question#48Topic1: 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? A. Enable Cloud CDN on the website frontend. B. Enable 'Share publicly' on the PDF file objects. C. Set Content-Type metadata to application/pdf on the PDF file objects. D. Add a label to the storage bucket with a key of Content-Type and value of application/pdf. Correct Answer: C 18/110 xmexam.taobao.com Question #49 Topic 1 Question#49Topic1: 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 VM. 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. Correct Answer: D / Question #50 Topic 1 om Question#50Topic1: You have production and test workloads that you want nt to deploy d on.c Compute Engine. Production VMs need to be in a different subnet than n the test te VMs. All the ting additional VMs must be able to reach each other over Internal IP without creating a routes. You need to ao set up VPC and the 2 subnets. Which configuration meets thesese requirements? requir A. Create a single custom VPC with 2 subnets. Create ob e each subnet in a different region and ta with a different CIDR range. B. Create a single custom VPC with 2 subnets. Create each subnet in the same region and m. with the same CIDR range. C. Create 2 custom VPCs, each with a single ingle ssubnet. Create each subnet in a different region xa and with a different CIDR range. me D. Create 2 custom VPCs, each with a si single subnet. Create each subnet in the same region and with the same CIDR range.e /x Correct Answer: A / s: Question #51 Topic 1 tp 1: You ne Question#51Topic1: need to create an autoscaling managed instance group for an ht plication You want to make sure that unhealthy VMs are recreated. What should you HTTPS web application. 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. Correct Answer: A I'll go with A, MIGs support autohealing, load balancing, autoscaling, and auto-updating. no the Images templates, this is set up in the MIG Question #52 Topic 1 19/110 xmexam.taobao.com Question#52Topic1: Your company has a Google Cloud Platform project that uses BigQuery for data warehousing. 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? A. 1. Create an IAM entry for each data scientist's user account. 2. Assign the BigQuery jobUser role to the group. B. 1. Create an IAM entry for each data scientist's user account. 2. Assign the BigQuery dataViewer user role to the group. C. 1. Create a dedicated Google group in Cloud Identity. 2. Add each data scientist's user account to the group. 3. Assign the BigQuery jobUser role to the group. D. 1. Create a dedicated Google group in Cloud Identity. 2. Add each data scientist's user account to the group. 3. Assign the BigQuery dataViewer user role to the group. u / Correct Answer: C om C is correct because dataViewer does not allow user to perform queries. jobUser bUs can..c Question #53 Topic 1 ao Question#53Topic1: Your company has a 3-tier solution running ing on Compute C Engine. The ob configuration of the current infrastructure is shown below. ta m. xa me / /x s: tp ht 20/110 xmexam.taobao.com / om.c ao ob ta m. xa me / /x s: tp Each tier has a service account that is associated with all instances within it. You need to enable ht communication on n TCP TC 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? 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 21/110 xmexam.taobao.com 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 w TCP: 8080 2. Create an egress firewall rule with the following settings: ‫ג‬€¢ Targets: all instances an ‫ג‬€¢ Source / CP: 8080 filter: IP ranges (with the range set to 10.0.1.0/24) ‫ג‬€¢ Protocols: allow TCP: 80 om Correct Answer: B.c Question #54 ao Topic 1 tual Private Question#54Topic1: You are given a project with a single Virtual Priv Cloud (VPC) and ob omput Engine instance hosting an a single subnetwork in the us-central1 region. There is a Compute ta application in this subnetwork. You need to deploy a neww instance instan in the same project in the europe- west1 region. This new instance needs access to the application. You want to follow Google- m. recommended practices. What should you do? xa A. 1. Create a subnetwork in the same VPC, in europe-west1. 2. Create the new instance in the nstance private address as the endpoint. new subnetwork and use the first instance's me B. 1. Create a VPC and a subnetwork network in i europe-west1. 2. Expose the application with an /x internal load balancer. 3. Create reate the new instance in the new subnetwork and use the load balancer's address as the endpoint. ndpo / C. 1. Create a subnetwork work in tthe same VPC, in europe-west1. 2. Use Cloud VPN to connect s: the two subnetworks.s. 3. Create C the new instance in the new subnetwork and use the first tp instance's private e address addre as the endpoint. D. 1. Create a VPC and a subnetwork in europe-west1. 2. Peer the 2 VPCs. 3. Create the new ht n instance in the new subnetwork and use the first instance's private address as the endpoint. Correct Answer: A Question #55 Topic 1 Question#55Topic1: Your projects incurred more costs than you expected last month. Your research reveals that a 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? A. 1. Go to the Logs ingestion window in Stackdriver Logging, and disable the log source for the GKE container resource. 22/110 xmexam.taobao.com B. 1. Go to the Logs ingestion window in Stackdriver Logging, and disable the log source for the GKE Cluster Operations resource. C. 1. Go to the GKE console, and delete existing clusters. 2. Recreate a new cluster. 3. Clear the option to enable legacy Stackdriver Logging. D. 1. Go to the GKE console, and delete existing clusters. 2. Recreate a new cluster. 3. Clear the option to enable legacy Stackdriver Monitoring. Correct Answer: A Question #56 Topic 1 Question#56Topic1: You have a website hosted on App Engine standard environment. mi You want 1% of your users to see a new test version of the website. You want to minimize complexity. What should you do? A. Deploy the new version in the same application and use the --migrate e option. optio B. Deploy the new version in the same application and use the --splitss option op 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 Deplo the new version in that application. Use the App Engine library to proxy 1% of thee requests reque to the new version. D. Create a new App Engine application in the same project. oject. Deploy the new version in that application. Configure your network load balancer to send 1% of the traffic to that new application. Correct Answer: B Question #57 Topic 1 applic Question#57Topic1: You have a web application deployed as a managed instance group. pplication to gradually deploy. Your web application is currently You have a new version of the application e receiving live web traffic. You want to ensure that the available capacity does not decrease during the deployment. What should you ou do? A. Perform a rolling-action ing-act start-update with maxSurge set to 0 and maxUnavailable set to 1. B. Perform a rolling-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. Correct Answer: B Correct option is B. We need to ensure the global capacity remains intact, for that reason we need to establish maxUnavailable to 0. On the other hand, we need to ensure new instances can be created. 23/110 xmexam.taobao.com We do that by establishing the maxSurge to 1. Option C is more expensive and more difficult to set up and option D won't meet requirements since it won't keep global capacity intact. Question #58 Topic 1 Question#58Topic1: 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 / om Correct Answer: B.c Question #59 Topic 1 ao inistrator for your company. Question#59Topic1: You are the organization and billing administrator ob anizati The engineering team has the Project Creator role on the organization. You do not want the count Only the finance team should be engineering team to be able to link projects to the billing account. ta b able to make any other changes to able to link a project to a billing account, but they should not be projects. What should you do? m. A. Assign the finance team only the Billing ng Account Acco User role on the billing account. xa B. Assign the engineering team only thehe Billing Bill Account User role on the billing account. me C. Assign the finance team the Billing ling Account Ac User role on the billing account and the Project ganizati Billing Manager role on the organization. /x D. Assign the engineering team eam the Billing Account User role on the billing account and the Project Billing Manager role ole on o the organization. / s: Correct Answer: A tp Option A is correct, as we don't want the engineering team to link projects to billing account and want ht only the Finance e team. team Billing Account User role will help to link projects to the billing account... Question #60 Topic 1 Question#60Topic1: 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. 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? A. 1. In GKE, create a Service of type LoadBalancer that uses the application's Pods as backend. 2. Set the service's externalTrafficPolicy to Cluster. 3. Configure the Compute Engine instance to use the address of the load balancer that has been created. 24/110 xmexam.taobao.com B. 1. In GKE, create a Service of type NodePort that uses the application's Pods as backend. 2. Create a Compute Engine instance called proxy with 2 network interfaces, one in each VPC. 3. Use iptables on this instance to forward traffic from gce-network to the GKE nodes. 4. Configure the Compute Engine instance to use the address of proxy in gce-network as endpoint. C. 1. In GKE, create a Service of type LoadBalancer that uses the application's Pods as backend. 2. Add an annotation to this service: cloud.google.com/load-balancer-type: Internal 3. Peer the two VPCs together. 4. Configure the Compute Engine instance to use the address of the load balancer that has been created. D. 1. In GKE, create a Service of type LoadBalancer that uses the application's Pods as backend. 2. Add a Cloud Armor Security Policy to the load balancer that whitelists the internal IPs of the MIG's instances. 3. Configure the Compute Engine instance to use e the address of the load balancer that has been created. Correct Answer: A Question #61 Topic 1 Question#61Topic1: Your organization is a financial company that needs need to store audit log files for 3 years. Your organization has hundreds of Google Cloud oud projects. pro You need to implement a cost-effective approach for log file retention. What should you ou do? A. Create an export to the sink that saves logs from Cloud Cl Audit to BigQuery. B. Create an export to the sink that saves logs gs 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 Sub and an write a Cloud Dataflow pipeline to store logs to Cloud SQL. Correct Answer: B r B would be the right choice. The requirement doesn't say about analysis. Hence Coldline bucket storage would be cost effective. effective Question #62 Topic 1 pic1: You want to run a single caching HTTP reverse proxy on GCP for a Question#62Topic1: 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. 25/110 xmexam.taobao.com Correct Answer: A Go to cloud console and create instance select Memorystore with Basic tier, select us-central1 and us-central1-a, and capacity 32GB, the cost estimate is $0.023/GB/hr select VM instance with custom machine type with 6 vCPUs and 32 GB memory, the same region and zone as Memorystore setting, the cost estimate is $0.239/hr Option B will definitely cost more as it adds on CPU usage cost even it uses little in this scenario, but still charge you. So answer is A from real practice example. Question #63 Topic 1 Question#63Topic1: You are hosting an application on bare-metal servers in your own data center. The application needs access to Cloud Storage. However, security policies prevent the servers hosting the application from having public IP addresses or access to the internet. You want to follow Google-recommended practices to provide the application with access to Cloud o Storage. What should you do? / om A. 1. Use nslookup to get the IP address for storage.googleapis.com. 2. Negotiate Neg with the security team to be able to give a public IP address to the servers. 3. Only On allow egress traffic.c from those servers to the IP addresses for storage.googleapis.com. om ao B. 1. Using Cloud VPN, create a VPN tunnel to a Virtual Private Cloud Clo (VPC) in Google Cloud. 2. In this VPC, create a Compute Engine instance and install stall the th Squid proxy server on this ob instance. 3. Configure your servers to use that instance ce as a proxy to access Cloud Storage. ta C. 1. Use Migrate for Compute Engine (formerly known nown asa Velostrata) to migrate those servers to Compute Engine. 2. Create an internal load balancer (ILB) that uses storage.googleapis.com m. as backend. 3. Configure your new instances es to use us this ILB as proxy. D. 1. Using Cloud VPN or Interconnect, create a tunnel to a VPC in Google Cloud. 2. Use xa Cloud Router to create a custom route e advertisement adver for 199.36.153.4/30. Announce that me network to your on-premises networkork through thro the VPN tunnel. 3. In your on-premises network, * configure your DNS server to resolve *.googleapis.com as a CNAME to /x restricted.googleapis.com. / Correct Answer: D s: gle.com Ref: https://cloud.google.com/vpc/docs/configure-private-google-access-hybrid tp Question #64 Topic 1 ht ic1: You want to deploy an application on Cloud Run that processes Question#64Topic1: messages from a Cloud Pub/Sub topic. You want to follow Google-recommended practices. What should you do? A. 1. Create a Cloud Function that uses a Cloud Pub/Sub trigger on that topic. 2. Call your application on Cloud Run from the Cloud Function for every message. B. 1. Grant the Pub/Sub Subscriber role to the service account used by Cloud Run. 2. Create a Cloud Pub/Sub subscription for that topic. 3. Make your application pull messages from that subscription. C. 1. Create a service account. 2. Give the Cloud Run Invoker role to that service account for your Cloud Run application. 3. Create a Cloud Pub/Sub subscription that uses that service account and uses your Cloud Run application as the push endpoint. 26/110 xmexam.taobao.com D. 1. Deploy your application on Cloud Run on GKE with the connectivity set to Internal. 2. Create a Cloud Pub/Sub subscription for that topic. 3. In the same Google Kubernetes Engine cluster as your application, deploy a container that takes the messages and sends them to your application. Correct Answer: C https://cloud.google.com/run/docs/tutorials/pubsub#integrating-pubsub Question #65 Topic 1 Question#65Topic1: 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. om B. Deploy the container on Cloud Run on GKE. C. Deploy the container on App Engine Flexible..c D. Deploy the container on GKE with cluster autoscaling and horizontal rizon pod autoscaling enabled. ao ob Correct Answer: A ta A should be cheapest as no infra needed. Question #66 m. Topic 1 Question#66Topic1: Your company has an existingxisting GCP G organization with hundreds of xa projects and a billing account. Your companyy recently rece acquired another company that also has hundreds of projects and its own billing account. accoun You would like to consolidate all GCP costs of both me GCP organ

Use Quizgecko on...
Browser
Browser