Back to Blog

Amazon Verified Permissions & Cedar for the AWS Security Specialty Exam (SCS-C03): Policy Stores, Schema & Validation Modes, permit/forbid Semantics, Static vs Template-Linked Policies, Cognito vs OIDC Identity Sources, ID vs Access Tokens, IsAuthorized vs IsAuthorizedWithToken vs the Batch APIs, API Gateway Lambda Authorizers, CloudTrail Data Events and the Quotas That Become Distractors

A practitioner's guide to Skill 4.2.1 of the AWS Certified Security - Specialty (SCS-C03) exam: what Amazon Verified Permissions actually is (a policy decision point for your own application, not for AWS API calls), how a Cedar policy is evaluated (default deny, forbid overrides permit, erroring policies are skipped not denied), the PARC request model and the entity hierarchy, policy stores and the STRICT vs OFF validation modes, static versus template-linked policies and what ?principal/?resource can and cannot template, how Cognito and OIDC identity sources turn a JWT into a principal (ID-token claims become principal attributes, access-token claims become context.token.*, groups become parents), the four authorization APIs and their exact constraints, the API Gateway wizard and its 120-second authorizer cache, why IsAuthorized is a CloudTrail data event you must opt into, and every quota the exam can turn into a distractor.

By Sailor Team , November 18, 2026

Most AWS authorization questions on the Security Specialty exam are about IAM: who may call which AWS API on which AWS resource. Amazon Verified Permissions answers a different question entirely: inside your application, may this user perform this action on this record? That is application-level, fine-grained authorization, and until recently every team built it by hand with if statements buried in business logic. The SCS-C03 exam now expects you to recognise when that problem should be externalised to a managed policy engine, how the Cedar policy language decides a request, and where the service’s constraints will bite.

The current exam guide is explicit about this. Domain 4 (Identity and Access Management) carries 20% of scored content, the largest share of any domain. Task 4.2 is “Design, implement, and troubleshoot authorization strategies”, and Skill 4.2.1 reads, verbatim: “Design and evaluate authorization controls for human, application, and system access (for example, Amazon Verified Permissions, IAM paths, IAM Roles Anywhere, resource policies for cross-account access, IAM role trust policies)”. Skill 4.2.2 then asks you to “Design attribute-based access control (ABAC) and role-based access control (RBAC) strategies”, which is exactly the design space Cedar policies live in. Amazon Verified Permissions also appears in the in-scope services list, filed (slightly oddly) under Networking and Content Delivery rather than Security, Identity, and Compliance. It was not in the SCS-C02 guide at all, so it is one of the genuinely new things to learn for the current version of the exam.

This article is a complete, practitioner-level walkthrough of the service and the language at the altitude the exam tests. We will cover the request model, the exact evaluation semantics (including the one that catches most people: a policy that errors is skipped, not treated as deny), policy stores and schemas, the two policy types, identity sources and the token-to-entity mapping, the four authorization APIs and their constraints, the API Gateway integration, logging, and the quotas that become distractors. Every number here comes from the current AWS documentation; where the documentation is silent we say so.

Where this sits on the SCS-C03

A few facts about the exam itself, because they shape how the service is tested. SCS-C03 has 50 scored questions and 15 unscored questions, a passing scaled score of 750 out of 1,000, and a compensatory scoring model (you do not need to pass each domain). Alongside multiple choice and multiple response, the current guide adds ordering questions (place 3 to 5 steps in sequence) and matching questions (pair 3 to 7 prompts with responses). Verified Permissions is a natural fit for both of those formats: “order the steps to authorise an API Gateway request with a Cognito token” or “match each Cedar construct to its effect” are exactly the kind of items the new format enables.

The service shows up in three guises:

  1. Design questions under Skill 4.2.1: a company wants fine-grained, centrally managed authorization for a custom application without hard-coding rules. The answer is Verified Permissions with Cedar, not IAM policies, not Cognito groups alone, not a hand-written Lambda authorizer.
  2. ABAC versus RBAC questions under Skill 4.2.2: which token claims drive which model, and which Cedar construct expresses each.
  3. Troubleshooting questions under Skill 4.2.4: a policy that “should” allow is denying. The usual causes are the forbid-wins rule, an attribute that is missing so the policy errored and was skipped, a group referenced with == instead of in, or a 120-second authorizer cache serving a stale decision.

If you have not yet read our SCS-C02 vs SCS-C03 changes post, do that first for the full picture of what moved. The IAM deep dive covers the IAM policy evaluation logic that Cedar deliberately resembles, and the STS session internals post covers the temporary-credential side of Domain 4 that this article does not repeat.

What Verified Permissions is, and what it is not

The documentation defines it as “a scalable, fine-grained permissions management and authorization service for custom applications built by you”. Three words in that sentence carry the exam weight:

  • Custom applications. Verified Permissions authorizes actions inside software you wrote: a photo-sharing app, a SaaS tenant portal, an internal HR tool. It does not authorize AWS API calls. If the question is “may this IAM role call s3:GetObject”, the answer is IAM, and Verified Permissions is a distractor.
  • Authorization, not authentication. The service “presumes that the principal has been previously identified and authenticated through other means”: Cognito, an OIDC provider, SAML, anything. It never logs anyone in. It is what the security literature calls a policy decision point (PDP); your application code is the policy enforcement point (PEP) that calls it and acts on the answer.
  • Fine-grained. Decisions can depend on attributes of the user, the resource, and the request context, not just on a role name. That is the ABAC capability Skill 4.2.2 is after.

Permissions are expressed in Cedar, an open-source policy language that AWS built and then donated to open source. Verified Permissions currently runs Cedar version 4.12. Cedar’s design goals are worth knowing because they explain the service’s behaviour: policies are analysable (a validator can prove properties about them against a schema), evaluation is deterministic and fast, and the language is deliberately not Turing-complete, so a policy cannot loop, call out, or have side effects.

A useful mental model: IAM is Cedar’s older cousin. Both are default-deny. In both, an explicit deny (Cedar forbid) beats any allow (Cedar permit). Both evaluate conditions against the request. The differences are that Cedar policies are about your entities (users, photos, orders) rather than AWS ARNs, that Cedar has a typed schema and a validator, and that Cedar’s handling of evaluation errors is different from anything in IAM, which we will get to.

