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

Viewing page 6 out of 6 pages
Viewing questions 51-60 out of questions
Questions # 51:

You use a multiple step Cloud Build pipeline to build and deploy your application to Google Kubernetes Engine (GKE). You want to integrate with a third-party monitoring platform by performing a HTTP POST of the build information to a webhook. You want to minimize the development effort. What should you do?

Options:

A.

Add logic to each Cloud Build step to HTTP POST the build information to a webhook.


B.

Add a new step at the end of the pipeline in Cloud Build to HTTP POST the build information to a webhook.


C.

Use Stackdriver Logging to create a logs-based metric from the Cloud Buitd logs. Create an Alert with a Webhook notification type.


D.

Create a Cloud Pub/Sub push subscription to the Cloud Build cloud-builds PubSub topic to HTTP POST the build information to a webhook.


Questions # 52:

You are deploying an application that needs to access sensitive information. You need to ensure that this information is encrypted and the risk of exposure is minimal if a breach occurs. What should you do?

Options:

A.

Store the encryption keys in Cloud Key Management Service (KMS) and rotate the keys frequently


B.

Inject the secret at the time of instance creation via an encrypted configuration management system.


C.

Integrate the application with a Single sign-on (SSO) system and do not expose secrets to the application


D.

Leverage a continuous build pipeline that produces multiple versions of the secret for each instance of the application.


Questions # 53:

Your team is writing a postmortem after an incident on your external facing application Your team wants to improve the postmortem policy to include triggers that indicate whether an incident requires a postmortem Based on Site Reliability Engineenng (SRE) practices, what triggers should be defined in the postmortem policy?

Choose 2 answers

Options:

A.

An external stakeholder asks for a postmortem


B.

Data is lost due to an incident


C.

An internal stakeholder requests a postmortem


D.

The monitoring system detects that one of the instances for your application has failed


E.

The CD pipeline detects an issue and rolls back a problematic release.


Questions # 54:

You have a pool of application servers running on Compute Engine. You need to provide a secure solution that requires the least amount of configuration and allows developers to easily access application logs for troubleshooting. How would you implement the solution on GCP?

Options:

A.

• Deploy the Stackdriver logging agent to the application servers.• Give the developers the IAM Logs Viewer role to access Stackdriver and view logs.


B.

• Deploy the Stackdriver logging agent to the application servers.• Give the developers the IAM Logs Private Logs Viewer role to access Stackdriver and view logs.


C.

• Deploy the Stackdriver monitoring agent to the application servers.• Give the developers the IAM Monitoring Viewer role to access Stackdriver and view metrics.


D.

• Install the gsutil command line tool on your application servers.• Write a script using gsutil to upload your application log to a Cloud Storage bucket, and then schedule it to run via cron every 5 minutes.• Give the developers IAM Object Viewer access to view the logs in the specified bucket.


Questions # 55:

Your company runs applications in Google Kubernetes Engine (GKE) that are deployed following a GitOps methodology.

Application developers frequently create cloud resources to support their applications. You want to give developers the ability to manage infrastructure as code, while ensuring that you follow Google-recommended practices. You need to ensure that infrastructure as code reconciles periodically to avoid configuration drift. What should you do?

Options:

A.

Install and configure Config Connector in Google Kubernetes Engine (GKE).


B.

Configure Cloud Build with a Terraform builder to execute plan and apply commands.


C.

Create a Pod resource with a Terraform docker image to execute terraform plan and terraform apply commands.


D.

Create a Job resource with a Terraform docker image to execute terraforrm plan and terraform apply commands.


Questions # 56:

You are reviewing your deployment pipeline in Google Cloud Deploy You must reduce toil in the pipeline and you want to minimize the amount of time it takes to complete an end-to-end deployment What should you do?

Choose 2 answers

Options:

A.

Create a trigger to notify the required team to complete the next step when manual intervention is required


B.

Divide the automation steps into smaller tasks


C.

Use a script to automate the creation of the deployment pipeline in Google Cloud Deploy


D.

Add more engineers to finish the manual steps.


E.

Automate promotion approvals from the development environment to the test environment


Questions # 57:

You work for a company that manages highly sensitive user data. You are designing the Google Kubernetes Engine (GKE) infrastructure for your company, including several applications that will be deployed in development and production environments. Your design must protect data from unauthorized access from other applications while minimizing the amount of management overhead required. What should you do?

Options:

A.

Create one cluster for the organization with separate namespaces for each application and environment combination.


B.

Create one cluster for each environment (development and production) with each application in its own namespace within each cluster.


C.

Create one cluster for the organization with separate namespaces for each application.


D.

Create one cluster for each application with separate namespaces for production and development environments.


Questions # 58:

Your organization wants to collect system logs that will be used to generate dashboards in Cloud Operations for their Google Cloud project. You need to configure all current and future Compute Engine instances to collect the system logs and you must ensure that the Ops Agent remains up to date. What should you do?

Options:

A.

Use the gcloud CLI to install the Ops Agent on each VM listed in the Cloud Asset Inventory


B.

Select all VMs with an Agent status of Not detected on the Cloud Operations VMs dashboard Then select Install agents


C.

Use the gcloud CLI to create an Agent Policy.


D.

Install the Ops Agent on the Compute Engine image by using a startup script


Viewing page 6 out of 6 pages
Viewing questions 51-60 out of questions