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

Google Associate Cloud Engineer - Practice Test 2

Question #46
Networking

You are configuring a new application within a Google Cloud VPC, and the user has expressed concerns about data egress. You need to implement firewall rules to allow only the absolutely necessary outbound traffic, ensuring the fewest possible open egress ports. Which configuration strategy should you employ?

A. Set up a low-priority (65534) rule that blocks all egress and a high-priority rule (1000) that allows only the appropriate ports.
B. Set up a high-priority (1000) rule that blocks all egress and a low-priority (65534) rule that allows only the appropriate ports.
C. Set up a high-priority (1000) rule that pairs both ingress and egress ports.
D. Set up a high-priority (1000) rule to allow the appropriate ports.
Question #47
Containers & Kubernetes

You have a Dockerfile for an application and need to deploy it to Google Kubernetes Engine. Which sequence of steps should you follow?

A. Utilize `kubectl app deploy <dockerfilename>`.
B. Create a Docker image from the Dockerfile, push it to Container Registry, define a Deployment YAML file referencing this image, and then use `kubectl` to apply the deployment.
C. Use `gcloud app deploy <dockerfilename>`.
D. Build a Docker image from the Dockerfile, upload it to Cloud Storage, create a Deployment YAML file pointing to that image, and use `kubectl` to create the deployment.
Question #48
Compute

You are developing a video encoding application on Google Cloud Compute Engine. The application needs to handle a rapidly growing user base, ensuring continuous availability and sufficient CPU resources for encoding tasks. You want to implement a highly available solution that follows Google's recommended practices for automated operations. Which approach should you take?

A. Deploy your solution on multiple standalone Compute Engine instances, and manually increase the number of instances when CPU utilization in Cloud Monitoring exceeds a predefined threshold.
B. Deploy your solution to a managed instance group, and configure autoscaling based on CPU utilization.
C. Deploy your solution to an instance group, and manually adjust the number of available instances whenever high CPU utilization is observed in Cloud Monitoring.
D. Deploy your solution on multiple standalone Compute Engine instances, and replace existing instances with higher-CPU instances when CPU utilization in Cloud Monitoring reaches a certain threshold.
Question #49
Serverless

You have a web application deployed on Cloud Run for Anthos. To perform a canary deployment, you need to introduce an updated version of the application and direct a specific percentage of production user traffic to it. What is the most appropriate method to achieve this?

A. Create a new service with the new version of the application. Split traffic between this new service and the currently running service.
B. Create a new revision with the new version of the application. Split traffic between this new revision and the currently running revision.
C. Create a new service with the new version of the application. Implement an HTTP Load Balancer to manage traffic distribution between both services.
D. Create a new revision with the new version of the application. Implement an HTTP Load Balancer to manage traffic distribution between both revisions.
Question #50
Data Storage

Your organization has a significant volume of unstructured data in various file formats that requires Extract, Transform, Load (ETL) operations. You need to make this data available within Google Cloud for processing by a Dataflow job. Which Google Cloud service should you use to store this data, and what tool would you typically use for the initial upload?

A. Upload the data to BigQuery using the bq command-line tool.
B. Upload the data to Cloud Storage using the gsutil command-line tool.
C. Upload the data into Cloud SQL using the import function in the console.
D. Upload the data into Cloud Spanner using the import function in the console.
Back to gcp-ace 50 questions - page 10 of 10