Google PCA Design for security and compliance Practice Question
This PCA practice question tests your understanding of design for security and compliance. This is a configuration task: choose the command set that satisfies every stated requirement. Small differences — like 'secret' vs 'password' or 'transport input ssh' vs 'all' — change whether the answer is correct. 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.
Exhibit
Refer to the exhibit.
```bash
$ gcloud projects set-iam-policy my-project policy.json
Updated IAM policy for project [my-project].
$
```
Contents of policy.json:
```json
{
"bindings": [
{
"role": "roles/storage.objectViewer",
"members": [
"user:alice@example.com",
"serviceAccount:sa-bucket-reader@my-project.iam.gserviceaccount.com"
]
}
],
"etag": "BwVY3Y8Y8Y8="
}
```
After executing the command, a security review reveals that the service account sa-bucket-reader can also list buckets in the project, which was not intended. What is the most likely cause?
Clue words in this question
Noticing these words before you look at the options changes how you read each choice.
Clue: "most likely"
Why it matters: Probability qualifier — the question wants the most probable cause or outcome, not a guaranteed one. Eliminate low-probability options.
Exhibit
Refer to the exhibit.
```bash
$ gcloud projects set-iam-policy my-project policy.json
Updated IAM policy for project [my-project].
$
```
Contents of policy.json:
```json
{
"bindings": [
{
"role": "roles/storage.objectViewer",
"members": [
"user:alice@example.com",
"serviceAccount:sa-bucket-reader@my-project.iam.gserviceaccount.com"
]
}
],
"etag": "BwVY3Y8Y8Y8="
}
```
A
The etag was incorrect, causing a concurrent modification.
Why wrong: The etag was correct as the update succeeded.
B
The service account has a project-level role that includes storage.list.
Project-level roles like roles/storage.objectAdmin or roles/viewer include storage.buckets.list.
C
The policy update failed due to a missing condition.
Why wrong: The command succeeded.
D
The service account also has bucket-level IAM roles.
Why wrong: Bucket-level roles would not affect listing at project level.
Answer the question above first, then reveal the full breakdown to understand why each option is right or wrong.
Correct answer & explanation
✓
The service account has a project-level role that includes storage.list.
The service account sa-bucket-reader was able to list buckets in the project, which requires the storage.buckets.list permission. This permission is included in several predefined project-level roles, such as roles/storage.objectViewer or roles/storage.legacyBucketReader. If the service account was granted a project-level role that includes storage.buckets.list, it would have the unintended ability to list all buckets in the project, even if bucket-level IAM was configured to restrict access to specific buckets.
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.
✗
The etag was incorrect, causing a concurrent modification.
Why it's wrong here
The etag was correct as the update succeeded.
✓
The service account has a project-level role that includes storage.list.
Why this is correct
Project-level roles like roles/storage.objectAdmin or roles/viewer include storage.buckets.list.
Clue confirmation
The clue word "most likely" in the question point toward this answer.
Related concept
Read the scenario before looking for a memorised answer.
✗
The policy update failed due to a missing condition.
Why it's wrong here
The command succeeded.
✗
The service account also has bucket-level IAM roles.
Why it's wrong here
Bucket-level roles would not affect listing at project level.
Common exam traps
Common exam trap: answer the scenario, not the keyword
In Google PCA exams, the distinction between project-level and resource-level IAM roles is critical. The trap here is that candidates assume bucket-level IAM is the only way to grant bucket access, forgetting that project-level roles can also include bucket-related permissions like storage.buckets.list.
Trap categories for this question
Command / output trap
The command succeeded.
Detailed technical explanation
How to think about this question
In Google Cloud IAM, the storage.buckets.list permission is a project-level permission that allows listing all buckets in the project. It is included in roles like roles/storage.objectViewer (which also includes storage.objects.get) and roles/storage.legacyBucketReader. When a service account is granted a role at the project level, it inherits all permissions in that role across all resources in the project. This is a common source of unintended access because administrators often grant project-level roles for convenience without realizing the full scope of permissions included.
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.
Related glossary terms
Concepts from this question explained
These glossary pages explain the core terms tested in this PCA question in full detail.
Design for security and compliance — This question tests Design for security and compliance — Read the scenario before looking for a memorised answer..
What is the correct answer to this question?
The correct answer is: The service account has a project-level role that includes storage.list. — The service account sa-bucket-reader was able to list buckets in the project, which requires the storage.buckets.list permission. This permission is included in several predefined project-level roles, such as roles/storage.objectViewer or roles/storage.legacyBucketReader. If the service account was granted a project-level role that includes storage.buckets.list, it would have the unintended ability to list all buckets in the project, even if bucket-level IAM was configured to restrict access to specific buckets.
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.
Are there clue words in this question I should notice?
Yes — watch for: "most likely". Probability qualifier — the question wants the most probable cause or outcome, not a guaranteed one. Eliminate low-probability options.
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 →
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.
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.