Google ASSOCIATE-CLOUD-ENGINEER Exam
Associate Cloud Engineer (Page 3 )

Updated On: 25-Jan-2026

Users of your application are complaining of slowness when loading the application. You realize the slowness is because the App Engine deployment serving the application is deployed in us-central whereas all users of this application are closest to europe-west3. You want to change the region of the App Engine application to europe-west3 to minimize latency.
What's the best way to change the App Engine region?

  1. Create a new project and create an App Engine instance in europe-west3
  2. Use the gcloud app region set command and supply the name of the new region.
  3. From the console, under the App Engine page, click edit, and change the region drop-down.
  4. Contact Google Cloud Support and request the change.

Answer(s): A

Explanation:

App engine is a regional service, which means the infrastructure that runs your app(s) is located in a specific region and is managed by Google to be redundantly available across all the zones within that region. Once an app engine deployment is created in a region, it cant be changed. The only way is to create a new project and create an App Engine instance in europe-west3, send all user traffic to this instance and delete the app engine instance in us-central.
Ref: https://cloud.google.com/appengine/docs/locations



The storage costs for your application logs have far exceeded the project budget. The logs are currently being retained indefinitely in the Cloud Storage bucket myapp-gcp-ace-logs. You have been asked to remove logs older than 90 days from your Cloud Storage bucket. You want to optimize ongoing Cloud Storage spend.
What should you do?

  1. Write a script that runs gsutil Is -| ­ gs://myapp-gcp-ace-logs/** to find and remove items older than 90 days. Schedule the script with cron.
  2. Write a lifecycle management rule in JSON and push it to the bucket with gsutil lifecycle set config- json-file.
  3. Write a lifecycle management rule in XML and push it to the bucket with gsutil lifecycle set config- xml-file.
  4. Write a script that runs gsutil Is -Ir gs://myapp-gcp-ace-logs/** to find and remove items older than 90 days. Repeat this process every morning.

Answer(s): B

Explanation:

You write a lifecycle management rule in XML and push it to the bucket with gsutil lifecycle set config-xml-file. is not right.
gsutil lifecycle set enables you to set the lifecycle configuration on one or more buckets based on the configuration file provided. However, XML is not a valid supported type for the configuration file.

Ref: https://cloud.google.com/storage/docs/gsutil/commands/lifecycle

Write a script that runs gsutil ls -lr gs://myapp-gcp-ace-logs/** to find and remove items older than 90 days. Repeat this process every morning. is not right. This manual approach is error-prone, time-consuming and expensive. GCP Cloud Storage provides lifecycle management rules that let you achieve this with minimal effort.

Write a script that runs gsutil ls -l gs://myapp-gcp-ace-logs/** to find and remove items older than 90 days. Schedule the script with cron. is not right.
This manual approach is error-prone, time-consuming and expensive. GCP Cloud Storage provides lifecycle management rules that let you achieve this with minimal effort.

Write a lifecycle management rule in JSON and push it to the bucket with gsutil lifecycle set config-

json-file. is the right answer.
You can assign a lifecycle management configuration to a bucket. The configuration contains a set of rules which apply to current and future objects in the bucket.
When an object meets the criteria of one of the rules, Cloud Storage automatically performs a specified action on the object. One of the supported actions is to Delete objects. You can set up a lifecycle management to delete objects older than 90 days. gsutil lifecycle set enables you to set the lifecycle configuration on the bucket based on the configuration file. JSON is the only supported type for the configuration file. The config-json-file specified on the command line should be a path to a local file containing the lifecycle configuration JSON document.

Ref: https://cloud.google.com/storage/docs/gsutil/commands/lifecycle Ref: https://cloud.google.com/storage/docs/lifecycle



Your coworker has helped you set up several configurations for gcloud. You've noticed that you're running commands against the wrong project. Being new to the company, you haven't yet memorized any of the projects. With the fewest steps possible, what's the fastest way to switch to the correct configuration?

  1. Run gcloud configurations list followed by gcloud configurations activate .
  2. Run gcloud config list followed by gcloud config activate.
  3. Run gcloud config configurations list followed by gcloud config configurations activate.
  4. Re-authenticate with the gcloud auth login command and select the correct configurations on login.

Answer(s): C

Explanation:

as gcloud config configurations list can help check for the existing configurations and activate can help switch to the configuration.
gcloud config configurations list lists existing named configurations gcloud config configurations activate activates an existing named configuration

Obtains access credentials for your user account via a web-based authorization flow.
When this command completes successfully, it sets the active account in the current configuration to the account specified. If no configuration exists, it creates a configuration named default.



Your company has developed a new application that consists of multiple microservices. You want to deploy the application to Google Kubernetes Engine (GKE), and you want to ensure that the cluster can scale as more applications are deployed in the future. You want to avoid manual intervention when each new application is deployed.
What should you do?

  1. Deploy the application on GKE, and add a HorizontalPodAutoscaler to the deployment.
  2. Deploy the application on GKE, and add a VerticalPodAutoscaler to the deployment.
  3. Create a GKE cluster with autoscaling enabled on the node pool. Set a minimum and maximum for the size of the node pool.
  4. Create a separate node pool for each application, and deploy each application to its dedicated node pool.

Answer(s): C

Explanation:

https://cloud.google.com/kubernetes-engine/docs/how-to/cluster- autoscaler#adding_a_node_pool_with_autoscaling



You have created a new project in Google Cloud through the gcloud command line interface (CLI) and linked a billing account. You need to create a new Compute Engine instance using the CLI. You need to perform the prerequisite steps.
What should you do?

  1. Create a Cloud Monitoring Workspace.
  2. Create a VPC network in the project.
  3. Enable the compute googleapis.com API.
  4. Grant yourself the IAM role of Compute Admin.

Answer(s): D



Viewing page 3 of 63
Viewing questions 11 - 15 out of 343 questions



Post your Comments and Discuss Google ASSOCIATE-CLOUD-ENGINEER exam prep with other Community members:

Join the ASSOCIATE-CLOUD-ENGINEER Discussion