Question.71 You are using Container Registry to centrally store your company’s container images in a separate project. In another project, you want to create a Google Kubernetes Engine (GKE) cluster. You want to ensure that Kubernetes can download images from Container Registry. What should you do? (A) In the project where the images are stored, grant the Storage Object Viewer IAM role to the service account used by the Kubernetes nodes. (B) When you create the GKE cluster, choose the Allow full access to all Cloud APIs option under ג€˜Access scopesג€™. (C) Create a service account, and give it access to Cloud Storage. Create a P12 key for this service account and use it as an imagePullSecrets in Kubernetes. (D) Configure the ACLs on each image in Cloud Storage to give read-only access to the default Compute Engine service account. |
71. Click here to View Answer
Answer : C
Question.72 You deployed a new application inside your Google Kubernetes Engine cluster using the YAML file specified below. ![]() You check the status of the deployed pods and notice that one of them is still in PENDING status: ![]() You want to find out why the pod is stuck in pending status. What should you do? (A) Review details of the myapp-service Service object and check for error messages. (B) Review details of the myapp-deployment Deployment object and check for error messages. (C) Review details of myapp-deployment-58ddbbb995-lp86m Pod and check for warning messages. (D) View logs of the container in myapp-deployment-58ddbbb995-lp86m pod and check for warning messages. |
72. Click here to View Answer
Answer : C
Reference:
https://cloud.google.com/run/docs/gke/troubleshooting
Question.73 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. |
73. Click here to View Answer
Answer : D
Question.74 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. |
74. Click here to View Answer
Answer : D
Reference:
https://cloud.google.com/compute/docs/instances/adding-removing-ssh-keys
Question.75 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. |
75. Click here to View Answer
Answer : A