Explore the advanced features of AWS Amazon CloudFront with this comprehensive set of MCQ questions and answers. Covering critical topics like multi-origin strategies, real-time monitoring, custom error responses, and Lambda@Edge, these questions will help you excel in mastering CloudFront’s advanced configurations.
5. Advanced Configurations
1-10: Multi-Origin and Load Balancing Strategies
What is a primary purpose of using multiple origins in CloudFront? a) Enhanced security b) Load distribution c) Data encryption d) Traffic throttling
How does CloudFront select an origin for requests? a) Based on latency and routing policies b) Using static configuration c) Alphabetically by origin name d) Randomly
Which feature supports automatic failover between origins? a) Origin Groups b) Edge Locations c) CNAMEs d) Route 53 Resolver
Multi-origin configurations in CloudFront often use: a) Weighted routing policies b) Security groups c) API Gateways d) NAT Gateways
What is the role of cache behaviors in multi-origin setups? a) Direct requests to specific origins b) Encrypt data at rest c) Prevent cross-origin requests d) Monitor network latency
When configuring multiple origins, you must: a) Assign cache behaviors b) Enable Web Application Firewall c) Use CloudWatch alarms d) Compress all files
CloudFront’s integration with Route 53 allows: a) Geolocation-based origin selection b) Data encryption in transit c) Automatic cache invalidation d) Secure content delivery
Which origin type is commonly used in multi-origin strategies? a) S3 buckets and EC2 instances b) RDS databases c) CloudTrail logs d) CloudFormation templates
Multi-origin setups can be monitored using: a) CloudWatch metrics b) AWS Config rules c) Trusted Advisor d) IAM policies
In load balancing, CloudFront supports: a) Weighted origin selection b) Horizontal auto-scaling c) Vertical scaling only d) Static IP assignment
11-20: Real-Time Logs and Monitoring
Which service helps analyze CloudFront real-time logs? a) Amazon Athena b) AWS Trusted Advisor c) Amazon Rekognition d) AWS Secrets Manager
CloudFront real-time logging requires: a) Enabling a log bucket and Kinesis Data Streams b) Configuring EC2 instances c) Using NAT gateways d) Deploying AWS Outposts
Real-time logs capture: a) Viewer requests and responses b) Database transactions c) EC2 instance uptime d) Lambda function errors
Logs can be streamed to which service for near-instant insights? a) Amazon Kinesis Data Firehose b) AWS Elastic Beanstalk c) Amazon EMR d) AWS Glue Studio
CloudFront monitoring dashboards are available in: a) AWS CloudWatch b) Amazon Redshift c) AWS S3 d) IAM Management Console
CloudFront’s real-time metrics can include: a) Cache hit ratio and origin latency b) Database query times c) IAM policy changes d) RDS instance usage
What is the primary purpose of CloudFront real-time monitoring? a) Improve performance and troubleshoot issues b) Encrypt content at rest c) Enable private IP routing d) Create IAM users
CloudFront logs are delivered to: a) S3 buckets or Kinesis Data Streams b) DynamoDB tables c) EFS file systems d) AWS CloudFormation
CloudFront log retention policies are managed in: a) S3 Lifecycle Rules b) Route 53 settings c) Lambda functions d) AWS Secrets Manager
Real-time monitoring is suitable for: a) High-traffic websites b) Database backups c) EC2 instance configuration d) Virtual private networks
21-25: Custom Error Responses
Custom error responses in CloudFront are used to: a) Provide user-friendly messages b) Redirect to Route 53 c) Encrypt viewer requests d) Enable serverless architecture
What HTTP status codes can trigger custom error responses? a) 4xx and 5xx codes b) 1xx codes only c) 3xx codes only d) 2xx codes only
Custom error responses require configuring: a) Error caching durations b) Viewer request policies c) Lambda functions d) NAT Gateways
Where do you define custom error pages? a) In the CloudFront distribution settings b) Through IAM policies c) Within S3 bucket permissions d) Using EC2 instances
Custom error responses can redirect users to: a) Specific URLs or S3 objects b) CloudTrail logs c) VPC Peering connections d) Database snapshots
26-30: Lambda@Edge: Dynamic Content Customization
Lambda@Edge is used with CloudFront to: a) Customize content delivery at the edge b) Monitor EC2 instances c) Encrypt CloudWatch logs d) Manage S3 bucket permissions
Which CloudFront event triggers Lambda@Edge functions? a) Viewer request b) EC2 instance start c) VPC connection d) IAM policy change
Lambda@Edge functions can modify: a) HTTP headers and responses b) S3 bucket encryption c) RDS database schemas d) DynamoDB tables
Lambda@Edge helps achieve: a) Low latency personalization b) High availability regions c) Cross-region replication d) Serverless data pipelines
What languages are supported by Lambda@Edge? a) Python, Node.js, and Java b) C++, Kotlin, and Swift c) PHP, Ruby, and Perl d) Rust, Go, and Scala