ExamGecko
Home Home / Google / Professional Cloud Architect

Google Professional Cloud Architect Practice Test - Questions Answers, Page 18

Question list
Search
Search

List of questions

Search

Related questions











You have an application that runs in Google Kubernetes Engine (GKE). Over the last 2 weeks, customers have reported that a specific part of the application returns errors very frequently. You currently have no logging or monitoring solution enabled on your GKE cluster. You want to diagnose the problem, but you have not been able to replicate the issue. You want to cause minimal disruption to the application. What should you do?

A.
1. Update your GKE cluster to use Cloud Operations for GKE.
A.
1. Update your GKE cluster to use Cloud Operations for GKE.
Answers
B.
Use the GKE Monitoring dashboard to investigate logs from affected Pods.
B.
Use the GKE Monitoring dashboard to investigate logs from affected Pods.
Answers
C.
1. Create a new GKE cluster with Cloud Operations for GKE enabled.
C.
1. Create a new GKE cluster with Cloud Operations for GKE enabled.
Answers
D.
Migrate the affected Pods to the new cluster, and redirect traffic for those Pods to the new cluster.
D.
Migrate the affected Pods to the new cluster, and redirect traffic for those Pods to the new cluster.
Answers
E.
Use the GKE Monitoring dashboard to investigate logs from affected Pods.
E.
Use the GKE Monitoring dashboard to investigate logs from affected Pods.
Answers
F.
1. Update your GKE cluster to use Cloud Operations for GKE, and deploy Prometheus.
F.
1. Update your GKE cluster to use Cloud Operations for GKE, and deploy Prometheus.
Answers
G.
Set an alert to trigger whenever the application returns an error.
G.
Set an alert to trigger whenever the application returns an error.
Answers
H.
1. Create a new GKE cluster with Cloud Operations for GKE enabled, and deploy Prometheus.
H.
1. Create a new GKE cluster with Cloud Operations for GKE enabled, and deploy Prometheus.
Answers
I.
Migrate the affected Pods to the new cluster, and redirect traffic for those Pods to the new cluster.
I.
Migrate the affected Pods to the new cluster, and redirect traffic for those Pods to the new cluster.
Answers
J.
Set an alert to trigger whenever the application returns an error.
J.
Set an alert to trigger whenever the application returns an error.
Answers
Suggested answer: C

Explanation:

Reference: https://cloud.google.com/blog/products/management-tools/using-logging-your-apps-running-kubernetes-engine

You need to deploy a stateful workload on Google Cloud. The workload can scale horizontally, but each instance needs to read and write to the same POSIX filesystem. At high load, the stateful workload needs to support up to 100 MB/s of writes. What should you do?

A.
Use a persistent disk for each instance.
A.
Use a persistent disk for each instance.
Answers
B.
Use a regional persistent disk for each instance.
B.
Use a regional persistent disk for each instance.
Answers
C.
Create a Cloud Filestore instance and mount it in each instance.
C.
Create a Cloud Filestore instance and mount it in each instance.
Answers
D.
Create a Cloud Storage bucket and mount it in each instance using gcsfuse.
D.
Create a Cloud Storage bucket and mount it in each instance using gcsfuse.
Answers
Suggested answer: D

Explanation:

Reference: https://cloud.google.com/storage/docs/gcs-fuse

Your company has an application deployed on Anthos clusters (formerly Anthos GKE) that is running multiple microservices. The cluster has both Anthos Service Mesh and Anthos Config Management configured. End users inform you that the application is responding very slowly. You want to identify the microservice that is causing the delay. What should you do?

