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 questionsTo 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.
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.
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.
Keep practicing
Take the free ASSOCIATE-DATA-PRACTITIONER practice test
Ten exam-style questions with answers and explanations, plus the exam facts and study guides.
More questions
Other ASSOCIATE-DATA-PRACTITIONER practice questions
- Question 1You are designing a pipeline to process data files that arrive in Cloud Storage by 3:00 a…
- Question 2Your organization plans to move their on-premises environment to Google Cloud. Your organ…
- Question 3You are responsible for managing Cloud Storage buckets for a research company. Your compa…
- Question 4You are predicting customer churn for a subscription-based service. You have a 50 PB hist…
- Question 5Your retail company collects customer data from various sources:Online transactions: Stor…
- Question 6Your company has developed a website that allows users to upload and share video files. T…