The distractor you must not fall for: Verified Access versus Verified Permissions

AWS has two services whose names begin with “Verified”, and both appear in the SCS-C03 in-scope list. AWS Verified Access is a networking product: it gives users access to corporate applications without a VPN, making a per-request decision based on identity and device posture. Amazon Verified Permissions is an application authorization engine. If the scenario mentions replacing a VPN, device trust, or access to internal web apps, it is Verified Access. If it mentions application code, user actions on records, Cedar, or fine-grained permissions in a product the company built, it is Verified Permissions. Expect at least one answer option to swap them.

The request model: PARC and entities

Every authorization decision is a question of the form “may Principal perform Action on Resource in Context?” The Cedar documentation states: “P, A, and R are entity references, while C is a record.”

An entity is a typed object with a unique identifier, written Type::"id". Examples: User::"alice", Photo::"VacationPhoto94.jpg", Action::"ViewPhoto". Types are normally namespaced to avoid collisions, giving PhotoFlash::User::"alice". Verified Permissions supports up to 100 namespaces per policy store and recommends using them, especially in multi-tenant designs where a tenant name in the namespace makes log entries unambiguous.

Entities have two things beyond their identifier:

  • Attributes: a record of typed values. User::"alice" might have department: "Finance" and jobLevel: 7. Photo::"VacationPhoto94.jpg" might have owner: User::"alice" and isPrivate: false.
  • Parents: a list of other entities this one is a member of. User::"alice" might have parent UserGroup::"Finance". Photo::"VacationPhoto94.jpg" might have parent Album::"alice_vacation", which in turn has parent Account::"1234".

Parents give you the hierarchy, which the in operator traverses. principal in UserGroup::"Finance" is true if UserGroup::"Finance" is the principal, a direct parent, or any transitive ancestor. The hierarchy quota is 100 transitive parents per principal, per action, and per resource, and it is not adjustable. The documentation gives the arithmetic: a principal can have 100 direct groups with no nesting, or 10 direct groups that each belong to 9 further groups, or any combination totalling 100.

Where do entities come from at request time? Two places:

  1. The entities parameter of the authorization request. Your application passes a slice of the entity graph relevant to the decision: the principal, the resource, their attributes and parents. Verified Permissions does not store your users or your resources; it is stateless with respect to data. (It stores policies, templates, the schema, and the identity-source configuration, and nothing else.)
  2. An identity source token. With IsAuthorizedWithToken, the principal entity, its attributes, and its group parents are built from the JWT. We cover this in detail below.

Actions are different from principals and resources: they must be declared in the schema, and in a request you may pass only their identifier and type, never attributes or parents. The documentation is blunt: “You can include only principal and resource entities in this parameter; you can’t include actions. You must specify actions in the schema.” Actions can form groups too (action in Action::"admin" where Action::"admin" is an action group whose members are declared in the schema).

Context is “the information that’s relevant to policy decisions, but not part of the identity of your principal, action, or resource”. Source IP, whether MFA was used, the time of day, the user agent, a count of items in a batch. It is passed as a contextMap and referenced in policies as context.attributeName. Context values can be any Cedar type: boolean, long, string, set, record, or an entity identifier.

Cedar policy anatomy

A policy has up to four parts: optional annotations, a mandatory effect, a mandatory scope, and optional conditions. It ends with a semicolon.

@id("finance-can-view-own-reports")
permit (
    principal in PhotoFlash::UserGroup::"Finance",
    action in [PhotoFlash::Action::"ViewReport", PhotoFlash::Action::"DownloadReport"],
    resource is PhotoFlash::Report in PhotoFlash::Folder::"YearEnd2026"
)
when { resource.owner == principal || principal.jobLevel >= 7 }
unless { context.authentication.usedMFA == false };

Effect

permit or forbid. Nothing else. There is no “audit” effect and no priority number; a forbid always wins.

Scope

The three scope elements are all mandatory and are always written in the order principal, action, resource. Each can be constrained in a limited set of ways:

ElementAllowed formsMeaning
principalbare, == E, in E, is T, is T in Eany principal; exactly this entity; this entity or a descendant; this type; this type and in this group
actionbare, == E, in [E1, E2], in E (action group)any action; this action; one of these; a member of this action group
resourcebare, == E, in E, is T, is T in Esame as principal

Notice what is not allowed: you cannot write principal.department == "Finance" in the scope. Attribute tests go in when/unless. The scope is deliberately restricted to the operations the validator and the service’s indexing can reason about efficiently. The is form is the way to say “any user, but only a user, not a service account”, and is T in E combines a type test with hierarchy membership in one step.

Conditions

when { expr } is satisfied when the expression is true. unless { expr } is satisfied when the expression is false. You may have multiple clauses; all must be satisfied. Inside them you have the full expression language: attribute access (principal.department), bracket access for names that are not valid identifiers (principal["cognito:username"]), set operations, string matching, comparisons, and the extension types.

Operators you will be tested on

OperatorMeaningNote
==, !=equality by type and value"1" == 1 is false, no coercion
<, <=, >, >=orderinglongs, datetimes, durations only
&&, ||, !boolean logic&& and || short-circuit left to right
inhierarchy membershiptransitive; an entity is in itself
hasattribute presenceguards attribute access, see below
isentity type testprincipal is PhotoFlash::User
likewildcard string match* matches any sequence
.contains(), .containsAll(), .containsAny(), .isEmpty()set testscontext.scopes.contains("read")
if ... then ... elseconditional expressionboth branches must type-check
ip()IP address or CIDR.isInRange(), .isIpv4(), .isLoopback(), .isMulticast()
decimal()fixed-point number.lessThan(), .greaterThanOrEqual(), etc.
datetime(), duration()time values.offset(), .durationSince(), .toDate(), .toTime()

The two that matter most for troubleshooting questions are in and has.

in versus == for groups. principal == UserGroup::"Finance" asks whether the principal is the group entity, which it never is. principal in UserGroup::"Finance" asks whether the principal is a member. The documentation for OIDC identity sources says it plainly: “when referencing a group in the principal, you must use the in operator for the policy to be evaluated correctly.” A scenario where “the group policy never matches” almost always has == where in belongs.

