Google Professional Cloud DevOps Engineer Exam Practice Questions (P. 1)
- Full Access (176 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 #1
You support a Node.js application running on Google Kubernetes Engine (GKE) in production. The application makes several HTTP requests to dependent applications. You want to anticipate which dependent applications might cause performance issues. What should you do?
- AInstrument all applications with Stackdriver Profiler.
- BInstrument all applications with Stackdriver Trace and review inter-service HTTP requests.Most Voted
- CUse Stackdriver Debugger to review the execution of logic within each application to instrument all applications.
- DModify the Node.js application to log HTTP request and response times to dependent applications. Use Stackdriver Logging to find dependent applications that are performing poorly.
Correct Answer:
B
B

To effectively anticipate and address performance issues due to HTTP requests in a Node.js application running on GKE, it's essential to instrument all applications with Stackdriver Trace. This tool specifically allows you to review inter-service HTTP requests and identify performance bottlenecks in production environments in real time. This approach is more targeted and beneficial for tracing the flow of requests and understanding latency issues across services compared to alternatives that may not provide direct insights into inter-service interactions.
send
light_mode
delete
Question #2
You created a Stackdriver chart for CPU utilization in a dashboard within your workspace project. You want to share the chart with your Site Reliability Engineering
(SRE) team only. You want to ensure you follow the principle of least privilege. What should you do?
(SRE) team only. You want to ensure you follow the principle of least privilege. What should you do?
- AShare the workspace Project ID with the SRE team. Assign the SRE team the Monitoring Viewer IAM role in the workspace project.
- BShare the workspace Project ID with the SRE team. Assign the SRE team the Dashboard Viewer IAM role in the workspace project.
- CClick ג€Share chart by URLג€ and provide the URL to the SRE team. Assign the SRE team the Monitoring Viewer IAM role in the workspace project.Most Voted
- DClick ג€Share chart by URLג€ and provide the URL to the SRE team. Assign the SRE team the Dashboard Viewer IAM role in the workspace project.
Correct Answer:
A
A

To ensure the principle of least privilege when sharing a CPU utilization chart with your SRE team, assign them the Monitoring Viewer IAM role in the workspace project. This role permits them to view monitoring data, which is exactly what is required for analyzing CPU utilization. Although sharing the chart via URL might seem direct, it doesn't align with best practices of access management and could lead to errors if the SRE team lacks the necessary permissions to view the data embedded in the link. Therefore, the best approach remains to utilize proper IAM roles within the project context.
send
light_mode
delete
Question #3
Your organization wants to implement Site Reliability Engineering (SRE) culture and principles. Recently, a service that you support had a limited outage. A manager on another team asks you to provide a formal explanation of what happened so they can action remediations. What should you do?
- ADevelop a postmortem that includes the root causes, resolution, lessons learned, and a prioritized list of action items. Share it with the manager only.
- BDevelop a postmortem that includes the root causes, resolution, lessons learned, and a prioritized list of action items. Share it on the engineering organization's document portal.Most Voted
- CDevelop a postmortem that includes the root causes, resolution, lessons learned, the list of people responsible, and a list of action items for each person. Share it with the manager only.
- DDevelop a postmortem that includes the root causes, resolution, lessons learned, the list of people responsible, and a list of action items for each person. Share it on the engineering organization's document portal.
Correct Answer:
B
B

In fostering a Site Reliability Engineering (SRE) culture, open sharing of postmortems is crucial. Option B is the most aligned with SRE principles, emphasizing the importance of a blameless postmortem process and broad dissemination of information. This approach ensures that every team learns from incidents without focusing on individual culpability, thereby improving the overall reliability and resilience of services. Sharing lessons widely rather than restricting them to a single manager enhances transparency and collective learning across the organization.
send
light_mode
delete
Question #4
You have a set of applications running on a Google Kubernetes Engine (GKE) cluster, and you are using Stackdriver Kubernetes Engine Monitoring. You are bringing a new containerized application required by your company into production. This application is written by a third party and cannot be modified or reconfigured. The application writes its log information to /var/log/app_messages.log, and you want to send these log entries to Stackdriver Logging. What should you do?
- AUse the default Stackdriver Kubernetes Engine Monitoring agent configuration.
- BDeploy a Fluentd daemonset to GKE. Then create a customized input and output configuration to tail the log file in the application's pods and write to Stackdriver Logging.Most Voted
- CInstall Kubernetes on Google Compute Engine (GCE) and redeploy your applications. Then customize the built-in Stackdriver Logging configuration to tail the log file in the application's pods and write to Stackdriver Logging.
- DWrite a script to tail the log file within the pod and write entries to standard output. Run the script as a sidecar container with the application's pod. Configure a shared volume between the containers to allow the script to have read access to /var/log in the application container.
Correct Answer:
B
Reference:
https://cloud.google.com/solutions/customizing-stackdriver-logs-fluentd
B
Reference:
https://cloud.google.com/solutions/customizing-stackdriver-logs-fluentd
send
light_mode
delete
Question #5
You are running an application in a virtual machine (VM) using a custom Debian image. The image has the Stackdriver Logging agent installed. The VM has the cloud-platform scope. The application is logging information via syslog. You want to use Stackdriver Logging in the Google Cloud Platform Console to visualize the logs. You notice that syslog is not showing up in the "All logs" dropdown list of the Logs Viewer. What is the first thing you should do?
- ALook for the agent's test log entry in the Logs Viewer.
- BInstall the most recent version of the Stackdriver agent.
- CVerify the VM service account access scope includes the monitoring.write scope.
- DSSH to the VM and execute the following commands on your VM: ps ax | grep fluentd.Most Voted
Correct Answer:
D
Reference:
https://groups.google.com/g/google-stackdriver-discussion/c/FXehB9a-5Vk?pli=1
D
Reference:
https://groups.google.com/g/google-stackdriver-discussion/c/FXehB9a-5Vk?pli=1
send
light_mode
delete
All Pages