Google Associate Cloud Engineer Exam Practice Questions (P. 4)
- Full Access (326 questions)
- Six months of Premium Access
- Access to one million comments
- Seamless ChatGPT Integration
- Ability to download PDF files
- Anki Flashcard files for revision
- No Captcha & No AdSense
- Advanced Exam Configuration
Question #31
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?
- AEnable the Cloud Pub/Sub API in the API Library on the GCP Console.Most Voted
- BRely on the automatic enablement of the Cloud Pub/Sub API when the Service Account accesses it.
- CUse Deployment Manager to deploy your application. Rely on the automatic enablement of all APIs used by the application being deployed.
- DGrant 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.
Correct Answer:
A
A

To successfully use Cloud Pub/Sub in your App Engine application, you must first enable the Cloud Pub/Sub API manually within the GCP Console through the API Library. This step is crucial as there is no automatic API enablement when a service account tries to access it. Once enabled, you can then authenticate your application using the designated service account to interact with the Cloud Pub/Sub. Remember, manually enabling the API is essential to avoid access issues and ensure smooth operation of your application.
send
light_mode
delete
Question #32
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?
Monitoring dashboard. What should you do?
- AUse Shared VPC to connect all projects, and link Stackdriver to one of the projects.
- BFor 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.
- CConfigure a single Stackdriver account, and link all projects to the same account.Most Voted
- DConfigure 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.
Correct Answer:
C
C

While the official answer provided is "D," there is compelling discussion suggesting that "C" could also be a viable answer. Specifically, linking all projects under one Stackdriver account, as outlined in user comment 1, provides a consolidated monitoring solution without the complexities of managing groups and criteria that could fail, as user comment 2 mentions. Incorporating multiple projects within a single Stackdriver workspace allows for streamlined monitoring and simplified administration compared to creating separate accounts or utilizing grouping features, which could introduce limitations or errors. Thus, considering "C" might be beneficial for a unified monitoring approach across projects.
send
light_mode
delete
Question #33
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?
- ASet autoscaling to On, set the minimum number of instances to 1, and then set the maximum number of instances to 1.Most Voted
- BSet autoscaling to Off, set the minimum number of instances to 1, and then set the maximum number of instances to 1.
- CSet autoscaling to On, set the minimum number of instances to 1, and then set the maximum number of instances to 2.
- DSet autoscaling to Off, set the minimum number of instances to 1, and then set the maximum number of instances to 2.
Correct Answer:
A
A
send
light_mode
delete
Question #34
You want to verify the IAM users and roles assigned within a GCP project named my-project. What should you do?
- ARun gcloud iam roles list. Review the output section.
- BRun gcloud iam service-accounts list. Review the output section.
- CNavigate to the project and then to the IAM section in the GCP Console. Review the members and roles.Most Voted
- DNavigate to the project and then to the Roles section in the GCP Console. Review the roles and status.
Correct Answer:
C
C
send
light_mode
delete
Question #35
You need to create a new billing account and then link it with an existing Google Cloud Platform project. What should you do?
- AVerify that you are Project Billing Manager for the GCP project. Update the existing project to link it to the existing billing account.
- BVerify that you are Project Billing Manager for the GCP project. Create a new billing account and link the new billing account to the existing project.
- CVerify that you are Billing Administrator for the billing account. Create a new project and link the new project to the existing billing account.
- DVerify that you are Billing Administrator for the billing account. Update the existing project to link it to the existing billing account.
Correct Answer:
B
B
send
light_mode
delete
Question #36
You have one project called proj-sa where you manage all your service accounts. You want to be able to use a service account from this project to take snapshots of VMs running in another project called proj-vm. What should you do?
- ADownload the private key from the service account, and add it to each VMs custom metadata.
- BDownload the private key from the service account, and add the private key to each VM's SSH keys.
- CGrant the service account the IAM Role of Compute Storage Admin in the project called proj-vm.Most Voted
- DWhen creating the VMs, set the service account's API scope for Compute Engine to read/write.
Correct Answer:
C
C
send
light_mode
delete
Question #37
You created a Google Cloud Platform project with an App Engine application inside the project. You initially configured the application to be served from the us- central region. Now you want the application to be served from the asia-northeast1 region. What should you do?
- AChange the default region property setting in the existing GCP project to asia-northeast1.
- BChange the region property setting in the existing App Engine application from us-central to asia-northeast1.
- CCreate a second App Engine application in the existing GCP project and specify asia-northeast1 as the region to serve your application.
- DCreate a new GCP project and create an App Engine application inside this new project. Specify asia-northeast1 as the region to serve your application.Most Voted
Correct Answer:
D
D
send
light_mode
delete
Question #38
You need to grant access for three users so that they can view and edit table data on a Cloud Spanner instance. What should you do?
- ARun gcloud iam roles describe roles/spanner.databaseUser. Add the users to the role.
- BRun gcloud iam roles describe roles/spanner.databaseUser. Add the users to a new group. Add the group to the role.Most Voted
- CRun gcloud iam roles describe roles/spanner.viewer - -project my-project. Add the users to the role.
- DRun gcloud iam roles describe roles/spanner.viewer - -project my-project. Add the users to a new group. Add the group to the role.
Correct Answer:
B
B
send
light_mode
delete
Question #39
You create a new Google Kubernetes Engine (GKE) cluster and want to make sure that it always runs a supported and stable version of Kubernetes. What should you do?
- AEnable the Node Auto-Repair feature for your GKE cluster.
- BEnable the Node Auto-Upgrades feature for your GKE cluster.Most Voted
- CSelect the latest available cluster version for your GKE cluster.
- DSelect ג€Container-Optimized OS (cos)ג€ as a node image for your GKE cluster.
Correct Answer:
B
B
send
light_mode
delete
Question #40
You have an instance group that you want to load balance. You want the load balancer to terminate the client SSL session. The instance group is used to serve a public web application over HTTPS. You want to follow Google-recommended practices. What should you do?
- AConfigure an HTTP(S) load balancer.Most Voted
- BConfigure an internal TCP load balancer.
- CConfigure an external SSL proxy load balancer.
- DConfigure an external TCP proxy load balancer.
Correct Answer:
A
Reference:
https://cloud.google.com/load-balancing/docs/https/
A
Reference:
https://cloud.google.com/load-balancing/docs/https/
send
light_mode
delete
All Pages