Google Professional Cloud DevOps Engineer Exam Practice Questions (P. 4)
- Full Access (196 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 #16
You are managing the production deployment to a set of Google Kubernetes Engine (GKE) clusters. You want to make sure only images which are successfully built by your trusted CI/CD pipeline are deployed to production. What should you do?
- AEnable Cloud Security Scanner on the clusters.
- BEnable Vulnerability Analysis on the Container Registry.
- CSet up the Kubernetes Engine clusters as private clusters.
- DSet up the Kubernetes Engine clusters with Binary Authorization.Most Voted
Correct Answer:
B
Reference:
https://codelabs.developers.google.com/codelabs/cloud-builder-gke-continuous-deploy/index.html#1
B
Reference:
https://codelabs.developers.google.com/codelabs/cloud-builder-gke-continuous-deploy/index.html#1
send
light_mode
delete
Question #17
You support an e-commerce application that runs on a large Google Kubernetes Engine (GKE) cluster deployed on-premises and on Google Cloud Platform. The application consists of microservices that run in containers. You want to identify containers that are using the most CPU and memory. What should you do?
- AUse Stackdriver Kubernetes Engine Monitoring.
- BUse Prometheus to collect and aggregate logs per container, and then analyze the results in Grafana.Most Voted
- CUse the Stackdriver Monitoring API to create custom metrics, and then organize your containers using groups.
- DUse Stackdriver Logging to export application logs to BigQuery, aggregate logs per container, and then analyze CPU and memory consumption.
Correct Answer:
B
B

When managing an e-commerce application with a Google Kubernetes Engine (GKE) cluster that spans both on-premises and Google Cloud Platform environments, leveraging Prometheus and Grafana is imperative. This combo enables the aggregation and visualization of metrics across diverse environments. Google’s built-in tools like Stackdriver generally play well with homogeneous cloud environments, but using Prometheus allows for more flexibility and detailed insight into resource utilization (CPU and memory) across different setups, crucial for effective performance monitoring in hybrid situations. Remember, in such mixed scenarios, Prometheus stands out for its adaptability and extensive capabilities.
send
light_mode
delete
Question #18
Your company experiences bugs, outages, and slowness in its production systems. Developers use the production environment for new feature development and bug fixes. Configuration and experiments are done in the production environment, causing outages for users. Testers use the production environment for load testing, which often slows the production systems. You need to redesign the environment to reduce the number of bugs and outages in production and to enable testers to toad test new features. What should you do?
- ACreate an automated testing script in production to detect failures as soon as they occur.
- BCreate a development environment with smaller server capacity and give access only to developers and testers.
- CSecure the production environment to ensure that developers can't change it and set up one controlled update per year.
- DCreate a development environment for writing code and a test environment for configurations, experiments, and load testing.Most Voted
Correct Answer:
A
A

It's crucial to establish separate environments for development and testing. The development environment allows developers to write and test code, carrying out initial debugging in isolation from production, which safeguards the production systems from development-related bugs and issues. Additionally, setting up a dedicated test environment for configurations, experiments, and load testing mirrors production conditions, enabling accurate assessments and preventing performance degradation in the live system. This approach not only enhances the stability and reliability of the production environment but also improves overall software quality and user experience.
send
light_mode
delete
Question #19
You support an application running on App Engine. The application is used globally and accessed from various device types. You want to know the number of connections. You are using Stackdriver Monitoring for App Engine. What metric should you use?
- Aflex/connections/currentMost Voted
- Btcp_ssl_proxy/new_connections
- Ctcp_ssl_proxy/open_connections
- Dflex/instance/connections/current
Correct Answer:
D
Reference:
https://cloud.google.com/monitoring/api/metrics_gcp
D
Reference:
https://cloud.google.com/monitoring/api/metrics_gcp
send
light_mode
delete
Question #20
You support an application deployed on Compute Engine. The application connects to a Cloud SQL instance to store and retrieve data. After an update to the application, users report errors showing database timeout messages. The number of concurrent active users remained stable. You need to find the most probable cause of the database timeout. What should you do?
- ACheck the serial port logs of the Compute Engine instance.
- BUse Stackdriver Profiler to visualize the resources utilization throughout the application.Most Voted
- CDetermine whether there is an increased number of connections to the Cloud SQL instance.
- DUse Cloud Security Scanner to see whether your Cloud SQL is under a Distributed Denial of Service (DDoS) attack.
Correct Answer:
C
C

The correct response, choosing option C, revolves around identifying if there was an uptick in database connections, which could indeed lead to timeouts even when the count of concurrent users hasn't changed. This observation is crucial because updates to applications can often unintentionally introduce inefficiencies or bugs that lead to increased database queries or more resource-intensive queries. Both may present as stable user numbers yet strain the database differently, triggering timeouts. This approach directs a more precise investigation into the relational structure and handling of data-specific workflows within the updated application, without misleadingly diversifying the diagnosis scope to overall resource utilization or security concerns prematurely.
send
light_mode
delete
All Pages