Associate-Cloud-Engineer Practice Test Questions

113 Questions


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?


A.

Run gcloud app restore.


B.

On the App Engine page of the GCP Console, select the application that needs to be reverted and click
Revert.


C.

On the App Engine Versions page of the GCP Console, route 100% of the traffic to the previous
version.


D.

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.





D.
  

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.



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 conditions with SetStorageClass and
Delete actions. Set the SetStorageClass action to 90 days and the Delete action to 365 days.


C.

Use gsutil rewrite and set the Delete action to 275 days (365-90).


D.

Use gsutil rewrite and set the Delete action to 365 days.





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)



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?


A.

Contact cloud-billing@google.com with your bank account details and request a corporate billing
account for your company.


B.

Create a ticket with Google Support and wait for their call to share your credit card details over the
phone.


C.

In the Google Platform Console, go to the Resource Manage and move all projects to the root
Organizarion.


D.

In the Google Cloud Platform Console, create a new billing account and set up a payment method.





D.
  

In the Google Cloud Platform Console, create a new billing account and set up a payment method.



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?


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.





D.
  

Increase the initial delay of the HTTP health check to 200 seconds.



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 <deployment-config-path>


B.

gcloud deployment-manager deployments update --config <deployment-config-path>


C.

gcloud deployment-manager resources create --config <deployment-config-path>


D.

gcloud deployment-manager resources update --config <deployment-config-path>





B.
  

gcloud deployment-manager deployments update --config <deployment-config-path>



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?


A.

Use Shared VPC to connect all projects, and link Stackdriver to one of the projects.


B.

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.


C.

Configure a single Stackdriver account, and link all projects to the same account.


D.

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.





D.
  

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.



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?


A.

Configure an HTTP(S) load balancer.


B.

Configure an internal TCP load balancer.


C.

Configure an external SSL proxy load balancer.


D.

Configure an external TCP proxy load balancer





A.
  

Configure an HTTP(S) load balancer.



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?


A.

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.


B.

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.


C.

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.


D.

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.





D.
  

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.



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.


C.

Go to Deployment Manager and review settings for deployment of applications.


D.

Go the Cloud Shell and run gcloud config list to review the Google Cloud configuration used for
deployment.





A.
  

Check the app.yaml file for your application and check project settings.



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


D.

Storage Object Creator





B.
  

Storage Admin



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.





C.
  

Grant the service account the IAM Role of Compute Storage Admin in the project called proj-vm.



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?


A.

Use gcloud iam roles copy and specify the production project as the destination project.


B.

Use gcloud iam roles copy and specify your organization as the destination organization.


C.

In the Google Cloud Platform Console, use the ‘create role from role’ functionality.


D.

In the Google Cloud Platform Console, use the ‘create role’ functionality and select all applicable
permissions.





B.
  

Use gcloud iam roles copy and specify your organization as the destination organization.




Page 2 out of 10 Pages
Previous