DVA-C02 exam dumps

DVA-C02 practice question 346 of 399

AWS Certified Developer - Associate. Associate level, Amazon Web Services. Free question with the correct answer and a full explanation.

DVA-C02 Question 346

Single answer

You are developing an application that interacts with an Amazon API Gateway endpoint. During testing, you receive an HTTP 403 error. What is the most likely cause of this error?

  1. A

    The client is unauthorized to access the requested resource due to an IAM policy or resource-based policy.

  2. B

    The requested resource was not found on the server.

  3. C

    The payload size of the request exceeds the maximum allowed by the API Gateway.

  4. D

    There is an internal server error on the API Gateway.

Show answer and explanation

Correct answer: A

Explanation

The HTTP 403 Forbidden error specifically indicates that the request was valid but the server is refusing to fulfill it due to insufficient permissions. This often occurs when the IAM policy or resource-based policy attached to the API Gateway denies access to the client.

  • A. Correct.

    A 403 Forbidden error typically indicates that access to the resource is denied due to insufficient permissions, such as an IAM policy or resource-based policy denying access.

  • B. Incorrect.

    A 404 Not Found error occurs when the requested resource does not exist on the server, which is not related to the 403 error.

  • C. Incorrect.

    An HTTP 413 Payload Too Large error occurs if the request payload size exceeds the maximum allowed by the API Gateway, not an HTTP 403 error.

  • D. Incorrect.

    An HTTP 500 Internal Server Error indicates an issue within the server itself, such as a misconfiguration or a runtime error, not an HTTP 403 error.

Timed practice exam

Take a DVA-C02 practice test under exam conditions

65 questions in 130 minutes, drawn from this bank, with a score report and a per-question review when you finish.

Start timed exam