ExamGecko
Home Home / Google / Professional Cloud Architect

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

Question list
Search
Search

List of questions

Search

Related questions











Your company sends all Google Cloud logs to Cloud Logging. Your security team wants to monitor the logs. You want to ensure that the security team can react quickly if an anomaly such as an unwanted firewall change or server breach is detected. You want to follow Google-recommended practices. What should you do?

A.
Schedule a cron job with Cloud Scheduler. The scheduled job queries the logs every minute for the relevant events.
A.
Schedule a cron job with Cloud Scheduler. The scheduled job queries the logs every minute for the relevant events.
Answers
B.
Export logs to BigQuery, and trigger a query in BigQuery to process the log data for the relevant events.
B.
Export logs to BigQuery, and trigger a query in BigQuery to process the log data for the relevant events.
Answers
C.
Export logs to a Pub/Sub topic, and trigger Cloud Function with the relevant log events.
C.
Export logs to a Pub/Sub topic, and trigger Cloud Function with the relevant log events.
Answers
D.
Export logs to a Cloud Storage bucket, and trigger Cloud Run with the relevant log events.
D.
Export logs to a Cloud Storage bucket, and trigger Cloud Run with the relevant log events.
Answers
Suggested answer: C

Explanation:

Section: [none]

You have deployed several instances on Compute Engine. As a security requirement, instances cannot have a public IP address. There is no VPN connection between Google Cloud and your office, and you need to connect via SSH into a specific machine without violating the security requirements. What should you do?

A.
Configure Cloud NAT on the subnet where the instance is hosted. Create an SSH connection to the Cloud NAT IP address to reach the instance.
A.
Configure Cloud NAT on the subnet where the instance is hosted. Create an SSH connection to the Cloud NAT IP address to reach the instance.
Answers
B.
Add all instances to an unmanaged instance group. Configure TCP Proxy Load Balancing with the instance group as a backend. Connect to the instance using the TCP Proxy IP.
B.
Add all instances to an unmanaged instance group. Configure TCP Proxy Load Balancing with the instance group as a backend. Connect to the instance using the TCP Proxy IP.
Answers
C.
Configure Identity-Aware Proxy (IAP) for the instance and ensure that you have the role of IAP-secured Tunnel User. Use the gcloud command line tool to ssh into the instance.
C.
Configure Identity-Aware Proxy (IAP) for the instance and ensure that you have the role of IAP-secured Tunnel User. Use the gcloud command line tool to ssh into the instance.
Answers
D.
Create a bastion host in the network to SSH into the bastion host from your office location. From the bastion host, SSH into the desired instance.
D.
Create a bastion host in the network to SSH into the bastion host from your office location. From the bastion host, SSH into the desired instance.
Answers
Suggested answer: D

Explanation:

Reference: https://cloud.google.com/solutions/connecting-securely

Your company is using Google Cloud. You have two folders under the Organization: Finance and Shopping. The members of the development team are in a Google Group. The development team group has been assigned the Project Owner role on the Organization. You want to prevent the development team from creating resources in projects in the Finance folder. What should you do?

A.
Assign the development team group the Project Viewer role on the Finance folder, and assign the development team group the Project Owner role on the Shopping folder.
A.
Assign the development team group the Project Viewer role on the Finance folder, and assign the development team group the Project Owner role on the Shopping folder.
Answers
B.
Assign the development team group only the Project Viewer role on the Finance folder.
B.
Assign the development team group only the Project Viewer role on the Finance folder.
Answers
C.
Assign the development team group the Project Owner role on the Shopping folder, and remove the development team group Project Owner role from the Organization.
C.
Assign the development team group the Project Owner role on the Shopping folder, and remove the development team group Project Owner role from the Organization.
Answers
D.
Assign the development team group only the Project Owner role on the Shopping folder.
D.
Assign the development team group only the Project Owner role on the Shopping folder.
Answers
Suggested answer: C

Explanation:

