Exams > Google > Associate Cloud Engineer
Associate Cloud Engineer
Page 5 out of 20 pages Questions 41-50 out of 197 questions
Question#41

You are setting up a Windows VM on Compute Engine and want to make sure you can log in to the VM via RDP. What should you do?

  • A. After the VM has been created, use your Google Account credentials to log in into the VM.
  • B. After the VM has been created, use gcloud compute reset-windows-password to retrieve the login credentials for the VM.
  • C. When creating the VM, add metadata to the instance using 'windows-password' as the key and a password as the value.
  • D. After the VM has been created, download the JSON private key for the default Compute Engine service account. Use the credentials in the JSON file to log in to the VM.
Discover Answer Hide Answer

D

Question#42

You want to configure an SSH connection to a single Compute Engine instance for users in the dev1 group. This instance is the only resource in this particular
Google Cloud Platform project that the dev1 users should be able to connect to. What should you do?

  • A. Set metadata to enable-oslogin=true for the instance. Grant the dev1 group the compute.osLogin role. Direct them to use the Cloud Shell to ssh to that instance.
  • B. Set metadata to enable-oslogin=true for the instance. Set the service account to no service account for that instance. Direct them to use the Cloud Shell to ssh to that instance.
  • C. Enable block project wide keys for the instance. Generate an SSH key for each user in the dev1 group. Distribute the keys to dev1 users and direct them to use their third-party tools to connect.
  • D. Enable block project wide keys for the instance. Generate an SSH key and associate the key with that instance. Distribute the key to dev1 users and direct them to use their third-party tools to connect.
Discover Answer Hide Answer

D
Reference:
https://cloud.google.com/compute/docs/instances/adding-removing-ssh-keys

Question#43

You need to produce a list of the enabled Google Cloud Platform APIs for a GCP project using the gcloud command line in the Cloud Shell. The project name is my-project. What should you do?

  • A. Run gcloud projects list to get the project ID, and then run gcloud services list --project <project ID>.
  • B. Run gcloud init to set the current project to my-project, and then run gcloud services list --available.
  • C. Run gcloud info to view the account value, and then run gcloud services list --account <Account>.
  • D. Run gcloud projects describe <project ID> to verify the project value, and then run gcloud services list --available.
Discover Answer Hide Answer

A

Question#44

You are building a new version of an application hosted in an App Engine environment. You want to test the new version with 1% of users before you completely switch your application over to the new version. What should you do?

  • A. Deploy a new version of your application in Google Kubernetes Engine instead of App Engine and then use GCP Console to split traffic.
  • B. Deploy a new version of your application in a Compute Engine instance instead of App Engine and then use GCP Console to split traffic.
  • C. Deploy a new version as a separate app in App Engine. Then configure App Engine using GCP Console to split traffic between the two apps.
  • D. Deploy a new version of your application in App Engine. Then go to App Engine settings in GCP Console and split traffic between the current version and newly deployed versions accordingly.
Discover Answer Hide Answer

D

Question#45

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.
  • B. Use gcloud config configurations activate and gcloud config list to review the output.
  • C. Use kubectl config get-contexts to review the output.
  • D. Use kubectl config use-context and kubectl config view to review the output.
Discover Answer Hide Answer

D
Reference:
https://medium.com/google-cloud/kubernetes-engine-kubectl-config-b6270d2b656c

Question#46

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
  • B. Regional Storage
  • C. Nearline Storage
  • D. Coldline Storage
Discover Answer Hide Answer

D
Reference:
https://cloud.google.com/storage/docs/storage-classes#nearline

Question#47

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.
  • B. Create a ticket with Google Support and wait for their call to share your credit card details over the phone.
  • C. In the Google Platform Console, go to the Resource Manage and move all projects to the root Organizarion.
  • D. In the Google Cloud Platform Console, create a new billing account and set up a payment method.
Discover Answer Hide Answer

D
Reference:
https://www.whizlabs.com/blog/google-cloud-interview-questions/

Question#48

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.
  • B. Reserve the IP 10.0.3.21 as a static public IP address using gcloud 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.
  • D. Start the licensing server with an automatic ephemeral IP address, and then promote it to a static internal IP address.
Discover Answer Hide Answer

A

Question#49

You need to provide a cost estimate for a Kubernetes cluster using the GCP pricing calculator for Kubernetes. Your workload requires high IOPs, and you will also be using disk snapshots. You start by entering the number of nodes, average hours, and average days. What should you do next?

  • A. Fill in local SSD. Fill in persistent disk storage and snapshot storage.
  • B. Fill in local SSD. Add estimated cost for cluster management.
  • C. Select Add GPUs. Fill in persistent disk storage and snapshot storage.
  • D. Select Add GPUs. Add estimated cost for cluster management.
Discover Answer Hide Answer

C
Reference:
https://cloud.google.com/products/calculator#tab=container

Question#50

You are using Google Kubernetes Engine with autoscaling enabled to host a new application. You want to expose this new application to the public, using HTTPS on a public IP address. What should you do?

  • A. Create a Kubernetes Service of type NodePort for your application, and a Kubernetes Ingress to expose this Service via a Cloud Load Balancer.
  • B. Create a Kubernetes Service of type ClusterIP for your application. Configure the public DNS name of your application using the IP of this Service.
  • C. Create a Kubernetes Service of type NodePort to expose the application on port 443 of each node of the Kubernetes cluster. Configure the public DNS name of your application with the IP of every node of the cluster to achieve load-balancing.
  • D. Create a HAProxy pod in the cluster to load-balance the traffic to all the pods of the application. Forward the public traffic to HAProxy with an iptable rule. Configure the DNS name of your application using the public IP of the node HAProxy is running on.
Discover Answer Hide Answer

A
Reference:
https://cloud.google.com/kubernetes-engine/docs/tutorials/http-balancer

chevron rightPrevious Nextchevron right