MCQs on Setting Up CloudFront | AWS Amazon CloudFront MCQs

Prepare to master AWS Amazon CloudFront with these 30 thoughtfully crafted MCQs. Covering topics like creating distributions, origin types, caching behaviors, and viewer-origin policies, this guide will boost your understanding and confidence. Perfect for AWS certification aspirants, these questions focus on real-world scenarios to help you excel in CloudFront configuration and optimization.


Multiple-Choice Questions

1. Setting Up CloudFront

  1. What is the primary purpose of Amazon CloudFront?
    a) To optimize database queries
    b) To deliver content with low latency
    c) To monitor application health
    d) To manage serverless functions
  2. Which AWS service is commonly used as an origin for CloudFront distributions?
    a) Amazon DynamoDB
    b) Amazon EC2
    c) AWS Glue
    d) Amazon QuickSight
  3. A CloudFront distribution can have multiple:
    a) Cache invalidations
    b) Edge locations
    c) Origin servers
    d) Buckets
  4. What is a key requirement when creating a CloudFront distribution?
    a) Selecting a region
    b) Specifying an origin
    c) Configuring Lambda functions
    d) Enabling logging
  5. Which of the following is optional during the initial setup of a CloudFront distribution?
    a) Selecting an origin
    b) Configuring cache behaviors
    c) Enabling SSL/TLS
    d) Setting up access logs

2. Origin Types: S3, EC2, HTTP Servers

  1. Which origin type is best suited for static content like images and videos?
    a) Amazon EC2
    b) Amazon S3
    c) HTTP server
    d) DynamoDB
  2. What is required to use an Amazon S3 bucket as a CloudFront origin?
    a) Enabling public access to the bucket
    b) Configuring bucket policies
    c) Adding an SSL certificate
    d) Launching a CloudFormation stack
  3. How can you secure an origin when using an EC2 instance?
    a) Use a NAT Gateway
    b) Configure an IAM role
    c) Enable Origin Access Control (OAC)
    d) Attach a security group
  4. HTTP servers as origins require:
    a) Integration with AWS Lambda
    b) Static IP addresses
    c) A publicly routable DNS name
    d) Connection to an Amazon VPC
  5. What happens if multiple origins are configured for a CloudFront distribution?
    a) CloudFront uses the first one by default
    b) Origin failover occurs automatically
    c) Cache behaviors decide the origin selection
    d) All origins are queried simultaneously

3. Configuring Cache Behaviors

  1. Cache behaviors in CloudFront define:
    a) Compression settings
    b) Request and response rules
    c) Cache control policies
    d) Distribution lifecycle states
  2. Which setting can be configured per cache behavior?
    a) Price class
    b) Logging
    c) TTL values
    d) Custom error responses
  3. How does CloudFront decide which cache behavior to apply?
    a) Based on request headers
    b) By analyzing DNS records
    c) By matching the URL path pattern
    d) Randomly
  4. To allow only HTTPS requests, you should:
    a) Configure viewer protocol policies
    b) Set up Lambda@Edge
    c) Use WAF rules
    d) Modify TTL values
  5. How can you force CloudFront to fetch updated content from the origin?
    a) Create a new distribution
    b) Update the origin configuration
    c) Perform a cache invalidation
    d) Increase TTL values

4. Customizing Viewer and Origin Policies

  1. Viewer policies control:
    a) How long content stays in the cache
    b) The protocols viewers use to access content
    c) The geographic restrictions for content
    d) Access to Amazon S3 buckets
  2. An origin policy typically involves:
    a) Setting distribution pricing
    b) Configuring custom error responses
    c) Determining how CloudFront communicates with the origin
    d) Configuring edge function triggers
  3. Which viewer policy allows both HTTP and HTTPS traffic?
    a) Redirect to HTTPS
    b) HTTPS only
    c) Allow all
    d) Force HTTP
  4. How can you restrict CloudFront content to authorized users only?
    a) Enable SSL/TLS encryption
    b) Use signed URLs or cookies
    c) Block HTTP traffic
    d) Configure price classes
  5. What is the purpose of Origin Access Control (OAC)?
    a) To enforce HTTPS for viewers
    b) To secure origin communication
    c) To manage CloudFront edge locations
    d) To customize cache invalidations
  6. Which policy type allows setting HTTP methods like GET, POST, or DELETE?
    a) Viewer policy
    b) Cache behavior policy
    c) Origin policy
    d) Field-level encryption policy
  7. You can restrict content access based on geographic locations using:
    a) Cache invalidations
    b) Geo-restriction settings
    c) Lambda@Edge functions
    d) TTL rules
  8. Custom error pages are configured in:
    a) Origin policies
    b) Cache behaviors
    c) Viewer policies
    d) Distribution settings
  9. How does CloudFront handle requests for content not in its cache?
    a) Returns a 404 error
    b) Fetches the content from the origin
    c) Invalidates cache automatically
    d) Redirects to an alternate origin
  10. To enable cross-origin resource sharing (CORS) for a CloudFront distribution, you must:
    a) Use a custom SSL certificate
    b) Update origin response headers
    c) Configure edge locations
    d) Change viewer policies

Answers Table

QnoAnswer
1b) To deliver content with low latency
2b) Amazon EC2
3c) Origin servers
4b) Specifying an origin
5c) Enabling SSL/TLS
6b) Amazon S3
7b) Configuring bucket policies
8c) Enable Origin Access Control (OAC)
9c) A publicly routable DNS name
10c) Cache behaviors decide the origin selection
11b) Request and response rules
12c) TTL values
13c) By matching the URL path pattern
14a) Configure viewer protocol policies
15c) Perform a cache invalidation
16b) The protocols viewers use to access content
17c) Determining how CloudFront communicates with the origin
18c) Allow all
19b) Use signed URLs or cookies
20b) To secure origin communication
21a) Viewer policy
22b) Geo-restriction settings
23b) Cache behaviors
24b) Fetches the content from the origin
25b) Update origin response headers

Use a Blank Sheet, Note your Answers and Finally tally with our answer at last. Give Yourself Score.

X
error: Content is protected !!
Scroll to Top