exam questions

Exam Professional Cloud Developer All Questions

View all questions & answers for the Professional Cloud Developer exam

Exam Professional Cloud Developer topic 1 question 23 discussion

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

You want to use the Stackdriver Logging Agent to send an application's log file to Stackdriver from a Compute Engine virtual machine instance.
After installing the Stackdriver Logging Agent, what should you do first?

  • A. Enable the Error Reporting API on the project.
  • B. Grant the instance full access to all Cloud APIs.
  • C. Configure the application log file as a custom source.
  • D. Create a Stackdriver Logs Export Sink with a filter that matches the application's log entries.
Show Suggested Answer Hide Answer
Suggested Answer: C 🗳️

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
santoshchauhan
7 months, 3 weeks ago
Selected Answer: C
C. Configuring the application log file as a custom source is the crucial step after installing the Stackdriver Logging Agent. This involves specifying the path to the application's log file in the agent's configuration files, so the agent knows where to find and how to parse your custom log files.
upvoted 1 times
...
nicgas
11 months ago
Selected Answer: C
it's C
upvoted 1 times
...
__rajan__
1 year, 1 month ago
Selected Answer: C
We need to configure the log source in StackDriver ager to read the logs.
upvoted 1 times
...
maxdanny
1 year, 2 months ago
Selected Answer: C
After installing StackDriver agent, you need to configure the new source from which to read the logs to be sent
upvoted 1 times
...
closer89
1 year, 5 months ago
Selected Answer: C
first C then D
upvoted 1 times
...
tab02733
2 years ago
Selected Answer: B
API must be allowed to output logs. https://cloud.google.com/logging/docs/agent/ops-agent/authorization First, do B, then do C. I vote for B.
upvoted 1 times
GofX
1 year, 11 months ago
Answer B tells us to authorize the instance to ALL Cloud APIs. I don't see a world where this answer can be right as it breaks the least privilege principle quite heavily.
upvoted 5 times
...
...
tomato123
2 years, 2 months ago
Selected Answer: C
C is correct
upvoted 3 times
...
javibadillo
2 years, 4 months ago
Selected Answer: C
https://cloud.google.com/logging/docs/agent/configuration
upvoted 1 times
...
herocc
2 years, 9 months ago
C is right
upvoted 2 times
...
ParagSanyashiv
2 years, 9 months ago
Selected Answer: C
Answer is C
upvoted 1 times
...
syu31svc
3 years, 4 months ago
Send to Stackdriver so answer is C then
upvoted 3 times
...
maleksah
3 years, 9 months ago
Answer is C
upvoted 2 times
...
saurabh1805
3 years, 11 months ago
C is my answer.
upvoted 3 times
fraloca
3 years, 10 months ago
https://cloud.google.com/logging/docs/agent/configuration#streaming_logs_from_additional_inputs
upvoted 1 times
...
...
mlyu
4 years, 3 months ago
I think answer should be C unless your application log is in the default log directory https://cloud.google.com/logging/docs/agent/configuration
upvoted 3 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