0
0
Apache Airflowdevops~10 mins

Role-based access control (RBAC) in Apache Airflow - Interactive Code Practice

Choose your learning style9 modes available
Practice - 5 Tasks
Answer the questions below
1fill in blank
easy

Complete the code to enable RBAC in Airflow configuration.

Apache Airflow
rbac = [1]
Drag options to blanks, or click blank then click option'
ATrue
BNone
CFalse
DAuto
Attempts:
3 left
💡 Hint
Common Mistakes
Setting rbac to False disables RBAC.
Using None or Auto are invalid values for this setting.
2fill in blank
medium

Complete the command to create a new role named 'data_engineer' in Airflow CLI.

Apache Airflow
airflow roles create [1]
Drag options to blanks, or click blank then click option'
Auser
Bdata_engineer
Cviewer
Dadmin
Attempts:
3 left
💡 Hint
Common Mistakes
Using existing role names like admin or viewer instead of the new role.
Misspelling the role name.
3fill in blank
hard

Fix the error in the command to assign the 'Viewer' role to user 'alice'.

Apache Airflow
airflow users add-role --username alice --role [1]
Drag options to blanks, or click blank then click option'
AViewer
BAdmin
Cviewer
Duser
Attempts:
3 left
💡 Hint
Common Mistakes
Using lowercase role names causes errors.
Using a role name that does not exist.
4fill in blank
hard

Fill both blanks to create a user 'bob' with email 'bob@example.com' and assign the 'Admin' role.

Apache Airflow
airflow users create --username [1] --email [2] --role Admin --password secret
Drag options to blanks, or click blank then click option'
Abob
Balice@example.com
Cbob@example.com
Dadmin
Attempts:
3 left
💡 Hint
Common Mistakes
Mixing up username and email values.
Using incorrect email format.
5fill in blank
hard

Fill all three blanks to list all roles, filter by name containing 'Admin', and sort by name descending.

Apache Airflow
airflow roles list | grep [1] | sort [2] [3]
Drag options to blanks, or click blank then click option'
AAdmin
B-r
C-k
D-n
Attempts:
3 left
💡 Hint
Common Mistakes
Using wrong grep keyword.
Using sort options in wrong order or wrong flags.