ExamGecko
Home Home / Google / Associate Cloud Engineer

Google Associate Cloud Engineer Practice Test - Questions Answers

Question list
Search
Search

List of questions

Search

Related questions











Every employee of your company has a Google account. Your operational team needs to manage a large number of instances on Compute Engine. Each member of this team needs only administrative access to the servers. Your security team wants to ensure that the deployment of credentials is operationally efficient and must be able to determine who accessed a given instance. What should you do?

A.
Generate a new SSH key pair. Give the private key to each member of your team. Configure the public key in the metadata of each instance.
A.
Generate a new SSH key pair. Give the private key to each member of your team. Configure the public key in the metadata of each instance.
Answers
B.
Ask each member of the team to generate a new SSH key pair and to send you their public key. Use a configuration management tool to deploy those keys on each instance.
B.
Ask each member of the team to generate a new SSH key pair and to send you their public key. Use a configuration management tool to deploy those keys on each instance.
Answers
C.
Ask each member of the team to generate a new SSH key pair and to add the public key to their Google account. Grant the ''compute.osAdminLogin'' role to the Google group corresponding to this team.
C.
Ask each member of the team to generate a new SSH key pair and to add the public key to their Google account. Grant the ''compute.osAdminLogin'' role to the Google group corresponding to this team.
Answers
D.
Generate a new SSH key pair. Give the private key to each member of your team. Configure the public key as a project-wide public SSH key in your Cloud Platform project and allow project-wide public SSH keys on each instance.
D.
Generate a new SSH key pair. Give the private key to each member of your team. Configure the public key as a project-wide public SSH key in your Cloud Platform project and allow project-wide public SSH keys on each instance.
Answers
Suggested answer: C

Explanation:

https://cloud.google.com/compute/docs/instances/managing-instance-access

You need to create a custom VPC with a single subnet. The subnet's range must be as large as possible. Which range should you use?

A.
0.0.0.0/0
A.
0.0.0.0/0
Answers
B.
10.0.0.0/8
B.
10.0.0.0/8
Answers
C.
172.16.0.0/12
C.
172.16.0.0/12
Answers
D.
192.168.0.0/16
D.
192.168.0.0/16
Answers
Suggested answer: B

Explanation:

https://cloud.google.com/vpc/docs/vpc#manually_created_subnet_ip_ranges

You want to select and configure a cost-effective solution for relational data on Google Cloud Platform. You are working with a small set of operational data in one geographic location. You need to support point-in-time recovery. What should you do?

A.
Select Cloud SQL (MySQL). Verify that the enable binary logging option is selected.
A.
Select Cloud SQL (MySQL). Verify that the enable binary logging option is selected.
Answers
B.
Select Cloud SQL (MySQL). Select the create failover replicas option.
B.
Select Cloud SQL (MySQL). Select the create failover replicas option.
Answers
C.
Select Cloud Spanner. Set up your instance with 2 nodes.
C.
Select Cloud Spanner. Set up your instance with 2 nodes.
Answers
D.
Select Cloud Spanner. Set up your instance as multi-regional.
D.
Select Cloud Spanner. Set up your instance as multi-regional.
Answers
Suggested answer: A

Explanation:

https://cloud.google.com/sql/docs/mysql/backup-recovery/pitr#disk-usage

You want to configure autohealing for network load balancing for a group of Compute Engine instances that run in multiple zones, using the fewest possible steps. You need to configure re-creation of VMs if they are unresponsive after 3 attempts of 10 seconds each. What should you do?

A.
Create an HTTP load balancer with a backend configuration that references an existing instance group. Set the health check to healthy (HTTP).
A.
Create an HTTP load balancer with a backend configuration that references an existing instance group. Set the health check to healthy (HTTP).
Answers
B.
Create an HTTP load balancer with a backend configuration that references an existing instance group. Define a balancing mode and set the maximum RPS to 10.
B.
Create an HTTP load balancer with a backend configuration that references an existing instance group. Define a balancing mode and set the maximum RPS to 10.
Answers
C.
Create a managed instance group. Set the Autohealing health check to healthy (HTTP).
C.
Create a managed instance group. Set the Autohealing health check to healthy (HTTP).
Answers
D.
Create a managed instance group. Verify that the autoscaling setting is on.
D.
Create a managed instance group. Verify that the autoscaling setting is on.
Answers
Suggested answer: C

