Practice Free Professional Cloud DevOps Engineer Exam Online Questions
You are working with a government agency that requires you to archive application logs for seven years. You need to configure Stackdriver to export and store the logs while minimizing costs of storage.
What should you do?
- A . Create a Cloud Storage bucket and develop your application to send logs directly to the bucket.
- B . Develop an App Engine application that pulls the logs from Stackdriver and saves them in BigQuery.
- C . Create an export in Stackdriver and configure Cloud Pub/Sub to store logs in permanent storage for seven years.
- D . Create a sink in Stackdriver, name it, create a bucket on Cloud Storage for storing archived logs, and then select the bucket as the log export destination.
You support a web application that runs on App Engine and uses CloudSQL and Cloud Storage for data storage. After a short spike in website traffic, you notice a big increase in latency for all user requests, increase in CPU use, and the number of processes running the application. Initial troubleshooting reveals:
After the initial spike in traffic, load levels returned to normal but users still experience high latency. Requests for content from the CloudSQL database and images from Cloud Storage show the same high latency.
No changes were made to the website around the time the latency increased.
There is no increase in the number of errors to the users.
You expect another spike in website traffic in the coming days and want to make sure users don’t experience latency.
What should you do?
- A . Upgrade the GCS buckets to Multi-Regional.
- B . Enable high availability on the CloudSQL instances.
- C . Move the application from App Engine to Compute Engine.
- D . Modify the App Engine configuration to have additional idle instances.
Your company is migrating its production systems to Google Cloud. You need to implement site reliability engineering (SRE) practices during the migration to minimize customer impact from potential future incidents.
Which two SRE practices should you implement? Choose 2 answers
- A . Ensure that full autonomy and permissions are only granted to the on-call team.
- B . Automate common tasks to analyze key impact information and intelligently suggest mitigating actions for the on-call team.
- C . Ensure that all teams can modify the production environment to resolve issues.
- D . Create an alerting mechanism for your SRE team based on your system’s internal behavior.
- E . Create up-to-date playbooks with instructions for debugging and mitigating issues.
You recently noticed that one Of your services has exceeded the error budget for the current rolling window period. Your company’s product team is about to launch a new feature. You want to follow Site Reliability Engineering (SRE) practices.
What should you do?
- A . Notify the team that their error budget is used up. Negotiate with the team for a launch freeze or tolerate a slightly worse user experience.
- B . Look through other metrics related to the product and find SLOs with remaining error budget.
Reallocate the error budgets and allow the feature launch. - C . Escalate the situation and request additional error budget.
- D . Notify the team about the lack of error budget and ensure that all their tests are successful so the launch will not further risk the error budget.
You support an application that stores product information in cached memory. For every cache miss, an entry is logged in Stackdriver Logging. You want to visualize how often a cache miss happens over time.
What should you do?
- A . Link Stackdriver Logging as a source in Google Data Studio. Filler (he logs on the cache misses.
- B . Configure Stackdriver Profiler to identify and visualize when the cache misses occur based on the logs.
- C . Create a logs-based metric in Stackdriver Logging and a dashboard for that metric in Stackdriver Monitoring.
- D . Configure BigOuery as a sink for Stackdriver Logging. Create a scheduled query to filter the cache miss logs and write them to a separate table
You are building and running client applications in Cloud Run and Cloud Functions Your client requires that all logs must be available for one year so that the client can import the logs into their logging service You must minimize required code changes.
What should you do?
- A . Update all images in Cloud Run and all functions in Cloud Functions to send logs to both Cloud Logging andthe client’s logging service Ensure that all the ports required to send logs are open in the VPC firewall
- B . Create a Pub/Sub topic subscription and logging sink Configure the logging sink to send all logs into thetopic Give your client access to the topic to retrieve the logs
- C . Create a storage bucket and appropriate VPC firewall rules Update all images in Cloud Run and allfunctions in Cloud Functions to send logs to a file within the storage bucket
- D . Create a logs bucket and logging sink. Set the retention on the logs bucket to 365 days Configure thelogging sink to send logs to the bucket Give your client access to the bucket to retrieve the logs
You are building and deploying a microservice on Cloud Run for your organization Your service is used by many applications internally You are deploying a new release, and you need to test the new version extensively in the staging and production environments You must minimize user and developer impact.
What should you do?
- A . Deploy the new version of the service to the staging environment Split the traffic, and allow 1 % of traffic through to the latest version Test the latest version If the test passes gradually roll out the latest version to the staging and production environments
- B . Deploy the new version of the service to the staging environment Split the traffic, and allow 50% of traffic through to the latest version Test the latest version If the test passes, send all traffic to the latest version Repeat for the production environment
- C . Deploy the new version of the service to the staging environment with a new-release tag without serving traffic Test the new-release version If the test passes; gradually roll out this tagged version Repeat for the production environment
- D . Deploy a new environment with the green tag to use as the staging environment Deploy the new version of the service to the green environment and test the new version If the tests pass, send all traffic to the green environment and delete the existing staging environment Repeat for the production environment
You support a service that recently had an outage. The outage was caused by a new release that exhausted the service memory resources. You rolled back the release successfully to mitigate the impact on users. You are now in charge of the post-mortem for the outage. You want to follow Site Reliability Engineering practices when developing the post-mortem.
What should you do?
- A . Focus on developing new features rather than avoiding the outages from recurring.
- B . Focus on identifying the contributing causes of the incident rather than the individual responsible for the cause.
- C . Plan individual meetings with all the engineers involved. Determine who approved and pushed the new release to production.
- D . Use the Git history to find the related code commit. Prevent the engineer who made that commit from working on production services.
Your company processes IOT data at scale by using Pub/Sub, App Engine standard environment, and an application written in GO. You noticed that the performance inconsistently degrades at peak load. You could not reproduce this issue on your workstation. You need to continuously monitor the application in production to identify slow paths in the code. You want to minimize performance impact and management overhead.
What should you do?
- A . Install a continuous profiling tool into Compute Engine. Configure the application to send profiling data to the tool.
- B . Periodically run the go tool pprof command against the application instance. Analyze the results by using flame graphs.
- C . Configure Cloud Profiler, and initialize the [email protected]/go/profiler library in the application.
- D . Use Cloud Monitoring to assess the App Engine CPU utilization metric.
You are the Site Reliability Engineer responsible for managing your company’s data services and products. You regularly navigate operational challenges, such as unpredictable data volume and high cost, with your company’s data ingestion processes. You recently learned that a new data ingestion product will be developed in Google Cloud. You need to collaborate with the product development team to provide operational input on the new product.
What should you do?
- A . Deploy the prototype product in a test environment, run a load test, and share the results with the product development team.
- B . When the initial product version passes the quality assurance phase and compliance assessments, deploy the product to a staging environment. Share error logs and performancemetrics with the product development team.
- C . When the new product is used by at least one internal customer in production, share error logs and monitoring metrics with the product development team.
- D . Review the design of the product with the product development team to provide feedback early in the design phase.