Cloud Identity and Access Management: Governance at Scale

Learn how organizations control who can do what across dozens or hundreds of cloud accounts and subscriptions. You organize users, groups and workload identities, build a management hierarchy of accounts, subscriptions and projects, write and assign permissions at the right scope, and connect a corporate identity provider for single sign-on. You then enforce organization-wide guardrails with policies, protect critical resources with locks and keep resources organized with a tagging strategy. Examples use AWS, Microsoft Azure and Google Cloud side by side, so you can see the shared ideas behind each provider's terms.

IntermediateLesson 1 of 8 in Cloud Architecture and Administration Course

What you will learn

  1. Set up the identities that work in a cloud environment, group people for access, and give applications and services their own identities with temporary credentials.
    • Tell human and workload identities apart
      Identify the kinds of identity a cloud environment holds, where each kind is stored, and which identity type fits a person, an application or a cloud service.
    • Manage users and groups in a cloud directory
      Create and maintain users and groups, choose between assigned and dynamic membership, invite external users and handle licenses and self-service password reset.
    • Use roles and temporary credentials
      Explain how a role is assumed, write the trust that controls who can assume it, and use temporary credentials for cross-account access and for workloads.
  2. Organize many accounts, subscriptions and projects into a hierarchy that groups them for access, policy and billing, and keep control of the hierarchy's most powerful levels.
    • Compare the resource hierarchies of the major clouds
      Map the levels of the AWS, Azure and Google Cloud hierarchies, state what each level is for and work within the limits that shape them.
    • Design a multi-account landing zone
      Decide when to give workloads their own accounts or subscriptions and lay out a hierarchy that groups them by the governance they need.
    • Keep control of the top of the hierarchy
      Protect the most powerful accounts and scopes, delegate day-to-day administration, keep emergency access ready and log every change to the hierarchy.
  3. Read and write the policy documents and role definitions that grant permissions, assign them at the right scope and work out what a principal can actually do.
    • Read and write policy documents and role definitions
      Interpret an AWS JSON policy, an Azure role definition and a Google Cloud role, and choose between identity-based and resource-based policies.
    • Assign roles at the right scope
      Combine a principal, a role and a scope into an assignment, choose the narrowest scope that does the job and apply least privilege at scale.
    • Work out effective access
      Combine inherited grants, allows and denies to decide whether a request succeeds, and troubleshoot access-denied errors step by step.
  4. Connect an organization's identity provider to its cloud environments so that people and workloads sign in once and receive access through trusted, short-lived tokens.
    • Set up federation with an identity provider
      Explain the trust between an identity provider and a cloud, follow a SAML or OpenID Connect sign-in step by step, and keep users and groups in sync.
    • Design single sign-on across many accounts and workloads
      Give people one sign-in to many accounts and subscriptions, give pipelines federated identities instead of keys, and bring external partners in safely.
  5. Use organization-wide policies to set limits that account and subscription administrators can't bypass, and choose between preventive, detective and corrective controls.
    • Set permission guardrails with AWS organization policies
      Write and attach service control policies and resource control policies that cap what member accounts can do, and predict their effect at each level of the organization.
    • Enforce resource rules with Azure Policy
      Build policy definitions and initiatives, assign them at a scope with parameters and exclusions, choose effects and bring existing resources into compliance.
    • Choose and combine guardrails across clouds
      Compare preventive, detective and corrective guardrails, apply Google Cloud organization policy constraints and pick the right control for a requirement.
  6. Prevent accidental deletion or change with resource locks, and design a tagging strategy that is applied consistently and enforced by policy.
    • Protect resources with locks and deletion protection
      Apply Azure resource locks correctly, predict their side effects and use the equivalent protections in other clouds.
    • Design and enforce a tagging strategy
      Choose a consistent set of tags, apply them at scale and enforce them with policy so that resources can be found, owned, automated and charged correctly.

Cloud Identity and Access Management study guide

6 chapters

1

Organize users, groups and workload identities

Every cloud operation needs an accountable caller. Human accounts, directory groups and workload identities let you grant access without sharing passwords or storing cloud keys in code. Learn where each identity lives, how membership and employment changes affect access, and how a trusted caller obtains a temporary role session. These choices determine what administrators will later find in an audit log.

1.1 Tell human and workload identities apart

A cloud request is made by a specific principal: the user, role session or application identity whose credentials accompany it. Start an access design by identifying that caller. A person's name on a support ticket may differ from the role session recorded in the cloud audit log.

Choose the identity for the caller

Human identities belong to employees, contractors and partners. Workload identities belong to applications, scripts, virtual machines and pipelines. Give each person a named identity and each application or job an accountable workload identity. A group collects access for its members; the group never signs in itself.

PlatformHuman identity storeTypical workload identity
AWSIAM Identity Center across accounts; IAM users within one accountIAM role attached to compute
AzureMicrosoft Entra ID tenantManaged identity or application service principal
Google CloudCloud Identity or Google WorkspaceService account

An Entra tenant is a directory. A service principal represents an application in that directory. A system-assigned managed identity belongs to one Azure resource and is deleted with it. A user-assigned managed identity is a separate resource that can be attached to several resources. Choose between them by the lifetime and sharing the application needs.

Keep credentials out of application code

An AWS IAM user can have a password and long-lived access keys. For people, prefer federation or IAM Identity Center and temporary sessions. For cloud-hosted workloads, attach an IAM role, managed identity or service account. The platform obtains and renews short-lived credentials; the code requests access through that identity without a stored key file.

For an external pipeline, use workload identity federation. Its own platform supplies a token that the cloud exchanges for short-lived credentials. A shared developer password or downloaded cloud key would require separate distribution, rotation and removal.

Work through an identity inventory

A company has 300 employees, 12 contractors, a virtual-machine web application and an external nightly backup job.

  1. Create named directory users for employees and contractors. Put contractors in a separate access group with an access end date.
  2. Give the web application a workload identity attached to its compute resources. Grant that identity the application's resource permissions.
  3. Federate the backup pipeline's identity and restrict the trust to that job. Grant its cloud identity only backup access.
  4. Record an owner for each workload identity so someone reviews it when the application changes or closes.

The two workloads need no stored long-lived cloud keys or application secrets. Their actions remain distinguishable from human administration.

Handle changes in employment

The joiner, mover, leaver process creates a person at arrival, changes group membership when their job changes and disables them on departure. Directory groups make these changes manageable across many accounts. Disabling the directory account blocks new sign-ins once effective, but previously issued sessions can last until expiry. For an urgent departure, also revoke sessions using the platform's supported controls.

Protect each AWS account's root user with MFA and reserve it for tasks that require it. Daily administration belongs to named, limited identities so the most powerful credentials stay out of routine work.

Key Takeaways

  • Identify the principal that actually sends a request.
  • Use named human identities and accountable workload identities.
  • Attach platform-managed identities to cloud workloads; federate external workloads.
  • Choose managed identity lifetime to fit its resource.
  • Disable leavers and address their existing sessions.

1.2 Manage users and groups in a cloud directory

Directory groups turn repeated permission changes into membership changes. If 40 developers need the same access in 6 accounts, direct assignments require 240 links. Assigning one group in those 6 accounts requires 6 links; a new developer then needs one membership change.

Select the group and membership type

In Microsoft Entra ID, a security group supports resource access and can hold users, devices, service principals and other groups. A Microsoft 365 group supports collaboration through shared mail, calendars and files, and holds users. Check nesting support in the service consuming the group. Group-based licensing processes direct user members, not users reached through nested groups.

Assigned membership is maintained by administrators. Dynamic user and dynamic device membership are maintained by rules. For example:

user.department -eq "Sales"

This rule selects users whose department is Sales. Administrators cannot manually add an exception to the dynamic membership list; they must change the rule or the source attribute. Dynamic membership needs Entra ID P1 licensing for the users covered.

The rule is an access decision. If a person can edit their own department, they may be able to put themselves in a privileged group. Use attributes controlled by HR or administrators, and use assigned membership where the privilege demands individual approval.

Keep user properties and licenses consistent

The user principal name, such as maria.lopez@contoso.com, is the sign-in name. Display name, department, job title and manager help identify and organize users. For direct license assignment, set usage location first because service availability can differ by location. Group-based licensing can use the tenant’s location when the user has none set; explicitly set the correct user location for staff in different locations.

Licenses can be assigned to users or groups. Group-based licensing applies a group's licenses to its members and removes that group's entitlement when membership ends. A user can retain the entitlement through another assignment, so check all paths when a license remains after a membership change.

Bring in partners and support password recovery

Entra B2B collaboration usually invites partners as guests who authenticate with an existing external account. The userType values "Member" and "Guest" describe the user's organizational relationship and default directory access. They do not determine the authentication source: external members and internal guests can exist. Put partners in dedicated groups, give access an end date and review it regularly.

Self-service password reset (SSPR) lets users reset a password after proving identity through methods registered earlier. Enable it for a selected group or all users, or leave it disabled. Configure whether one or two methods are required. Administrator accounts follow a stricter built-in reset policy.

Apply the model across clouds

An AWS IAM group contains IAM users from one account. It cannot contain groups or appear as a policy principal. Use IAM Identity Center or external IdP groups for multi-account workforce access. A Google group can receive Google Cloud roles as a principal.

At scale, create and update accounts through bulk CSV import, scripts or synchronization. For synchronized identities, make changes at the authoritative source. A manual cloud edit can be overwritten when the next sync restores the source value.

Key Takeaways

  • Use groups to reduce repeated assignments.
  • Match assigned or dynamic membership to the access approval process.
  • Protect attributes used by access-granting rules.
  • Set usage location before assigning licenses.
  • Keep guest relationship separate from authentication source.
  • Manage synchronized identities at their authoritative source.

1.3 Use roles and temporary credentials

An AWS IAM role has permissions but no long-term credentials. A trusted caller assumes it, and AWS Security Token Service (STS) issues an access key ID, secret access key and session token. All three parts belong to the temporary session.

Separate trust from permission

A role's trust policy controls who may obtain its credentials. Its permissions policies control what those credentials may do. Successful assumption does not mean the role can access a resource: a role can trust a caller and still have no useful permissions.

The assumption action depends on the caller:

Caller pathTrust policy action
AWS principalsts:AssumeRole
SAML federationsts:AssumeRoleWithSAML
OIDC web identitysts:AssumeRoleWithWebIdentity

A trust policy is attached to the role itself, so the role is its implied resource. Name specific trusted accounts or roles and add the required conditions. An unrestricted "AWS": "*" principal opens the trust to AWS principals across accounts whose own policies permit assumption.

Build a cross-account path

Suppose a source role in account 111111111111 needs to read an archive in 222222222222.

  1. Create the archive-reading role in the target account.
  2. In its trust policy, name the source role or source account.
  3. Attach target-role permissions for the archive tasks.
  4. Give the source caller permission to call sts:AssumeRole on the target role's ARN.
  5. Make the assumption request, then use the returned session credentials for archive requests.

Trusting arn:aws:iam::111111111111:root delegates trust to the source account; it does not mean only its root user can assume the role. The source account's policies decide which callers can use that trust.

Keep sessions within their limits

An ordinary assumed-role session defaults to 1 hour. The caller can request 15 minutes up to the role's configured maximum, which an administrator sets between 1 and 12 hours. With a 4-hour maximum, a 6-hour request fails and a 2-hour request fits. When temporary role credentials assume another role, role chaining caps the new session at 1 hour, even if that role allows longer sessions.

Use the same idea for services and partners

An EC2 instance profile delivers and renews role credentials for an instance. A Lambda execution role supplies its function's permissions. Azure managed identities and Google Cloud attached service accounts serve a similar purpose. Google Cloud also supports service account impersonation: Service Account Token Creator permission lets an authorized caller obtain short-lived tokens, with an audit trail linking caller and service account.

A service-linked role is predefined for an AWS service to act on your behalf. Its service controls its permissions, and SCPs do not restrict it.

For a third-party vendor, require its issued customer-specific external ID through sts:ExternalId in the role trust. This addresses the confused deputy problem: another customer must not be able to persuade that vendor to use your role. The external ID supplements the trusted vendor principal; it is not a replacement for naming that principal.