Explanation:

https://cloud.google.com/compute/docs/instance-groups

https://cloud.google.com/load-balancing/docs/network/transition-to-backend-services#console

In order to enable auto-healing, you need to group the instances into a managed instance group. Managed instance groups (MIGs) maintain the high availability of your applications by proactively keeping your virtual machine (VM) instances available. An auto-healing policy on the MIG relies on an application-based health check to verify that an application is responding as expected. If the auto-healer determines that an application isnt responding, the managed instance group automatically recreates that instance.

It is important to use separate health checks for load balancing and for auto-healing. Health checks for load balancing can and should be more aggressive because these health checks determine whether an instance receives user traffic. You want to catch non-responsive instances quickly, so you can redirect traffic if necessary. In contrast, health checking for auto-healing causes Compute Engine to proactively replace failing instances, so this health check should be more conservative than a load balancing health check.

You are using multiple configurations for gcloud. You want to review the configured Kubernetes Engine cluster of an inactive configuration using the fewest possible steps. What should you do?

A.
Use gcloud config configurations describe to review the output.
A.
Use gcloud config configurations describe to review the output.
Answers
B.
Use gcloud config configurations activate and gcloud config list to review the output.
B.
Use gcloud config configurations activate and gcloud config list to review the output.
Answers
C.
Use kubectl config get-contexts to review the output.
C.
Use kubectl config get-contexts to review the output.
Answers
D.
Use kubectl config use-context and kubectl config view to review the output.
D.
Use kubectl config use-context and kubectl config view to review the output.
Answers
Suggested answer: D

Explanation:

kubectl config view -o jsonpath='{.users[].name}' # display the first user

kubectl config view -o jsonpath='{.users[*].name}' # get a list of users

kubectl config get-contexts # display list of contexts

kubectl config current-context # display the current-context

kubectl config use-context my-cluster-name # set the default context to my-cluster-name

https://kubernetes.io/docs/reference/kubectl/cheatsheet/

Your company uses Cloud Storage to store application backup files for disaster recovery purposes. You want to follow Google's recommended practices. Which storage option should you use?

A.
Multi-Regional Storage
A.
Multi-Regional Storage
Answers
B.
Regional Storage
B.
Regional Storage
Answers
C.
Nearline Storage
C.
Nearline Storage
Answers
D.
Coldline Storage
D.
Coldline Storage
Answers
Suggested answer: D

Explanation:

https://cloud.google.com/blog/products/gcp/introducing-coldline-and-a-unified-platform-for-data-storage

Cloud Storage Coldline: a low-latency storage class for long-term archiving Coldline is a new Cloud Storage class designed for long-term archival and disaster recovery. Coldline is perfect for the archival needs of big data or multimedia content, allowing businesses to archive years of data. Coldline provides fast and instant (millisecond) access to data and changes the way that companies think about storing and accessing their cold data.

Several employees at your company have been creating projects with Cloud Platform and paying for it with their personal credit cards, which the company reimburses. The company wants to centralize all these projects under a single, new billing account. What should you do?

A.
Contact [email protected] with your bank account details and request a corporate billing account for your company.
A.
Contact [email protected] with your bank account details and request a corporate billing account for your company.
Answers
B.
Create a ticket with Google Support and wait for their call to share your credit card details over the phone.
B.
Create a ticket with Google Support and wait for their call to share your credit card details over the phone.
Answers
C.
In the Google Platform Console, go to the Resource Manage and move all projects to the root Organization.
C.
In the Google Platform Console, go to the Resource Manage and move all projects to the root Organization.
Answers
D.
In the Google Cloud Platform Console, create a new billing account and set up a payment method.
D.
In the Google Cloud Platform Console, create a new billing account and set up a payment method.
Answers
Suggested answer: D

