Professional Cloud DevOps Engineer Practice Test

Professional Cloud DevOps Engineer Practice Test practice questions, page 4 of 10, with answer review and explanations.

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?

  1. Enable Cloud Security Scanner on the clusters.
  2. Enable Vulnerability Analysis on the Container Registry.
  3. Set up the Kubernetes Engine clusters as private clusters.
  4. Set up the Kubernetes Engine clusters with Binary Authorization.

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?

  1. Use Stackdriver Kubernetes Engine Monitoring.
  2. Use Prometheus to collect and aggregate logs per container, and then analyze the results in Grafana.
  3. Use the Stackdriver Monitoring API to create custom metrics, and then organize your containers using groups.
  4. Use Stackdriver Logging to export application logs to BigQuery, aggregate logs per container, and then analyze CPU and memory consumption.

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?

  1. Create an automated testing script in production to detect failures as soon as they occur.
  2. Create a development environment with smaller server capacity and give access only to developers and testers.
  3. Secure the production environment to ensure that developers can't change it and set up one controlled update per year.
  4. Create a development environment for writing code and a test environment for configurations, experiments, and load testing.

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?

  1. flex/connections/current
  2. tcp_ssl_proxy/new_connections
  3. tcp_ssl_proxy/open_connections
  4. flex/instance/connections/current

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?

  1. Check the serial port logs of the Compute Engine instance.
  2. Use Stackdriver Profiler to visualize the resources utilization throughout the application.
  3. Determine whether there is an increased number of connections to the Cloud SQL instance.
  4. Use Cloud Security Scanner to see whether your Cloud SQL is under a Distributed Denial of Service (DDoS) attack.