- A
roles/logging.viewAccessor
Allows viewing of log views without modifying them.
- B
roles/logging.configWriter
Why wrong: Allows creation and modification of log views and sinks.
- C
roles/logging.admin
Why wrong: Grants full control over logging, including modification of log views.
- D
roles/logging.viewer
Provides read-only access to log entries.
- E
roles/bigquery.dataViewer
Why wrong: This role is for BigQuery data access, not for log views.
Quick Answer
The answer is the combination of roles/logging.viewer and roles/logging.viewAccessor. These two IAM roles together grant read-only access to logs in the default Cloud Logging bucket while explicitly preventing the team from modifying log views or creating linked datasets in BigQuery. The roles/logging.viewAccessor role provides granular, read-only access to log entries within a bucket, and roles/logging.viewer extends that read capability to all Logging resources, such as log-based metrics and sinks, without including write permissions for views or linked datasets. On the Google Professional Cloud Architect exam, this scenario tests your understanding of the principle of least privilege and the subtle distinction between Logging roles—a common trap is assuming roles/logging.viewer alone is sufficient, but it lacks the bucket-level read access that viewAccessor provides. A helpful memory tip: think of “viewer” for the broad Logging dashboard, and “viewAccessor” for the bucket’s actual log data—together they cover read-only without the write.
Google PCA Manage and provision cloud infrastructure Practice Question
This PCA practice question tests your understanding of manage and provision cloud infrastructure. Match the stated requirement to the specific cloud service, access model, or configuration option — many options are valid in isolation but not for this scenario. After answering, compare your reasoning against the explanation and wrong-answer breakdown below. Once you have made your selection, read the full explanation to reinforce the concept and understand why each distractor is designed to mislead on exam day.
A company wants to enable a new DevOps team to have read-only access to logs in the default Cloud Logging bucket for their project, but prevent them from modifying log views or creating linked datasets in BigQuery. Which two IAM roles should be granted to the team?
Answer choices
Why each option matters
Answer the question above first, then reveal the full breakdown to understand why each option is right or wrong.
Correct answer & explanation
roles/logging.viewAccessor
The roles/logging.viewAccessor role grants read-only access to log entries in Cloud Logging buckets, including the default bucket, without allowing modifications to log views or linked datasets. The roles/logging.viewer role provides broader read-only access to all Logging resources, including logs, but still prevents modifying log views or creating linked datasets in BigQuery. Together, these two roles satisfy the requirement of read-only log access while explicitly excluding permissions to alter log views or manage BigQuery linked datasets.
Key principle: Answer the scenario, not the keyword: identify the specific constraint before choosing the most familiar-sounding option.
Answer analysis
Option-by-option breakdown
For each option: why learners choose it and why it is or isn't the right answer here.
- ✓
roles/logging.viewAccessor
Why this is correct
Allows viewing of log views without modifying them.
Related concept
Read the scenario before looking for a memorised answer.
- ✗
roles/logging.configWriter
Why it's wrong here
Allows creation and modification of log views and sinks.
- ✗
roles/logging.admin
Why it's wrong here
Grants full control over logging, including modification of log views.
- ✓
roles/logging.viewer
Why this is correct
Provides read-only access to log entries.
Related concept
Read the scenario before looking for a memorised answer.
- ✗
roles/bigquery.dataViewer
Why it's wrong here
This role is for BigQuery data access, not for log views.
Common exam traps
Common exam trap: answer the scenario, not the keyword
The trap here is that candidates often confuse roles/logging.viewer with roles/logging.viewAccessor, thinking they are interchangeable, but the exam tests the distinction that viewAccessor is bucket-scoped and viewer is project-scoped, and both are needed to cover the default bucket access without granting modification permissions.
Detailed technical explanation
How to think about this question
Cloud Logging uses the concept of log buckets to store log entries, and the default bucket is automatically created per project with a retention period of 30 days. The roles/logging.viewAccessor is a fine-grained role that specifically targets log entries within a bucket, while roles/logging.viewer is a broader role that includes permissions like logging.logEntries.list and logging.logs.list across all buckets. Under the hood, the IAM condition for preventing linked dataset creation relies on the absence of the bigquery.linkedDatasets.create permission, which neither of these roles includes, ensuring the team cannot create linked datasets in BigQuery.
KKey Concepts to Remember
- Read the scenario before looking for a memorised answer.
- Find the constraint that changes the correct option.
- Eliminate answers that are true in general but not in this case.
TExam Day Tips
- Watch for words such as best, first, most likely and least administrative effort.
- Review why wrong options are wrong, not only why the correct option is correct.
Key takeaway
Answer the scenario, not the keyword: identify the specific constraint before choosing the most familiar-sounding option.
Real-world example
How this comes up in practice
A media company stores terabytes of video archives that are accessed once a year for audit purposes. Moving these objects to a cold storage tier (Azure Archive, S3 Glacier, or Google Nearline) costs a fraction of hot storage. Questions like this test whether you understand storage tiers, access frequency tradeoffs, and retrieval latency requirements.
What to study next
Got this wrong? Here's your next step.
Identify which exam domain this question belongs to, review the core concept, then practise similar questions from the same domain.
- →
Manage and provision cloud infrastructure — study guide chapter
Learn the concepts, then practise the questions
- →
Manage and provision cloud infrastructure practice questions
Targeted practice on this topic area only
- →
All PCA questions
509 questions across all exam domains
- →
Google Professional Cloud Architect study guide
Full concept coverage aligned to exam objectives
- →
PCA practice test guide
How to use practice tests most effectively before exam day
Related practice questions
Related PCA practice-question pages
Use these pages to review the topic behind this question. This is how one missed question becomes focused revision.
Design and plan a cloud solution architecture practice questions
Practise PCA questions linked to Design and plan a cloud solution architecture.
Manage and provision cloud infrastructure practice questions
Practise PCA questions linked to Manage and provision cloud infrastructure.
Design for security and compliance practice questions
Practise PCA questions linked to Design for security and compliance.
Analyze and optimize technical and business processes practice questions
Practise PCA questions linked to Analyze and optimize technical and business processes.
Manage implementation of cloud architecture practice questions
Practise PCA questions linked to Manage implementation of cloud architecture.
Ensure solution and operations reliability practice questions
Practise PCA questions linked to Ensure solution and operations reliability.
PCA fundamentals practice questions
Practise PCA questions linked to PCA fundamentals.
PCA scenario practice questions
Practise PCA questions linked to PCA scenario.
PCA troubleshooting practice questions
Practise PCA questions linked to PCA troubleshooting.
Practice this exam
Start a free PCA practice session
Short sessions build daily habit. Longer sessions build exam-day stamina. Try a timed session to simulate real conditions.
FAQ
Questions learners often ask
What does this PCA question test?
Manage and provision cloud infrastructure — This question tests Manage and provision cloud infrastructure — Read the scenario before looking for a memorised answer..
What is the correct answer to this question?
The correct answer is: roles/logging.viewAccessor — The roles/logging.viewAccessor role grants read-only access to log entries in Cloud Logging buckets, including the default bucket, without allowing modifications to log views or linked datasets. The roles/logging.viewer role provides broader read-only access to all Logging resources, including logs, but still prevents modifying log views or creating linked datasets in BigQuery. Together, these two roles satisfy the requirement of read-only log access while explicitly excluding permissions to alter log views or manage BigQuery linked datasets.
What should I do if I get this PCA question wrong?
Identify which exam domain this question belongs to, review the core concept, then practise similar questions from the same domain.
What is the key concept behind this question?
Read the scenario before looking for a memorised answer.
About these practice questions
Courseiva creates original exam-style practice questions with explanations and wrong-answer analysis. It does not publish real exam questions, exam dumps, or protected exam content. Learn why practice questions differ from exam dumps →
Last reviewed: Jun 11, 2026
This PCA practice question is part of Courseiva's free Google Cloud certification practice question bank. Courseiva provides original exam-style practice questions with explanations, topic-based practice, mock exams, readiness tracking, and study analytics to help learners prepare for the PCA exam.
Question Discussion
Share a tip, memory trick, or ask about the reasoning behind this question. Do not post real exam questions, leaked content, braindumps, or copyrighted exam material. Comments are moderated and may be removed without notice.
Sign in to join the discussion.