Cert EspressoLearn. Practise. Find your flow.

A LITTLE FOCUS.
A BIG NEXT STEP.

Your pace. Your space.
Google Cloud · Professional Data Engineer

Securing the data platform

Professional Data Engineer · Lesson 1 of 23 · 3:25

YouTube loads only after you press play. This chapter opens at its timestamp in the full course. Watch on YouTube ↗

Learning with these videos? Subscribe for new courses and exam-style questions.

In this lesson

Prepare for the Google Cloud Professional Data Engineer exam, on the official exam guide. In this lesson: identity and access for data (IAM roles, groups, and service accounts), organization policies, laying out projects, datasets, and tables for governance, and separate development, test, and production environments. Includes three original practice questions, with Cymbal Mobility, a fictional ride-hailing and scooter company, as the example.

Study notes

The text of this lesson, to read at your own pace. Information as of November 2026.

Everyone wants the data

Cymbal Mobility is building its data platform on Google Cloud: trips, payments, and the positions that its cars and scooters send every few seconds. Analysts, data scientists, finance, and city partners all want access. Before the first pipeline runs, the data engineer must decide who may see which data, and where that data may live.

Identity and access for data

Identity and Access Management decides who can do what, on which resource. A principal, like a user, a group, or a service account, receives a role, and a role is a set of permissions. Basic roles, like owner, editor, and viewer, are far too broad for data, so choose predefined roles, or a custom role when nothing fits. Roles granted on an organization, a folder, or a project are inherited by everything below, so grant them as low as you can, and to groups rather than to individuals. And pipelines run as service accounts, each with only the permissions its job needs.

BigQuery roles

BigQuery separates reading data from running jobs. BigQuery Data Viewer reads tables and views, Data Editor also changes them, and Data Owner also manages access to the dataset. BigQuery Job User lets a principal run jobs, including queries, in a project, and BigQuery User adds the right to create datasets there. So to query a table, an analyst needs two things: a role that reads the data, usually on the dataset, and a role that runs jobs, in the project that pays for the query. Grant data roles on a dataset, or even on a single table or view, instead of the whole project.

Organization policies

Identity and Access Management decides who can act. Organization policies decide what can be done at all, whoever asks. An organization policy applies a constraint to an organization, a folder, or a project, and everything below inherits it. Common constraints restrict the locations where new resources may be created, limit sharing to identities from your own domain, and stop people from creating service account keys. Even a project owner cannot get around them, which makes them guardrails for the whole company.

Projects, datasets, and tables

Structure supports governance. A project is a boundary for billing, quotas, and access, and folders group projects, by department or by environment. In BigQuery, a dataset holds tables, views, and models, and it is the usual unit for access and for location: you choose its location when you create it, and you cannot change it later. So group tables by who may read them, and by where they must live, for example raw, curated, and shared datasets, each with its own readers. Add labels for cost and ownership, and give every dataset a clear owner.

Development and production

Keep development, test, and production apart, usually in separate projects. Each environment has its own access, its own quotas, and its own costs, so an experiment cannot break a production table, or slow down production jobs. Development should not hold raw personal data: use masked, sampled, or synthetic data instead. And create every environment from the same infrastructure as code, so that what you test is what you deploy.

Recap

Let's recap. Identity and Access Management grants roles to principals, and inherited roles should be granted as low as possible, to groups. To query BigQuery, you need a data role on the dataset, and a job role in the project. Organization policies set what can be done at all, like allowed locations, whoever asks. Projects separate billing, quotas, and access, and datasets set access and location. And development, test, and production live in separate projects, with masked data outside production.

Quick checks for this lesson

The 3 questions of this lesson, as plain text. The button above runs them with shuffled choices and the reason behind every choice.

  1. An analyst has BigQuery Data Viewer on the trips dataset, but every query fails with an access error about creating jobs in the project. What is missing?

    • BigQuery Data Editor on the dataset
    • A job role, like BigQuery Job User, on the project
    • The basic editor role on the project
    • A copy of the trips dataset in the analyst’s project
    Show the answer

    A job role, like BigQuery Job User, on the project

    The analyst also needs a role that runs jobs, like BigQuery Job User, in the project that runs the query. “BigQuery Data Editor on the dataset” would let the analyst change the data, which does not grant the right to run jobs. “The basic editor role on the project” is a basic role, far too broad for this need. And “A copy of the trips dataset in the analyst’s project” only adds a second copy of the data, with the same missing role.

  2. No team may create a dataset or a bucket outside Europe, even a team with full administrator rights on its own project. What should the data engineer use?

    • Narrower IAM roles for every team
    • A written data residency policy
    • A weekly report of resource locations
    • An organization policy restricting resource locations
    Show the answer

    An organization policy restricting resource locations

    An organization policy that restricts resource locations applies to every project below it, whatever roles people have. “Narrower IAM roles for every team” only decides who can act, and an administrator could still choose another region. “A written data residency policy” is only a written rule, which nothing enforces. And “A weekly report of resource locations” would only report on resources after they exist, instead of preventing them.

  3. Data scientists want to try new transformations freely, with no risk to production tables, and without their costs mixing with production costs. What is the best setup?

    • A separate development project with masked or sampled data
    • Data Editor for everyone on the production datasets
    • A naming prefix for test tables in the production project
    • A copy of the raw data in their personal projects
    Show the answer

    A separate development project with masked or sampled data

    A separate development project gives its own access, quotas, and billing, filled with masked or sampled data. “Data Editor for everyone on the production datasets” would keep everyone in production, where one mistake changes real tables. “A naming prefix for test tables in the production project” only names tables differently, in the same project and with the same costs. And “A copy of the raw data in their personal projects” would copy raw personal data into a place with weaker controls.