A.
Use the Service Mesh visualization in the Cloud Console to inspect the telemetry between the microservices.
A.
Use the Service Mesh visualization in the Cloud Console to inspect the telemetry between the microservices.
Answers
B.
Use Anthos Config Management to create a ClusterSelector selecting the relevant cluster. On the Google Cloud Console page for Google Kubernetes Engine, view the Workloads and filter on the cluster. Inspect the configurations of thefiltered workloads.
B.
Use Anthos Config Management to create a ClusterSelector selecting the relevant cluster. On the Google Cloud Console page for Google Kubernetes Engine, view the Workloads and filter on the cluster. Inspect the configurations of thefiltered workloads.
Answers
C.
Use Anthos Config Management to create a namespaceSelector selecting the relevant cluster namespace. On the Google Cloud Console page for Google Kubernetes Engine, visit the workloads and filter on the namespace. Inspect theconfigurations of the filtered workloads.
C.
Use Anthos Config Management to create a namespaceSelector selecting the relevant cluster namespace. On the Google Cloud Console page for Google Kubernetes Engine, visit the workloads and filter on the namespace. Inspect theconfigurations of the filtered workloads.
Answers
D.
Reinstall istio using the default istio profile in order to collect request latency. Evaluate the telemetry between the microservices in the Cloud Console.
D.
Reinstall istio using the default istio profile in order to collect request latency. Evaluate the telemetry between the microservices in the Cloud Console.
Answers
Suggested answer: A

You are working at a financial institution that stores mortgage loan approval documents on Cloud Storage. Any change to these approval documents must be uploaded as a separate approval file, so you want to ensure that these documents cannot be deleted or overwritten for the next 5 years. What should you do?

A.
Create a retention policy on the bucket for the duration of 5 years. Create a lock on the retention policy.
A.
Create a retention policy on the bucket for the duration of 5 years. Create a lock on the retention policy.
Answers
B.
Create the bucket with uniform bucket-level access, and grant a service account the role of Object Writer. Use the service account to upload new files.
B.
Create the bucket with uniform bucket-level access, and grant a service account the role of Object Writer. Use the service account to upload new files.
Answers
C.
Use a customer-managed key for the encryption of the bucket. Rotate the key after 5 years.
C.
Use a customer-managed key for the encryption of the bucket. Rotate the key after 5 years.
Answers
D.
Create the bucket with fine-grained access control, and grant a service account the role of Object Writer. Use the service account to upload new files.
D.
Create the bucket with fine-grained access control, and grant a service account the role of Object Writer. Use the service account to upload new files.
Answers
Suggested answer: A

Explanation:

Reference: https://cloud.google.com/storage/docs/using-bucket-lock

Your team will start developing a new application using microservices architecture on Kubernetes Engine. As part of the development lifecycle, any code change that has been pushed to the remote develop branch on your GitHub repository should be built and tested automatically. When the build and test are successful, the relevant microservice will be deployed automatically in the development environment. You want to ensure that all code deployed in the development environment follows this process. What should you do?

A.
Have each developer install a pre-commit hook on their workstation that tests the code and builds the container when committing on the development branch. After a successful commit, have the developer deploy the newly builtcontainer image on the development cluster.
A.
Have each developer install a pre-commit hook on their workstation that tests the code and builds the container when committing on the development branch. After a successful commit, have the developer deploy the newly builtcontainer image on the development cluster.
Answers
B.
Install a post-commit hook on the remote git repository that tests the code and builds the container when code is pushed to the development branch. After a successful commit, have the developer deploy the newly built container imageon the development cluster.
B.
Install a post-commit hook on the remote git repository that tests the code and builds the container when code is pushed to the development branch. After a successful commit, have the developer deploy the newly built container imageon the development cluster.
Answers
C.
Create a Cloud Build trigger based on the development branch that tests the code, builds the container, and stores it in Container Registry. Create a deployment pipeline that watches for new images and deploys the new image on thedevelopment cluster. Ensure only the deployment tool has access to deploy new versions.
C.
Create a Cloud Build trigger based on the development branch that tests the code, builds the container, and stores it in Container Registry. Create a deployment pipeline that watches for new images and deploys the new image on thedevelopment cluster. Ensure only the deployment tool has access to deploy new versions.
Answers
D.
Create a Cloud Build trigger based on the development branch to build a new container image and store it in Container Registry. Rely on Vulnerability Scanning to ensure the code tests succeed. As the final step of the CloudBuildprocess, deploy the new container image on the development cluster. Ensure only Cloud Build has access to deploy new versions.
D.
Create a Cloud Build trigger based on the development branch to build a new container image and store it in Container Registry. Rely on Vulnerability Scanning to ensure the code tests succeed. As the final step of the CloudBuildprocess, deploy the new container image on the development cluster. Ensure only Cloud Build has access to deploy new versions.
Answers
Suggested answer: A