Key Takeaways

  • Trust controls role assumption; permissions control actions afterward.
  • Cross-account role access needs target trust and source assumption permission.
  • Role chaining has a 1-hour session limit.
  • Use attached roles or impersonation to obtain temporary credentials.
  • Require a vendor-issued external ID for third-party role access.
2

Structure accounts and subscriptions in a management hierarchy

A hierarchy makes one governance decision reach many workloads. Accounts, subscriptions and projects provide working boundaries; OUs, management groups and folders collect those boundaries under shared rules. Learn how to arrange them into a prepared landing zone, predict the effect of moving a container and protect the administrators who control the top of the tree. The provider differences matter when you trace inherited access.

2.1 Compare the resource hierarchies of the major clouds

Cloud hierarchies put shared rules above the resources they govern. First identify the containers, then identify what flows down from them. Azure and Google Cloud inherit permission grants as well as policies. AWS organization roots and OUs carry permission guardrails; IAM and resource policies grant access inside accounts.

Compare the levels
AWSAzureGoogle Cloud
Organization rootTenant root management groupOrganization
Organizational unitsManagement groupsFolders
AccountsSubscriptionsProjects
ResourcesResource groups, then resourcesResources

These are working comparisons, not exact matches. AWS identities can live inside an account. Entra identities live in the tenant that subscriptions trust. Azure resource groups group resources by lifecycle; AWS resource groups are views based on tags or queries.

An AWS organization has one root and one management account. Other accounts are member accounts. An account belongs directly to the root or to one OU, and OUs can be nested five levels below the root. Accounts provide strong isolation: access across them requires explicit grants.

In Azure, each management group and subscription has one parent. Management groups can be six levels below the tenant root, excluding the root and subscription levels. A subscription trusts one Entra tenant and holds resource groups. New subscriptions enter the tenant root management group by default unless a different default management group is configured.

Google Cloud organizations are tied to Cloud Identity or Workspace. Folders group projects and can nest ten levels deep. A project contains resources, enables APIs and carries service quotas; linking it to a billing account enables billing for its billable services.

Group Azure resources by lifecycle

Every resource belongs to one resource group, and resource groups cannot nest. Their location records where group metadata is stored. It does not force every resource into that region.

Place a web application and resources managed with it in a group when they are deployed and retired together. Deleting the group deletes its resources, so a shared database with a different lifetime belongs elsewhere. Region requirements should be enforced on the resources through policy.

Trace a path before changing it

Consider Tenant root → Contoso → Landing zones → Corp → subscription corp-app-01. Contoso, Landing zones and Corp use three of the six available management-group levels. Policies assigned at each applicable ancestor reach resources in the subscription.

A move changes that path. Before moving a subscription, compare old and new inherited roles and policies. A workload can lose required access, receive broader access or become subject to a conflicting rule. In AWS, moving an account changes its inherited OU guardrails; it does not copy permissions from another account.

Supported Azure resources can move between resource groups or subscriptions, but a ReadOnly lock on the source or destination group blocks the move. Check move support and inherited controls before scheduling the change.

Key Takeaways

  • Map each provider hierarchy before tracing inherited controls.
  • AWS OUs inherit guardrails, while Azure and Google Cloud also inherit grants.
  • Azure resource groups contain resources with a shared lifecycle.
  • A container move changes the controls inherited from its parent.

2.2 Design a multi-account landing zone

A landing zone prepares the environment before teams deploy workloads. It includes the hierarchy, identity and single sign-on, central logging, security services, shared networking and guardrails. Creating an empty set of accounts alone leaves teams to build these foundations differently.

Design around governance needs

Separate production from development to limit the blast radius of a mistake or compromise. Separate accounts or subscriptions also separate quotas, ownership and controls. Group the containers according to the rules they share: production, non-production, sandbox or a workload class with special requirements.

A department chart is a weak foundation for this design. If every department has production and development accounts, putting departments at the top forces the same production rule to be repeated. Grouping by governance needs lets one assignment reach every production account, including new ones.

Keep the tree shallow enough to inspect. Each added level creates another place for policies or assignments that an administrator must trace during an access problem.

Allocate shared services and workloads

A useful AWS layout separates these areas:

  • A Security OU holds the log archive and security tooling accounts.
  • An Infrastructure OU holds shared networking and shared services.
  • A Workloads OU has Production and Non-production children.
  • A Sandbox OU limits experiments.
  • A Suspended OU restricts accounts being closed with a deny-all policy.

The management account runs no workloads. Central logs belong in an account workload teams cannot alter.

In Azure, put an intermediate organizational management group below the tenant root. Under it, Platform contains identity, management and connectivity subscriptions; Landing zones holds Corp and Online branches for different connectivity needs; Sandbox and Decommissioned hold their own controls. Put common organizational policy at the intermediate group, with workload-specific rules lower down.

AWS Control Tower supplies a managed landing-zone approach. Microsoft's Cloud Adoption Framework describes Azure landing zones, and Google Cloud's enterprise foundation blueprint provides a comparable foundation design.

Count a complete design

A company has 3 products, each with production, staging and development. It needs one account for each product-environment pair:

3×3=9

Add 3 shared member accounts for networking, logs and security tooling to obtain 12 member accounts. Add the management account to obtain 13 accounts overall. The 3 production workload accounts share the Production OU; the 6 staging and development accounts share Non-production. An account quota increase may be needed as the organization grows.

Make every new container start correctly

Account vending or subscription vending is a repeatable creation process. It places the container under the correct parent, enables logging, creates SSO assignments, applies required metadata and sets the baseline controls. AWS Control Tower Account Factory and infrastructure pipelines can supply this process.

Define who owns the new account and which workload class it belongs to before vending it. A manually created account that bypasses the baseline can remain invisible to central logging or lack the policies its production workload requires.

Key Takeaways

  • A landing zone includes identity, logging, networking and governance.
  • Group containers by shared governance requirements.
  • Separate workload environments to limit blast radius.
  • Keep workloads out of the AWS management account.
  • Count shared and management accounts as well as workload accounts.
  • Use vending to apply the baseline consistently.

2.3 Keep control of the top of the hierarchy

Changes near the top of a cloud hierarchy can affect every workload below. Treat root-scope access, account movement and guardrail administration as platform duties with separate owners, strong authentication and a central audit trail.

Protect the highest scopes

AWS SCPs do not restrict the management account. Give it a small administrative audience, protect access with strong MFA and keep workloads elsewhere. A delegated administrator lets a member account administer a supported organization-wide service, such as security tooling. That account remains subject to SCPs.

In Azure, a role assignment at the tenant root management group reaches every subscription beneath it. No user has root management-group access by default. Keep root assignments to the minimum needed and put normal organization-wide rules on an intermediate management group.

Distinguish directory power from resource power

Microsoft Entra roles administer the directory: users, groups and application registrations. Azure roles administer cloud resources. Global Administrator is an Entra role; Owner and Contributor are Azure resource roles.

A Global Administrator has no subscription access just because of that directory role. They can elevate access to become User Access Administrator at the root scope, then manage resource access. Monitor elevation and remove it when the task finishes. Leaving elevated access active creates a persistent route from directory administration into resource access management.

Prepare emergency access

Keep two cloud-only Entra emergency administrator accounts that do not depend on federation or one person's phone. If the normal IdP connection fails, these accounts provide an independent recovery path. Secure their credentials, test access on a schedule and alert on every use.

For AWS, protect root access with MFA. With centralized root access management, the organization can remove root credentials from member accounts and handle supported root tasks centrally. Protect the management account's own root access separately.

Control moves and delegation

Workload teams need enough rights to operate their resources. The platform or security team owns the hierarchy, access rules and guardrails. Delegation must not let a workload owner remove the rule that governs their workload.

Moving an Azure subscription requires these permissions on the subscription:

  • Microsoft.Management/managementGroups/write
  • Microsoft.Management/managementGroups/subscriptions/write
  • Microsoft.Authorization/roleAssignments/write
  • Microsoft.Authorization/roleAssignments/delete
  • Microsoft.Management/register/action

Owner includes them. Management-group write permission is also needed on the current and destination parents, with the root-parent exemption. These checks protect both sides of a move that can remove inherited restrictions.

An AWS account move is performed by an authorized principal in the management account. Delegated organization policy administration does not confer the right to move accounts.

Preserve evidence outside workload control

Send CloudTrail organization events to the log archive account. Collect Azure activity logs for management groups and subscriptions and Google Cloud Audit Logs for organization administration. Alert on root sign-ins, access elevation, account movement and guardrail edits. The team that can change a workload should not be able to erase the evidence of its governance changes.

Key Takeaways

  • Limit high-scope administrators and keep their activity auditable.
  • Delegated AWS administrators remain inside organization guardrails.
  • Entra directory roles and Azure resource roles are separate.
  • Test independent emergency access and alert on its use.
  • Restrict container moves because they change inherited governance.
3

Grant permissions with policies, roles and scopes

A permission document describes possible actions; a scoped assignment puts them into use. Read policy statements and role definitions, select access for a concrete task and combine all the grants and restrictions that reach a request. The same broad role can behave differently because of its scope, a resource policy, an inherited deny or a boundary. A methodical access check finds the relevant layer before changing permissions.

3.1 Read and write policy documents and role definitions

Permissions name actions on resources. Providers collect them into AWS policies, Azure role definitions and Google Cloud roles. Read the action alongside its resource, exclusions and conditions.

Read an AWS policy

An AWS policy uses Version: "2012-10-17" and a Statement list. Each statement has Effect and Action. Identity-based statements name a Resource; optional Condition entries narrow when they apply. Resource-based policies also identify a Principal. A role trust policy omits Resource because the attached role is the resource.

This policy lets its holder list an archive bucket and read its objects:

{
  "Version": "2012-10-17",
  "Statement": [
    {
      "Effect": "Allow",
      "Action": "s3:ListBucket",
      "Resource": "arn:aws:s3:::reports-bucket"
    },
    {
      "Effect": "Allow",
      "Action": "s3:GetObject",
      "Resource": "arn:aws:s3:::reports-bucket/*"
    }
  ]
}

