Pass the Google Google Cloud Certified Associate-Cloud-Engineer Questions and answers with CertsForce

Viewing page 3 out of 10 pages
Viewing questions 21-30 out of questions
Questions # 21:

You are running an application on multiple virtual machines within a managed instance group and have autoscaling enabled. The autoscaling policy is configured so that additional instances are added to the group if the CPU utilization of instances goes above 80%. VMs are added until the instance group reaches its maximum limit of five VMs or until CPU utilization of instances lowers to 80%. The initial delay for HTTP health checks against the instances is set to 30 seconds. The virtual machine instances take around three minutes to become available for users. You observe that when the instance group autoscales, it adds more instances then necessary to support the levels of end-user traffic. You want to properly maintain instance group sizes when autoscaling. What should you do?

Options:

A.

Set the maximum number of instances to 1.


B.

Decrease the maximum number of instances to 3.


C.

Use a TCP health check instead of an HTTP health check.


D.

Increase the initial delay of the HTTP health check to 200 seconds.


Expert Solution
Questions # 22:

Your company’s infrastructure is on-premises, but all machines are running at maximum capacity. You want to burst to Google Cloud. The workloads on Google Cloud must be able to directly communicate to the workloads on-premises using a private IP range. What should you do?

Options:

A.

In Google Cloud, configure the VPC as a host for Shared VPC.


B.

In Google Cloud, configure the VPC for VPC Network Peering.


C.

Create bastion hosts both in your on-premises environment and on Google Cloud. Configure both as proxy servers using their public IP addresses.


D.

Set up Cloud VPN between the infrastructure on-premises and Google Cloud.


Expert Solution
Questions # 23:

Your application stores files on Cloud Storage by using the Standard Storage class. The application only requires access to files created in the last 30 days. You want to automatically save costs on files that are no longer accessed by the application. What should you do?

Options:

A.

Create a retention policy on the storage bucket of 30 days, and lock the bucket by using a retention policy lock.


B.

Enable object versioning on the storage bucket and add lifecycle rules to expire non-current versions after 30 days


C.

Create an object lifecycle on the storage bucket to change the storage class to Archive Storage for objects with an age over 30 days.


D.

Create a cron job in Cloud Scheduler to call a Cloud Functions instance every day to delete files older than 30 days.


Expert Solution
Questions # 24:

You are configuring service accounts for an application that spans multiple projects. Virtual machines (VMs) running in the web-applications project need access to BigQuery datasets in the crm-databases project. You want to follow Google-recommended practices to grant access to the service account in the web-applications project. What should you do?

Options:

A.

Grant "project owner" for web-applications appropriate roles to crm-databases.


B.

Grant "project owner" role to crm-databases and the web-applications project.


C.

Grant "project owner" role to crm-databases and roles/bigquery.dataViewer role to web-applications.


D.

Grant roles/bigquery.dataViewer role to crm-databases and appropriate roles to web-applications.


Expert Solution
Questions # 25:

Your organization needs to grant users access to query datasets in BigQuery but prevent them from accidentally deleting the datasets. You want a solution that follows Google-recommended practices. What should you do?

Options:

A.

Add users to roles/bigquery user role only, instead of roles/bigquery dataOwner.


B.

Add users to roles/bigquery dataEditor role only, instead of roles/bigquery dataOwner.


C.

Create a custom role by removing delete permissions, and add users to that role only.


D.

Create a custom role by removing delete permissions. Add users to the group, and then add the group to the custom role.


Expert Solution
Questions # 26:

Your VMs are running in a subnet that has a subnet mask of 255.255.255.240. The current subnet has no more free IP addresses and you require an additional 10 IP addresses for new VMs. The existing and new VMs should all be able to reach each other without additional routes. What should you do?

Options:

A.

Use gcloud to expand the IP range of the current subnet.


B.

Delete the subnet, and recreate it using a wider range of IP addresses.


C.

Create a new project. Use Shared VPC to share the current network with the new project.


D.

Create a new subnet with the same starting IP but a wider range to overwrite the current subnet.


Expert Solution
Questions # 27:

Your company publishes large files on an Apache web server that runs on a Compute Engine instance. The Apache web server is not the only application running in the project. You want to receive an email when the egress network costs for the server exceed 100 dollars for the current month as measured by Google Cloud Platform (GCP). What should you do?

Options:

A.

Set up a budget alert on the project with an amount of 100 dollars, a threshold of 100%, and notification type of “email.”


B.

Set up a budget alert on the billing account with an amount of 100 dollars, a threshold of 100%, and notification type of “email.”


C.

Export the billing data to BigQuery. Create a Cloud Function that uses BigQuery to sum the egress network costs of the exported billing data for the Apache web server for the current month and sends an email if it is over 100 dollars. Schedule the Cloud Function using Cloud Scheduler to run hourly.


D.

Use the Stackdriver Logging Agent to export the Apache web server logs to Stackdriver Logging. Create a Cloud Function that uses BigQuery to parse the HTTP response log data in Stackdriver for the current month and sends an email if the size of all HTTP responses, multiplied by current GCP egress prices, totals over 100 dollars. Schedule the Cloud Function using Cloud Scheduler to run hourly.


Expert Solution
Questions # 28:

(Your company is modernizing its applications and refactoring them to containerized microservices. You need to deploy the infrastructure on Google Cloud so that teams can deploy their applications. The applications cannot be exposed publicly. You want to minimize management and operational overhead. What should you do?)

Options:

A.

Provision a Standard zonal Google Kubernetes Engine (GKE) cluster.


B.

Provision a fleet of Compute Engine instances and install Kubernetes.


C.

Provision a Google Kubernetes Engine (GKE) Autopilot cluster.


D.

Provision a Standard regional Google Kubernetes Engine (GKE) cluster.


Expert Solution
Questions # 29:

You recently received a new Google Cloud project with an attached billing account where you will work. You need to create instances, set firewalls, and store data in Cloud Storage. You want to follow Google-recommended practices. What should you do?

Options:

A.

Use the gcloud CLI services enablecloudresourcemanager.googleapis.comcommand to enable all resources.


B.

Use the gcloud services enablecompute.googleapis.comcommand to enable Compute Engineand thegcloud services enablestorage-api.googleapis.comcommand to enable the Cloud Storage APIs.


C.

Open the Google Cloud console and enable all Google Cloud APIs from the API dashboard.


D.

Open the Google Cloud console and run gcloud init --project in a Cloud Shell.


Expert Solution
Questions # 30:

Your company has an existing GCP organization with hundreds of projects and a billing account. Your company recently acquired another company that also has hundreds of projects and its own billing account. You would like to consolidate all GCP costs of both GCP organizations onto a single invoice. You would like to consolidate all costs as of tomorrow. What should you do?

Options:

A.

Link the acquired company’s projects to your company's billing account.


B.

Configure the acquired company's billing account and your company's billing account to export the billing data into the same BigQuery dataset.


C.

Migrate the acquired company’s projects into your company’s GCP organization. Link the migrated projects to your company's billing account.


D.

Create a new GCP organization and a new billing account. Migrate the acquired company's projects and your company's projects into the new GCP organization and link the projects to the new billing account.


Expert Solution
Viewing page 3 out of 10 pages
Viewing questions 21-30 out of questions