Reference: https://cloud.google.com/resource-manager/docs/creating-managing-folders

You are developing your microservices application on Google Kubernetes Engine. During testing, you want to validate the behavior of your application in case a specific microservice should suddenly crash. What should you do?

A.
Add a taint to one of the nodes of the Kubernetes cluster. For the specific microservice, configure a pod anti-affinity label that has the name of the tainted node as a value.
A.
Add a taint to one of the nodes of the Kubernetes cluster. For the specific microservice, configure a pod anti-affinity label that has the name of the tainted node as a value.
Answers
B.
Use Istio's fault injection on the particular microservice whose faulty behavior you want to simulate.
B.
Use Istio's fault injection on the particular microservice whose faulty behavior you want to simulate.
Answers
C.
Destroy one of the nodes of the Kubernetes cluster to observe the behavior.
C.
Destroy one of the nodes of the Kubernetes cluster to observe the behavior.
Answers
D.
Configure Istio's traffic management features to steer the traffic away from a crashing microservice.
D.
Configure Istio's traffic management features to steer the traffic away from a crashing microservice.
Answers
Suggested answer: C

Your company is developing a new application that will allow globally distributed users to upload pictures and share them with other selected users. The application will support millions of concurrent users. You want to allow developers to focus on just building code without having to create and maintain the underlying infrastructure. Which service should you use to deploy the application?

A.
App Engine
A.
App Engine
Answers
B.
Cloud Endpoints
B.
Cloud Endpoints
Answers
C.
Compute Engine
C.
Compute Engine
Answers
D.
Google Kubernetes Engine
D.
Google Kubernetes Engine
Answers
Suggested answer: A

Explanation:

Reference: https://cloud.google.com/terms/services

Your company provides a recommendation engine for retail customers. You are providing retail customers with an API where they can submit a user ID and the API returns a list of recommendations for that user. You are responsible for the API lifecycle and want to ensure stability for your customers in case the API makes backward-incompatible changes. You want to follow Google-recommended practices. What should you do?

A.
Create a distribution list of all customers to inform them of an upcoming backward-incompatible change at least one month before replacing the old API with the new API.
A.
Create a distribution list of all customers to inform them of an upcoming backward-incompatible change at least one month before replacing the old API with the new API.
Answers
B.
Create an automated process to generate API documentation, and update the public API documentation as part of the CI/CD process when deploying an update to the API.
B.
Create an automated process to generate API documentation, and update the public API documentation as part of the CI/CD process when deploying an update to the API.
Answers
C.
Use a versioning strategy for the APIs that increases the version number on every backward-incompatible change.
C.
Use a versioning strategy for the APIs that increases the version number on every backward-incompatible change.
Answers
D.
Use a versioning strategy for the APIs that adds the suffix "DEPRECATED" to the current API version number on every backward-incompatible change. Use the current version number for the new API.
D.
Use a versioning strategy for the APIs that adds the suffix "DEPRECATED" to the current API version number on every backward-incompatible change. Use the current version number for the new API.
Answers
Suggested answer: A

Your company has developed a monolithic, 3-tier application to allow external users to upload and share files. The solution cannot be easily enhanced and lacks reliability. The development team would like to re-architect the application to adopt microservices and a fully managed service approach, but they need to convince their leadership that the effort is worthwhile. Which advantage(s) should they highlight to leadership?

A.
The new approach will be significantly less costly, make it easier to manage the underlying infrastructure, and automatically manage the CI/CD pipelines.
A.
The new approach will be significantly less costly, make it easier to manage the underlying infrastructure, and automatically manage the CI/CD pipelines.
Answers
B.
The monolithic solution can be converted to a container with Docker. The generated container can then be deployed into a Kubernetes cluster.
B.
The monolithic solution can be converted to a container with Docker. The generated container can then be deployed into a Kubernetes cluster.
Answers
C.
The new approach will make it easier to decouple infrastructure from application, develop and release new features, manage the underlying infrastructure, manage CI/CD pipelines and perform A/B testing, and scale the solution ifnecessary.
C.
The new approach will make it easier to decouple infrastructure from application, develop and release new features, manage the underlying infrastructure, manage CI/CD pipelines and perform A/B testing, and scale the solution ifnecessary.
Answers
D.
The process can be automated with Migrate for Compute Engine.
D.
The process can be automated with Migrate for Compute Engine.
Answers
Suggested answer: C

