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

Google Associate Cloud Engineer - Practice Test 3

Question #1
Serverless

Your web application, hosted on Cloud Run, experiences slow initial page loads for some users, while subsequent pages load quickly. You want to optimize performance and reduce these 'cold start' delays, following Google's recommended best practices. What configuration change should you implement?

A. Set the concurrency number to 1 for your Cloud Run service.
B. Configure a minimum number of instances for your Cloud Run service.
C. Set the maximum number of instances for your Cloud Run service to 100.
D. Update your web application to use the HTTP/2 protocol instead of HTTP/1.1.
Question #2
IAM & Administration multi-select

You have just installed the Google Cloud CLI on your workstation. Before you can effectively use commands like `gcloud compute instances list` to manage resources, which two essential steps must you take?

A. Run `gcloud auth login`, enter your login credentials in the dialog window, and paste the received login token to gcloud CLI.
B. Create a Google Cloud service account, and download the service account key. Place the key file in a folder on your machine where gcloud CLI can find it.
C. Download your Cloud Identity user account key. Place the key file in a folder on your machine where gcloud CLI can find it.
D. Run `gcloud config set compute/zone $my_zone` to set the default zone for gcloud CLI.
E. Run `gcloud config set project $my_project` to set the default project for gcloud CLI.
Question #3
Identity & Access Management

Your organization utilizes a single sign-on (SSO) identity provider that supports Security Assertion Markup Language (SAML) integration. Your users are managed within Cloud Identity. You need to configure Cloud Identity so that users authenticate using your company's existing SSO provider. What is the correct approach?

A. In Cloud Identity, configure SSO with Google as the identity provider to access custom SAML applications.
B. In Cloud Identity, set up SSO with a third-party identity provider, where Google acts as the service provider.
C. Obtain OAuth 2.0 credentials, configure the user consent screen, and set up OAuth 2.0 for Mobile & Desktop Apps.
D. Obtain OAuth 2.0 credentials, configure the user consent screen, and set up OAuth 2.0 for Web Server Applications.
Question #4
Billing & Cost Management

You have been using Google Cloud for personal experimentation, with costs charged to your personal credit card. Your company now wants to consolidate billing for your projects under their corporate monthly invoice. What is the most appropriate action to take?

A. Grant the company's financial team the IAM role of 'Billing Account User' on your personal billing account.
B. Change the billing account associated with your Google Cloud projects to your company's corporate billing account.
C. Set up BigQuery billing export for your projects and provide your financial department with IAM access to query the billing data.
D. Create a support ticket with Google Billing to request that invoices for your projects be sent to your company.
Question #5
Compute

A managed instance group (MIG) in Google Cloud has failed to create new instances, leading to a reduced number of running instances below the desired target. This is impacting the application's ability to handle expected traffic. You suspect an issue with persistent disks preventing new instance creation. What is the most appropriate action to resolve this issue and ensure future instance creation succeeds?

A. Create a new instance template with valid syntax and delete any persistent disks that share names with instances. Perform a rolling update to apply the new template.
B. Verify the existing instance template's syntax. Delete any persistent disks with names conflicting with instances. Update the instance template to set the `disks.autoDelete` property to `true` for boot disks.
C. Create a new instance template with valid syntax, ensuring instance and persistent disk names are unique. Then, perform a rolling update to replace the old template.
D. Delete the current instance template and replace it with a new one. Ensure instance and persistent disk names are unique in the new template and set `disks.autoDelete` to `true`.
Back to gcp-ace 50 questions - page 1 of 10