has before access. Accessing an attribute that is absent on the entity is an error, not false. The idiom is principal has department && principal.department == "Finance". Because && short-circuits, the right side is never evaluated when the attribute is missing. The validator enforces this when the schema marks the attribute optional; the UnsafeOptionalAttributeAccess validation error exists for exactly this. Why an error rather than false? Because of the evaluation semantics in the next section.

Annotations and comments

Annotations are @name("value") lines above the effect. Cedar itself attaches no meaning to @id; tooling does. Comments use //. The documentation strongly recommends UUIDs as entity identifiers followed by a comment with the friendly name, because if jane leaves and a new jane joins, User::"jane" silently inherits every policy that referenced the old one. It also warns never to put personally identifying or sensitive data in identifiers, because they appear in CloudTrail.

How a request is decided: the semantics the exam tests

This is the heart of the topic. Given a request and a set of policies, each policy evaluates to one of three outcomes: true (it matches and its conditions are satisfied), false (scope or a condition did not match), or error (something went wrong while evaluating, such as a missing attribute, a type mismatch, or a set operation on a non-set).

The authorizer then applies three rules, in this order:

  1. If any forbid policy evaluated to true, the decision is Deny. Forbid overrides permit, always, regardless of how many permits matched.
  2. Otherwise, if any permit policy evaluated to true, the decision is Allow.
  3. Otherwise, the decision is Deny. Default deny: “no request is authorized (decision Allow) unless there is a specific permit policy that grants it.”

And the rule that trips people up:

  1. A policy that evaluated to error is skipped. The Cedar documentation: “if a policy’s evaluation returns error, the policy does not factor into the authorization response; it is skipped.” It is as if that policy did not exist for this request. The policy’s ID is reported in the response diagnostics so you can see it happened.

Why skip rather than deny? The Cedar designers considered deny-on-error and rejected it because a single faulty policy could cause all requests to be denied. Imagine an administrator adds one forbid with a typo in an attribute name; under deny-on-error, every request in the application now fails. Under skip-on-error, the broken policy simply contributes nothing, and the rest of the policy set continues to work as written.

The consequence you must internalise: a permit that errors denies you (because nothing else allowed), but a forbid that errors lets you through (because it was skipped and could not override). That second half is the security-relevant one. A forbid policy that reads principal.clearance != "TopSecret" will error, and therefore not forbid, for every principal that has no clearance attribute. The fix is the has guard, and the way to catch it in advance is a schema with STRICT validation that marks clearance as optional, so the validator rejects the unguarded access when the policy is created.

The response

Every authorization API returns the same shape:

  • decision: ALLOW or DENY.
  • determiningPolicies: when the decision is Allow, the satisfied permit policies; when it is Deny because of a forbid, the satisfied forbid policies; when it is Deny because nothing matched, an empty list. An empty determiningPolicies on a Deny therefore means “default deny”, which is a diagnostic in itself.
  • errors: the policies that errored, with descriptions. A non-empty errors list alongside an unexpected decision is your first clue in a troubleshooting question.

Within a single policy

Conditions inside one policy are evaluated in order, and evaluation stops at the first unsatisfied condition (the policy is then false) or at the first error (the policy is then error). That is why writing the has guard on the left of && works: short-circuit evaluation never reaches the access.

Policy stores

A policy store is the container for everything: policies, policy templates, the schema, and the identity source. Every authorization request names exactly one policy store. The recommendation is “one policy store per application, or one policy store per tenant for multi-tenant applications.” The default quota is 30,000 policy stores per Region per account, adjustable, so per-tenant stores are a realistic design, not just a theoretical one.

Facts about policy stores that become exam details:

  • Deletion protection is enabled on stores created in the console and disabled on stores created through the API, SDKs, or CloudFormation. If a scenario has a store accidentally deleted by automation, this asymmetry is the explanation.
  • Policy store aliases let you refer to a store by a friendly name instead of its ID. Up to 10 aliases per store. In API calls you write policy-store-alias/example-policy-store in place of the ID.
  • Policy names are optional, must be unique within the store, and are written with a name/ prefix (name/example-policy). They can replace the policy ID in control-plane calls. The same applies to policy template names.
  • The console offers four creation paths: Guided setup (schema and a first policy, optionally an identity source), Set up with API Gateway and an identity provider (the wizard covered below), Start from a sample policy store (DigitalPetStore and friends), and Empty policy store.

Schema

The schema “is a declaration of the structure of the entity types supported by your application, and the actions your application may provide in authorization requests.” It declares, per namespace, the entity types with their attribute shapes and their allowed parent types, the actions with the principal types and resource types they apply to and the shape of their context, and commonTypes for reusable record shapes.

{
  "PhotoFlash": {
    "entityTypes": {
      "User": {
        "memberOfTypes": ["UserGroup"],
        "shape": {
          "type": "Record",
          "attributes": {
            "department": { "type": "String", "required": false },
            "jobLevel": { "type": "Long" }
          }
        }
      },
      "UserGroup": {},
      "Photo": {
        "memberOfTypes": ["Album"],
        "shape": {
          "type": "Record",
          "attributes": {
            "owner": { "type": "Entity", "name": "User" },
            "isPrivate": { "type": "Boolean" }
          }
        }
      },
      "Album": {}
    },
    "actions": {
      "ViewPhoto": {
        "appliesTo": {
          "principalTypes": ["User"],
          "resourceTypes": ["Photo"],
          "context": {
            "type": "Record",
            "attributes": {
              "usedMFA": { "type": "Boolean", "required": true }
            }
          }
        }
      }
    }
  }
}

Three facts matter:

  • A schema is optional for a bare policy store but required to attach an identity source and required for STRICT validation. The documentation calls it “highly recommended for production software”.
  • Submitting it through the CLI requires escaping the JSON into a single-line string wrapped as {"cedarJson": "..."} and sending it with put-schema. That awkward detail is the kind of thing a hands-on question references.
  • Size limit 100,000 bytes, adjustable. Namespaces per schema: 100.

Validation mode: STRICT versus OFF

The policy store’s validation settings control whether new or updated policies and templates are checked against the schema. In STRICT mode, “all new attempts to create or update a policy or policy template are validated against the schema in the policy store” and invalid ones are rejected. In OFF mode nothing is checked.

