Welcome to ExamTopics
ExamTopics Logo
- Expert Verified, Online, Free.

Unlimited Access

Get Unlimited Contributor Access to the all ExamTopics Exams!
Take advantage of PDF Files for 1000+ Exams along with community discussions and pass IT Certification Exams Easily.

Exam Professional Cloud DevOps Engineer topic 1 question 42 discussion

Actual exam question from Google's Professional Cloud DevOps Engineer
Question #: 42
Topic #: 1
[All Professional Cloud DevOps Engineer Questions]

You manage an application that is writing logs to Stackdriver Logging. You need to give some team members the ability to export logs. What should you do?

  • A. Grant the team members the IAM role of logging.configWriter on Cloud IAM.
  • B. Configure Access Context Manager to allow only these members to export logs.
  • C. Create and grant a custom IAM role with the permissions logging.sinks.list and logging.sink.get.
  • D. Create an Organizational Policy in Cloud IAM to allow only these members to create log exports.
Show Suggested Answer Hide Answer
Suggested Answer: A 🗳️
Reference:
https://cloud.google.com/logging/docs/access-control

Comments

Chosen Answer:
This is a voting comment (?) , you can switch to a simple comment.
Switch to a voting comment New
rinkeshgala1
Highly Voted 2 years, 11 months ago
option A
upvoted 26 times
akg001
2 years, 11 months ago
agree for the A.
upvoted 5 times
irocketsoldier
2 years, 5 months ago
I understand that option A gives the ability to export logs, but isn't C the best option following the least privilege principle since the question only says that the team members needs to export logs and not to write them?
upvoted 6 times
...
...
...
Manh
Highly Voted 2 years, 6 months ago
It's should be C. least privilege The question is ask about export log and does not mention about read and write log Option A give too many permission Logs Configuration Writer (roles/logging.configWriter) Provides permissions to read and write the configurations of logs-based metrics and sinks for exporting logs. logging.buckets.create logging.buckets.delete logging.buckets.get logging.buckets.list logging.buckets.undelete logging.buckets.update logging.cmekSettings.* logging.exclusions.* logging.locations.* logging.logMetrics.* logging.logServiceIndexes.* logging.logServices.* logging.logs.list logging.notificationRules.* logging.operations.* logging.sinks.* logging.views.create logging.views.delete logging.views.get logging.views.list logging.views.update resourcemanager.projects.get resourcemanager.projects.list
upvoted 7 times
hanweiCN
1 year, 5 months ago
ability to use sinks Add logging.sinks.{list, create, get, update, delete} , the list, get function can only have view permission. can not create sinks to export logs. u need create sink to export logs.
upvoted 1 times
...
Manh
2 years, 6 months ago
After review again, Ans A had enough permission to export log https://cloud.google.com/logging/docs/routing/overview
upvoted 2 times
Goram113
2 years, 5 months ago
logging.sinks.create is needed to export logs - this is why C is wrong
upvoted 11 times
...
...
...
jomonkp
Most Recent 5 months, 2 weeks ago
Selected Answer: C
option C
upvoted 1 times
...
JonathanSJ
1 year, 4 months ago
Selected Answer: A
A is correct, although it has wide permissions, but option C have missing other granular permissions for exporting logs, like logging, sinks, create
upvoted 1 times
...
GaneshSurwase
1 year, 4 months ago
correct ans is A Logs Configuration Writer (roles/logging.configWriter) Provides permissions to read and write the configurations of logs-based metrics and sinks for exporting logs.
upvoted 1 times
...
Ananda
2 years ago
Selected Answer: A
Option A
upvoted 1 times
...
Sreedharveluru
2 years ago
Selected Answer: A
There is no such thing called logging.sink.get
upvoted 3 times
...
Epic_rose
2 years, 1 month ago
Selected Answer: A
roles/logging.configWriter (Logs Configuration Writer) gives you the permissions to create log-based metrics, exclusions, buckets, and views, and to use sinks. To use the Logs Explorer (console) for these actions, add roles/logging.viewer.
upvoted 1 times
...
Shasha1
2 years, 2 months ago
A Logs configuration writer can access to configure log exporting and metrics
upvoted 1 times
...
ric79
2 years, 2 months ago
What is the minimum set of privs in order to export logs?
upvoted 1 times
...
zygomar
2 years, 2 months ago
Selected Answer: A
in addition to other comments here, C would be too restrictive. User new to have logs list permissions at least to know which logs to export. Goram113 also indicate that logging.sinks.create is needed to export logs hence why C is wrong
upvoted 1 times
...
PhilipKoku
2 years, 3 months ago
Selected Answer: C
C - Use principle of minimum access required to fulfill the requirements
upvoted 1 times
...
vijaigcp
2 years, 3 months ago
Selected Answer: A
Agree with A
upvoted 1 times
...
cloudbee
2 years, 4 months ago
https://cloud.google.com/logging/docs/export/configure_export_v2#before-you-begin A is the answer
upvoted 3 times
...
not_thanos
2 years, 5 months ago
Write answer is A as stated in the documentation here https://cloud.google.com/logging/docs/export/configure_export_v2#before-you-begin "Note that this guide describes creating and managing sinks at the Cloud project level, but you can create sinks (non-aggregated) for billing accounts, folders, and organizations. As you get started, ensure the following: You have a Google Cloud project with logs that you can see in the Logs Explorer. You have one of the following IAM roles for the source Cloud project from which you're routing logs. Owner (roles/owner) Logging Admin (roles/logging.admin) Logs Configuration Writer (roles/logging.configWriter) The permissions contained in these roles allow you to create, delete, or modify sinks. For information on setting IAM roles, see the Logging Access control guide."
upvoted 4 times
...
giammydell
2 years, 6 months ago
but C could follow the least privilege priciple
upvoted 3 times
Trony
2 years, 6 months ago
I agree. logging.configWriter (answer A) gives too much power to the team members. We only need to give them the rights to export, not change the whole logging configuration. C is ok.
upvoted 1 times
...
...
sticky
2 years, 7 months ago
A is correct Logs Configuration Writer (roles/logging.configWriter) - Provides permissions to read and write the configurations of logs-based metrics and sinks for exporting logs. https://cloud.google.com/logging/docs/access-control
upvoted 4 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 ...