Free Google Associate Cloud Engineer Exam Braindumps (page: 4)

Page 3 of 74

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?

  1. Manual Scaling with 3 instances.
  2. Basic Scaling with min_instances set to 3.
  3. Basic Scaling with max_instances set to 3.
  4. Automatic Scaling with min_idle_instances set to 3.

Answer(s): D


Reference:

https://cloud.google.com/appengine/docs/standard/python/how-instances-are-managed https://cloud.google.com/appengine/docs/standard/go/config/appref

"App Engine calculates the number of instances necessary to serve your current application traffic based on scaling settings such as target_cpu_utilization and target_throughput_utilization. Setting min_idle_instances specifies the number of instances to run in addition to this calculated number. For example, if App Engine calculates that 5 instances are necessary to serve traffic, and min_idle_instances is set to 2, App Engine will run 7 instances (5, calculated based on traffic, plus 2 additional per min_idle_instances)."

Automatic scaling creates dynamic instances based on request rate, response latencies, and other application metrics. However, if you specify the number of minimum idle instances, that specified number of instances run as resident instances while any additional instances are dynamic. Ref: https://cloud.google.com/appengine/docs/standard/python/how-instances-are-managed



You have a development project with appropriate IAM roles defined. You are creating a production project and want to have the same IAM roles on the new project, using the fewest possible steps.
What should you do?

  1. Use gcloud iam roles copy and specify the production project as the destination project.
  2. Use gcloud iam roles copy and specify your organization as the destination organization.
  3. In the Google Cloud Platform Console, use the `create role from role' functionality.
  4. In the Google Cloud Platform Console, use the `create role' functionality and select all applicable permissions.

Answer(s): A


Reference:

https://cloud.google.com/sdk/gcloud/reference/iam/roles/copy

To create a copy of an existing role spanner.databaseAdmin into a project with PROJECT_ID, run:
gcloud iam roles copy --source="roles/spanner.databaseAdmin" -- destination=CustomSpannerDbAdmin --dest-project=PROJECT_ID



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?

  1. Deployment Manager
  2. Cloud Composer
  3. Managed Instance Group
  4. Unmanaged Instance Group

Answer(s): A

Explanation:

https://cloud.google.com/deployment-manager/docs/configuration/create-basic-configuration



You have a Dockerfile that you need to deploy on Kubernetes Engine.
What should you do?

  1. Use kubectl app deploy <dockerfilename>.
  2. Use gcloud app deploy <dockerfilename>.
  3. 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.
  4. Create a docker image from the Dockerfile and upload it to Cloud Storage. Create a Deployment YAML file to point to that image. Use kubectl to create the deployment with that file.

Answer(s): C


Reference:

https://cloud.google.com/kubernetes-engine/docs/tutorials/hello-app






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

Google Associate Cloud Engineer Discussions & Posts