Pass the Google Cloud DevOps Engineer Professional-Cloud-DevOps-Engineer Questions and answers with CertsForce

Viewing page 5 out of 6 pages
Viewing questions 41-50 out of questions
Questions # 41:

You are managing an application that exposes an HTTP endpoint without using a load balancer. The latency of the HTTP responses is important for the user experience. You want to understand what HTTP latencies all of your users are experiencing. You use Stackdriver Monitoring. What should you do?

Options:

A.

• In your application, create a metric with a metricKind set to DELTA and a valueType set to DOUBLE.• In Stackdriver's Metrics Explorer, use a Slacked Bar graph to visualize the metric.


B.

• In your application, create a metric with a metricKind set to CUMULATIVE and a valueType set to DOUBLE.• In Stackdriver's Metrics Explorer, use a Line graph to visualize the metric.


C.

• In your application, create a metric with a metricKind set to gauge and a valueType set to distribution.• In Stackdriver's Metrics Explorer, use a Heatmap graph to visualize the metric.


D.

• In your application, create a metric with a metricKind. set toMETRlc_KIND_UNSPECIFIEDanda valueType set to INT64.• In Stackdriver's Metrics Explorer, use a Stacked Area graph to visualize the metric.


Questions # 42:

You are developing reusable infrastructure as code modules. Each module contains integration tests that launch the module in a test project. You are using GitHub for source control. You need to Continuously test your feature branch and ensure that all code is tested before changes are accepted. You need to implement a solution to automate the integration tests. What should you do?

Options:

A.

Use a Jenkins server for Cl/CD pipelines. Periodically run all tests in the feature branch.


B.

Use Cloud Build to run the tests. Trigger all tests to run after a pull request is merged.


C.

Ask the pull request reviewers to run the integration tests before approving the code.


D.

Use Cloud Build to run tests in a specific folder. Trigger Cloud Build for every GitHub pull request.


Questions # 43:

You manage your company's primary revenue-generating application. You have an error budget policy in place that freezes production deployments when the application is close to breaching its SLO. A number of issues have recently occurred, and the application has exhausted its error budget. You need to deploy a new release to the application that includes a feature urgently required by your largest customer. You have been told that the release has passed all unit tests. What should you do?

Options:

A.

Start the deployment of the feature immediately.


B.

Delay the deployment of the feature until the error budget is replenished.


C.

Re-run the unit tests, and start the deployment of the feature if the tests pass.


D.

Deploy the feature to a subset of users, and gradually roll out to all users if there are no errors reported.


Questions # 44:

You support a user-facing web application. When analyzing the application’s error budget over the previous six months, you notice that the application has never consumed more than 5% of its error budget in any given time window. You hold a Service Level Objective (SLO) review with business stakeholders and confirm that the SLO is set appropriately. You want your application’s SLO to more closely reflect its observed reliability. What steps can you take to further that goal while balancing velocity, reliability, and business needs? (Choose two.)

Options:

A.

Add more serving capacity to all of your application’s zones.


B.

Have more frequent or potentially risky application releases.


C.

Tighten the SLO match the application’s observed reliability.


D.

Implement and measure additional Service Level Indicators (SLIs) fro the application.


E.

Announce planned downtime to consume more error budget, and ensure that users are not depending on a tighter SLO.


Questions # 45:

You are configuring Cloud Logging for a new application that runs on a Compute Engine instance with a public IP address. A user-managed service account is attached to the instance. You confirmed that the necessary agents are running on the instance but you cannot see any log entries from the instance in Cloud Logging. You want to resolve the issue by following Google-recommended practices. What should you do?

Options:

A.

Add the Logs Writer role to the service account.


B.

Enable Private Google Access on the subnet that the instance is in.


C.

Update the instance to use the default Compute Engine service account.


D.

Export the service account key and configure the agents to use the key.


Questions # 46:

You have an application that runs in Google Kubernetes Engine (GKE). The application consists of several microservices that are deployed to GKE by using Deployments and Services One of the microservices is experiencing an issue where a Pod returns 403 errors after the Pod has been running for more than five hours Your development team is working on a solution but the issue will not be resolved for a month You need to ensure continued operations until the microservice is fixed You want to follow Google-recommended practices and use the fewest number of steps What should you do?

Options:

A.

Create a cron job to terminate any Pods that have been running for more than five hours


B.

Add a HTTP liveness probe to the microservice s deployment


C.

Monitor the Pods and terminate any Pods that have been running for more than five hours


D.

Configure an alert to notify you whenever a Pod returns 403 errors


Questions # 47:

You currently store the virtual machine (VM) utilization logs in Stackdriver. You need to provide an easy-to-share interactive VM utilization dashboard that is updated in real time and contains information aggregated on a quarterly basis. You want to use Google Cloud Platform solutions. What should you do?

Options:

A.

1. Export VM utilization logs from Stackdriver to BigOuery.2. Create a dashboard in Data Studio.3. Share the dashboard with your stakeholders.


B.

1. Export VM utilization logs from Stackdriver to Cloud Pub/Sub.2. From Cloud Pub/Sub, send the logs to a Security Information and Event Management (SIEM) system.3. Build the dashboards in the SIEM system and share with your stakeholders.


C.

1. Export VM utilization logs (rom Stackdriver to BigQuery.2. From BigQuery. export the logs to a CSV file.3. Import the CSV file into Google Sheets.4. Build a dashboard in Google Sheets and share it with your stakeholders.


D.

1. Export VM utilization logs from Stackdriver to a Cloud Storage bucket.2. Enable the Cloud Storage API to pull the logs programmatically.3. Build a custom data visualization application.4. Display the pulled logs in a custom dashboard.


Questions # 48:

You need to deploy a new service to production. The service needs to automatically scale using a Managed Instance Group (MIG) and should be deployed over multiple regions. The service needs a large number of resources for each instance and you need to plan for capacity. What should you do?

Options:

A.

Use the n2-highcpu-96 machine type in the configuration of the MIG.


B.

Monitor results of Stackdriver Trace to determine the required amount of resources.


C.

Validate that the resource requirements are within the available quota limits of each region.


D.

Deploy the service in one region and use a global load balancer to route traffic to this region.


Questions # 49:

Your company operates in a highly regulated domain that requires you to store all organization logs for seven years You want to minimize logging infrastructure complexity by using managed services You need to avoid any future loss of log capture or stored logs due to misconfiguration or human error What should you do?

Options:

A.

Use Cloud Logging to configure an aggregated sink at the organization level to export all logs into a BigQuery dataset


B.

Use Cloud Logging to configure an aggregated sink at the organization level to export all logs into Cloud Storage with a seven-year retention policy and Bucket Lock


C.

Use Cloud Logging to configure an export sink at each project level to export all logs into a BigQuery dataset


D.

Use Cloud Logging to configure an export sink at each project level to export all logs into Cloud Storage with a seven-year retention policy and Bucket Lock


Questions # 50:

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?

Options:

A.

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.


B.

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.


C.

Escalate the situation and request additional error budget.


D.

Look through other metrics related to the product and find SLOs with remaining error budget. Reallocate the error budgets and allow the feature launch.


Viewing page 5 out of 6 pages
Viewing questions 41-50 out of questions