Question.31 You are creating a Google Kubernetes Engine (GKE) cluster with a cluster autoscaler feature enabled. You need to make sure that each node of the cluster will run a monitoring pod that sends container metrics to a third-party monitoring solution. What should you do? (A) Deploy the monitoring pod in a StatefulSet object. (B) Deploy the monitoring pod in a DaemonSet object. (C) Reference the monitoring pod in a Deployment object. (D) Reference the monitoring pod in a cluster initializer at the GKE cluster creation time. |
31. Click here to View Answer
Correct Answer: B
Question.32 You want to send and consume Cloud Pub/Sub messages from your App Engine application. The Cloud Pub/Sub API is currently disabled. You will use a service account to authenticate your application to the API. You want to make sure your application can use Cloud Pub/Sub. What should you do? (A) Enable the Cloud Pub/Sub API in the API Library on the GCP Console. (B) Rely on the automatic enablement of the Cloud Pub/Sub API when the Service Account accesses it. (C) Use Deployment Manager to deploy your application. Rely on the automatic enablement of all APIs used by the application being deployed. (D) Grant the App Engine Default service account the role of Cloud Pub/Sub Admin. Have your application enable the API on the first connection to Cloud Pub/ Sub. |
32. Click here to View Answer
Correct Answer: A
Question.33 You need to monitor resources that are distributed over different projects in Google Cloud Platform. You want to consolidate reporting under the same Stackdriver Monitoring dashboard. What should you do? (A) Use Shared VPC to connect all projects, and link Stackdriver to one of the projects. (B) For each project, create a Stackdriver account. In each project, create a service account for that project and grant it the role of Stackdriver Account Editor in all other projects. (C) Configure a single Stackdriver account, and link all projects to the same account. (D) Configure a single Stackdriver account for one of the projects. In Stackdriver, create a Group and add the other project names as criteria for that Group. |
33. Click here to View Answer
Correct Answer: C
Question.34 You are deploying an application to a Compute Engine VM in a managed instance group. The application must be running at all times, but only a single instance of the VM should run per GCP project. How should you configure the instance group? (A) Set autoscaling to On, set the minimum number of instances to 1, and then set the maximum number of instances to 1. (B) Set autoscaling to Off, set the minimum number of instances to 1, and then set the maximum number of instances to 1. (C) Set autoscaling to On, set the minimum number of instances to 1, and then set the maximum number of instances to 2. (D) Set autoscaling to Off, set the minimum number of instances to 1, and then set the maximum number of instances to 2. |
34. Click here to View Answer
Correct Answer: A
Question.35 You want to verify the IAM users and roles assigned within a GCP project named my-project. What should you do? (A) Run gcloud iam roles list. Review the output section. (B) Run gcloud iam service-accounts list. Review the output section. (C) Navigate to the project and then to the IAM section in the GCP Console. Review the members and roles. (D) Navigate to the project and then to the Roles section in the GCP Console. Review the roles and status. |
35. Click here to View Answer
Correct Answer: C