Home » Coding » Preparing For Your Associate Cloud Engineer Journey – Google Cloud [Week 5]

Preparing For Your Associate Cloud Engineer Journey – Google Cloud [Week 5]

Week 5: Diagnostic Questions

Question 1

You want to view a description of your available snapshots using the command line interface (CLI). What gcloud command should you use?

  • gcloud compute snapshots list
  • gcloud snapshots list
  • gcloud compute snapshots get
  • gcloud compute list snapshots
Question 2

You have a scheduled snapshot you are trying to delete, but the operation returns an error. What should you do to resolve this problem?

  • Delete the downstream incremental snapshots before deleting the main reference.
  • Delete the object the snapshot was created from.
  • Detach the snapshot schedule before deleting it.
  • Restore the snapshot to a persistent disk before deleting it.
Question 3

Which of the following tasks are part of the process when configuring a managed instance group? (Pick two).

  • Defining Health checks
  • Providing Number of instances
  • Specifying Persistent disks
  • Choosing instance Machine type
  • Configuring the operating system
Question 4

Cymbal Superstore’s GKE cluster requires an internal http(s) load balancer. You are creating the configuration files required for this resource. What is the proper setting for this scenario?

  • Annotate your ingress object with an ingress.class of “gce.”
  • Configure your service object with a type: LoadBalancer.
  • Annotate your service object with a neg reference.
  • Implement custom static routes in your VPC:
Question 5

What Kubernetes object provides access to logic running in your cluster via endpoints that you define?

  • Pod templates
  • Pods
  • Services
  • Deployments
Question 6

What is the declarative way to initialize and update Kubernetes objects?

  • kubectl apply
  • kubectl create
  • kubectl replace
  • kubectl run
Question 7

You have a Cloud Run service with a database backend. You want to limit the number of connections to your database. What should you do?

  • Set Min instances.
  • Set Max instances.
  • Set CPU Utilization.
  • Set Concurrency settings.
Question 8

You want to implement a lifecycle rule that changes your storage type from standard to nearline after a specific date. What conditions should you use? (Pick two).

  • Age
  • CreatedBefore
  • MatchesStorageClass
  • IsLive
  • NumberofNewerVersions
Question 9

Cymbal Superstore has a subnetwork called mysubnet with an IP range of 10.1.2.0/24. You need to expand this subnet to include enough IP addresses for at most 2000 new users or devices. What should you do?

  • gcloud compute networks subnets expand-ip-range mysubnet –region us-central1 –prefix-length 20
  • gcloud networks subnets expand-ip-range mysubnet –region us-central1 –prefix-length 21
  • gcloud compute networks subnets expand-ip-range mysubnet –region us-central1 –prefix-length 21
  • gcloud compute networks subnets expand-ip-range mysubnet –region us-cetnral1 –prefix-length 22
Question 10

Cymbal Superstore’s supply chain management system has been deployed and is working well. You are tasked with monitoring the system’s resources so you can react quickly to any problems. You want to ensure the CPU usage of each of your Compute Engine instances in us-central1 remains below 60%. You want an incident created if it exceeds this value for 5 minutes. You need to configure the proper alerting policy for this scenario. What should you do?

  • Choose resource type of VM instance and metric of CPU load, condition trigger if any time series violates, condition is below, threshold is .60, for 5 minutes.
  • Choose resource type of VM instance and metric of CPU utilization, condition trigger all time series violates, condition is above, threshold is .60 for 5 minutes.
  • Choose resource type of VM instance, and metric of CPU utilization, condition trigger if any time series violates, condition is below, threshold is .60 for 5 minutes.
  • Choose resource type of VM instance and metric of CPU utilization, condition trigger if any time series violates, condition is above, threshold is .60 for 5 minutes.

Week 5: Knowedge Check

Question 1

What GKE object implements an http(s) load balancer?

  • Service
  • Pod
  • Deployment
  • Ingress
Question 2

Which Cloud Run autoscaling setting should you set if you want to limit cost?

  • Min instances
  • Max instances
  • Concurrency settings
  • CPU Utilization
Photo of author

Saksham Bhargava

Saksham is a tech enthusiast who loves talking about new gadgets and innovations. He loves travelling, particularly to places not frequented by tourists. In his free time, you will find Saksham beating the phone at PUBG Mobile or streaming new highly-rated TV series.