Your operations team has asked you to help diagnose a performance issue in a production application that runs on Compute Engine. The application is dropping requests that reach it when under heavy load. The process list for affected instances shows a single application process that is consuming all available CPU, and autoscaling has reached the upper limit of instances. There is no abnormal load on any other related systems, including the database. You want to allow production traffic to be served again as quickly as possible. Which action should you recommend?

A.
Change the autoscaling metric to agent.googleapis.com/memory/percent_used.
A.
Change the autoscaling metric to agent.googleapis.com/memory/percent_used.
Answers
B.
Restart the affected instances on a staggered schedule.
B.
Restart the affected instances on a staggered schedule.
Answers
C.
SSH to each instance and restart the application process.
C.
SSH to each instance and restart the application process.
Answers
D.
Increase the maximum number of instances in the autoscaling group.
D.
Increase the maximum number of instances in the autoscaling group.
Answers
Suggested answer: A

Explanation:

Reference: https://cloud.google.com/blog/products/sap-google-cloud/best-practices-for-sap-app-server-autoscaling-on-google-cloud

You are implementing the infrastructure for a web service on Google Cloud. The web service needs to receive and store the data from 500,000 requests per second. The data will be queried later in real time, based on exact matches of a known set of attributes. There will be periods where the web service will not receive any requests. The business wants to keep costs low. Which web service platform and database should you use for the application?

A.
Cloud Run and BigQuery
A.
Cloud Run and BigQuery
Answers
B.
Cloud Run and Cloud Bigtable
B.
Cloud Run and Cloud Bigtable
Answers
C.
A Compute Engine autoscaling managed instance group and BigQuery
C.
A Compute Engine autoscaling managed instance group and BigQuery
Answers
D.
A Compute Engine autoscaling managed instance group and Cloud Bigtable
D.
A Compute Engine autoscaling managed instance group and Cloud Bigtable
Answers
Suggested answer: D

You are developing an application using different microservices that should remain internal to the cluster. You want to be able to configure each microservice with a specific number of replicas. You also want to be able to address a specific microservice from any other microservice in a uniform way, regardless of the number of replicas the microservice scales to. You need to implement this solution on Google Kubernetes Engine. What should you do?

A.
Deploy each microservice as a Deployment. Expose the Deployment in the cluster using a Service, and use the Service DNS name to address it from other microservices within the cluster.
A.
Deploy each microservice as a Deployment. Expose the Deployment in the cluster using a Service, and use the Service DNS name to address it from other microservices within the cluster.
Answers
B.
Deploy each microservice as a Deployment. Expose the Deployment in the cluster using an Ingress, and use the Ingress IP address to address the Deployment from other microservices within the cluster.
B.
Deploy each microservice as a Deployment. Expose the Deployment in the cluster using an Ingress, and use the Ingress IP address to address the Deployment from other microservices within the cluster.
Answers
C.
Deploy each microservice as a Pod. Expose the Pod in the cluster using a Service, and use the Service DNS name to address the microservice from other microservices within the cluster.
C.
Deploy each microservice as a Pod. Expose the Pod in the cluster using a Service, and use the Service DNS name to address the microservice from other microservices within the cluster.
Answers
D.
Deploy each microservice as a Pod. Expose the Pod in the cluster using an Ingress, and use the Ingress IP address name to address the Pod from other microservices within the cluster.
D.
Deploy each microservice as a Pod. Expose the Pod in the cluster using an Ingress, and use the Ingress IP address name to address the Pod from other microservices within the cluster.
Answers
Suggested answer: A

