Amazon Verified Permissions
Amazon Verified Permissions is a fully managed, fine-grained authorization service for the custom applications you build. Rather than hardcoding authorization logic into application code, developers move permission decisions to a central policy store. This improves consistency, auditability, and overall security posture. For the SCS-C03 exam, think of it as the application-layer counterpart to IAM: IAM governs access to AWS resources, while Verified Permissions governs access to resources inside your own applications. Policies are written in Cedar, an open-source policy language created by AWS. Cedar supports role-based access control (RBAC) and attribute-based access control (ABAC). It evaluates the principal, action, resource, and context, such as IP address, time of day, or MFA status. Cedar denies by default, and an explicit forbid always overrides a permit. The language is designed for automated reasoning and formal analysis, which makes policies predictable and verifiable. Key components include policy stores, which hold policies and a schema and are often created per application or per tenant. Schemas define entity types and attributes and enable validation, so malformed policies are rejected. Policies can be static, or they can be created from policy templates, which are reusable policies with placeholders, useful for scenarios such as sharing a specific document with a specific user. Applications call the IsAuthorized API, or IsAuthorizedWithToken when an identity provider is involved. BatchIsAuthorized evaluates multiple requests in one call. Verified Permissions integrates with Amazon Cognito user pools and OIDC identity providers, so token claims such as groups or custom attributes can drive decisions. It can also protect Amazon API Gateway APIs through a Lambda authorizer that the service generates. For security and governance, authorization calls are logged in AWS CloudTrail to support audit and compliance. Management access to policy stores is controlled through IAM, and data is encrypted at rest and in transit. Exam tips: choose Verified Permissions when a scenario requires centralized, fine-grained, auditable authorization for custom applications, decoupling policy from code, multi-tenant SaaS isolation, or Cognito-based access decisions. Do not confuse it with IAM Identity Center, which provides workforce single sign-on, or AWS Verified Access, which provides zero trust access to corporate applications.
Amazon Verified Permissions: Fine-Grained Authorization for Custom Applications (AWS Security Specialty)
1. Why Amazon Verified Permissions Is Important
Most AWS access control covers AWS resources such as S3 buckets, DynamoDB tables and KMS keys, which IAM governs. Custom applications also need to decide what their own users can do. Examples include:
- Can this doctor view this patient record?
- Can this user approve an expense report above $5,000?
- Can this tenant administrator edit documents owned by another tenant?
Developers have usually hard-coded these rules as if/else statements spread across the code base. That approach causes several problems:
- Inconsistency: rules are duplicated and drift apart across microservices.
- Poor auditability: security teams cannot easily see or review who can do what.
- Slow change: every permission change needs a code change and a redeployment.
- Security risk: logic bugs lead to broken access control, which is ranked first in the OWASP Top 10.
Amazon Verified Permissions moves authorization logic out of the application code into a centrally managed, auditable, policy-based service. This supports Zero Trust principles, least privilege, separation of duties and compliance reporting. For the exam, AVP is the AWS answer whenever a scenario asks for fine-grained, application-level authorization that is separate from application code.
2. What Amazon Verified Permissions Is
Amazon Verified Permissions is a fully managed, scalable permissions management and fine-grained authorization service for the applications you build. It uses Cedar, an open-source policy language created by AWS, to define permissions as policies.
Key characteristics:
- Externalized authorization: the application asks AVP for an Allow or Deny decision rather than evaluating rules itself.
- Supports RBAC and ABAC: role-based access control and attribute-based access control, including relationship-based patterns such as resource ownership or group membership.
- Cedar language: human-readable, fast, and built to support automated reasoning. It can be formally analyzed to prove policy properties.
- Fully managed: no policy decision servers to run. It is low latency and highly available.
- Integrated with identity providers: Amazon Cognito user pools and OIDC-compliant IdPs can serve as identity sources.
- Auditable: authorization decisions and management API calls are logged in AWS CloudTrail.
In standard authorization terms:
- The application is the Policy Enforcement Point (PEP).
- Verified Permissions is the Policy Decision Point (PDP).
- The policy store is the Policy Administration Point (PAP).
3. How Amazon Verified Permissions Works
3.1 Core Components
Policy Store
- A container for policies and the schema. It works like a namespace for one application or one tenant.
- Common designs are one policy store per application or one policy store per tenant in multi-tenant SaaS, which gives strong isolation.
- Policy stores can be encrypted, and you can enable deletion protection on them.
Schema
- Defines the entity types (such as User, Group, Document, Folder), their attributes, and the actions that apply to them.
- When policy validation mode is STRICT, AVP checks policies against the schema. Policies with typos or invalid attribute references are rejected, which prevents silent misconfiguration.
Policies (Cedar)
Each Cedar policy has an effect (permit or forbid), a scope (principal, action, resource), and optional conditions (when or unless clauses).
Example:
permit (principal in Group::"Managers", action == Action::"approveExpense", resource) when { resource.amount < 10000 };
forbid (principal, action, resource) unless { principal.mfaAuthenticated == true };
Policy Templates
- Policies with placeholders such as ?principal and ?resource.
- Template-linked policies are created by filling in the placeholders. This suits sharing scenarios such as letting User A share Document X with User B.
- When you update a template, every linked policy picks up the change.
Identity Sources
- Connect an Amazon Cognito user pool or an OIDC identity provider to the policy store.
- AVP can then accept ID or access tokens and map token claims, such as groups or custom attributes, to principal entities and attributes.
3.2 Authorization APIs
- IsAuthorized: the application supplies the principal, action, resource, context and entity data. AVP returns ALLOW or DENY together with the policies that determined the decision.
- IsAuthorizedWithToken: the application passes a Cognito or OIDC token instead of principal details. AVP validates the token and extracts the claims.
- BatchIsAuthorized and BatchIsAuthorizedWithToken: evaluate up to 30 requests in one call. This helps when rendering UIs, for example deciding which buttons to show.
3.3 Evaluation Logic (Critical for the Exam)
1. Default deny: if no policy matches, the result is DENY.
2. Explicit forbid wins: if any forbid policy matches, the result is DENY, even when permit policies also match.
3. Permit: the result is ALLOW only when at least one permit policy matches and no forbid policy matches.
4. The order of policies does not matter.
This mirrors IAM evaluation logic: implicit deny, explicit allow, explicit deny overrides.
3.4 Request Flow Example
1. A user signs in through Amazon Cognito and receives a JWT.
2. The user calls the application API, for example through Amazon API Gateway.
3. A Lambda authorizer or the application backend calls IsAuthorizedWithToken with the token, the action and the resource.
4. AVP evaluates the Cedar policies in the policy store.
5. AVP returns ALLOW or DENY, and the application enforces the decision.
6. CloudTrail records the activity for auditing.
AWS provides a guided setup that builds an API Gateway plus Cognito plus Verified Permissions integration. It creates a Lambda authorizer that checks permissions for each API call based on Cognito group membership.
3.5 Security and Operational Features
- CloudTrail: records management events, such as CreatePolicy and PutSchema, and authorization data events.
- IAM: controls who can manage policy stores and who can call authorization APIs, for example verifiedpermissions:IsAuthorized.
- Encryption: data is encrypted at rest and in transit.
- Automated reasoning: Cedar was designed so that tools can mathematically analyze policies, for example to show that one policy set is no more permissive than another.
- Policy as code: policies can be managed through CloudFormation, CDK and CI/CD pipelines for review and version control.
3.6 AVP Compared With Related Services
- IAM: controls access to AWS resources and APIs. AVP controls access to resources inside your own application.
- Amazon Cognito: handles authentication (who you are) and issues tokens. AVP handles authorization (what you can do). They work together.
- IAM Identity Center: handles workforce SSO into AWS accounts and applications. It is not an engine for in-app permission decisions.
- AWS Lake Formation: provides fine-grained access to data lake tables and columns.
- Amazon S3 Access Grants: map corporate identities to S3 data access.
- AWS Resource Access Manager: shares AWS resources across accounts. It has no role in app-level authorization.
4. Common Use Cases
- Multi-tenant SaaS applications that need tenant isolation, often with one policy store per tenant.
- Healthcare, financial and HR applications with ownership-based or attribute-based rules.
- API authorization for API Gateway with Cognito identity.
- Document sharing and collaboration through policy templates.
- Replacing scattered hard-coded authorization with central, auditable policies.
- Applying consistent permissions across many microservices.
5. Exam Tips: Answering Questions on Amazon Verified Permissions
Tip 1: Spot the trigger phrases. Choose AVP when a question mentions fine-grained authorization within a custom application, externalizing authorization logic from application code, Cedar, policy-based access control for application users, RBAC and ABAC for app resources, or centrally managing and auditing application permissions.
Tip 2: Separate authentication from authorization. If the scenario needs user sign-in, MFA or social federation, the answer is Cognito or an IdP. If it needs a decision about what a signed-in user can do with app data, the answer is AVP. Many correct answers combine both: Cognito for authentication and AVP for authorization.
Tip 3: Do not confuse AVP with IAM. IAM policies cannot practically model millions of application users and application objects such as invoices or patient records. When the resources live inside the application rather than as AWS resources, prefer AVP.
Tip 4: Remember the evaluation logic. Default deny, then forbid overrides permit. A question may ask why a user was denied even though a permit policy exists. The likely cause is a matching forbid policy or an unmet when or unless condition.
Tip 5: Know the API choices. Use IsAuthorizedWithToken when the app holds a Cognito or OIDC JWT. Use IsAuthorized when the app supplies entity data itself. Use the Batch APIs to reduce latency and call volume when many decisions are needed at once.
Tip 6: Use policy templates for sharing patterns. When users grant access to specific resources dynamically, such as sharing a file, template-linked policies are the scalable answer. Writing thousands of individual static policies is not.
Tip 7: Multi-tenant isolation. For strict tenant isolation, separate policy stores per tenant, or tenant attributes checked in policy conditions, are both valid designs. Per-tenant stores offer the strongest isolation and the simplest per-tenant customization.
Tip 8: Schema validation prevents mistakes. If a question asks how to stop invalid or mistyped policies from being saved, the answer is to define a schema and use STRICT validation mode.
Tip 9: Auditing and compliance. Questions about proving who was allowed to do what in an application point to AVP with CloudTrail logging of authorization decisions. Centralized Cedar policies also make access reviews simpler.
Tip 10: API Gateway integration. For securing REST APIs with group-based permissions, the pattern is API Gateway, then a Lambda authorizer, then Verified Permissions, with Cognito as the identity source.
Tip 11: Rule out distractors. Writing more application code, storing permission rules in DynamoDB with custom logic, or creating an IAM role per end user are usually wrong when AVP is an option. They add operational overhead and are harder to audit. Look for the answer with the least operational effort and the most centralized governance.
Tip 12: Least privilege for the service itself. Remember that IAM still governs access to AVP. Grant only verifiedpermissions:IsAuthorized or IsAuthorizedWithToken to the application role. Restrict policy management actions such as CreatePolicy and UpdatePolicy to administrators or CI/CD pipelines.
6. Quick Summary
- What: a managed fine-grained authorization service for custom applications, based on the Cedar policy language.
- Why: centralizes, standardizes and audits app permissions, and removes hard-coded authorization logic.
- How: a policy store holds the schema, policies and templates. The app calls IsAuthorized or IsAuthorizedWithToken. AVP applies default deny, forbid overrides permit, and returns ALLOW or DENY.
- Pairs with: Amazon Cognito or an OIDC IdP for identity, API Gateway with a Lambda authorizer for enforcement, and CloudTrail for auditing.
- Exam keyword: fine-grained authorization inside your own application means Amazon Verified Permissions.