Question 179 of 500

Quick Answer

The answer is to delete the service account key and use workload identity federation. This is the best practice because workload identity federation allows workloads running outside of Google Cloud to authenticate directly to Google Cloud resources without the need for long-lived, static service account keys, which are a primary security risk if exposed or leaked. On the Google Professional Cloud Security Engineer exam, this scenario tests your understanding of identity and access management best practices, specifically the principle of eliminating static credentials in favor of short-lived, federated authentication. A common trap is to think that simply rotating the key (Option B) is sufficient, but rotation only reduces the window of exposure rather than removing the risk entirely. Remember the memory tip: "Keys are risky; federate to eliminate."

PCSE Practice Question: Managing operations in a cloud solution environment

This PCSE practice question tests your understanding of managing operations in a cloud solution environment. 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.

A junior developer created a service account with the roles/storage.admin role and downloaded a JSON key. What is the best practice to improve security?

Clue words in this question

Noticing these words before you look at the options changes how you read each choice.

  • Clue: "best"

    Why it matters: Signals that multiple options may be partially correct. Choose the option that most directly solves the exact problem described, not the one that sounds most complete.

Question 1easymultiple choice
Full question →

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

Delete the key and use workload identity federation.

Option D is correct. The best practice is to delete the key and use workload identity federation, which eliminates the need for long-lived keys. Option A is not directly relevant. Option B is partially true, but rotation alone is not as secure as eliminating the key. Option C is not a standard best practice.

Key principle: NAT direction and interface roles matter as much as the IP address mapping. Inside/outside designation controls which traffic is translated.

Answer analysis

Option-by-option breakdown

For each option: why learners choose it and why it is or isn't the right answer here.

  • Delete the key and use workload identity federation.

    Why this is correct

    Workload identity federation allows authentication without keys, improving security.

    Clue confirmation

    The clue word "best" in the question point toward this answer.

    Related concept

    Static NAT maps one inside address to one outside address.

  • Rotate the key every 30 days.

    Why it's wrong here

    Rotating keys reduces risk but does not eliminate it; avoiding keys entirely is better.

  • Use a user-managed service account instead.

    Why it's wrong here

    User-managed vs. Google-managed service accounts are not the primary concern; the issue is key usage.

  • Restrict the key's usage with IP allowlists.

    Why it's wrong here

    Service account keys cannot be restricted by IP.

Common exam traps

Common exam trap: NAT rules depend on direction and matching traffic

NAT is not only about the public address. The inside/outside interface roles and the ACL or rule that matches traffic are just as important.

Detailed technical explanation

How to think about this question

NAT questions usually test address translation, overload/PAT behaviour, static mappings and whether the right traffic is being translated. Read the interface direction and address terms carefully.

KKey Concepts to Remember

  • Static NAT maps one inside address to one outside address.
  • PAT allows many inside hosts to share one public address using ports.
  • Inside local and inside global describe the private and translated addresses.
  • NAT ACLs identify traffic for translation, not always security filtering.

TExam Day Tips

  • Identify inside and outside interfaces first.
  • Check whether the scenario needs static NAT, dynamic NAT or PAT.
  • Do not confuse NAT matching ACLs with normal packet-filtering intent.

Key takeaway

NAT direction and interface roles matter as much as the IP address mapping. Inside/outside designation controls which traffic is translated.

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.

Review the four NAT address types (inside local, inside global, outside local, outside global), PAT port overload, and static vs dynamic NAT use cases. Then practise related PCSE NAT questions on configuration and troubleshooting.

Related practice questions

Related PCSE 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 PCSE 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 PCSE question test?

Managing operations in a cloud solution environment — This question tests Managing operations in a cloud solution environment — Static NAT maps one inside address to one outside address..

What is the correct answer to this question?

The correct answer is: Delete the key and use workload identity federation. — Option D is correct. The best practice is to delete the key and use workload identity federation, which eliminates the need for long-lived keys. Option A is not directly relevant. Option B is partially true, but rotation alone is not as secure as eliminating the key. Option C is not a standard best practice.

What should I do if I get this PCSE question wrong?

Review the four NAT address types (inside local, inside global, outside local, outside global), PAT port overload, and static vs dynamic NAT use cases. Then practise related PCSE NAT questions on configuration and troubleshooting.

Are there clue words in this question I should notice?

Yes — watch for: "best". Signals that multiple options may be partially correct. Choose the option that most directly solves the exact problem described, not the one that sounds most complete.

What is the key concept behind this question?

Static NAT maps one inside address to one outside address.

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 24, 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 PCSE 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 PCSE exam.