Two subtleties:

  • “Previously created policies do not get re-validated.” Switching a store from OFF to STRICT does not retroactively reject the policies already in it. If a scenario says validation was turned on and yet an invalid policy is still present, this is why.
  • The documented recommendation is to leave validation off while developing, turn it on for testing, and leave it on in production. The console labels STRICT as “recommended”.

What does validation catch? The API’s ValidationException reasons give you the list: UnrecognizedEntityType, UnrecognizedActionId, InvalidActionApplication (the action does not apply to that principal/resource type pair), UnexpectedType, IncompatibleTypes, MissingAttribute, UnsafeOptionalAttributeAccess, ImpossiblePolicy (a condition that can never be true, so the policy can never affect a decision), WrongNumberArguments, and FunctionArgumentValidationError (for example an unparseable IP string). Recognising ImpossiblePolicy and UnsafeOptionalAttributeAccess by name is worth a mark.

Static versus template-linked policies

A static policy is a complete Cedar policy stored as-is. It is what everything above has shown.

A policy template is “a policy with placeholders for the principal, resource, or both”. The placeholders are ?principal and ?resource. Only those two; the action cannot be templated and conditions cannot contain placeholders. A template by itself never participates in a decision: “Policy templates alone can’t be used to handle authorization requests.”

permit(
  principal == ?principal,
  action in [PhotoFlash::Action::"Read", PhotoFlash::Action::"Edit", PhotoFlash::Action::"Comment"],
  resource == ?resource
);

A template-linked policy is created by binding concrete entities to a template’s placeholders. Create a template called “Editor”, then link User::"alice" and Album::"alice_vacation" to it, and Alice can read, edit, and comment on that album. Link User::"bob" and Album::"q3_marketing" to the same template, and Bob gets the same three actions on his album.

The property the exam tests: template-linked policies are dynamic. “Updates to the policy template are reflected across all policies that use the template.” Remove Comment from the template and every linked policy loses the comment permission at once. If a scenario describes “thousands of per-user, per-resource grants that must change together when the sharing model changes”, the answer is a template, not thousands of static policies. If it describes “a template that cannot be deleted”, the reason is that linked policies still reference it.

Quota: 40 policy templates per policy store, adjustable. Policy size: 10,000 bytes each, adjustable. Two aggregate limits exist as well: the total size of all policies that reference a specific resource may not exceed 1 MB (adjustable), and the total size of all policies for a specific principal-and-resource combination may not exceed 200,000 bytes, which is not adjustable. An “unspecified” principal or resource counts as its own value in that combination. These aggregate limits are the ones a “we keep getting a limit error adding policies for a single very popular document” scenario is pointing at.

Identity sources: turning a JWT into a principal

So far the application has had to supply the principal and its attributes in entities. An identity source removes that work by letting Verified Permissions build the principal directly from a JSON Web Token issued by a trusted identity provider. “Verified Permissions makes authorization decisions based on information from an IdP token but doesn’t interact directly with the IdP in any way.” It validates the token (signature, expiration, and the client or audience claim) and reads claims; it never calls the provider.

Hard limits first: one identity source per policy store, not adjustable. Two kinds are supported: an Amazon Cognito user pool or any compliant OpenID Connect provider.

Cognito user pool identity sources

Configuration needs the Region, the user pool ID, the client IDs allowed to make requests, the principal entity type (for example MyCorp::User), and the group entity type (for example MyCorp::UserGroup). The user pool must be in the same AWS account as the policy store.

The entity prefix for a Cognito source is fixed to the user pool ID. A user whose sub is a1b2c3d4-5678-90ab-cdef-EXAMPLE22222 in pool us-west-2_EXAMPLE becomes the principal MyCorp::User::"us-west-2_EXAMPLE|a1b2c3d4-5678-90ab-cdef-EXAMPLE22222". The cognito:groups claim is special: each group name becomes a parent of the principal of the group entity type, so a user in the Directors group is in MyCorp::UserGroup::"us-west-2_EXAMPLE|Directors". That is why groups must be referenced with in.

One Cognito-specific gotcha: group membership is by name, not by ID. “User pool groups that you delete and recreate with the same name present to your policy store as the same group.” If a group is deleted, you must also remove the policies that reference it, or a future group with the same name silently inherits them.

OIDC identity sources

Configuration needs the issuer URL (Verified Permissions must be able to discover .well-known/openid-configuration there), the audience or client IDs to accept, the token type you will send, the user and group entity types, the claim to use for the principal ID (default sub) and for groups, and the entity prefix. In the console wizards the prefix defaults to the issuer host without https://, giving principals like MyCorp::User::"auth.example.com|a1b2c3d4-...".

ID token versus access token: the ABAC/RBAC decision

This is the design decision the documentation calls key, and the one Skill 4.2.2 is built around. When you create an identity source you choose which token type your authorization requests will carry, and that choice determines how claims are mapped:

TokenClaims becomeModel it suitsReference in Cedar
ID tokenprincipal attributes (plus groups as parents)ABAC: decisions on who the user is (email, department, custom attributes)principal.email, principal["custom:department"]
Access tokencontext (plus groups as parents)RBAC with OAuth scopes: decisions on what the token was issued forcontext.token.scope, context.token.client_id

In the documentation’s words: “In access token authorization, Verified Permissions maps claims to context. In ID token authorization, Verified Permissions maps claims to principal attributes.” Group membership is available from both. Changing the token type later “requires significant effort to refactor your policies and schema”, which is why the choice is made up front.

A policy on ID-token attributes:

permit(
     principal,
     action,
     resource == ExampleCo::Photo::"VacationPhoto94.jpg"
)
when {
     principal["cognito:username"] == "alice" &&
     principal["custom:department"] == "Finance"
};

A policy on access-token scopes and client:

permit(
    principal in MyApplication::UserGroup::"us-east-1_EXAMPLE|Store-Owner-Role",
    action == MyApplication::Action::"Read",
    resource
)
when {
    context.token.scope.contains("MyAPI/mydata.write") &&
    context.token.client_id == "1example23456789"
};

Note the bracket notation. Cognito claim names contain colons (cognito:username, custom:department), which the Cedar parser cannot handle as principal.cognito:username. You write principal["cognito:username"]. The same applies to any claim name with ., /, or -: context["ip-address"]. The underscore is the only non-alphanumeric character that does not need brackets. There is an older “dot notation” that nested cognito and custom as records (principal.cognito.username); it still works for Cognito sources only, and the console now generates bracket notation.