Your team is developing a web application that will be deployed on Google Kubernetes Engine (GKE). Your CTO expects a successful launch and you need to ensure your application can handle the expected load of tens of thousands of users. You want to test the current deployment to ensure the latency of your application stays below a certain threshold. What should you do?

A.
Use a load testing tool to simulate the expected number of concurrent users and total requests to your application, and inspect the results.
A.
Use a load testing tool to simulate the expected number of concurrent users and total requests to your application, and inspect the results.
Answers
B.
Enable autoscaling on the GKE cluster and enable horizontal pod autoscaling on your application deployments. Send curl requests to your application, and validate if the auto scaling works.
B.
Enable autoscaling on the GKE cluster and enable horizontal pod autoscaling on your application deployments. Send curl requests to your application, and validate if the auto scaling works.
Answers
C.
Replicate the application over multiple GKE clusters in every Google Cloud region. Configure a global HTTP(S) load balancer to expose the different clusters over a single global IP address.
C.
Replicate the application over multiple GKE clusters in every Google Cloud region. Configure a global HTTP(S) load balancer to expose the different clusters over a single global IP address.
Answers
D.
Use Cloud Debugger in the development environment to understand the latency between the different microservices.
D.
Use Cloud Debugger in the development environment to understand the latency between the different microservices.
Answers
Suggested answer: B

Your company has a Kubernetes application that pulls messages from Pub/Sub and stores them in Filestore. Because the application is simple, it was deployed as a single pod. The infrastructure team has analyzed Pub/Sub metrics and discovered that the application cannot process the messages in real time. Most of them wait for minutes before being processed. You need to scale the elaboration process that is I/O-intensive. What should you do?

A.
Use kubectl autoscale deployment APP_NAME --max 6 --min 2 --cpu-percent 50 to configure Kubernetes autoscaling deployment.
A.
Use kubectl autoscale deployment APP_NAME --max 6 --min 2 --cpu-percent 50 to configure Kubernetes autoscaling deployment.
Answers
B.
Configure a Kubernetes autoscaling deployment based on the subscription/push_request_latencies metric.
B.
Configure a Kubernetes autoscaling deployment based on the subscription/push_request_latencies metric.
Answers
C.
Use the --enable-autoscaling flag when you create the Kubernetes cluster.
C.
Use the --enable-autoscaling flag when you create the Kubernetes cluster.
Answers
D.
Configure a Kubernetes autoscaling deployment based on the subscription/num_undelivered_messages metric.
D.
Configure a Kubernetes autoscaling deployment based on the subscription/num_undelivered_messages metric.
Answers
Suggested answer: C

Explanation:

Reference: https://cloud.google.com/kubernetes-engine/docs/how-to/cluster-autoscaler

Your company is developing a web-based application. You need to make sure that production deployments are linked to source code commits and are fully auditable. What should you do?

A.
Make sure a developer is tagging the code commit with the date and time of commit.
A.
Make sure a developer is tagging the code commit with the date and time of commit.
Answers
B.
Make sure a developer is adding a comment to the commit that links to the deployment.
B.
Make sure a developer is adding a comment to the commit that links to the deployment.
Answers
C.
Make the container tag match the source code commit hash.
C.
Make the container tag match the source code commit hash.
Answers
D.
Make sure the developer is tagging the commits with latest.
D.
Make sure the developer is tagging the commits with latest.
Answers
Suggested answer: A
Total 285 questions
Go to page: of 29