Exam DVA-C02 All QuestionsBrowse all questions from this exam
Question 383

A company maintains a REST service using Amazon API Gateway and the API Gateway native API key validation. The company recently launched a new registration page, which allows users to sign up for the service. The registration page creates a new API key using CreateApiKey and sends the new key to the user. When the user attempts to call the API using this key, the user receives a 403 Forbidden error. Existing users are unaffected and can still call the API.

What code updates will grant these new users access to the API?

    Correct Answer: D

    Newly created API keys need to be associated with the correct usage plan for the users to gain access to the API. The createUsagePlanKey method must be called to associate the newly created API key with the correct usage plan, granting the new users the necessary permissions.

Discussion
rdiazOption: D

D chatgpt