For the schema side: the Guided setup and API Gateway wizards populate the schema with the ID-token attributes of your user pool automatically. Access-token claims other than groups are not mapped automatically; to use context.token.scope you must edit the schema in JSON and add a commonTypes record with a token attribute containing the claims you want, and reference that type as the context of each action. An exam item that says “the team can see groups but context.token.scope fails validation” is describing this missing schema work.

Token validity and revocation

“Tokens from an identity source user continue to be usable until they expire. Token revocation and resource deletion have no effect on the validity of a token in your policy store.” Verified Permissions validates the signature and expiration; it does not check a revocation list. The mitigation is short token lifetimes and revoking refresh tokens so no new access tokens are minted. Combine this with the API Gateway authorizer cache and a revoked user can keep working for token lifetime plus up to 120 seconds.

The four authorization APIs

APIPrincipal comes fromBatchKey constraints
IsAuthorizedrequest parameters, with attributes in entitiesnoone decision per call
IsAuthorizedWithTokenidentityToken or accessToken (or both)noentities may not contain principals or any entity of the identity source’s user or group types
BatchIsAuthorizedrequest parametersup to 30 requestseither the principal or the resource must be identical across all requests; entities up to 100 principals and 100 resources
BatchIsAuthorizedWithTokentokenup to 30 requestsone principal (from the token), varying actions and resources

Details that become answer options:

  • IsAuthorizedWithToken checks the token_use claim: an identityToken must have token_use of id, an accessToken must have access, or the call errors. You can pass both. The response includes the principal entity that was derived from the token, which is also how you discover what entity ID your policies must reference.
  • “The IsAuthorizedWithToken operation takes principal attributes from only the identityToken or accessToken passed to the operation.” You cannot enrich the principal from entities. Resource entities, yes; principal, no.
  • BatchIsAuthorized “doesn’t have its own IAM permission”: the caller needs verifiedpermissions:IsAuthorized. The documented invalid batch is “bob views photo1 and alice views photo2” because neither principal nor resource is constant. Valid batches: bob on photo1 and photo2, or bob and alice on photo1.
  • The maximum size of an authorization request is 1 MB, for both single and token variants, not adjustable.
  • Default throttling: 200 requests per second per Region per policy store for IsAuthorized and for IsAuthorizedWithToken, 30 per second for each batch API, all adjustable. Control-plane operations such as CreatePolicy default to 10 per second, CreatePolicyStore to 1 per second (not adjustable). The documentation tells you to implement retries with exponential backoff, which is the standard answer to any ThrottlingException scenario.

The batch APIs exist for the “render a page with 25 buttons and show only the ones the user may click” use case: one call, 25 decisions, one principal. If a scenario describes an application making hundreds of serial IsAuthorized calls per page load and hitting throttling, the first fix is BatchIsAuthorized.

The API Gateway integration

The most common deployment pattern, and the one the console automates, is authorizing REST API calls. The wizard is Set up with API Gateway and an identity provider. What it builds:

  1. A policy store whose namespace is derived from the API name and whose schema is generated by reading the API’s methods and paths. Each method-and-path pair becomes an action, for example MyAPI::Action::"get /users". The resource in every request is a single entity of type Application.
  2. An identity source pointing at your Cognito user pool or OIDC provider, with your choice of ID or access token.
  3. A Lambda function and a token-based Lambda authorizer on the API. The function name starts with AVPAuthorizerLambda-. It reads the bearer token from the Authorization header, calls IsAuthorizedWithToken with the token as principal, the method-and-path as action, and Application as resource, and returns Allow or Deny to API Gateway.
  4. Group-based policies linking each user pool group you selected to the actions you allowed. For example:
permit(
  principal in MyAPI::UserGroup::"us-east-1_ABC1234|developer",
  action in [ MyAPI::Action::"get /users" ],
  resource
);

The ten-step flow in the documentation is a textbook ordering question: user signs in with the IdP and gets tokens; the application stores them; the user requests data; the application calls the REST API with a token in the header; API Gateway checks its authorizer cache and, on a miss, invokes the Lambda authorizer; the function calls IsAuthorizedWithToken; Verified Permissions validates the token; it evaluates policies and returns a decision; the authorizer returns Allow or Deny; the API returns data or ACCESS_DENIED.

The considerations section is where the exam details live:

  • Caching. The generated authorizer has an authorization caching TTL of 120 seconds. “This can extend the effective lifetime of user pool tokens by a duration that equals the caching TTL.” You can lower it or disable it on the authorizer. A scenario where “a user removed from a group can still call the API for about two minutes” is the cache, not a policy bug.
  • REST APIs only. Verified Permissions “is only supported for Regional and edge-optimized REST APIs.” Not HTTP APIs, not WebSocket APIs. (A private REST API has a networking problem too, below.)
  • Point-in-time schema. “Verified Permissions captures your API at a point in time: it only queries your API when you create your policy store.” Add a route later and you must update the schema and authorizer or build a new store.
  • The Lambda function has no VPC configuration and runs in the default VPC. A private API whose network access is restricted cannot reach it without additional configuration.
  • Not production as-is. The documentation says these wizard stores “aren’t intended for immediate deployment to production”. Finalise the model, export the resources to CloudFormation, and deploy programmatically with the CDK. There is an L2 CDK construct for Verified Permissions.
  • Privileged creation. The wizard deploys a CloudFormation stack touching IAM, Lambda, API Gateway, and Verified Permissions, so the console user needs broad permissions. The recommendation is not to share those credentials.
  • Attach now or later. On the “Deploy app integration” page you choose Now (attach the authorizer to methods) or Later (create the authorizer only). For production stages the recommendation is not to let the wizard attach it. In the generated CloudFormation this is the shouldAttachAuthorizer condition.

Our API Gateway authorizers post covers Lambda authorizers and Cognito authorizers in general if you want the API Gateway side in more depth, and the Cognito user pools versus identity pools post covers the token structure this integration depends on.

There is also a documented Express.js middleware integration that protects routes in a Node application without modifying handlers, for teams not fronting their app with API Gateway. Know that it exists; the exam is unlikely to go deeper.

Logging and monitoring: the data-event trap

