Free Google Associate Cloud Engineer Exam Braindumps

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?

  1. Set autoscaling to On, set the minimum number of instances to 1, and then set the maximum number of instances to 1.
  2. Set autoscaling to Off, set the minimum number of instances to 1, and then set the maximum number of instances to 1.
  3. Set autoscaling to On, set the minimum number of instances to 1, and then set the maximum number of instances to 2.
  4. Set autoscaling to Off, set the minimum number of instances to 1, and then set the maximum number of instances to 2.

Answer(s): A

Explanation:

https://cloud.google.com/compute/docs/autoscaler#specifications

Autoscaling works independently from autohealing. If you configure autohealing for your group and an instance fails the health check, the autohealer attempts to recreate the instance. Recreating an instance can cause the number of instances in the group to fall below the autoscaling threshold (minNumReplicas) that you specify.

Since we need the application running at all times, we need a minimum 1 instance. Only a single instance of the VM should run, we need a maximum 1 instance. We want the application running at all times. If the VM crashes due to any underlying hardware failure, we want another instance to be added to MIG so that application can continue to serve requests. We can achieve this by enabling autoscaling. The only option that satisfies these three is Set autoscaling to On, set the minimum number of instances to 1, and then set the maximum number of instances to 1.

Ref: https://cloud.google.com/compute/docs/autoscaler



You want to verify the IAM users and roles assigned within a GCP project named my-project.
What should you do?

  1. Run gcloud iam roles list. Review the output section.
  2. Run gcloud iam service-accounts list. Review the output section.
  3. Navigate to the project and then to the IAM section in the GCP Console. Review the members and roles.
  4. Navigate to the project and then to the Roles section in the GCP Console. Review the roles and status.

Answer(s): C

Explanation:

Logged onto console and followed the steps and was able to see all the assigned users and roles.



You need to create a new billing account and then link it with an existing Google Cloud Platform project.
What should you do?

  1. Verify that you are Project Billing Manager for the GCP project. Update the existing project to link it to the existing billing account.
  2. 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.
  3. Verify that you are Billing Administrator for the billing account. Create a new project and link the new project to the existing billing account.
  4. Verify that you are Billing Administrator for the billing account. Update the existing project to link it to the existing billing account.

Answer(s): B

Explanation:

Billing Administrators can not create a new billing account, and the project is presumably already created. Project Billing Manager allows you to link the created billing account to the project. It is vague on how the billing account gets created but by process of elimination



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?

  1. Download the private key from the service account, and add it to each VMs custom metadata.
  2. Download the private key from the service account, and add the private key to each VM's SSH keys.
  3. Grant the service account the IAM Role of Compute Storage Admin in the project called proj-vm.
  4. When creating the VMs, set the service account's API scope for Compute Engine to read/write.

Answer(s): C

Explanation:

https://gtseres.medium.com/using-service-accounts-across-projects-in-gcp-cf9473fef8f0

You create the service account in proj-sa and take note of the service account email, then you go to proj-vm in IAM > ADD and add the service account's email as new member and give it the Compute Storage Admin role.

https://cloud.google.com/compute/docs/access/iam#compute.storageAdmin






Post your Comments and Discuss Google Google Associate Cloud Engineer exam with other Community members:

Google Associate Cloud Engineer Discussions & Posts