Question 159 of 509
Manage and provision cloud infrastructureeasyMultiple ChoiceObjective-mapped

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.

Question 1easymultiple choice
Full question →

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.
```

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

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.

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.

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.

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: 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 →

How Courseiva writes practice questions · Editorial policy

Last reviewed: Jun 30, 2026

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.

Loading comments…

Sign in to join the discussion.

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.