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

Google Associate Cloud Engineer - Practice Test 3

Question #36
Application Deployment

You are developing a new web application on Google Cloud Platform and need to implement a canary release strategy. You want to test updates on a small percentage of live user traffic while the majority of users continue to access the stable version. Which Google Cloud service and configuration should you use?

A. Deploy the application on App Engine. For each update, create a new service and configure traffic splitting to send a small percentage of traffic to the new service.
B. Deploy the application on App Engine. For each update, create a new version within the same service and configure traffic splitting to send a small percentage of traffic to the new version.
C. Deploy the application on Kubernetes Engine. For a new release, update the existing deployment to use the new container image version.
D. Deploy the application on Kubernetes Engine. For a new release, create a new deployment for the new version and update the service to point to the new deployment.
Question #37
Containers & Kubernetes

You have a Dockerfile for an application and need to deploy it to Google Kubernetes Engine. Which sequence of steps correctly describes how to achieve this?

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

You need to deploy a single, latency-sensitive HTTP reverse proxy with caching on Google Cloud Platform. This proxy has minimal CPU requirements but needs a 30 GB in-memory cache and an additional 2 GB for other processes. Your primary goal is to minimize costs. Which Google Cloud service and configuration should you choose?

A. Provision a Cloud Memorystore for Redis instance with 32 GB capacity.
B. Utilize Compute Engine with a custom instance type configured for 6 vCPUs and 32 GB of memory.
C. Containerize the proxy and deploy it on Google Kubernetes Engine, using n1-standard-32 instances for nodes.
D. Run it on Compute Engine, selecting an n1-standard-1 instance type and attaching a 32 GB SSD persistent disk.
Question #39
Security

You are responsible for managing the security configuration of your company’s Google Cloud organization. The Operations team requires specific permissions to manage both a Google Kubernetes Engine (GKE) cluster and a Cloud SQL instance. Two existing predefined Identity and Access Management (IAM) roles provide some, but not all, of the necessary permissions. You need to grant the Operations team the required IAM permissions while adhering to the principle of least privilege and Google-recommended practices. What is the most appropriate action?

A. Create a custom IAM role that combines all permissions from the two relevant predefined roles.
B. Create a custom IAM role that includes only the specific required permissions from the predefined roles.
C. Grant the Operations team both of the predefined IAM roles.
D. Grant the Operations team the predefined IAM roles of Kubernetes Engine Admin and Cloud SQL Admin.
Question #40
Networking

You are configuring Google Cloud DNS for your domain `mydomain.com`. You need to ensure that `mydomain.com`, `www.mydomain.com`, and `home.mydomain.com` all resolve to the IP address of your Google Cloud load balancer. Which DNS record configuration should you implement?

A. Create one CNAME record to point `mydomain.com` to the load balancer, and create two A records to point `www` and `home` to `mydomain.com` respectively.
B. Create one A record to point `mydomain.com` to the load balancer, and create two CNAME records to point `www` and `home` to `mydomain.com` respectively.
C. Create one CNAME record to point `mydomain.com` to the load balancer, and create two AAAA records to point `www` and `home` to `mydomain.com` respectively.
D. Create one A record to point `mydomain.com` to the load balancer, and create two NS records to point `www` and `home` to `mydomain.com` respectively.
Back to gcp-ace 50 questions - page 8 of 10