0
0
Apache Airflowdevops~20 mins

Role-based access control (RBAC) in Apache Airflow - Practice Problems & Coding Challenges

Choose your learning style9 modes available
Challenge - 5 Problems
🎖️
Airflow RBAC Master
Get all challenges correct to earn this badge!
Test your skills under time pressure!
🧠 Conceptual
intermediate
2:00remaining
Understanding Airflow RBAC Roles
In Apache Airflow's RBAC system, which role has the ability to create and edit DAGs but cannot manage users or roles?
AOp
BUser
CAdmin
DViewer
Attempts:
2 left
💡 Hint
Think about roles that allow operational control but restrict user management.
💻 Command Output
intermediate
2:00remaining
Output of Airflow RBAC User Creation Command
What is the output of the following command when creating a new Airflow user with RBAC enabled? airflow users create --username testuser --firstname Test --lastname User --role Viewer --email testuser@example.com
Apache Airflow
airflow users create --username testuser --firstname Test --lastname User --role Viewer --email testuser@example.com
ASyntax error: missing required argument
BError: Role Viewer does not exist
CUser testuser already exists
DUser testuser created successfully
Attempts:
2 left
💡 Hint
Assuming the Viewer role exists and the username is new.
Configuration
advanced
2:00remaining
Configuring Airflow to Enable RBAC
Which configuration change in airflow.cfg enables the RBAC UI and security features?
Apache Airflow
[webserver]
# What should be set to True to enable RBAC?
Aenable_rbac = True
Brbac_enabled = True
Crbac = True
Dwebserver_rbac = True
Attempts:
2 left
💡 Hint
Check the official Airflow configuration for the webserver section.
Troubleshoot
advanced
2:00remaining
Troubleshooting Airflow RBAC Permission Denied Error
A user with the 'User' role tries to access the Airflow Admin panel but gets a '403 Forbidden' error. What is the most likely cause?
AThe 'User' role does not have permission to access the Admin panel
BThe Airflow webserver is not running
CThe user's password has expired
DThe Airflow database is corrupted
Attempts:
2 left
💡 Hint
Consider what permissions the 'User' role typically has.
🔀 Workflow
expert
3:00remaining
Sequence to Add a New RBAC Role with Custom Permissions
What is the correct order of steps to add a new custom role with specific permissions in Airflow RBAC?
A2,1,3,4
B1,2,3,4
C1,3,2,4
D3,1,2,4
Attempts:
2 left
💡 Hint
Think about the logical UI navigation flow.