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?
Answer(s): A
https://cloud.google.com/compute/docs/instance-groups/autohealing-instances-in- migs#setting_up_an_autohealing_policy
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?
Answer(s): C
Read the dataset's metadata and to list tables in the dataset. Read data and metadata from the dataset's tables. When applied at the project or organization level, this role can also enumerate all datasets in the project. Additional roles, however, are necessary to allow the running of jobs.BigQuery Data Viewer(roles/bigquery.dataViewer)When applied to a table or view, this role provides permissions to:Read data and metadata from the table or view.This role cannot be applied to individual models or routines.When applied to a dataset, this role provides permissions to:Read the dataset's metadata and list tables in the dataset.Read data and metadata from the dataset's tables.When applied at the project or organization level, this role can also enumerate all datasets in the project. Additional roles, however, are necessary to allow the running of jobs.Lowest-level resources where you can grant this role:TableViewBigQuery Job User(roles/bigquery.jobUser)Provides permissions to run jobs, including queries, within the project.Lowest-level resources where you can grant this role:Project to run jobs https://cloud.google.com/bigquery/docs/access-control#bigquery.jobUser databaseUser needs additional role permission to run jobs https://cloud.google.com/spanner/docs/iam#spanner.databaseUser
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?
Answer(s): 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: allowTCP: 8080
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. 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?
Given that the new instance wants to access the application on the existing compute engine instance, these applications seem to be related so they should be within the same VPC. It is possible to have them in different VPCs and peer the VPCs but this is a lot of additional work and we can simplify this by choosing the option below (which is the answer)1. Create a subnet in the same VPC, in europe-west1.2. Create the new instance in the new subnet and use the first instance subnets private address as the endpoint. is the right answer.We can create another subnet in the same VPC and this subnet is located in europe-west1. We can then spin up a new instance in this subnet. We also have to set up a firewall rule to allow communication between the two subnets. All instances in the two subnets with the same VPC can communicate through the internal IP AddressRef: https://cloud.google.com/vpc
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?
https://cloud.google.com/logging/docs/api/v2/resource-listGKE Containers have more log than GKE Cluster Operations:.-GKE Containe:cluster_name: An immutable name for the cluster the container is running in. namespace_id: Immutable ID of the cluster namespace the container is running in. instance_id: Immutable ID of the GCE instance the container is running in. pod_id: Immutable ID of the pod the container is running in.container_name: Immutable name of the container.zone: The GCE zone in which the instance is running.VS.-GKE Cluster Operations project_id: The identifier of the GCP project associated with this resource, such as "my-project".cluster_name: The name of the GKE Cluster.location: The location in which the GKE Cluster is running.
Share your comments for Google Associate Cloud Engineer exam with other users:
ans is coldline i think
totally not correct answers. 21. 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? correct: 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.
answer 10 should be a because only a new project will be created & the organization is the same.
answer 16 should be b your organizational policies require you to use virtual machines directly
the explanation are really helpful
what is the percentage of common questions in gcp exam compared to 197 dump questions? are they 100% matching with real gcp exam?