Valid Associate-Data-Practitioner Dumps shared by EduDump.com for Helping Passing Associate-Data-Practitioner Exam! EduDump.com now offer the newest Associate-Data-Practitioner exam dumps, the EduDump.com Associate-Data-Practitioner exam questions have been updated and answers have been corrected get the newest EduDump.com Associate-Data-Practitioner dumps with Test Engine here:
You are designing an application that will interact with several BigQuery datasets. You need to grant the application's service account permissions that allow it to query and update tables within the datasets, and list all datasets in a project within your application. You want to follow the principle of least privilege. Which pre- defined IAM role(s) should you apply to the service account?
Correct Answer: A
* roles/bigquery.jobUser: * This role allows a user or service account to run BigQuery jobs, including queries. This is necessary for the application to interact with and query the tables. * From Google Cloud documentation: "BigQuery Job User can run BigQuery jobs, including queries, load jobs, export jobs, and copy jobs." * roles/bigquery.dataOwner: * This role grants full control over BigQuery datasets and tables. It allows the service account to update tables, which is a requirement of the application. * From Google Cloud documentation: "BigQuery Data Owner can create, delete, and modify BigQuery datasets and tables. BigQuery Data Owner can also view data and run queries." * Why other options are incorrect: * B. roles/bigquery.connectionUser and roles/bigquery.dataViewer: * roles/bigquery.connectionUser is used for external connections, which is not required for this task. roles/bigquery.dataViewer only allows viewing data, not updating it. * C. roles/bigquery.admin: * roles/bigquery.admin grants excessive permissions. Following the principle of least privilege, this role is too broad. * D. roles/bigquery.user and roles/bigquery.filteredDataViewer: * roles/bigquery.user grants the ability to run queries, but not the ability to modify data. roles /bigquery.filteredDataViewer only provides permission to view filtered data, which is not sufficient for updating tables. * Principle of Least Privilege: * The principle of least privilege is a security concept that states that a user or service account should be granted only the permissions necessary to perform its intended tasks. * By assigning roles/bigquery.jobUser and roles/bigquery.dataOwner, we provide the application with the exact permissions it needs without granting unnecessary access. * Google Cloud Documentation References: * BigQuery IAM roles:https://cloud.google.com/bigquery/docs/access-control-basic-roles * IAM best practices:https://cloud.google.com/iam/docs/best-practices-for-using-iam