0
0
Cybersecurityknowledge~30 mins

Cloud identity and access management in Cybersecurity - Mini Project: Build & Apply

Choose your learning style9 modes available
Cloud Identity and Access Management Basics
📖 Scenario: You are working in a company that uses cloud services. To keep the cloud resources safe, you need to manage who can access what. This is called Cloud Identity and Access Management (IAM). You will create a simple list of users and their roles, then set rules to control access.
🎯 Goal: Build a basic cloud IAM setup by creating a list of users with roles, defining access levels, assigning permissions based on roles, and finalizing the access control list.
📋 What You'll Learn
Create a dictionary named users with exact user names and roles
Create a dictionary named access_levels with role names and their access rights
Create a new dictionary named permissions that maps each user to their access rights using dictionary comprehension
Add a final key policy_version with value "2024-01-01" to the permissions dictionary
💡 Why This Matters
🌍 Real World
Cloud IAM is used by companies to control who can access cloud resources like servers, databases, and applications securely.
💼 Career
Understanding IAM basics is essential for cybersecurity roles, cloud administrators, and IT professionals managing cloud environments.
Progress0 / 4 steps
1
Create the user roles dictionary
Create a dictionary called users with these exact entries: 'alice': 'admin', 'bob': 'editor', 'carol': 'viewer', 'dave': 'editor'.
Cybersecurity
Need a hint?

Use curly braces to create a dictionary. Each key is a user name string, and each value is their role string.

2
Define access levels for roles
Create a dictionary called access_levels with these exact entries: 'admin': 'full_access', 'editor': 'edit_access', 'viewer': 'read_only'.
Cybersecurity
Need a hint?

Map each role to its access right using a dictionary.

3
Assign permissions to users
Create a dictionary called permissions using dictionary comprehension that maps each user in users to their access right from access_levels based on their role.
Cybersecurity
Need a hint?

Use dictionary comprehension with for user, role in users.items() to assign access rights.

4
Add policy version to permissions
Add a new key 'policy_version' with value "2024-01-01" to the permissions dictionary.
Cybersecurity
Need a hint?

Use the dictionary key assignment syntax to add the new key and value.