Verified Permissions is integrated with CloudTrail, and all control-plane calls (CreatePolicyStore, PutSchema, CreatePolicy, CreateIdentitySource, and so on) are management events, recorded by default and visible in Event history.

The authorization calls are different. “Data events like IsAuthorized and IsAuthorizedWithToken are not logged by default when you create a trail or event data store. To record CloudTrail data events, you must explicitly add the supported resources or resource types for which you want to collect activity.” The resource type to select is AWS::VerifiedPermissions::PolicyStore. All four authorization APIs are data events (managementEvent: false, eventCategory: Data, readOnly: true).

Two more facts from the documented log entries:

  • “For authorization API calls, the response elements, such as the decision, are included under additionalEventData rather than responseElements.” responseElements is null; the decision (and, for token calls, the derived principal) sits in additionalEventData. For batch calls, additionalEventData.results lists each request with its decision.
  • The userIdentity in these events is the AWS principal that called Verified Permissions (your application’s role), not the end user. The end user appears only as the principal entity inside additionalEventData. This is why the documentation warns against putting PII in entity IDs: they land in CloudTrail.

A scenario asking “the security team cannot find any record of denied authorization decisions in CloudTrail” has the answer “data events for the policy store resource type were never enabled on the trail or event data store”. Our logging and monitoring post covers the general CloudTrail data-event mechanics, including CloudTrail Lake event data stores as the alternative destination.

Verified Permissions also has a test bench in the console that lets you run an authorization request against the store’s policies with a specified principal, action, resource, context, and entities, and shows the decision, determining policies, and errors. In a troubleshooting question, “use the test bench to reproduce the request and inspect the errors list” is a legitimate first step.

Designing with it: where it sits among the alternatives

NeedRight toolWhy not Verified Permissions
Authorize AWS API calls by IAM principalsIAM policies, resource policies, SCPsVerified Permissions never authorizes AWS APIs
Workforce single sign-on to AWS accounts and appsIAM Identity CenterThat is authentication plus permission sets, not app-level decisions
VPN-less access to internal web apps with device postureAWS Verified AccessNetwork-layer access, different product
Authenticate app users, issue tokensAmazon Cognito or an OIDC IdPVerified Permissions presumes authentication already happened
Coarse “is the caller in group X” API checksA Cognito authorizer on API Gateway can do this aloneVerified Permissions adds value when decisions depend on attributes, resources, or must be centrally managed and auditable
Fine-grained, auditable, centrally managed app authorization with ABAC and RBACAmazon Verified Permissionsthis is the target
Machine-to-machine API authorization with OAuth scopesVerified Permissions with an access-token identity source and context.token.scopethe client_id and scope claims are precisely the M2M evidence
Grant-per-user-per-resource sharing (document editors, album viewers)Verified Permissions policy templatesone template, many template-linked policies, change once
Multi-tenant SaaSone policy store per tenant, or one store with tenant namespacesthe 30,000-store quota and the namespace recommendation support either

Two further nuances. First, Verified Permissions is a stateless decision engine: you must supply the entity data the policies need, either in entities or via the token. Designing what to pass is part of the architecture; the AWS Prescriptive Guidance on implementing a PDP covers patterns for fetching resource attributes before the call. Second, Verified Permissions pricing is tiered by the number of authorization requests per month, plus a charge for policy-management API requests; a page that makes 30 decisions via one batch call still consumes decisions, so model the volume before choosing per-button checks.

For the related identity primitives in Skill 4.2.1, the SAP-C02 identity federation post covers IAM Roles Anywhere, and the IAM Access Analyzer post covers the tooling Skill 4.2.4 and 4.2.5 name for IAM-side authorization failures.

Hands-on: build and interrogate a policy store in fifteen minutes

Everything below uses the AWS CLI. Replace the policy store ID with the one you get back.

Step 1: create a store with validation off, then add a schema.

aws verifiedpermissions create-policy-store \
  --validation-settings mode=OFF \
  --description "PhotoFlash dev"
# note the policyStoreId, e.g. PSEXAMPLEabcdefg111111

cat > schema.json <<'EOF'
{"cedarJson": "{\"PhotoFlash\":{\"entityTypes\":{\"User\":{\"memberOfTypes\":[\"UserGroup\"],\"shape\":{\"type\":\"Record\",\"attributes\":{\"department\":{\"type\":\"String\",\"required\":false}}}},\"UserGroup\":{},\"Photo\":{\"shape\":{\"type\":\"Record\",\"attributes\":{\"owner\":{\"type\":\"Entity\",\"name\":\"User\"}}}}},\"actions\":{\"ViewPhoto\":{\"appliesTo\":{\"principalTypes\":[\"User\"],\"resourceTypes\":[\"Photo\"]}},\"DeletePhoto\":{\"appliesTo\":{\"principalTypes\":[\"User\"],\"resourceTypes\":[\"Photo\"]}}}}}"}
EOF

aws verifiedpermissions put-schema \
  --policy-store-id PSEXAMPLEabcdefg111111 \
  --definition file://schema.json

Step 2: add a permit for owners and a forbid for the Interns group.

cat > permit-owner.json <<'EOF'
{"static": {"description": "owners can view and delete their photos",
 "statement": "permit(principal, action in [PhotoFlash::Action::\"ViewPhoto\", PhotoFlash::Action::\"DeletePhoto\"], resource) when { resource.owner == principal };"}}
EOF
aws verifiedpermissions create-policy --policy-store-id PSEXAMPLEabcdefg111111 --definition file://permit-owner.json

cat > forbid-interns.json <<'EOF'
{"static": {"description": "interns never delete",
 "statement": "forbid(principal in PhotoFlash::UserGroup::\"Interns\", action == PhotoFlash::Action::\"DeletePhoto\", resource);"}}
EOF
aws verifiedpermissions create-policy --policy-store-id PSEXAMPLEabcdefg111111 --definition file://forbid-interns.json

Step 3: ask a question, supplying the entity slice.

