You have deployed a fleet Of Compute Engine instances in Google Cloud. You need to ensure that monitoring metrics and logs for the instances are visible in Cloud Logging and Cloud Monitoring by your company's operations and cyber security teams. You need to grant the required roles for the Compute Engine service account by using Identity and Access Management (IAM) while following the principle of least privilege. What should you do?
Suggested Answer: A
Get Premium Professional Cloud DevOps Engineer Questions
as Interactive Web-Based Practice Test or PDF
Real Exam Format
Detailed Explanations
Instant Access
Get Your Practice Test
The correct answer is D. Grant the logging.logWriter and monitoring.metricWriter roles to the Compute Engine service accounts.
The logging.logWriter role allows the service account to write log entries to Cloud Logging4.
21 comments · newest first
CE
Cecilia
11 months ago
I’m surprised that logging.editor is even an option here.
DO
Dorothea
11 months ago
I thought logging.admin was necessary for full access?
EM
Emile
11 months ago
Wait, are we sure about the roles in option B? Seems too broad.
ZI
Zita
11 months ago
Definitely agree with D! Makes the most sense.
DI
Diego
12 months ago
I think option D is the best choice for least privilege.
YA
Yasuko
12 months ago
I feel like option B might be too broad with "admin" roles, which doesn't align with least privilege. I think we should stick to more specific roles like in option D.
MA
Martha
1 year ago
I practiced a similar question where we had to assign roles for monitoring, and I feel like "metricWriter" is definitely important, but I can't remember if it was in option A or D.
ME
Merissa
1 year ago
I think option D sounds familiar because it mentions both logging and monitoring roles, but I can't recall if "logWriter" is the correct spelling.
BR
Brandon
1 year ago
I remember we discussed the principle of least privilege, but I'm not sure which specific roles are the most appropriate for this scenario.
AR
Arminda
1 year ago
This seems straightforward. The question is asking us to grant the appropriate roles to the Compute Engine service accounts, so I'll go with option D to cover the logging and monitoring requirements.
DO
Dorothea
1 year ago
I'm a bit confused on the difference between the logging.editor and logging.logwriter roles. I'll need to double-check the documentation to make sure I understand the distinction.
SU
Sue
1 year ago
Okay, I think I've got this. The key is to grant the minimum required permissions for the Compute Engine service accounts to access logging and monitoring.
VA
Valentin
1 year ago
Hmm, this looks like a tricky IAM permissions question. I'll need to carefully review the available roles and think through the principle of least privilege.
JU
Junita
1 year ago
Okay, let's break this down step-by-step. First, I know a buffer cache is used to improve performance by caching frequently accessed data. Then I need to look at each statement and determine which ones are true based on my understanding of how a buffer cache works.
FR
Francis
1 year ago
I wonder if cross-storage device vertical tiering could help with performance; it sounds familiar but I'm not confident about applying it in this context.
IZ
Izetta
2 years ago
I agree. Option C is also higher access than needed. Let's go with D.
KI
Kimbery
2 years ago
Option B offers admin-level access. Doesn't seem to align with least privilege.
BR
Broderick
2 years ago
D mentions logWriter and metricWriter. Seems like it captures essential duties without excess permissions.
IZ
Izetta
2 years ago
I think option D sounds logical. Least privilege means minimal necessary roles.
KI
Kimbery
2 years ago
Yeah, it's asking about specific roles in IAM. Not that easy.
BR
Broderick
2 years ago
This question is quite detailed. Makes me nervous.