exam questions

Exam Professional Cloud Architect All Questions

View all questions & answers for the Professional Cloud Architect exam

Exam Professional Cloud Architect topic 1 question 69 discussion

Actual exam question from Google's Professional Cloud Architect
Question #: 69
Topic #: 1
[All Professional Cloud Architect Questions]

You are running a cluster on Kubernetes Engine (GKE) to serve a web application. Users are reporting that a specific part of the application is not responding anymore. You notice that all pods of your deployment keep restarting after 2 seconds. The application writes logs to standard output. You want to inspect the logs to find the cause of the issue. Which approach can you take?

  • A. Review the Stackdriver logs for each Compute Engine instance that is serving as a node in the cluster.
  • B. Review the Stackdriver logs for the specific GKE container that is serving the unresponsive part of the application.
  • C. Connect to the cluster using gcloud credentials and connect to a container in one of the pods to read the logs.
  • D. Review the Serial Port logs for each Compute Engine instance that is serving as a node in the cluster.
Show Suggested Answer Hide Answer
Suggested Answer: B 🗳️

Comments

Chosen Answer:
This is a voting comment (?). It is better to Upvote an existing comment if you don't have anything to add.
Switch to a voting comment New
jcmoranp
Highly Voted 4 years, 6 months ago
think answer is B. C cannot be, you don't need to connect to the container to view logs, you connect to stackdriver for this
upvoted 34 times
crypt0
4 years, 6 months ago
Stackdriver Logging seems to be enabled by default for GKE. Looking here: https://cloud.google.com/monitoring/kubernetes-engine/legacy-stackdriver/logging For container and system logs, GKE deploys a per-node logging agent that reads container logs, adds helpful metadata, and then stores them. The logging agent checks for container logs in the following sources: Standard output and standard error logs from containerized processes I would also go with B
upvoted 12 times
AzureDP900
1 year, 6 months ago
agreed with B
upvoted 1 times
...
...
nitinz
3 years, 1 month ago
B, google wants you to use stackdriver.
upvoted 6 times
...
kumarp6
3 years, 6 months ago
Yes it is B
upvoted 3 times
...
crypt0
4 years, 6 months ago
Is Stackdriver enabled by default? Stackdriver Logging is independent and first needs to enable with GKE I guess?
upvoted 1 times
crypt0
4 years, 6 months ago
Please forget this comment ^ Answer B should be correct.
upvoted 8 times
...
tartar
3 years, 9 months ago
B is ok
upvoted 7 times
...
Jack_in_Large
3 years, 11 months ago
Yes for GKE
upvoted 1 times
...
...
...
JoeShmoe
Highly Voted 4 years, 5 months ago
B is correct. Serial console doesnt give you StdOut
upvoted 9 times
...
AdityaGupta
Most Recent 6 months, 4 weeks ago
B. Review the Stackdriver logs for the specific GKE container that is serving the unresponsive part of the application. GKE be default integrats with Google Operation Suit (Stackdriver) and you can filter the logs for more specific part of application i.e container to view logs. Also it is most efficient way of investigation.
upvoted 2 times
...
jalberto
8 months, 3 weeks ago
Selected Answer: B
B is the simples option and more effective
upvoted 1 times
...
MestreCholas
1 year, 1 month ago
Selected Answer: B
B. Review the Stackdriver logs for the specific GKE container that is serving the unresponsive part of the application. Since the application writes logs to standard output, the logs should be available in the Stackdriver logs for the container running the unresponsive part of the application. Kubernetes Engine automatically exports these logs to Stackdriver, so you can use the Stackdriver Logging console to view the logs. Option A is not the best choice because reviewing the logs for each Compute Engine instance would be time-consuming and may not provide the necessary information. Option C may work, but it involves extra steps and may not be necessary if the logs are available in Stackdriver. Option D is not relevant in this case because Serial Port logs are not likely to provide useful information for troubleshooting an unresponsive web application.
upvoted 1 times
...
omermahgoub
1 year, 4 months ago
C. Connect to the cluster using gcloud credentials and connect to a container in one of the pods to read the logs. To inspect the logs of a Kubernetes Engine (GKE) cluster to find the cause of an issue, you can connect to the cluster using gcloud credentials and connect to a container in one of the pods to read the logs. This will allow you to access the logs of the application as it is running in the cluster, which should help you identify the cause of the issue.
upvoted 2 times
omermahgoub
1 year, 4 months ago
Option A, reviewing the Stackdriver logs for each Compute Engine instance that is serving as a node in the cluster, would not be suitable because the application writes logs to standard output, not to Stackdriver. Option B, reviewing the Stackdriver logs for the specific GKE container that is serving the unresponsive part of the application, would not be suitable because the application writes logs to standard output, not to Stackdriver. Option D, reviewing the Serial Port logs for each Compute Engine instance that is serving as a node in the cluster, would not be suitable because the application writes logs to standard output, not to the Serial Port.
upvoted 3 times
...
...
jaxclain
1 year, 5 months ago
Selected Answer: B
This should be easy, the answer is B. Just eliminate the wrong answers (A) is not correct because the question is about GKE and not CE. C and D are totally lost
upvoted 1 times
...
habros
1 year, 5 months ago
Selected Answer: B
A, C, D all sounds unfeasible (credentials, and compute engine)
upvoted 1 times
...
megumin
1 year, 5 months ago
Selected Answer: B
B is ok
upvoted 1 times
...
Mahmoud_E
1 year, 6 months ago
Selected Answer: B
is correct answer
upvoted 1 times
...
Superr
1 year, 11 months ago
Selected Answer: B
correct
upvoted 1 times
...
OrangeTiger
2 years, 3 months ago
B is correct ans.I agree. https://cloud.google.com/blog/ja/products/management-tools/finding-your-gke-logs
upvoted 2 times
...
haroldbenites
2 years, 4 months ago
Go for B
upvoted 1 times
...
vincy2202
2 years, 5 months ago
B is the correct answer
upvoted 1 times
...
MaxNRG
2 years, 6 months ago
B – Review Stackdriver logs for specific GKE container that is serving the unresponsive part of the app. This is a most directly matching answer for this Q, since it reviews GKE container logs, by that advertising this Stackdriver feature. “For container and system logs, GKE deploys a per-node logging agent that reads container logs, adds helpful metadata, and then stores them. The logging agent checks for container logs in the following sources: • Standard output and standard error logs from containerized processes • kubelet and container runtime logs • Logs for system components, such as VM startup scripts” Originally we thought, that D is a right answer, since were confused with 2 seconds restart. But, that’s restart for Pod, not for Node (GCE) D – Review Serial Port logs for each Compute Engince instance, that is serving as the in the cluster. Serial Port output is standard feature of Compute Engine (which retains 1 MB most recent logs for analysis). But, it is irrelevant for Pod’s restart, caused by malfunction of some container.
upvoted 3 times
...
MamthaSJ
2 years, 9 months ago
Answer is B
upvoted 3 times
...
lovingsmart2000
2 years, 10 months ago
B is right answer. There is a catch here - Legacy logging of GKE with Stackdriver has deprecated. If this is used, you need to migrate to Cloud Operations for GKE, a new enhanced offering by Google with same functionality. Future questions will have the answer choices with new tool "Cloud Operations for GKE" instead of Stackdriver. https://cloud.google.com/monitoring/kubernetes-engine/legacy-stackdriver/logging
upvoted 2 times
...
Community vote distribution
A (35%)
C (25%)
B (20%)
Other
Most Voted
A voting comment increases the vote count for the chosen answer by one.

Upvoting a comment with a selected answer will also increase the vote count towards that answer by one. So if you see a comment that you already agree with, you can upvote it instead of posting a new comment.

SaveCancel
Loading ...
exam
Someone Bought Contributor Access for:
SY0-701
London, 1 minute ago