Explanation:

(https://cloud.google.com/resource-manager/docs/project-migration#change_billing_account)

https://cloud.google.com/billing/docs/concepts

https://cloud.google.com/resource-manager/docs/project-migration

You have an application that looks for its licensing server on the IP 10.0.3.21. You need to deploy the licensing server on Compute Engine. You do not want to change the configuration of the application and want the application to be able to reach the licensing server. What should you do?

A.
Reserve the IP 10.0.3.21 as a static internal IP address using gcloud and assign it to the licensing server.
A.
Reserve the IP 10.0.3.21 as a static internal IP address using gcloud and assign it to the licensing server.
Answers
B.
Reserve the IP 10.0.3.21 as a static public IP address using gcloud and assign it to the licensing server.
B.
Reserve the IP 10.0.3.21 as a static public IP address using gcloud and assign it to the licensing server.
Answers
C.
Use the IP 10.0.3.21 as a custom ephemeral IP address and assign it to the licensing server.
C.
Use the IP 10.0.3.21 as a custom ephemeral IP address and assign it to the licensing server.
Answers
D.
Start the licensing server with an automatic ephemeral IP address, and then promote it to a static internal IP address.
D.
Start the licensing server with an automatic ephemeral IP address, and then promote it to a static internal IP address.
Answers
Suggested answer: A

Explanation:

IP 10.0.3.21 is internal by default, and to ensure that it will be static non-changing it should be selected as static internal ip address.

You are deploying an application to App Engine. You want the number of instances to scale based on request rate. You need at least 3 unoccupied instances at all times. Which scaling type should you use?

A.
Manual Scaling with 3 instances.
A.
Manual Scaling with 3 instances.
Answers
B.
Basic Scaling with min_instances set to 3.
B.
Basic Scaling with min_instances set to 3.
Answers
C.
Basic Scaling with max_instances set to 3.
C.
Basic Scaling with max_instances set to 3.
Answers
D.
Automatic Scaling with min_idle_instances set to 3.
D.
Automatic Scaling with min_idle_instances set to 3.
Answers
Suggested answer: D

Explanation:

https://cloud.google.com/appengine/docs/standard/go/config/appref

'App Engine calculates the number of instances necessary to serve your current application traffic based on scaling settings such as target_cpu_utilization and target_throughput_utilization. Setting min_idle_instances specifies the number of instances to run in addition to this calculated number. For example, if App Engine calculates that 5 instances are necessary to serve traffic, and min_idle_instances is set to 2, App Engine will run 7 instances (5, calculated based on traffic, plus 2 additional per min_idle_instances).'

Automatic scaling creates dynamic instances based on request rate, response latencies, and other application metrics. However, if you specify the number of minimum idle instances, that specified number of instances run as resident instances while any additional instances are dynamic.

Ref:https://cloud.google.com/appengine/docs/standard/python/how-instances-are-managed

You have a development project with appropriate IAM roles defined. You are creating a production project and want to have the same IAM roles on the new project, using the fewest possible steps. What should you do?

A.
Use gcloud iam roles copy and specify the production project as the destination project.
A.
Use gcloud iam roles copy and specify the production project as the destination project.
Answers
B.
Use gcloud iam roles copy and specify your organization as the destination organization.
B.
Use gcloud iam roles copy and specify your organization as the destination organization.
Answers
C.
In the Google Cloud Platform Console, use the 'create role from role' functionality.
C.
In the Google Cloud Platform Console, use the 'create role from role' functionality.
Answers
D.
In the Google Cloud Platform Console, use the 'create role' functionality and select all applicable permissions.
D.
In the Google Cloud Platform Console, use the 'create role' functionality and select all applicable permissions.
Answers
Suggested answer: A

Explanation:

To create a copy of an existing role spanner.databaseAdmin into a project with PROJECT_ID, run: gcloud iam roles copy --source='roles/spanner.databaseAdmin' --destination=CustomSpannerDbAdmin --dest-project=PROJECT_ID

Total 289 questions
Go to page: of 29