For IndividualsFor Educators
ExpertMinds LogoExpertMinds
ExpertMinds

Ace your certifications with Practice Exams and AI assistance.

  • Browse Exams
  • For Educators
  • Blog
  • Privacy Policy
  • Terms of Service
  • Cookie Policy
  • Support
  • AWS SAA Exam Prep
  • PMI PMP Exam Prep
  • CPA Exam Prep
  • GCP PCA Exam Prep

© 2026 TinyHive Labs. Company number 16262776.

    PracticeAWS Solutions Architect Professional (SAP-C02)AWS Solutions Architect Professional SAP-C02 Practice Exam 1Question 57
    Medium1 markMultiple Choice
    Domain 2.3: Security ControlsSecurityAPI GatewayServerlessAuthentication

    AWS SAP-C02 · Question 57 · Domain 2.3: Security Controls

    A company is building a serverless application using AWS Lambda and Amazon API Gateway. They need to secure the API against unauthorized access. The users authenticate via a third-party Identity Provider (IdP) that supports OpenID Connect (OIDC). Which TWO methods can be used to authorize API requests? (Select TWO)

    Answer options:

    A.

    Use an API Gateway Lambda authorizer to validate the OIDC token.

    B.

    Integrate the IdP with Amazon Cognito User Pools and use a Cognito authorizer in API Gateway.

    C.

    Use AWS IAM Identity Center to generate temporary AWS credentials for the API.

    D.

    Configure API Gateway to use AWS WAF to validate the OIDC token.

    E.

    Use Amazon Macie to inspect the incoming tokens.

    F.

    Enable API Gateway resource policies to allow the IdP's IP address.

    How to approach this question

    Identify the two API Gateway features used for custom or federated authentication (Lambda Authorizer and Cognito Authorizer).

    Full Answer

    Use an API Gateway Lambda authorizer to validate the OIDC token. Integrate the IdP with Amazon Cognito User Pools and use a Cognito authorizer in API Gateway.
    API Gateway supports Amazon Cognito authorizers (which can federate with OIDC IdPs) and Lambda authorizers (which allow you to write custom code to validate JWTs/OIDC tokens).

    Common mistakes

    Thinking WAF can be used as an identity provider/token validator.
    Question 56All questionsQuestion 58

    Practice the full AWS Solutions Architect Professional SAP-C02 Practice Exam 1

    75 questions · hints · full answers · grading

    Sign up freeTake the exam

    More questions from this exam

    Q01An enterprise has 50 VPCs across two AWS Regions. They need to establish transitive routing betwe...HardQ02A company uses AWS Organizations. The security team wants to ensure that no IAM user or role can ...MediumQ03An application requires a relational database with an RPO of 1 second and an RTO of less than 1 m...HardQ04A company is setting up a new multi-account environment. They want to automate the provisioning o...MediumQ05An organization wants to allocate AWS costs to specific business units. They use AWS Organization...Hard
    View all 75 questions →