ASSOCIATE-DATA-PRACTITIONER practice question 18 of 25

You recently inherited a task for managing Dataflow streaming pipelines in your organization and noticed that proper access had not been provisioned to you. You need to request a Google-provided IAM role so you can restart the pipelines. You need to follow the principle of least privilege. What should you do?

Full set: 106 questions
Answer options
A: Request the Dataflow Developer role. Correct answer
B: Request the Dataflow Viewer role.
C: Request the Dataflow Worker role.
D: Request the Dataflow Admin role.
Correct Answer:
A. Request the Dataflow Developer role.
Explanation

To restart a Dataflow pipeline, a user needs permissions to update the job's state (e.g., to drain or cancel it) and potentially create a new job from a template. The principle of least privilege dictates granting the minimum required permissions. The Dataflow Developer role (roles/dataflow.developer) includes permissions like dataflow.jobs.update and dataflow.jobs.create, which are necessary to manage the lifecycle of jobs. This role is more constrained than Dataflow Admin but has more capabilities than the read-only Dataflow Viewer role, making it the correct choice for this task while adhering to least privilege.

Why Incorrect

B. The Dataflow Viewer role (roles/dataflow.viewer) is read-only and does not grant permissions to modify or restart pipelines.
C. The Dataflow Worker role (roles/dataflow.worker) is a service account role used by Compute Engine VMs running the pipeline, not for user management tasks.
D. The Dataflow Admin role (roles/dataflow.admin) grants full control, including deleting and managing all jobs, which is more than needed and violates the principle of least privilege.

References

1. Google Cloud Documentation, Dataflow, "Access control with IAM". The documentation provides a table of predefined roles. It shows that roles/dataflow.developer has permissions to "Create and manage Dataflow jobs," which includes updating them.

2. Google Cloud Documentation, IAM, "IAM basic and predefined roles reference". Under the "Dataflow" section, the Dataflow Developer role is listed with the dataflow.jobs.update permission, which is required to "Update an existing job." The Dataflow Viewer role lacks this permission.

Scroll to Top