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

Google Associate Cloud Engineer - Practice Test 2

Question #16
Compute

Your application development team has developed Docker images for an application intended for deployment on Google Cloud. The team's primary goal is to avoid managing the underlying infrastructure for this application. You need to ensure the application can automatically scale to meet fluctuating demand. Which Google Cloud service combination should you choose?

A. Create an instance template with the container image, and deploy a Managed Instance Group with Autoscaling.
B. Upload Docker images to Artifact Registry, and deploy the application on Cloud Run.
C. Upload Docker images to Cloud Storage, and deploy the application on Google Kubernetes Engine using Standard mode.
D. Upload Docker images to Artifact Registry, and deploy the application on Google Kubernetes Engine using Standard mode.
Question #17
Compute

A Google Cloud Compute Engine virtual machine is currently configured with 2 vCPUs and 4 GB of memory. The application running on this VM is experiencing out-of-memory errors. You need to upgrade the virtual machine to have 8 GB of memory while minimizing unnecessary resource changes. What is the most appropriate action to take?

A. Utilize live migration to move the workload to a pre-configured machine with more memory.
B. Stop the VM, modify its machine type to a custom type or a predefined type with 8 GB of memory, and then restart the VM.
C. Use gcloud to add metadata to the VM, setting the key to 'required-memory-size' and the value to '8 GB'.
D. Stop the VM, change the machine type to 'n1-standard-8', and then start the VM.
Question #18
Database Management

A company uses a Cloud SQL for MySQL database and needs to retain a consistent, auditable copy of the database at the end of each month for a period of three years. Which approach should be taken to meet this requirement?

A. Set up an export job for the first of the month, writing the export file to an Archive class Cloud Storage bucket.
B. Configure automatic backups to run daily and set the retention policy to three years, storing the backup files in an Archive class Cloud Storage bucket.
C. Manually create an on-demand backup at the end of each month, storing it in an Archive class Cloud Storage bucket.
D. Convert an automatic first-of-the-month backup into an export file and store it in a Coldline class Cloud Storage bucket.
Question #19
Compute

You have deployed a custom application on a single Google Compute Engine instance. The application is configured to write its operational logs directly to the instance's local disk. Users are now reporting issues with the application, and you need to diagnose the problem by examining these logs. What is the most effective initial step to access these application logs for troubleshooting?

A. Navigate to Cloud Logging in the Google Cloud Console and view the application logs.
B. Connect to the instance via SSH or serial console and read the application logs directly from the disk.
C. Configure a Health Check on the instance and set a Low Healthy Threshold value to trigger alerts.
D. Install and configure the Cloud Logging Agent on the instance and then view the logs from Cloud Logging.
Question #20
Deployment Management

You are managing a Google Cloud Deployment Manager deployment and need to apply updates to its configuration without causing any downtime to the deployed resources. Which `gcloud` command should you use to achieve this?

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>`
Back to gcp-ace 50 questions - page 4 of 10