Your company has a networking team and a development team. The development team runs applications on Compute Engine instances that contain sensitive data. The development team requires administrative permissions for Compute Engine. Your company requires all network resources to be managed by the networking team. The development team does not want the networking team to have access to the sensitive data on the instances. What should you do?

A.
1. Create a project with a standalone VPC and assign the Network Admin role to the networking team.
A.
1. Create a project with a standalone VPC and assign the Network Admin role to the networking team.
Answers
B.
Create a second project with a standalone VPC and assign the Compute Admin role to the development team.
B.
Create a second project with a standalone VPC and assign the Compute Admin role to the development team.
Answers
C.
Use Cloud VPN to join the two VPCs.
C.
Use Cloud VPN to join the two VPCs.
Answers
D.
1. Create a project with a standalone Virtual Private Cloud (VPC), assign the Network Admin role to the networking team, and assign the Compute Admin role to the development team.
D.
1. Create a project with a standalone Virtual Private Cloud (VPC), assign the Network Admin role to the networking team, and assign the Compute Admin role to the development team.
Answers
E.
1. Create a project with a Shared VPC and assign the Network Admin role to the networking team.
E.
1. Create a project with a Shared VPC and assign the Network Admin role to the networking team.
Answers
F.
Create a second project without a VPC, configure it as a Shared VPC service project, and assign the Compute Admin role to the development team.
F.
Create a second project without a VPC, configure it as a Shared VPC service project, and assign the Compute Admin role to the development team.
Answers
G.
1. Create a project with a standalone VPC and assign the Network Admin role to the networking team.
G.
1. Create a project with a standalone VPC and assign the Network Admin role to the networking team.
Answers
H.
Create a second project with a standalone VPC and assign the Compute Admin role to the development team.
H.
Create a second project with a standalone VPC and assign the Compute Admin role to the development team.
Answers
I.
Use VPC Peering to join the two VPCs.
I.
Use VPC Peering to join the two VPCs.
Answers
Suggested answer: C

Explanation:

Reference: https://cloud.google.com/vpc/docs/shared-vpc

Your company wants you to build a highly reliable web application with a few public APIs as the backend. You don't expect a lot of user traffic, but traffic could spike occasionally. You want to leverage Cloud Load Balancing, and the solution must be cost-effective for users. What should you do?

A.
Store static content such as HTML and images in Cloud CDN. Host the APIs on App Engine and store the user data in Cloud SQL.
A.
Store static content such as HTML and images in Cloud CDN. Host the APIs on App Engine and store the user data in Cloud SQL.
Answers
B.
Store static content such as HTML and images in a Cloud Storage bucket. Host the APIs on a zonal Google Kubernetes Engine cluster with worker nodes in multiple zones, and save the user data in Cloud Spanner.
B.
Store static content such as HTML and images in a Cloud Storage bucket. Host the APIs on a zonal Google Kubernetes Engine cluster with worker nodes in multiple zones, and save the user data in Cloud Spanner.
Answers
C.
Store static content such as HTML and images in Cloud CDN. Use Cloud Run to host the APIs and save the user data in Cloud SQL.
C.
Store static content such as HTML and images in Cloud CDN. Use Cloud Run to host the APIs and save the user data in Cloud SQL.
Answers
D.
Store static content such as HTML and images in a Cloud Storage bucket. Use Cloud Functions to host the APIs and save the user data in Firestore.
D.
Store static content such as HTML and images in a Cloud Storage bucket. Use Cloud Functions to host the APIs and save the user data in Firestore.
Answers
Suggested answer: B
Total 285 questions
Go to page: of 29