Bird
0
0

If an S3 bucket is configured for static website hosting with error document "error.html", what happens when a user requests a missing page?

medium📝 service behavior Q5 of 15
AWS - S3 Fundamentals
If an S3 bucket is configured for static website hosting with error document "error.html", what happens when a user requests a missing page?
AThe bucket returns a 500 internal server error
BThe bucket returns a 404 error with no page
CThe bucket redirects to the index document
DThe bucket returns the error.html page
Step-by-Step Solution
Solution:
  1. Step 1: Understand error document behavior

    When a requested page is missing, S3 serves the configured error document if set.
  2. Step 2: Identify the error document response

    The bucket returns the error.html page to the user instead of a default error.
  3. Final Answer:

    The bucket returns the error.html page -> Option D
  4. Quick Check:

    Error document serves custom page on missing content [OK]
Quick Trick: Set error document to show custom 404 page [OK]
Common Mistakes:
  • Expecting 404 with no page
  • Assuming redirect to index document
  • Confusing error document with server error

Want More Practice?

15+ quiz questions · All difficulty levels · Free

Free Signup - Practice All Questions
More AWS Quizzes