Google PCA Manage and provision cloud infrastructure Practice Question
This PCA practice question tests your understanding of manage and provision cloud infrastructure. Read the scenario carefully and evaluate each option against the stated constraints before committing to an answer. 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.
```
$ gsutil cp myfile.txt gs://my-bucket/
Copying file://myfile.txt [Content-Type=text/plain]...
AccessDeniedException: 403 Anonymous caller does not have storage.objects.create access to the Google Cloud Storage bucket.
```
A user runs the gsutil command shown in the exhibit and gets an AccessDenied error. The user is not authenticated with gcloud. What should the user do first?
Clue words in this question
Noticing these words before you look at the options changes how you read each choice.
Clue: "first"
Why it matters: Order matters here. You are being tested on which action comes before the others — not which action is generally useful.
Refer to the exhibit.
```
$ gsutil cp myfile.txt gs://my-bucket/
Copying file://myfile.txt [Content-Type=text/plain]...
AccessDeniedException: 403 Anonymous caller does not have storage.objects.create access to the Google Cloud Storage bucket.
```
A
Create a service account and download a JSON key.
Why wrong: Overkill; the user should use their own credentials.
B
Grant public write access to the bucket.
Why wrong: Insecure and not the correct solution.
C
Use gcloud config set project my-project to set the project.
Why wrong: The project setting is not the cause; authentication is the issue.
D
Run gcloud auth login to authenticate with their Google account.
This will authenticate the user and allow gsutil to use their credentials.
Answer the question above first, then reveal the full breakdown to understand why each option is right or wrong.
Correct answer & explanation
✓
Run gcloud auth login to authenticate with their Google account.
The error occurs because the user is not authenticated with gcloud. The gsutil command requires valid authentication credentials to access Google Cloud Storage resources. Running `gcloud auth login` initiates the OAuth 2.0 flow, which authenticates the user with their Google account and generates the access token that gsutil uses for API calls. This is the prerequisite step before any gsutil operation can succeed.
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.
✗
Create a service account and download a JSON key.
Why it's wrong here
Overkill; the user should use their own credentials.
✗
Grant public write access to the bucket.
Why it's wrong here
Insecure and not the correct solution.
✗
Use gcloud config set project my-project to set the project.
Why it's wrong here
The project setting is not the cause; authentication is the issue.
✓
Run gcloud auth login to authenticate with their Google account.
Why this is correct
This will authenticate the user and allow gsutil to use their credentials.
Clue confirmation
The clue word "first" in the question point toward this answer.
Related concept
Read the scenario before looking for a memorised answer.
Common exam traps
Common exam trap: answer the scenario, not the keyword
Google Cloud often tests the distinction between authentication (who you are) and authorization (what you can do); the trap here is that candidates may confuse the AccessDenied error with a bucket permission issue and jump to granting public access or setting a project, when the root cause is simply missing authentication credentials.
Detailed technical explanation
How to think about this question
Under the hood, gsutil uses the Google Cloud Storage JSON API, which requires an OAuth 2.0 access token in the Authorization header of each HTTP request. When a user runs `gcloud auth login`, the gcloud CLI stores the refresh token and access token in the user's credential file (typically ~/.config/gcloud/credentials.db). gsutil then reads these tokens to authenticate. If the user is not authenticated, gsutil has no token to send, resulting in a 403 AccessDenied error. A real-world scenario is when a user runs gsutil in a fresh environment (e.g., a new VM or container) without first running `gcloud auth login` or setting up a service account key.
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.
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: Run gcloud auth login to authenticate with their Google account. — The error occurs because the user is not authenticated with gcloud. The gsutil command requires valid authentication credentials to access Google Cloud Storage resources. Running `gcloud auth login` initiates the OAuth 2.0 flow, which authenticates the user with their Google account and generates the access token that gsutil uses for API calls. This is the prerequisite step before any gsutil operation can succeed.
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: "first". Order matters here. You are being tested on which action comes before the others — not which action is generally useful.
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.