cat > req.json <<'EOF'
{
  "policyStoreId": "PSEXAMPLEabcdefg111111",
  "principal": {"entityType": "PhotoFlash::User", "entityId": "alice"},
  "action": {"actionType": "PhotoFlash::Action", "actionId": "DeletePhoto"},
  "resource": {"entityType": "PhotoFlash::Photo", "entityId": "VacationPhoto94.jpg"},
  "entities": {"entityList": [
    {"identifier": {"entityType": "PhotoFlash::User", "entityId": "alice"},
     "attributes": {}, "parents": [{"entityType": "PhotoFlash::UserGroup", "entityId": "Interns"}]},
    {"identifier": {"entityType": "PhotoFlash::Photo", "entityId": "VacationPhoto94.jpg"},
     "attributes": {"owner": {"entityIdentifier": {"entityType": "PhotoFlash::User", "entityId": "alice"}}},
     "parents": []}
  ]}
}
EOF
aws verifiedpermissions is-authorized --cli-input-json file://req.json

Alice owns the photo, so the permit matches. Alice is an Intern, so the forbid matches. The decision is DENY and determiningPolicies lists the forbid. Remove the parents entry and rerun: ALLOW, determining policy is the permit. Change the action to ViewPhoto with the Interns parent still present: ALLOW, because the forbid is scoped to DeletePhoto only.

Step 4: watch an erroring policy get skipped.

cat > forbid-clearance.json <<'EOF'
{"static": {"description": "deny anyone whose department is not Finance",
 "statement": "forbid(principal, action, resource) when { principal.department != \"Finance\" };"}}
EOF
aws verifiedpermissions create-policy --policy-store-id PSEXAMPLEabcdefg111111 --definition file://forbid-clearance.json
aws verifiedpermissions is-authorized --cli-input-json file://req.json   # with the Interns parent removed

Alice has no department attribute. The new forbid errors on principal.department, is skipped, and the decision is still ALLOW. Look at the errors array in the response: it names the forbid and describes the missing attribute. This is the single most important behaviour in the article, reproduced on your own terminal. Now add "department": {"string": "Marketing"} to Alice’s attributes and rerun: the forbid evaluates cleanly to true and the decision flips to DENY.

Step 5: turn validation on and see the guard enforced.

aws verifiedpermissions update-policy-store \
  --policy-store-id PSEXAMPLEabcdefg111111 \
  --validation-settings mode=STRICT
aws verifiedpermissions create-policy --policy-store-id PSEXAMPLEabcdefg111111 --definition file://forbid-clearance.json

The second create is rejected with a ValidationException (UnsafeOptionalAttributeAccess): department is optional in the schema and the policy reads it unguarded. Rewrite the condition as principal has department && principal.department != "Finance" and it is accepted. Note that the earlier, identical policy created under OFF is still in the store: existing policies are not re-validated.

Step 6: create a template and link it.

cat > tmpl.json <<'EOF'
{"statement": "permit(principal == ?principal, action in [PhotoFlash::Action::\"ViewPhoto\"], resource == ?resource);", "description": "Viewer"}
EOF
aws verifiedpermissions create-policy-template --policy-store-id PSEXAMPLEabcdefg111111 --cli-input-json file://tmpl.json
# note policyTemplateId, e.g. PTEXAMPLEabcdefg111111

cat > linked.json <<'EOF'
{"templateLinked": {"policyTemplateId": "PTEXAMPLEabcdefg111111",
 "principal": {"entityType": "PhotoFlash::User", "entityId": "bob"},
 "resource": {"entityType": "PhotoFlash::Photo", "entityId": "VacationPhoto94.jpg"}}}
EOF
aws verifiedpermissions create-policy --policy-store-id PSEXAMPLEabcdefg111111 --definition file://linked.json

Bob can now view Alice’s photo. Try delete-policy-template on the template: it fails while the linked policy exists.

Step 7: batch.

Build a BatchIsAuthorized request with Alice as the principal and two requests (ViewPhoto and DeletePhoto on the same photo). Then try one with Alice viewing photo A and Bob viewing photo B: it is rejected, because neither principal nor resource is constant across the batch.

Step 8: confirm the CloudTrail gap.

Open CloudTrail Event history and filter on event source verifiedpermissions.amazonaws.com. You will see CreatePolicyStore, PutSchema, and CreatePolicy, but none of your IsAuthorized calls. Create a trail or an event data store with data events for the resource type AWS::VerifiedPermissions::PolicyStore, rerun step 3, and the decision appears under additionalEventData.

Delete the store when you are done; note that deletion protection is off because you created it with the CLI.

Scenario drill: cue to answer

Cue in the questionAnswer
Fine-grained authorization for a custom app, centrally managed, no hard-coded rulesAmazon Verified Permissions with Cedar policies
Authorize which IAM role may call an AWS APIIAM, not Verified Permissions
VPN replacement, device posture, internal web appsAWS Verified Access (different service)
A permit and a forbid both matchDeny; forbid overrides permit
No policy matches at allDeny; default deny; determiningPolicies is empty
Forbid references an attribute some users lack; those users are allowedThe forbid errors and is skipped; add principal has attr && guard; use STRICT validation
Group policy never matches== used for a group; must be principal in Group::"..."
Decisions must depend on email, department, custom attributesID-token identity source; claims become principal attributes (ABAC)
Decisions must depend on OAuth scopes or client_idAccess-token identity source; claims become context.token.*
context.token.scope fails validation after wizard setupAccess-token claims are not auto-mapped; add commonTypes with a token record to the schema
Claim name contains a colonBracket notation principal["cognito:username"]
Thousands of per-user, per-document grants that must change togetherPolicy template with ?principal and ?resource, template-linked policies
Need to template the actionNot possible; only principal and resource have placeholders
Template cannot be deletedLinked policies still reference it
One identity provider per store?Yes, exactly one identity source per policy store, not adjustable
User pool in another accountNot supported for Cognito identity sources; same account only
Removed user still authorized for a whileTokens valid until expiry (no revocation check) plus 120 s authorizer cache; shorten token lifetime, revoke refresh tokens, lower TTL
Hundreds of serial IsAuthorized calls per page, throttledBatchIsAuthorized, up to 30 requests, same principal or same resource; add retries with backoff
Batch with different principals and different resources rejectedEither principal or resource must be identical across the batch
Which IAM permission for BatchIsAuthorized?verifiedpermissions:IsAuthorized (no separate permission)
Passing principal attributes in entities with a tokenNot allowed; principal attributes come only from the token
Need to see who was denied in CloudTrail; nothing thereEnable data events for AWS::VerifiedPermissions::PolicyStore; decision is under additionalEventData
Policy store deleted by a scriptAPI-created stores have deletion protection off; console-created stores have it on
Validation turned on but an invalid policy remainsExisting policies are not re-validated when switching to STRICT
HTTP API or WebSocket API with the wizardNot supported; Regional and edge-optimized REST APIs only
New route added to the API is not authorizedSchema captured at creation time; update schema and authorizer or recreate the store
Private REST API cannot reach the authorizerGenerated Lambda runs in the default VPC with no VPC configuration
Wizard-built store straight to productionNot recommended; export to CloudFormation and deploy with CDK
Policy store per tenant, or shared with namespaces?Both are documented patterns; 30,000 stores per Region, 100 namespaces per store
Policies for one very popular document hit a limit1 MB per resource (adjustable) and 200,000 bytes per principal-resource combination (not adjustable)
Deleted and recreated a Cognito group with the same nameSame group to the policy store; delete references when deleting groups
Sensitive data in entity IDsAvoid; IDs appear in CloudTrail; use UUIDs plus comments