ListBucket applies to the bucket ARN; GetObject applies to object ARNs ending in /*. Neither statement permits upload or deletion. Adding an explicit Deny for s3:DeleteObject also blocks deletion if another applicable policy allows it.

An identity-based policy attaches to a user, group or role. A resource-based policy, such as a bucket policy, attaches to the resource and names who may access it. AWS managed policies are maintained by AWS; customer managed policies are reusable documents you maintain; inline policies are embedded in one identity and deleted with it.

A permissions boundary caps what identity-based policies can grant without granting anything itself. Require a boundary on developer-created roles to limit delegated administration. Within one account, a resource policy naming a user or role session directly can grant beyond an implicit boundary limit; explicit denies still win.

Read Azure roles

An Azure role definition lists Actions for management operations, DataActions for data operations and their exclusion lists, NotActions and NotDataActions. AssignableScopes says where the role is available for assignment; it does not create an assignment.

NotActions subtracts operations from that role's allowed set. It is not an overriding deny, so a second role can grant the excluded action.

Azure roleMain purpose
OwnerManage resources and grant access
ContributorManage resources without granting access
ReaderView resources
User Access AdministratorManage access
Role Based Access Control AdministratorManage role assignments, optionally with conditions

Prefer service-specific roles when they fit, such as Virtual Machine Contributor.

Select Google Cloud roles

Google Cloud roles contain permissions such as storage.objects.get. Predefined roles such as roles/storage.objectViewer are maintained for particular services. Custom roles hold your selected permissions and are defined at organization or project level, not folder level. Broad basic roles include the legacy Owner, Editor and Viewer roles; avoid using them as a production shortcut.

Create a custom policy or role when no built-in choice fits the task. Maintain it as service operations change. Broad wildcards save editing effort but can grant new actions added later without a fresh access review.

Key Takeaways

  • Read action, resource and conditions together.
  • Match S3 bucket actions and object actions to their different ARNs.
  • Separate identity policies, resource policies and permission boundaries.
  • Azure NotActions removes a grant from one role; it does not deny it globally.
  • Prefer service-specific roles to broad built-in roles.
  • Custom roles require ongoing maintenance.

3.2 Assign roles at the right scope

A role definition describes permissions. An assignment applies them to a caller at a place in the hierarchy. To review access, write down all three parts: principal, role and scope.

Match each provider's assignment model

In Azure, assign a role to a user, group, service principal or managed identity. The scope can be a management group, subscription, resource group or resource. It includes everything beneath that scope. Deleting the assignment removes that grant, although other direct or inherited grants may remain.

In Google Cloud, an allow policy on an organization, folder, project or resource contains role bindings. A binding gives one role to specified principals and may include a condition. For example, bind roles/compute.viewer to group:ops@example.com on one project.

In an AWS account, attach identity policies to users, groups or roles. Across accounts, an IAM Identity Center assignment joins a user or group, a permission set and an account. The permission set supplies the role template for that account.

Choose the minimum useful access

Work from the job to the assignment:

  1. List the operations the caller must perform.
  2. Select the smallest built-in role that covers them; create a custom role if none fits.
  3. Locate the smallest scope containing all target resources.
  4. Assign to a group or workload identity.
  5. Set an expiry or review date for temporary access.

A web operations group needs to restart and resize virtual machines in rg-web-prod. Virtual Machine Contributor on that resource group covers the task. Contributor on the subscription adds control over unrelated services and groups. A resource-group assignment also covers new virtual machines placed in that group, so the lifecycle and ownership of the group matter.

Least privilege combines narrow actions, narrow scope and limited time. Microsoft Entra Privileged Identity Management supports the time dimension: an eligible user activates privileged access for a limited period with a justification. Eligibility alone is not an active administrative session.

Separate operations from granting access

Creating an Azure role assignment requires Microsoft.Authorization/roleAssignments/write at the relevant scope. Owner, User Access Administrator and Role Based Access Control Administrator can provide that permission. Contributor does not. A resource team can therefore operate resources without being able to grant its own members additional access.

When someone reports an error, check the missing action before increasing the role or scope. Assigning Owner across a subscription can hide the original mismatch while opening every current and future resource group to that principal.

Inspect inherited assignments

Use Access control (IAM) at the target Azure scope to see assignments made there and those inherited from parents. Check access gathers the assignments that reach a principal, including group-derived access. Google Cloud's project IAM view similarly shows local and inherited bindings.

Record why a broad assignment exists and who reviews it. The effective scope includes descendants added later, so an assignment that fit a small environment can become much broader as the hierarchy grows.

Key Takeaways

  • An assignment joins a principal, role and scope.
  • Select permissions from the task and scope from the target resources.
  • Use groups and workload identities as stable assignment targets.
  • Limit temporary privilege with expiry, review or activation.
  • Contributor cannot grant Azure resource access.

3.3 Work out effective access

Effective access is the result of every applicable grant and restriction. A role name on its own cannot establish whether a request succeeds. Identify the actual principal, requested action and target resource, then trace the full policy path.

Combine inherited grants

Azure RBAC adds permissions from all assignments that reach a principal, including group memberships. Reader at management group Corp plus Contributor at rg-data gives Contributor management rights inside that group and Reader rights elsewhere below Corp. Adding Reader inside rg-data cannot remove the inherited or direct Contributor grant.

Google Cloud similarly combines allow policies on the resource and its ancestors. An inherited allow must be removed where it was granted or blocked by an applicable deny policy. Google Cloud IAM deny policies at organization, folder or project scope override allow policies for supported permissions.

Azure deny assignments also override grants. Azure creates them for features such as managed applications and deployment stacks; administrators cannot create arbitrary deny assignments directly. Azure Policy and locks provide other controls for the requirements they support.

Evaluate AWS policy layers

Start with no permission: an unallowed request is implicitly denied. An explicit deny in an applicable policy defeats an allow. Organization guardrails must permit the operation, and an identity or resource policy must grant it. Boundaries and session policies further limit identity-based grants.

Consider a role with s3:* on arn:aws:s3:::logs-bucket/*, a boundary allowing GetObject and PutObject, and an SCP denying DeleteObject. Assume no other grants or restrictions apply.

RequestResultReason
Read an objectAllowedIdentity grant and boundary include it
Upload an objectAllowedIdentity grant and boundary include it
Delete an objectDeniedSCP explicitly denies it
List the bucketDeniedBucket ARN and action are absent from the needed grants

A boundary grants nothing. Within the same account, a resource policy naming an IAM user or a role session directly can grant beyond an implicit omission in a boundary or session policy. Explicit denies still apply. A policy naming a role ARN has different evaluation details from one naming its session; inspect the precise principal.

For most same-account services, identity and resource policy allows combine. Cross-account resource access needs permission from the caller's account and trust from the resource account. Some services have additional policy requirements, such as KMS key policies.

Diagnose an access failure
  1. Read the error for the action and resource.
  2. Identify the caller in the request or audit log; it may be an assumed role session.
  3. Collect grants and restrictions at the target and every relevant ancestor.
  4. Look for explicit denies, then missing allows, unmatched resources or failed conditions.
  5. Use AWS policy simulation and Access Analyzer, Azure Check access or Google Cloud Policy Troubleshooter to test the path.

Allow for policy propagation after a change. Repeating a broader assignment immediately can create needless access before the first update has taken effect.

Key Takeaways

  • Calculate effective access from all applicable grants and restrictions.
  • A narrower Reader assignment cannot cancel an inherited Contributor grant.
  • Explicit denies override applicable allows.
  • AWS boundaries cap identity grants but do not grant permissions.
  • Check the exact resource-policy principal when evaluating boundary exceptions.
  • Troubleshoot the actual caller, action and resource before changing access.
4

Federate identities and provide single sign-on

An organization can keep sign-in at its existing identity provider while using many cloud accounts. Federation establishes trust in signed identity evidence, and provisioning keeps users and groups current. Build the connection from token validation through account assignments, then extend it to external pipelines and partners. Session lifetime and deprovisioning determine how quickly access ends when an identity should stop working.

4.1 Set up federation with an identity provider

Federation lets a cloud trust an identity provider (IdP) to authenticate users. The user proves identity at the IdP; the cloud receives signed evidence and applies its own authorization rules. The cloud does not need the user's IdP password.

Establish and verify the trust

For SAML, exchange metadata that identifies the IdP sign-in URL and signing certificate and the cloud's service-provider identifier and reply URL. These values tell each side where a sign-in belongs and how to verify the response.

A service-provider-initiated SAML sign-in follows this path:

  1. The user opens the cloud console.
  2. The cloud redirects the browser to the IdP.
  3. The user authenticates there, including MFA.
  4. The IdP returns a signed XML assertion with identity attributes, audience and validity period.
  5. The cloud checks the signature, audience and time window, maps attributes to access and starts a session.

For an IdP-initiated sign-in, the user starts at the IdP's app portal. The redirect from the cloud is skipped; validation is still required.

Compare token formats
ProtocolEvidence of identityCommon cloud use
SAML 2.0Signed XML assertionWorkforce console federation
OpenID ConnectSigned ID token, usually a JWTModern applications and workload federation

OpenID Connect (OIDC) adds an identity layer to OAuth 2.0. Its ID token contains claims including issuer (iss), subject (sub), audience (aud) and expiry (exp). Verify the signature using the IdP's published keys and check that the claims match the configured trust. A valid signature alone does not establish that the token was intended for your cloud application.

Map identities and keep accounts current

Attribute mapping connects IdP information to cloud access. A group named "cloud-dba-prod" can map to DatabaseAdmin in the production data account. In Azure, an Entra group receives resource role assignments directly.

Federation handles sign-in; provisioning handles account records and membership. SCIM 2.0 lets an IdP create, update and deactivate users and groups in a connected service. Just-in-time provisioning creates a user on first sign-in but usually does not remove leavers. Without deprovisioning, stale cloud records and memberships remain after staff changes.

For hybrid identity, Entra Connect Sync or Entra Cloud Sync copies on-premises directory identities into Entra ID. Password hash synchronization, pass-through authentication or AD FS federation supplies the chosen sign-in path. Google Cloud Directory Sync copies directory users and groups into Cloud Identity. Google workforce identity federation can instead let external workforce identities use Google Cloud without synchronized user accounts.

Operate the connection

IAM Identity Center uses one identity source at a time: its own directory, Active Directory or an external SAML IdP, commonly with SCIM. A single AWS account can also configure IAM SAML or OIDC providers and federation roles directly.

Track signing-certificate renewal and keep clocks synchronized. An expired certificate or an assertion outside its short validity window can interrupt every sign-in. When sign-in succeeds but resource access fails, inspect the mapped role and cloud permissions; successful authentication alone grants no resource rights.

Key Takeaways

  • Federation passes trusted identity evidence to the cloud.
  • Verify token signature, intended recipient and validity.
  • Map IdP attributes to cloud roles or assignments.
  • Provision and deprovision accounts separately from sign-in.
  • Maintain certificate renewal and clock synchronization.

4.2 Design single sign-on across many accounts and workloads

Single sign-on gives people one authentication path into many cloud accounts. Access still differs by account and role. Design the assignments so users can select the resources they need without acquiring administration everywhere.

Reuse access templates

An IAM Identity Center permission set is a policy template. Assign a group, permission set and account together; Identity Center creates and maintains the corresponding IAM role in that account. Users select the account and role in the AWS access portal or command-line workflow. Permission-set sessions default to 1 hour and can be configured up to 12 hours.

Suppose web staff receive Developer in web-dev and ReadOnly in web-prod. Data staff receive Developer in data-dev and ReadOnly in data-prod. Platform staff receive Administrator in shared-network. Security staff receive ReadOnly in all eight accounts, including logging, security tooling and sandbox.

The assignment counts are 2 for web, 2 for data, 1 for platform and 8 for security: 13 in total. Adding a new web developer changes one IdP group membership; the existing two web assignments determine that person's access.

In Azure, a single Entra tenant serves its subscriptions. Users see the subscriptions where they have access. A group assignment at a management group reaches every subscription beneath it, so check that all descendants really need the same role.

Federate a pipeline without a cloud key

An external build platform issues an OIDC token for a job. The cloud checks its trust conditions and exchanges it for short-lived credentials. Configure an AWS OIDC provider and role trust, an Azure federated credential on a managed identity or app registration, or a Google workload identity pool.

Restrict all the relevant claims:

  • Issuer: the platform that signed the token.
  • Subject: the particular repository, branch or deployment environment.
  • Audience: the intended cloud recipient.

For example, an AWS GitHub trust can require token.actions.githubusercontent.com:sub to equal repo:example-org/web-app:ref:refs/heads/main. The issuer alone is too broad: many unrelated repositories use the same platform. The subject limits which job may become your cloud identity, and the role permissions limit what it may do afterward.

Include partners and departures

Invite Azure partners through B2B or trust their IdP. Give guests dedicated groups, expiry dates and access reviews. For an AWS vendor, provide a narrowly scoped role and require its customer-specific external ID. Separate partner access from staff access so that a contract ending does not require finding scattered individual grants.

Test departure as part of the design: disable a user at the IdP, confirm that new sign-ins stop and examine existing cloud sessions. Their remaining lifetime matters. Use shorter sessions for high privilege, such as 1 hour for administrators, and choose longer read-only sessions only where appropriate. Removing group membership changes future access once propagated; it does not itself guarantee that every already-issued credential has expired.

Key Takeaways

  • Identity Center assignments combine a group, permission set and account.
  • Permission sets maintain matching roles across assigned accounts.
  • Restrict workload federation by issuer, subject and audience.
  • Use dedicated partner groups or narrowly trusted vendor roles.
  • Include existing sessions in deprovisioning tests.
5

Enforce guardrails across the organization

Central guardrails keep workload administrators inside agreed limits. Some prevent an operation, some report a violation and others apply a repair. Learn how AWS permission ceilings, Azure resource rules and Google Cloud constraints behave across a hierarchy. Rollout needs testing, precise exceptions and a plan for existing resources, because attaching a new rule and achieving compliance are different operational tasks.

5.1 Set permission guardrails with AWS organization policies

AWS organization policies put centrally managed limits around member accounts. An account administrator can grant a role broad IAM permissions and still be stopped by a guardrail above the account.

Trace SCP permissions through the tree

A service control policy (SCP) limits IAM users and roles in member accounts, including the member account's root user. It grants no access. An ordinary IAM principal still needs an identity or resource policy grant. A member root user has inherent account permissions, which SCPs restrict.

For an action to remain available, SCPs must allow it at every level from organization root through each OU to the account. Allows attached at the same level combine; a deny anywhere on the path wins. When SCPs are enabled, FullAWSAccess is attached at the root, OUs and accounts to preserve the available permission set.

StrategyHow it worksMaintenance consequence
Deny listKeep FullAWSAccess and deny selected operationsNew services remain available unless denied
Allow listReplace broad allows with approved servicesNewly needed services require policy updates

Removing FullAWSAccess with no replacement allow blocks the affected path. Removing it at a child cannot cancel an explicit deny inherited from a parent.

Read a preventive rule

A region restriction can deny regional API calls outside eu-central-1 and eu-west-1 using aws:RequestedRegion. Global services such as IAM need appropriate exceptions, often through NotAction, because they use global endpoints associated with particular regions.

A developer with AdministratorAccess who launches an instance in us-east-1 is denied. The corresponding launch in eu-west-1 passes this region guardrail, but still needs the ordinary permissions and other controls to permit it. Endpoint restrictions also do not establish where every service stores or replicates data.

Know which side a guardrail protects

SCPs govern the organization's member-account principals. They do not restrict the management account, service-linked roles or outside principals using a resource policy grant.

A resource control policy (RCP) limits access to resources in member accounts for supported services, including requests from outside principals. A data perimeter can use aws:PrincipalOrgID to restrict access to organizational identities while accounting for required service access. SCPs limit your principals; RCPs protect your resources. Neither supplies the underlying permission grant.

An exception can be built into a policy condition, such as one based on aws:PrincipalArn for a named emergency role. An emergency role has no automatic exemption from an SCP deny.

Roll out and maintain controls

Test a policy in a small OU containing member accounts. Review service last accessed information, exercise deployment and operational tasks, fix unintended blocks and then expand the attachment. Testing only in the management account cannot prove that an SCP works because that account is exempt.

Other organization policy types serve different jobs. Tag policies standardize supported tagging behavior, backup policies distribute backup plans, and declarative policies enforce supported service configurations. Choose the policy type that represents the requirement before writing its statements.

Key Takeaways

  • SCPs limit member-account principals and never grant access.
  • Keep an allow at every level and check all explicit denies.
  • Choose deny-list or allow-list management deliberately.
  • RCPs protect supported resources against inside and outside callers.
  • Test in member accounts before broad rollout.
  • Document policy exceptions explicitly.

5.2 Enforce resource rules with Azure Policy

Azure Policy governs the properties and configurations resources may have. Azure RBAC governs which principal may request an operation. A permitted administrator can still submit a request that Policy rejects, including an Owner.

Build a policy assignment

A definition contains an if condition and a then effect. An initiative groups related definitions. An assignment applies a definition or initiative at a scope, while parameters provide values such as allowed locations. A definition stored in the environment does nothing until assigned.

An exclusion removes child scopes from an assignment. An exemption records an exception for a scope or resource, categorized as Waiver or Mitigated, with an optional expiry. Use exceptions narrowly enough that the rest of the intended scope remains governed.

This rule fragment rejects a regional resource whose location is outside the parameter list:

{
  "if": {
    "field": "location",
    "notIn": "[parameters('allowedLocations')]"
  },
  "then": { "effect": "deny" }
}

The surrounding definition supplies the parameter and appropriate resource applicability. Built-in policies account for those details and are usually the starting point for requirements such as "Allowed locations" or "Require a tag and its value on resources".

Choose the effect
EffectBehavior
denyReject a noncompliant create or update
auditPermit the request and report noncompliance
append, modifyAdd or change supported request properties
auditIfNotExistsReport a missing related resource
deployIfNotExistsDeploy a required related resource
denyActionBlock a supported action, such as deletion

manual supports attestation and disabled turns evaluation off. addToNetworkGroup and mutate serve specific network and Kubernetes cases.

For create and update requests, append and modify run before deny, then audit follows. A modify rule that supplies the required CostCenter tag can make the request compliant before a deny rule checks that tag. Effects that inspect related resources run after the resource provider succeeds.

Combine rules and repair existing resources

Each assignment is evaluated independently. If one applicable deny allows only westeurope and another allows only northeurope, a regional resource cannot satisfy both. A lower assignment cannot relax the parent rule. Align the parameters or create a deliberate exclusion or exemption at the governing assignment.

A new deny policy does not delete existing noncompliant resources. Compliance evaluation reports them. For existing resources, modify and deployIfNotExists need a remediation task. Their assignment's managed identity needs the permissions required to make those changes; a policy effect does not supply those permissions by itself.

Begin with audit or DoNotEnforce, inspect compliance, repair or exempt the affected resources and then enforce. Assign common rules high enough that new subscriptions inherit them. Compliance results take time to update; full scans normally follow a roughly 24-hour cycle.

Key Takeaways

  • Policy definitions need assignments to govern resources.
  • RBAC grants actions; Policy checks resource rules.
  • Modify can repair a request before deny evaluates it.
  • Every applicable deny must be satisfied.
  • Existing resources need remediation, not merely a new deny.
  • Grant the remediation identity its required roles.
  • Start with audit or non-enforcement before rollout.

5.3 Choose and combine guardrails across clouds

A governance requirement needs a control that acts at the right time. Decide whether to prevent a violation, detect it after it occurs or correct it automatically. These behaviors complement one another across a cloud environment.

Match behavior to the requirement

Preventive controls block noncompliant operations. SCPs, Azure Policy deny and Google Cloud organization policies provide examples. Detective controls report an existing problem, such as AWS Config rules or Azure Policy audit. Corrective controls make a change, such as policy-driven remediation.

A rule prohibiting public sharing may need prevention. A broad set of recommended settings may begin with detection so owners can review exceptions. Automatic correction fits only when the fix is predictable and safe. A control that produces a report still needs an owner who acts on it.

AWS Control Tower describes three control behaviors: preventive, detective and proactive. Its proactive controls use CloudFormation hooks to inspect resources before provisioning. They do not mean the same thing as corrective controls. Control Tower controls target OUs and carry mandatory, strongly recommended or elective guidance. Preventive implementations can use SCPs, RCPs or declarative policies.

Apply Google Cloud constraints

The Organization Policy Service controls permitted configurations, while IAM controls access. One organization policy configures one constraint at an organization, folder or project. For example:

  • constraints/gcp.resourceLocations restricts supported resource locations.
  • constraints/iam.allowedPolicyMemberDomains restricts domains whose identities may receive roles.
  • constraints/iam.disableServiceAccountKeyCreation blocks service account key creation.
  • constraints/compute.vmExternalIpAccess controls which virtual machines may have external IP addresses.

List constraints allow or deny values; boolean constraints are enforced or not. Custom constraints address supported resource fields. Descendants inherit policies by default. A child policy can replace or merge with its parent according to the constraint's evaluation rules, so inspect the effective policy before assuming the parent setting remains unchanged.

Dry-run mode records violations without blocking them. Most constraints do not repair existing resources: locate the old violations and plan changes separately.

Work through a location requirement

For customer data restricted to approved EU locations, put the rule at the scope containing those workloads. AWS can restrict regional calls with an SCP, Azure can deny unsupported locations with an Allowed locations assignment, and Google Cloud can apply constraints/gcp.resourceLocations using in:eu-locations.

These controls address supported resource locations or request endpoints. Data residency also depends on each service's storage, processing, replication and backup settings. A successful deployment in an approved region does not settle every data movement question.

For each control, record its scope, behavior, exceptions, test plan and owner. Keep least-privilege roles alongside guardrails: a coarse organization rule can prohibit an operation without limiting all the other actions a broadly privileged user could take.

Key Takeaways

  • Choose preventive, detective and corrective behavior to fit the risk.
  • Control Tower proactive checks differ from corrective remediation.
  • Google organization policies enforce configuration constraints.
  • Inspect effective constraint inheritance and child overrides.
  • Location controls are one component of data-residency design.
6

Protect and organize resources with locks and tags

A deletion mistake and an unowned resource need different controls. Resource locks add a deliberate management barrier, while tags attach consistent metadata for ownership, automation and policy. Learn which operations a lock reaches, which everyday tasks it can interrupt and how tags differ across providers. Enforcement and maintenance make these controls useful after the first deployment, as resources and teams change.

6.1 Protect resources with locks and deletion protection

A resource lock places a deliberate obstacle in front of accidental management changes. Apply it where the operational need is clear, because a lock can block administrators as well as routine operators.

Choose an Azure lock level
LockManagement behavior while applied
CanNotDeleteAuthorized reads and changes continue; deletion is blocked
ReadOnlyReads continue; updates and deletion are blocked

The portal calls CanNotDelete a Delete lock. Set locks on a subscription, resource group or individual resource; management groups do not support them. Descendants inherit a parent's lock, including resources added later. When locks overlap, the most restrictive restriction applies.

A CanNotDelete lock on rg-payments-prod lets authorized engineers update, restart and scale its virtual machines while blocking deletion. A ReadOnly lock also blocks daily management changes and can be too restrictive for an operating workload.

Separate control plane from data plane

Azure locks apply to control-plane requests sent through Azure Resource Manager. They do not stop data-plane operations against the data a service holds. A delete lock can protect a storage account from deletion while someone with blob data permissions can still delete its blobs. A read-only lock on a SQL logical server protects its management configuration while database data can still change.

Decide which object needs protection: the service resource, its stored data or both. Management locks and service-specific data protection address different objects.

Check side effects before widening the scope

Some management actions that sound like reads or ordinary operation use POST requests and are blocked by ReadOnly. Examples include listing storage-account keys, starting or restarting virtual machines and scaling an App Service plan.

A CanNotDelete lock on a resource group also blocks automatic cleanup of old deployment history. Once that history reaches 800 entries, deployments can fail. Test locks in a representative scope and include deployment operations in the test.

Deleting a resource group containing a delete-locked resource fails for the whole group. Resource Manager does not delete the unlocked resources first and leave the locked one behind.

Control removal and choose cloud equivalents

Creating or removing locks requires Microsoft.Authorization/locks/* permissions. Owner and User Access Administrator have them. A lock remains effective until removed, but a person allowed to remove it can deliberately unlock the resource. Log removal as part of the approved change process.

AWS offers service-specific protections: EC2 termination protection, RDS deletion protection, CloudFormation stack termination protection and S3 Object Lock for write-once-read-many object storage. IAM or SCP denies can also block deletion. Google Cloud liens block project deletion; services such as Compute Engine and Cloud SQL have deletion protection settings.

Choose protections by the target resource and operation. A team that only needs viewing rights should receive an appropriate Reader assignment. A ReadOnly lock restricts all users at the scope and can disrupt other teams' authorized operations.

Key Takeaways

  • Choose CanNotDelete when routine management must continue.
  • Locks inherit to descendants and the most restrictive lock applies.
  • Azure locks protect management operations, not stored data operations.
  • ReadOnly can block POST-based actions such as restarts.
  • A locked child prevents deletion of its entire resource group.
  • Lock-removal permission makes a lock a safety catch, not an immutable boundary.

6.2 Design and enforce a tagging strategy

Tags make ownership and automation visible on resources. A useful strategy specifies exact keys, allowed values, an accountable owner and an enforcement method. A free-text field that everyone fills differently cannot support reliable access rules or reporting.

Define a small shared vocabulary

Start with mandatory keys such as "Owner", "Environment", "CostCenter" and "Application". Limit Environment to values such as "Production", "Staging", "Development" and "Sandbox". Optional tags can guide automation, such as "Schedule = office-hours", or record data classification.

Keep the mandatory set short enough that teams can supply it correctly. Apply it in account vending and deployment templates, and define who corrects existing resources.

Respect provider differences
ProviderCase behaviorCommon resource limit
AWS tagsKeys and values are case-sensitive50 user-defined tags
Azure tagsKey operations ignore case; values are case-sensitive50 tags
Google Cloud labelsUse the provider's lowercase naming rules64 labels

AWS permits keys up to 128 characters and values up to 256. Azure names can reach 512 characters, or 128 on storage accounts, and values 256. Azure subscriptions and resource groups also support up to 50 tags. Provider and service support determine which resources can carry tags.

Tags are plain-text metadata visible in logs or exports. Keep secrets and personal data out of them.

Apply and enforce tags on the actual resources

AWS and Azure resources do not inherit tags from accounts, subscriptions or resource groups. A template must apply them or a policy must copy them. Azure's "Inherit a tag from the resource group if missing" uses modify; remediation handles existing resources. A deny policy can require a tag and value.

AWS tag policies standardize key case and allowed values and can enforce compliance for supported resource types. They do not by themselves require every untagged resource to acquire a missing tag. Use a supported creation-time IAM or SCP condition, such as aws:RequestTag/CostCenter, when the service action supports it.

Google Cloud labels are not inherited. Resource Manager tags are a separate feature: they can be inherited and tested in IAM conditions or organization policies. Do not substitute a label where an inherited policy tag is required.

Repair an inventory and prevent recurrence

An audit finds 1,050 of 1,200 resources have every mandatory tag:

1050÷1200×100=87.5%

The remaining 150 comprise 90 missing CostCenter and 60 with lowercase "environment". In AWS, that lowercase spelling is a different key. Bulk-correct the resources, then enforce key spelling and creation requirements so the same gap does not reappear. Activate an AWS user-defined cost allocation tag before using that key to group billing data.

Protect tags used for access

Attribute-based access control (ABAC) uses attributes in authorization conditions. AWS can compare a principal's Project tag with a resource's Project tag. Azure role conditions support specific attributes, such as blob index tags and user custom security attributes; ordinary resource tags are not a general Azure RBAC condition mechanism. Google Cloud IAM conditions can test Resource Manager tags, including inherited ones.

When metadata influences access, permission to edit it becomes security-sensitive. Restrict those edits. Tags organize resources across dimensions, but separate accounts or subscriptions provide the isolation and governance boundaries needed for different environments.

Key Takeaways

  • Standardize exact tag keys, values, ownership and enforcement.
  • Check each provider’s case rules and resource support.
  • Apply tags to resources; AWS and Azure do not inherit container tags.
  • Distinguish Google Cloud labels from inherited Resource Manager tags.
  • Combine cleanup of existing tags with prevention of new gaps.
  • Protect edits to attributes that influence authorization.
  • Use accounts or subscriptions for isolation.

Cloud Identity and Access Management examples

6 Walkthroughs

1

Build identities for a cloud team

14 steps
Choose human and workload identities, maintain group access and follow a cross-account role session.
  1. 1
    IntroductionStart with the callers

    A reporting service needs staff access, a cloud-hosted application and an external build job. Each needs an accountable identity before it can receive permissions: human identities for staff, workload identities for the application and job.

    Follow the design from the directory to the application, then into a temporary AWS role session, where trust and permissions differ. The key question at each stage is which principal will actually make the request.

  2. 2
    ExplanationSeparate people from workloads

    Give staff named human identities and give applications and jobs workload identities. A group organizes access for its members but never signs in itself.

    In Azure, the human directory is an Entra tenant. AWS uses Identity Center for multi-account workforce access, while Google uses Cloud Identity or Workspace. Identify the caller in the audit log, not just the person who owns the task.

  3. 3
    ExampleChoose the application identity

    The reporting application runs on an Azure VM. Attach a managed identity and assign it the resource access the application needs. Azure supplies its credentials without an application secret in the code.

    A system-assigned identity ends when this VM is deleted. If an identity must survive replacement or be shared with other resources, a user-assigned identity supplies that separate lifetime.

  4. 4
    ChallengeChoose an external job identity

    The build job runs outside Azure and should not store a cloud key. What access pattern fits, and what identity should appear for its cloud work?

    ---reveal---

    Use workload identity federation to exchange the build platform’s token for short-lived cloud access. The job acts through its designated workload identity, with permissions separate from staff accounts. A shared developer login would hide that distinction.

  5. 5
    ExplanationLet membership carry team access

    Create a directory group for reporting operators, then give that group the required cloud assignments. New operators join through membership instead of separate edits on every resource.

    Choose assigned membership when an administrator must approve each member. Dynamic membership uses attributes to add and remove members automatically, so administrators cannot manually insert exceptions into its list.

  6. 6
    ExampleCheck the membership rule’s source

    A proposed rule includes users whose department is Reporting. Before using it to grant access, find out who can change that attribute.

    If employees can edit it themselves, they can select themselves into the group. Protect the attribute at its authoritative source or use assigned membership. For synchronized accounts, a manual cloud edit may be overwritten by the next sync.

  7. 7
    ChallengeHandle a partner and a license

    A partner will join a project group through Entra B2B. A staff member also needs a service license but has no usage location. What separate directory actions are needed?

    ---reveal---

    Invite the partner, place them in a dedicated reviewed group and give their access an end date. Set the staff member’s usage location before licensing. Guest status describes the partner’s relationship; it does not by itself identify their authentication source.

  8. 8
    ExplanationRead the two role policies

    An AWS role has trust for obtaining a session and permissions for using it. STS returns temporary credentials after a permitted assumption request.

    For ordinary AWS callers, the trust uses sts:AssumeRole. A role can trust a caller yet have no useful resource permissions, so successfully receiving credentials is only the first access check.

  9. 9
    ExampleConfigure the destination first

    The reporting source account is 111111111111; its archive is in 222222222222. Create a destination role in the archive account and name the permitted source role in its trust.

    Attach the archive-reading permissions to the destination role. These policies answer different questions: who may enter this role, and what the session can do after entry.

  10. 10
    ExampleAuthorize the source and assume

    Now give the source role permission to call sts:AssumeRole on the destination role ARN. The source calls STS and receives the destination role’s session credentials.

    Subsequent archive requests use those credentials, including the session token. The source account’s original role permissions do not simply become archive-account permissions; the application is acting through the destination role session.

  11. 11
    ChallengeApply the chaining limit

    The source caller is already using role credentials. The destination allows a maximum of 5 hours, and the caller requests 2 hours. Can this session use that duration?

    ---reveal---

    No. This is role chaining, so the new session is capped at 1 hour. The destination’s ordinary maximum does not raise the chaining limit. Use a permitted duration and renew access through the approved identity path when needed.

  12. 12
    TipProtect a vendor assumption path

    A vendor with many customers may need its own role in your account. Name the vendor’s trusted principal and require the customer-specific external ID that the vendor issues.

    The external ID prevents another customer from persuading the same vendor to use your role. It supplements the trust relationship; it is not a password that replaces the trusted principal or the role’s resource permissions.

  13. 13
    ChallengeClose the human and workload lifecycles

    A reporting engineer leaves, but the application continues running. What should end, and what should remain?

    ---reveal---

    Disable the engineer’s human account, remove unneeded memberships and address existing sessions through revocation or expiry. Keep the application’s separately owned workload identity and its required access. Separate identities let the departure end the person’s access without breaking the service.

  14. 14
    RecapTrace an identity to its owner

    For each request, identify a human or workload caller, its owner and its access path. Groups maintain human access; attached or federated identities avoid stored workload keys.

    For a role session, inspect trust before assumption, permissions after assumption and the session lifetime when access should end.

2

Lay out a governed cloud environment

12 steps
Organize workload containers, apply a repeatable landing-zone baseline and review a change of parent.

Save this lesson to follow every Walkthrough step by step.

  1. 1
    IntroductionBuild the tree before the workloads
  2. 2
    ExplanationMap the container levels
  3. 3
    ExampleTrace an Azure path
  4. 4
    ChallengePredict a parent change
  5. 5
    ExplanationGroup by rules that stay useful
  6. 6
    ExampleCount the workload containers
  7. 7
    ExampleAdd shared services and vending
  8. 8
    ChallengeFind the missing landing-zone layer
  9. 9
    ExplanationReserve power at the top
  10. 10
    TipKeep an independent recovery path
  11. 11
    ChallengeReview a move that removes a guardrail
  12. 12
    RecapReview the baseline and the path
3

Explain why a cloud request passes or fails

16 steps
Read permission documents, choose a role scope and work through grants, boundaries and inherited restrictions.

Save this lesson to follow every Walkthrough step by step.

  1. 1
    IntroductionStart with one failed request
  2. 2
    ExplanationRead action and resource together
  3. 3
    ExampleGive the reader the two S3 grants
  4. 4
    ChallengeInterpret an Azure exclusion
  5. 5
    Key InsightDistinguish management from data access
  6. 6
    ExplanationWrite down the assignment triple
  7. 7
    ExampleAssign the VM task narrowly
  8. 8
    ChallengeSeparate operating from granting access
  9. 9
    ExplanationCombine Azure grants from the top
  10. 10
    ChallengeKeep a sibling’s inherited access
  11. 11
    ExampleCollect an AWS object request’s layers
  12. 12
    ExampleEvaluate the different failed operations
  13. 13
    Key InsightKeep the resource-policy exception precise
  14. 14
    ChallengeInvestigate before changing access
  15. 15
    TipUse evidence from the real caller
  16. 16
    RecapLocate the determining layer
4

Follow a federated sign-in into cloud access

12 steps
Validate identity evidence, keep directory records current and restrict human and pipeline access across accounts.

Save this lesson to follow every Walkthrough step by step.

  1. 1
    IntroductionConnect one identity source
  2. 2
    ExplanationSet up the signing trust
  3. 3
    ExampleStart at the service provider
  4. 4
    ExampleValidate and map the assertion
  5. 5
    ChallengeDiagnose a valid token for the wrong recipient
  6. 6
    ConnectionKeep sign-in and provisioning separate
  7. 7
    ExplanationAssign access across AWS accounts
  8. 8
    ChallengeCount account assignments
  9. 9
    ExplanationExchange a pipeline token
  10. 10
    ChallengeNarrow a shared-platform trust
  11. 11
    ChallengeTest a contractor’s departure
  12. 12
    RecapVerify the full access chain
5

Roll out guardrails that hold

15 steps
Evaluate AWS permission ceilings, Azure resource rules and Google Cloud constraints before widening their scope.

Save this lesson to follow every Walkthrough step by step.

  1. 1
    IntroductionTurn a requirement into a control
  2. 2
    ExplanationSet a ceiling without a grant
  3. 3
    ExampleFollow the SCP path
  4. 4
    ChallengeFind the missing allow
  5. 5
    Key InsightProtect resources from outside callers
  6. 6
    TipTest where the policy applies
  7. 7
    ExplanationBuild an Azure resource rule
  8. 8
    ExampleWatch modify run before deny
  9. 9
    ChallengeResolve incompatible location rules
  10. 10
    ExplanationRepair resources already present
  11. 11
    ExplanationChoose prevention, detection or repair
  12. 12
    ExampleInspect a Google constraint’s inheritance
  13. 13
    ChallengeChoose the rollout behavior
  14. 14
    ChallengeReview a location-control design
  15. 15
    RecapCheck behavior, path and exceptions
6

Protect a service and standardize its metadata

12 steps
Choose a safe deletion control, examine management versus data operations and enforce useful resource tags.

Save this lesson to follow every Walkthrough step by step.

  1. 1
    IntroductionProtect the right object
  2. 2
    ExplanationChoose a lock for daily operation
  3. 3
    ExampleFollow a locked service request
  4. 4
    ChallengeProtect stored data separately
  5. 5
    TipInclude operations in the lock test
  6. 6
    ExplanationDefine keys that teams can use
  7. 7
    ExampleApply metadata to each resource
  8. 8
    ChallengeRead an AWS tagging audit
  9. 9
    ExampleCalculate the complete-tag rate
  10. 10
    Key InsightTreat access-driving metadata as sensitive
  11. 11
    ChallengeCombine a safe lock and useful tags
  12. 12
    RecapMaintain protection and metadata

Cloud Identity and Access Management practice questions

40 Practice Questions in 4 sets

Set 1: Choose identities and cloud boundaries10 Practice Questions

Question 1 of 10

An application runs on an Azure VM and needs access without a stored application secret. What identity mechanism fits?
  1. A directory user assigned to the application.
  2. A shared operator account used by the VM.
  3. A managed identity attached to the VM.
  4. A guest account created for the application.
Show answerHide answer
Answer: C
A managed identity lets Azure supply the application’s short-lived credentials without a stored application secret. A directory user may be able to receive access, but using its password for the application introduces the credential storage and lifecycle problem the design must avoid.

Question 2 of 10

An Entra dynamic group grants access when department equals "Research". Users can edit their own department. What change addresses the access risk?
  1. Restrict edits to the rule’s source attribute.
  2. Require users to re-register their SSPR methods.
  3. Change the group’s display name to include Privileged.
  4. Set each member’s usage location before licensing.
Show answerHide answer
Answer: A
Protecting the department attribute prevents users from selecting themselves into the access-granting group. Changing the group’s name makes its purpose clearer but does not change who can satisfy its membership rule. Dynamic membership is only as trustworthy as the values it evaluates.

Question 3 of 10

A new Entra user has no usage location. The administrator needs to directly assign a service license. What user property must be completed first?
  1. The user’s department name.
  2. The user’s reporting manager.
  3. The user’s preferred display name.
  4. The user’s usage location.
Show answerHide answer
Answer: D
Usage location must be set before assigning the license because the included services can vary by country or region. Department can support grouping or administration, but it does not supply the location information used for licensing. A display name likewise does not meet this prerequisite.

Question 4 of 10

A role in account 444444444444 needs to assume a role in 555555555555. The target trusts the source role and has the required resource permissions, but the source role has no assumption grant. What is missing?
  1. Allow s3:GetObject on the target role ARN.
  2. Allow sts:AssumeRole on the target role ARN.
  3. Allow sts:AssumeRole on the source role ARN.
  4. Allow iam:PassRole on every role in the target account.
Show answerHide answer
Answer: B
The source role needs permission to call sts:AssumeRole on the destination role. Target trust alone does not supply that source-side permission in this cross-account path. A grant on the source role’s own ARN points at the wrong role and would not authorize the requested assumption.

Question 5 of 10

An engineer already using assumed-role credentials requests a 3-hour session in another role whose maximum is 8 hours. Why does that duration fail?
  1. The destination role always uses a 15-minute maximum.
  2. Role chaining limits the new session to 1 hour.
  3. A role’s default session duration can never be changed.
  4. The source role must have an 8-hour session remaining.
Show answerHide answer
Answer: B
The caller is using one role session to assume another, so the role-chaining limit of 1 hour applies. Raising the destination role’s configured maximum does not raise that chaining limit. The ordinary 1-hour default is configurable, but that separate fact does not permit this 3-hour chained session.

Question 6 of 10

An Azure resource group has its metadata location set to eastus. What does that setting determine?
  1. Where every resource in the group must be deployed.
  2. Which region receives all of the group’s service data.
  3. Which tenant supplies users for the group’s subscription.
  4. Where the resource group’s metadata is stored.
Show answerHide answer
Answer: D
The resource group’s location controls the storage location of its metadata. Resources inside it can use other regions, subject to their service capabilities and applicable policies. Treating the group location as a region restriction confuses container metadata with the location settings on individual resources.

Question 7 of 10

A subscription moves from a management group granting an ops group Contributor to a sibling granting it Reader. The subscription has a direct VM Contributor assignment for that group. No other grants apply. What management access does the group retain?
  1. Reader generally, plus VM Contributor in its direct scope.
  2. Contributor generally, plus Reader in its direct scope.
  3. Reader generally, with its direct assignment discarded.
  4. VM Contributor generally, with no read access elsewhere.
Show answerHide answer
Answer: A
The old parent’s Contributor grant stops applying, while the new parent’s Reader grant starts applying. The direct assignment remains and adds VM Contributor within its own scope. Keeping the old inherited Contributor grant would ignore that inheritance follows the current parent path, not the subscription’s history.

Question 8 of 10

A startup needs separate production and development accounts for 4 products, 3 shared member accounts and 1 management account. How many accounts does the design need?
  1. 8 accounts.
  2. 11 accounts.
  3. 12 accounts.
  4. 15 accounts.
Show answerHide answer
Answer: C
Four products with two environments require eight workload accounts. Adding three shared member accounts gives eleven member accounts, then the management account brings the total to twelve. Eleven omits the management account; it is a member-account subtotal, not the total requested.

Question 9 of 10

A Global Administrator in Entra ID cannot view an Azure subscription and holds no Azure resource role. What explains this?
  1. Directory roles do not grant subscription access by default.
  2. Directory roles grant resource access only at the tenant root.
  3. Directory roles require a user license to grant resource access.
  4. Directory roles grant subscription access after access elevation expires.
Show answerHide answer
Answer: A
Entra directory roles and Azure resource roles govern different systems. Global Administrator alone does not provide subscription access, although it supports a separate resource-access elevation path. Licensing the user does not replace a resource role assignment or activate that elevation.

Question 10 of 10

A member account administers a central AWS security service through delegated administration. Its team is denied an action by an SCP and proposes moving the account itself to a different OU. What should the platform team conclude?
  1. SCPs no longer apply; the delegated account should refresh its local administrator session.
  2. SCPs still apply; delegated service administration itself authorizes the account move.
  3. SCPs no longer apply; a local account IAM policy must be overriding the delegation.
  4. SCPs still apply; an authorized management-account caller must perform the move.
Show answerHide answer
Answer: D
Delegated administration does not exempt a member account from SCPs or give it the management account’s account-move authority. An authorized management-account principal must handle the move after reviewing the new guardrails. Treating service delegation as organization-wide move permission combines two separate administrative powers.
Set 2: Trace permissions and federated access10 Practice Questions

Save this lesson to see every answer and practice every set.

Question 1 of 10

Users can federate successfully, but departed staff remain in the cloud service’s copied groups. What part of the design needs repair?
  1. The mapping of assertions into access roles.
  2. The renewal of the IdP’s signing certificate.
  3. The cloud session’s configured expiration.
  4. The provisioning of copied group membership.
Show answerHide answer

Save this lesson to see this answer.

Question 2 of 10

An S3 policy must allow listing the bucket named "case-files". What Resource value belongs with s3:ListBucket?
  1. arn:aws:s3:::case-files/*
  2. arn:aws:s3:::case-files
  3. arn:aws:s3:::case-files/object
  4. arn:aws:iam::666666666666:role/case-files
Show answerHide answer

Save this lesson to see this answer.

Question 3 of 10

One Azure role excludes a delete operation through NotActions. Another applicable role grants that delete operation. No deny or lock applies. What is the RBAC result?
  1. The operation is denied across both roles.
  2. The operation needs a further Owner grant.
  3. The newer role replaces the older grant.
  4. The operation remains allowed by RBAC.
Show answerHide answer

Save this lesson to see this answer.

Question 4 of 10

A team must manage VMs only in rg-lab. What fitting built-in role assignment keeps VM management within that group?
  1. Virtual Machine Contributor on rg-lab.
  2. Contributor on the parent subscription.
  3. Virtual Machine Contributor on the subscription.
  4. User Access Administrator on rg-lab.
Show answerHide answer

Save this lesson to see this answer.

Question 5 of 10

An Azure Contributor can manage a resource but cannot add a colleague’s role assignment. What permission is missing from Contributor?
  1. Microsoft.Compute/virtualMachines/write
  2. Microsoft.Resources/subscriptions/resourceGroups/write
  3. Microsoft.Authorization/roleAssignments/write
  4. Microsoft.Authorization/roleAssignments/read
Show answerHide answer

Save this lesson to see this answer.

Question 6 of 10

A group inherits Contributor on a subscription. A local administrator assigns Reader on one resource group to reduce its access there. No restrictions apply. What changes?
  1. The group becomes Reader within that resource group.
  2. The group loses all inherited subscription assignments.
  3. The added Reader grant does not reduce Contributor.
  4. Contributor remains only on resources created earlier.
Show answerHide answer

Save this lesson to see this answer.

Question 7 of 10

An AWS role has an identity policy allowing GetObject and DeleteObject on one bucket’s objects. Its boundary allows only GetObject. An SCP explicitly denies GetObject. No other grants apply. What happens to reads and deletions?
  1. Both fail: the SCP blocks reads and the boundary excludes deletion.
  2. Reads pass the boundary; deletions fail because the SCP blocks them.
  3. Both pass because the identity policy supplies both required permissions.
  4. Reads fail the SCP; deletions pass because no policy explicitly denies them.
Show answerHide answer

Save this lesson to see this answer.

Question 8 of 10

A same-account S3 bucket policy directly grants GetObject to an IAM role session ARN. The role’s boundary omits GetObject but contains no matching deny. Its SCP path permits GetObject and no other restrictions apply. What is the result?
  1. The boundary omission denies the read.
  2. The direct session grant can allow the read.
  3. The SCP alone grants the required read.
  4. The role trust must grant the object read.
Show answerHide answer

Save this lesson to see this answer.

Question 9 of 10

A team gets Developer in 3 AWS accounts and ReadOnly in 2 others. A separate audit group gets ReadOnly in all 7 accounts. How many Identity Center assignments are required?
  1. 7 assignments.
  2. 12 assignments.
  3. 10 assignments.
  4. 14 assignments.
Show answerHide answer

Save this lesson to see this answer.

Question 10 of 10

A deployment trust accepts any signed token from a shared CI issuer. Only the release job of one repository should receive credentials. What trust change addresses the exposure?
  1. Require the release subject and expected audience as well as the issuer.
  2. Require a valid signature and accept every subject from that issuer.
  3. Require the release repository’s display name in a resource tag only.
  4. Require the expected audience while accepting every repository subject.
Show answerHide answer

Save this lesson to see this answer.

Set 3: Apply guardrails, locks and tags10 Practice Questions

Save this lesson to see every answer and practice every set.

Question 1 of 10

A member-account role has no IAM permission for an operation. The SCP path allows it. What does the SCP provide?
  1. An IAM grant that is active until the SCP changes.
  2. A resource-policy grant to every principal in the OU.
  3. A role-trust grant allowing any member to perform it.
  4. A permission ceiling, without the missing grant.
Show answerHide answer

Save this lesson to see this answer.

Question 2 of 10

The root SCP allows all services. An OU allows only EC2 and explicitly denies TerminateInstances. Its account allows S3 and EC2. A role’s IAM policy permits S3 reads, DescribeInstances and TerminateInstances. No other restrictions apply. What remains available?
  1. DescribeInstances only.
  2. S3 reads and DescribeInstances.
  3. DescribeInstances and TerminateInstances.
  4. S3 reads only.
Show answerHide answer

Save this lesson to see this answer.

Question 3 of 10

An outside AWS role has caller-side permission and an S3 bucket-policy grant to a member-account bucket. The organization wants a central resource-side limit on this external access. What organization policy type fits?
  1. An SCP restricting the bucket account.
  2. An SCP restricting the resource itself.
  3. An RCP restricting the bucket access.
  4. A boundary restricting the bucket policy.
Show answerHide answer

Save this lesson to see this answer.

Question 4 of 10

A deny policy requires CostCenter on new Azure resources. A supported modify policy adds CostCenter when missing. Both apply. Why can an untagged create request pass the tag requirement?
  1. Deny ignores tags added by the caller.
  2. Modify can add the tag before deny checks it.
  3. The modify assignment disables every deny.
  4. A resource Owner is exempt from tag denial.
Show answerHide answer

Save this lesson to see this answer.

Question 5 of 10

A subscription policy permits resources only in westeurope. A child group policy permits them only in northeurope. Both use deny with no exclusions. A regional deployment to northeurope fails. What resolves the conflict while retaining a documented exception?
  1. Add another child northeurope allow rule, leaving both existing denies unchanged.
  2. Give the deploying group Owner at the child scope, leaving both policy rules unchanged.
  3. Change the group metadata location to northeurope, leaving both policy rules unchanged.
  4. Exempt the child scope from the parent rule, with the intended region rule retained.
Show answerHide answer

Save this lesson to see this answer.

Question 6 of 10

Existing VMs lack a tag after a modify assignment is added. The assignment identity has the required roles. What should the administrator do to repair the old resources?
  1. Run a new compliance scan only.
  2. Run a policy remediation task.
  3. Assign the missing tag to the group.
  4. Change the assignment effect to deny.
Show answerHide answer

Save this lesson to see this answer.

Question 7 of 10

A workload role’s regional requests are limited to approved regions by an SCP. A service it uses replicates data outside those regions, and a backup job runs in the management account. The team claims the SCP alone covers all data placement. What plan addresses both gaps?
  1. Configure replication placement and govern the backup’s separate access path.
  2. Narrow the same SCP’s region list and leave replication and backup unchanged.
  3. Configure replication placement and rely on the existing SCP for management-account backup.
  4. Move backup into a governed member account and leave replication placement unchanged.
Show answerHide answer

Save this lesson to see this answer.

Question 8 of 10

An Azure production VM must remain restartable but should be protected against deletion. What lock level fits?
  1. ReadOnly.
  2. Delete plus ReadOnly.
  3. CanNotDelete.
  4. ReadOnly on the parent.
Show answerHide answer

Save this lesson to see this answer.

Question 9 of 10

An Azure resource group contains one delete-locked storage account and two unlocked VMs. An administrator tries to delete the group while the lock remains. What is the outcome?
  1. Only the locked account’s deletion fails.
  2. The entire resource group deletion fails.
  3. The group is removed but its contents remain.
  4. The unlocked VMs are deleted before failure.
Show answerHide answer

Save this lesson to see this answer.

Question 10 of 10

An Azure team tags a resource group with CostCenter but its resources remain untagged. What supplies the missing resource metadata through governance?
  1. A required-tag policy that reports the gap.
  2. A second tag applied to the subscription.
  3. A modify policy that copies the group tag.
  4. An exemption from the missing-tag policy.
Show answerHide answer

Save this lesson to see this answer.

Set 4: Resolve cloud governance design problems10 Practice Questions

Save this lesson to see every answer and practice every set.

Question 1 of 10

A script and its human operator share a user’s access key. What identity design makes their cloud actions distinguishable?
  1. Rotate the shared key for each deployment.
  2. Give the script its own workload identity.
  3. Assign different groups to the shared caller.
  4. Keep one identity and change its display name.
Show answerHide answer

Save this lesson to see this answer.

Question 2 of 10

A company has 6 departments, each with production and development accounts. The same strict production rules are copied into all 6 department OUs. Departments often merge. What hierarchy change reduces rule duplication while preserving different environment controls?
  1. Merge every department’s two environments into one account under its current OU.
  2. Keep the department tree and put all production restrictions only on each role.
  3. Move all accounts to the root and apply the production rules to every environment.
  4. Group production accounts together and development accounts separately.
Show answerHide answer

Save this lesson to see this answer.

Question 3 of 10

A Google group inherits a permission from a folder, but one project beneath it must block that supported permission while sibling projects keep it. What access control can meet this requirement?
  1. Apply an IAM deny policy to the project.
  2. Remove only the project’s local allow.
  3. Add a narrower project role to the group.
  4. Move the group’s binding to the organization.
Show answerHide answer

Save this lesson to see this answer.

Question 4 of 10

An application must read blobs in one container. Its custom Azure role grants storage management reads but no blob DataActions; the role is assigned at subscription scope. What change fits least privilege?
  1. Keep management Reader and widen its scope to the tenant.
  2. Grant storage management Contributor on the subscription.
  3. Grant the needed blob data access at the container scope.
  4. Add subscription Owner while retaining the current custom role.
Show answerHide answer

Save this lesson to see this answer.

Question 5 of 10

A contractor was disabled at the IdP and SCIM deactivated the copied account. A previously issued 6-hour administrator session still works. What design change addresses future exposure from such departures?
  1. Keep SCIM and repeat deactivation whenever a session is observed.
  2. Shorten privileged sessions and include session revocation in departures.
  3. Keep six-hour sessions and require MFA only at the original sign-in.
  4. Remove the user’s portal listing and leave issued sessions unchanged.
Show answerHide answer

Save this lesson to see this answer.

Question 6 of 10

An SCP denies a regional operation for member-account roles. An administrator tests the operation successfully using the management account. What is the correct next test?
  1. Use an affected member role in the test OU.
  2. Use another management-account IAM role.
  3. Use the management account’s root identity.
  4. Use a service-linked role in the test account.
Show answerHide answer

Save this lesson to see this answer.

Question 7 of 10

An Azure initiative adds CostCenter through modify and deploys diagnostic settings. New resources receive the tag, but old VMs remain untagged and their diagnostic remediation fails with authorization errors. Workload engineers already have Contributor. What repair targets the existing resources without widening human access?
  1. Give workload engineers Owner and run a compliance scan.
  2. Switch both effects to deny and wait for compliance evaluation.
  3. Reassign the initiative locally and use the engineers’ existing roles.
  4. Grant the assignment identity the repair roles and run remediation.
Show answerHide answer

Save this lesson to see this answer.

Question 8 of 10

A compliance team wants to observe violations of a proposed Google organization constraint before blocking requests. How should it test the proposed rule?
  1. Enable enforcement at the organization.
  2. Evaluate only the currently enforced policy.
  3. Evaluate the proposed policy in dry-run.
  4. Enforce the proposed policy on every project.
Show answerHide answer

Save this lesson to see this answer.

Question 9 of 10

An Azure storage account has CanNotDelete. An operator inherits blob-delete permission and receives a local blob-reader role intended to stop deletion, but can still delete blobs. Account updates must remain possible. What change addresses the failed protection?
  1. Narrow the inherited data grant at its source and keep CanNotDelete.
  2. Add ReadOnly on the account and retain both data-role grants.
  3. Add the blob-reader role again directly on each affected blob.
  4. Keep both data roles and move CanNotDelete to the parent resource group.
Show answerHide answer

Save this lesson to see this answer.

Question 10 of 10

An AWS ABAC rule permits access when a caller’s Project tag matches the resource’s Project tag. Developers can edit the Project tag on resources they otherwise could not read. What governance change addresses the new access path?
  1. Require the Project tag but keep its values editable.
  2. Add an Environment tag and leave Project edits unchanged.
  3. Activate Project as a cost allocation tag for billing.
  4. Restrict edits to the authorization-driving Project tag.
Show answerHide answer

Save this lesson to see this answer.

Stuck on your own question? Homework Help

Key Terms

94 Key Terms, each with its definition

A

Access elevation
Azure access elevation lets an Entra Global Administrator obtain User Access Administrator at root scope for resource-access recovery.
An administrator elevates for a recovery task, then removes the elevated access when the task is complete.
Account vending
Account vending creates cloud accounts through a repeatable process that applies placement, access and governance baselines.
A request for a new workload account triggers the standard vending process and records its owner.
Additive access
Additive access combines applicable permission grants, so a smaller grant at a child scope does not remove a broader inherited grant.
Reader on a resource group leaves the Contributor permissions inherited from the subscription in place.
Allow-list strategy
An allow-list strategy admits only explicitly approved actions or services and needs updating when new legitimate access is required.
The platform adds an approved service to every necessary SCP level before the workload can use it.
Attribute-based access control
Attribute-based access control uses supported principal, resource or request attributes in conditions that determine whether access is allowed.
An AWS condition compares the caller’s Project tag with the target resource’s Project tag before allowing the action.
Audience claim
An OIDC audience claim identifies the token’s intended recipient so a service can reject tokens issued for another application.
A pipeline token with the wrong audience fails the cloud trust even though it comes from the expected issuer.
AWS Control Tower
AWS Control Tower builds and governs a multi-account AWS landing zone using managed account setup and organization-level controls.
The platform team uses Control Tower Account Factory to create accounts with a consistent baseline.
AWS STS
AWS Security Token Service issues temporary security credentials for supported role assumption and federation requests.
After a successful AssumeRole request, STS returns credentials that include a required session token.

B

Blast radius
The blast radius is the extent of resources or operations that a mistake, outage or compromise can affect within an environment.
Separate production and development accounts reduce the chance that a development error damages production.

C

CanNotDelete
CanNotDelete is the Azure lock level that blocks deletion while allowing authorized reads and updates to the protected scope.
A deployment can update a VM, but deleting the VM fails until an authorized administrator removes the lock.
Control plane
The control plane handles management operations on cloud service resources, such as creating, configuring or deleting a storage account.
An Azure management lock blocks deletion of the account through its Resource Manager management endpoint.
Corrective control
A corrective control changes a noncompliant resource or setting to restore the required state when that repair can be applied safely.
A remediation job applies the missing metadata to resources identified by the compliance assessment.
Cost allocation tag
An AWS cost allocation tag is a tag key activated for use in billing allocation after being applied to the relevant resources.
The billing administrator activates the CostCenter key before using it to group resource costs in billing data.
Custom role
A custom role is a maintained selection of permissions created when a provider’s built-in roles do not fit the required access.
A Google Cloud custom role is defined at project level and contains the narrow set of permissions the job needs.

D

Data perimeter
A data perimeter applies controls that restrict data access according to trusted identities, resources or request circumstances.
An organization-ID condition contributes to a perimeter around supported resources in its member accounts.
Data plane
The data plane handles use of a service’s contents, such as reading or deleting stored objects, separately from resource management.
Blob deletion follows data permissions, so a storage-account management lock does not block that request.
Delegated administrator
A delegated administrator is an AWS member account authorized to manage a supported organization-wide service while remaining governed.
The security team manages its central service from a delegated account that is still restricted by SCPs.
Deny assignment
An Azure deny assignment is a platform-created restriction that blocks listed operations even when a role assignment permits them.
A managed application’s deny assignment can block a requested change despite the caller’s resource role.
Deny-list strategy
A deny-list strategy retains broad policy availability and explicitly prohibits selected operations that the organization forbids.
New services remain available through the SCP ceiling unless a matching deny rule prohibits their use.
Detective control
A detective control finds and reports noncompliance after it exists so an accountable owner can investigate and arrange a fix.
An audit result identifies a missing required setting while the workload continues operating.
Dry-run mode
Dry-run mode evaluates a proposed control and records violations without blocking the operations used to assess its likely impact.
The team reviews logged violations and adjusts exceptions before switching the constraint to enforcement.
Dynamic membership
Dynamic membership is group membership maintained by an attribute rule that automatically adds and removes matching identities.
An administrator protects the department attribute before using it to control an access-granting group.

E

Effective access
Effective access is the permissions a request actually receives after applicable grants, conditions, inheritance and restrictions combine.
A broad role grant does not permit the requested deletion because an applicable organization policy denies it.
Emergency access
Emergency access provides an independently protected administrative sign-in path for recovery when normal access fails.
Two cloud-only Entra emergency accounts remain available if the organization’s federation connection fails.
Enforcement mode
Azure Policy enforcement mode controls whether an assignment enforces its effects, allowing evaluation without blocking changes.
The platform uses DoNotEnforce to inspect compliance results before enabling the new preventive requirement.
Explicit deny
An explicit deny is a matching policy prohibition that overrides an applicable allow under the provider’s access evaluation rules.
A matching SCP deny prevents a member-account administrator from completing the otherwise permitted request.
External ID
An external ID is a vendor-issued customer identifier required in third-party role trust to reduce confused-deputy misuse.
A monitoring vendor supplies a different external ID for each customer whose AWS role it assumes.

F

Federation
Federation lets a cloud service trust an external identity provider’s authentication evidence and apply its own access policies.
A worker authenticates at the corporate IdP, then enters the cloud without giving the cloud that password.
FullAWSAccess
FullAWSAccess is the AWS-managed SCP that preserves a broad permission ceiling without granting principals permission to act.
The platform keeps FullAWSAccess in a deny-list design and adds policies prohibiting selected operations.

G

Google Cloud project
A Google Cloud project contains resources and supplies a boundary for API enablement, service quotas and linkage to a billing account.
The team enables its required APIs in a dedicated project before deploying the application’s resources.
Group-based licensing
Group-based licensing assigns service licenses through group membership, keeping that entitlement linked to the group’s lifecycle.
The onboarding process adds a worker to a licensed group and checks that the required entitlement appears.
Guest user
An Entra guest user has a Guest organizational relationship and limited default directory access, independent of authentication source.
A partner is invited as a guest, then added to a dedicated group with access to the collaboration project.

I

IAM role
An AWS IAM role is an identity with permissions and a trust policy that callers assume to obtain temporary session credentials.
The reporting service assumes a target-account role before requesting the files held in that account.
Identity lifecycle
The identity lifecycle covers creating, updating and disabling an identity as its person or workload joins, changes role or leaves.
When a technician changes teams, the lifecycle process removes the old team membership and adds the new one.
Identity provider
An identity provider authenticates users or workloads and issues identity evidence that a trusting service can verify.
The cloud uses the IdP’s configured signing trust to verify the assertion returned after the user signs in.
Identity-based policy
An AWS identity-based policy attaches to a user, group or role and specifies the actions and resources its grants cover.
A role’s identity-based policy permits object reads in one archive bucket without permitting object uploads.
Implicit deny
An AWS implicit deny is the default refusal when no applicable permission grant permits the request through its required policy layers.
A read-only policy has no PutObject allow, so the upload fails even without an explicit upload prohibition.
Inheritance
Inheritance carries applicable grants or policies from parent scopes to descendants according to each provider’s evaluation rules.
Moving a subscription changes which management-group assignments it inherits along its new parent path.

J

Just-in-time provisioning
Just-in-time provisioning creates an account at first sign-in, typically without providing the full process for removing leavers.
The platform adds deprovisioning because creating users on first login alone leaves old account records behind.

L

Label
A Google Cloud label is resource metadata for organization and related uses that does not inherit from a parent container.
Labeling the project does not automatically label every resource that an application later creates there.
Landing zone
A landing zone is a prepared cloud environment with the hierarchy, identity, logging, networking and governance baseline for workloads.
A newly vended account starts inside the landing zone with logging and single sign-on already configured.
Least privilege
Least privilege grants only the actions, resource scope and duration needed for a person or workload to carry out its task.
An engineer receives temporary VM-management access to one group instead of permanent subscription ownership.
Lien
A Google Cloud lien places a restriction on a project that can prevent deletion until an authorized process removes the restriction.
A project lien prevents accidental project deletion while the administrator investigates its remaining resources.
Log archive account
A log archive account is a dedicated AWS account holding centrally collected logs outside the control of ordinary workload teams.
CloudTrail organization events arrive in the log archive even when the event concerns another member account.

M

Managed identity
A managed identity is an Azure workload identity whose credentials Azure manages, avoiding a stored application secret in code.
A virtual machine uses its managed identity to request access to a storage service without a key file.
Management account
The AWS management account creates and administers an organization, pays its consolidated bill and is exempt from its SCPs.
Workloads run in member accounts so the management account remains reserved for organization administration.
Management group
An Azure management group groups subscriptions or child management groups for inherited resource access and governance assignments.
A policy assigned to a workload management group also reaches new subscriptions added beneath it.
Microsoft Entra tenant
A Microsoft Entra tenant is a dedicated directory containing an organization’s identities and supporting its cloud sign-in relationships.
Several Azure subscriptions trust the same tenant, so a staff member uses one directory account across them.

N

NotActions
NotActions is an Azure role-definition field that subtracts operations from that role’s Actions grant without creating an overriding deny.
A user can still perform an excluded delete operation if a different applicable role grants that operation.

O

OpenID Connect
OpenID Connect is an identity layer on OAuth 2.0 that supplies signed ID tokens with claims describing the authenticated subject.
A federation service validates the token’s issuer, audience and expiry before accepting its identity evidence.
Organization policy constraint
A Google Cloud organization policy constraint describes a supported configuration restriction whose values or enforcement a policy sets.
A folder’s policy configures the constraint that blocks new service account key creation beneath that folder.
Organizational unit
An AWS organizational unit groups accounts or child OUs so shared organization policies can govern their hierarchy paths.
Production workload accounts share an OU whose SCPs restrict the operations those accounts can perform.

P

Permission set
An IAM Identity Center permission set templates the policies of the IAM roles maintained in accounts where it is assigned.
One Developer permission set is assigned to a team’s development accounts while production receives ReadOnly.
Permissions boundary
A permissions boundary is an AWS managed policy that limits identity-based grants to a user or role without granting access itself.
A developer-created role carries a boundary that prevents its identity policies from granting IAM administration.
Policy effect
A policy effect specifies what Azure Policy does when its resource rule matches, such as deny, audit, modify or deployment.
A modify effect supplies a missing CostCenter value before the request reaches the applicable deny check.
Policy exclusion
A policy exclusion removes a specified child scope from an Azure Policy assignment’s scope of evaluation.
An exclusion is kept narrow so one test group can vary without opening every production subscription.
Policy exemption
An Azure Policy exemption records an exception to an assignment for a scope or resource, with a category and optional expiry.
A temporary Waiver exemption covers one migration resource and expires after the planned transition period.
Policy initiative
An Azure Policy initiative groups policy definitions so they can be assigned and reviewed together as a set of resource requirements.
The platform assigns one initiative containing required tagging and approved-location checks to its workload scope.
Policy Troubleshooter
Google Cloud Policy Troubleshooter examines relevant access policies to help explain whether a principal can use a resource permission.
An administrator checks the actual service account and denied permission before changing a project binding.
Predefined role
A Google Cloud predefined role is a provider-maintained collection of permissions for a particular service or practical task.
The team grants a storage object viewer role because the application needs reads without broad project control.
Preventive control
A preventive control blocks a prohibited operation before it takes effect, reducing the chance that a violation enters the environment.
A location-deny policy rejects a supported resource deployment outside the approved region list.
Principal
A principal is an entity to which a policy or assignment can grant access, such as a user, role session or service account.
An audit event identifies an assumed role session as the principal that requested an archived object.
Privileged Identity Management
Privileged Identity Management supports controlled activation of eligible privileged roles for limited periods in Microsoft Entra.
An eligible administrator activates the role for a maintenance window with the required justification.
Proactive control
An AWS Control Tower proactive control uses CloudFormation hooks to check resources before their provisioning operation proceeds.
The template deployment is checked before creation instead of waiting for a later AWS Config finding.

R

ReadOnly lock
A ReadOnly lock blocks Azure management updates and deletion and can also block POST-based operations such as VM restarts.
The operator’s restart fails because the parent resource group has a ReadOnly lock despite the role grant.
Remediation task
A remediation task applies supported modify or deployIfNotExists fixes to existing Azure resources found noncompliant.
The administrator starts remediation after granting the assignment’s managed identity the needed write role.
Resource control policy
A resource control policy limits access to supported resources in AWS member accounts, including requests by external principals.
A resource perimeter uses an RCP to restrict outside access that a bucket policy might otherwise allow.
Resource group
An Azure resource group is a non-nesting container for resources managed through a shared lifecycle within one subscription.
The application and its related resources share a group because they are deployed and retired together.
Resource lock
An Azure resource lock blocks selected control-plane changes across users and roles at a resource, resource group or subscription scope.
A production resource group has a delete lock while engineers retain permission to update its virtual machines.
Resource Manager tag
A Google Cloud Resource Manager tag is managed metadata that can inherit through the hierarchy and participate in access or policy conditions.
A project inherits the folder’s governance tag, which an applicable IAM condition can test on a target resource.
Resource-based policy
An AWS resource-based policy attaches to a resource and identifies principals that may use it, subject to the applicable evaluation rules.
A bucket policy allows a named external role to request objects when the caller’s side also authorizes access.
Role assignment
An Azure role assignment joins a security principal, a role definition and a scope to grant resource permissions to that principal.
The web-ops group receives Virtual Machine Contributor on the resource group containing its application VMs.
Role binding
A Google Cloud role binding associates one role with specified principals in an allow policy and can include an access condition.
The project policy binds roles/compute.viewer to the operations group without giving project-wide editing rights.
Role chaining
Role chaining occurs when credentials from one assumed AWS role are used to assume another role, limiting the new session to 1 hour.
An operator’s second role session cannot last four hours even though its destination role permits four.
Role definition
An Azure role definition lists management and data permissions and the scopes where the role is available for assignment.
The custom definition removes an operation through NotActions, but a separate role may still grant it.

S

SAML assertion
A SAML assertion is signed XML identity evidence containing attributes, an intended audience and a limited validity period.
The cloud rejects an assertion intended for a different application even when its signature can be verified.
SCIM
SCIM is a provisioning protocol for creating, updating and deactivating users and groups between an identity source and a service.
The IdP sends a deactivation update through SCIM after the contractor’s directory access is ended.
Scope
A scope is the resource or hierarchy level to which an access or governance assignment applies, including applicable descendants.
A subscription-scoped role reaches resource groups created there after the original assignment was made.
Security group
A security group in Entra ID collects identities for access management and can contain users, devices, service principals and groups.
A security group receives VM-management access so that operators can be added through membership changes.
Self-service password reset
Self-service password reset lets a user reset a password after verifying identity through methods registered before the reset.
An employee uses registered verification methods to reset a forgotten password without a help-desk reset.
Separation of duties
Separation of duties assigns sensitive responsibilities to different roles so operators cannot freely remove the rules governing them.
Workload engineers manage application resources while the platform team controls the management hierarchy.
Service account impersonation
Service account impersonation lets an authorized caller obtain short-lived Google service account tokens without downloading a key.
A support engineer uses impersonation for a maintenance task, leaving an audit link to the original caller.
Service control policy
A service control policy limits permissions available to AWS member-account principals without supplying an IAM permission grant.
An SCP blocks a disallowed regional request even when the member-account role has AdministratorAccess.
Service principal
A service principal represents an application in an Entra tenant and can receive roles for the application’s resource access.
The deployment application’s service principal receives a role on the resource group it must manage.
Single sign-on
Single sign-on lets a person authenticate once through an identity provider and enter multiple applications or cloud access paths.
A worker signs in to the portal and selects the AWS account and role authorized for the current task.
Subject claim
An OIDC subject claim identifies the authenticated user or workload within the issuer’s identity system and can narrow federation trust.
The trust requires the subject for a named repository and branch so unrelated build jobs cannot assume the role.

T

Tag
A tag is a key–value pair of resource metadata that records an attribute such as ownership, environment or an automation setting.
The production VM carries an Environment tag whose value comes from the organization’s approved value list.
Tag policy
An AWS tag policy standardizes supported tag key spelling and values and can enforce compliant tagging for selected resource types.
The policy corrects case standards while a separate supported request-tag condition requires CostCenter at creation.
Tagging strategy
A tagging strategy defines required metadata keys, allowed values, ownership and enforcement so resource metadata remains consistent.
The strategy accepts Environment values from one shared list and rejects unapproved abbreviations in new deployments.
Trust policy
A role’s trust policy is a resource-based policy specifying the callers, assumption actions and conditions allowed to obtain a session.
The role trusts a named source-account role and requires the vendor’s customer-specific external ID.

U

Usage location
A user’s usage location is the location setting used when assigning licenses whose available services can differ by country or region.
The licensing administrator sets usage location before assigning the new employee a service license.
User principal name
A user principal name is the directory sign-in name associated with a user account, often written in an email-like form.
The help desk locates the correct account using the user principal name maria.lopez@contoso.com.

W

Workload identity
A workload identity represents an application, service, script or job so that it can authenticate and receive its own permissions.
The nightly indexing job uses its own workload identity to read documents without a developer’s login.
Workload identity federation
Workload identity federation exchanges an external workload’s trusted platform token for short-lived cloud access without a stored key.
Only the approved repository’s deployment job matches the role trust that accepts the build platform’s token.

About this lesson

By StudeliReport a mistake

Make your own Study Materials

Turn your notes, slides and documents into Study Guides, Practice Questions, Flashcards and 6 more tools.

Get Started