home / exams / Google / gcp-ace / Practice Test 2
gcp-ace Google

Google Associate Cloud Engineer - Practice Test 2

Question #1
Compute

Your company has a critical, long-running batch process (approximately 30 hours) that executes monthly on-premises. This process is not fault-tolerant and must be restarted from the beginning if interrupted. It can be performed offline. You need to migrate this workload to Google Cloud, prioritizing cost minimization. What is the most appropriate solution?

A. Create an Instance Template with Spot VMs enabled, then create a Managed Instance Group from the template and configure Target CPU Utilization. Migrate the workload to this setup.
B. Migrate the workload to a Compute Engine virtual machine (VM) and manually start and stop the instance as required.
C. Migrate the workload to a Google Kubernetes Engine (GKE) cluster utilizing Spot nodes.
D. Migrate the workload to a Compute Engine Spot VM.
Question #2
Compute

A data analytics application running on-premises processes large data files (1 GB to 16 GB) in memory for approximately 45 minutes every night at midnight. You need to migrate this application to Google Cloud with minimal refactoring and cost. Which approach should you take?

A. Containerize the binaries and use Cloud Scheduler to trigger a Cloud Run job for the container.
B. Perform a lift and shift migration to a Compute Engine virtual machine, and use an instance schedule to manage its start and stop times.
C. Upload the application code to Cloud Functions and use Cloud Scheduler to invoke the function.
D. Containerize the binaries, deploy them to Google Kubernetes Engine (GKE), and use the Kubernetes scheduler to activate the application.
Question #3
Logging & Monitoring

You are responsible for managing logs across multiple Google Cloud projects. You need to consolidate and analyze all logs from the past 60 days, ensuring that the data is easily explorable and queryable. Which Google-recommended approach should you implement to achieve this?

A. Navigate to Cloud Logging and use an advanced filter with `resource.labels.project_id="*"` to view combined logs.
B. Create a Cloud Logging export with a sink destination to a BigQuery dataset, configuring the table expiration to 60 days.
C. Establish a Cloud Logging export with a sink destination to Cloud Storage, then create a lifecycle rule to delete objects after 60 days.
D. Configure a Cloud Scheduler job to periodically read logs from Cloud Logging and store them in BigQuery, setting the table expiration to 60 days.
Question #4
Logging & Monitoring

You have deployed a custom application on a Google Compute Engine instance. This application writes its operational logs directly to the instance's local disk. Users are now reporting errors, and you need to diagnose the root cause. What is the most effective first step to centralize and view these application logs within Google Cloud?

A. Navigate to Cloud Logging and view the application logs.
B. Install and configure the Ops agent on the Compute Engine instance, then view the logs from Cloud Logging.
C. Configure a health check on the instance and set a 'consecutive successes' Healthy threshold value of 1.
D. Connect to the instance’s serial console and read the application logs.
Question #5
Databases

You are developing a global multi-player gaming application that requires storing game state and user data. As the application scales, you need to ensure consistent, low-latency performance for users worldwide without significantly increasing operational overhead. Which Google Cloud database service should you choose?

A. Utilize Cloud SQL with cross-region replication to maintain game statistics across multiple geographic regions.
B. Implement Cloud Spanner to store user profiles and game-related data, leveraging its global consistency and horizontal scalability.
C. Store game statistics in BigQuery, fronted by a Redis on Memorystore instance for global consistency.
D. Employ Bigtable, partitioned by user ID, for storing game statistics.
Back to gcp-ace 50 questions - page 1 of 10