Mistakes that cost points

Treating Verified Permissions as an IAM replacement. It authorizes your application’s users against your application’s resources. Any question about AWS API authorization is IAM.

Assuming an erroring forbid denies. It does not. It is skipped. Guard optional attributes with has, and use STRICT validation so the validator catches unguarded access before the policy is stored.

Using == for groups. Groups are parents; membership is in.

Forgetting the token-type decision. ID token means attributes on the principal; access token means context.token. Picking the wrong one for the model you need means rewriting the schema and policies.

Expecting access-token claims in the schema automatically. Only groups are mapped by default for access tokens. Scopes and client IDs need the commonTypes edit.

Expecting IsAuthorized events in Event history. They are data events. Enable them per policy store resource type or you have no authorization audit trail.

Blaming the policy for a two-minute stale decision. Check the 120-second authorizer cache first.

Mixing up the two Verified services. Verified Access is network access to apps. Verified Permissions is in-app authorization.

Templating the action. Only ?principal and ?resource exist.

Thinking batch is unconstrained. Up to 30 requests, with a constant principal or constant resource, 100 principals and 100 resources in entities, 1 MB total.

Frequently Asked Questions

Is Amazon Verified Permissions really on the SCS-C03 exam?

Yes. It is named verbatim as an example in Skill 4.2.1 under Task 4.2 (authorization strategies) and appears in the in-scope services list. It was not in SCS-C02. Expect it in design questions about fine-grained application authorization and in ABAC/RBAC questions.

What is the difference between Cedar and IAM policy language?

Both are default-deny with explicit deny (forbid) overriding allow (permit), and both evaluate conditions against a request. Cedar is about your application’s entities rather than AWS ARNs, has a typed schema and a validator that can prove a policy is impossible or unsafely accesses an optional attribute, and skips policies that error during evaluation rather than failing the request.

Why does a forbid policy sometimes not forbid?

Because it errored. If a forbid reads principal.department and the principal has no department attribute, the policy evaluates to error and is skipped. The decision is then made by the remaining policies. Guard the access with principal has department && so the policy evaluates to false instead of error for those principals.

Should I use ID tokens or access tokens for my identity source?

Use ID tokens when decisions depend on who the user is (email, department, custom attributes); those claims become principal attributes and suit ABAC. Use access tokens when decisions depend on OAuth scopes or the client that obtained the token; those claims become context.token.* and suit RBAC and machine-to-machine authorization. Group membership is available either way. Choose early; switching later means refactoring the schema and policies.

How many identity sources can a policy store have?

One. The quota is fixed and not adjustable. If you need two identity providers for one application, the documented approaches are a separate policy store or a unified authorization layer that normalises tokens before calling Verified Permissions.

What are the limits of BatchIsAuthorized?

Up to 30 requests per call. Either the principal or the resource must be identical across every request in the batch. The entities parameter may hold up to 100 principals and 100 resources. The request body is limited to 1 MB. The IAM permission is verifiedpermissions:IsAuthorized. Default throughput is 30 batch calls per second per policy store, adjustable.

Why can I not find IsAuthorized calls in CloudTrail?

They are data events, which are not logged by default. Add the resource type AWS::VerifiedPermissions::PolicyStore to a trail or an event data store. The decision appears under additionalEventData, not responseElements.

Does the API Gateway integration work with HTTP APIs?

No. The documentation states Verified Permissions is supported only for Regional and edge-optimized REST APIs. The wizard creates a token-based Lambda authorizer named with the AVPAuthorizerLambda- prefix, with a 120-second cache TTL that you can lower or disable.

Can a policy template have a placeholder for the action?

No. Templates support only ?principal and ?resource. The action list is fixed in the template, and changing it changes every template-linked policy at once.

How does this relate to practising for the Security Specialty exam?

Verified Permissions questions are usually scenario-driven: a company’s requirement, four plausible architectures, one that fits. The fastest way to get comfortable is to build the small lab above so the semantics are in your fingers, then drill scenario questions until the cues (fine-grained, custom application, ABAC, forbid, group, token type, cache) trigger the right answer automatically. The AWS Certified Security - Specialty mock exam bundle includes full-length timed exams across all six domains with explanations that walk through the reasoning on authorization scenarios like these, which is a good way to find out whether you recognise the cues under time pressure. Our practice-exam strategy post explains how to use mock results to direct your remaining study time.

Conclusion

Amazon Verified Permissions is the SCS-C03’s answer to a question IAM was never designed for: how do you authorize users inside your own application with policies that are centrally managed, auditable, and analysable? Cedar gives you a small, deliberately limited language whose semantics you can hold in your head: default deny, forbid beats permit, erroring policies are skipped. Policy stores give you a container with a schema and a validator that will catch the unsafe attribute access before it becomes a skipped forbid in production. Identity sources turn a Cognito or OIDC token into a principal, with ID-token claims becoming attributes and access-token claims becoming context. The four authorization APIs, the API Gateway wizard with its 120-second cache, the CloudTrail data-event opt-in, and the quota sheet supply the concrete details that turn a vague scenario into a single correct answer.

Build the fifteen-minute lab, reproduce the skipped-forbid behaviour yourself, and the rest of the topic falls into place.

Limited Time Offer: Get 80% off all Mock Exam Bundles | Sale ends in 7 days. Start learning today.

Claim Now