Courseiva
Continuous Improvement for Existing SolutionseasyMultiple ChoiceObjective-mapped

SAP-C02 Continuous Improvement for Existing Solutions Practice Question

A company hosts a static website on Amazon S3 with public read access. The website uses a custom domain name (www.example.com). The company wants to improve performance for global users and also add HTTPS support. They have already set up a CloudFront distribution with the S3 bucket as the origin. However, users still cannot access the website via HTTPS. What should they do?

Answer choices

Why each option matters

Answer the question above first, then reveal the full breakdown to understand why each option is right or wrong.

Correct answer & explanation

Configure the CloudFront distribution to use a custom SSL certificate and set the alternate domain name (CNAME) to www.example.com.

To serve HTTPS, CloudFront needs an SSL/TLS certificate associated with it, and the custom domain (www.example.com) must be set as an alternate domain name (CNAME) in the distribution settings. The certificate can be obtained from ACM (must be in the US East (N. Virginia) region) and then associated with the CloudFront distribution. Option A is incorrect because ACM certificates are not imported into CloudFront; they are associated with the distribution. Option B is incorrect because enabling static website hosting on S3 is not required when using CloudFront as a CDN, and bucket policies cannot enforce HTTPS at the S3 level; HTTPS is terminated at CloudFront. Option C is incorrect because placing an Application Load Balancer in front of S3 is unnecessary, as CloudFront already provides HTTPS termination and caching for better performance.

Answer analysis

Option-by-option breakdown

For each option: why learners choose it and why it is or isn't the right answer here.

  • Request an SSL certificate from AWS Certificate Manager (ACM) and import it into CloudFront.

    Why it's wrong here

    The certificate from ACM should be associated with the CloudFront distribution, not imported. Import implies bringing an external certificate, while ACM issues certificates that are natively integrated with CloudFront.

  • Enable static website hosting on the S3 bucket and configure the bucket policy to allow HTTPS.

    Why it's wrong here

    Enabling static website hosting on the S3 bucket is not necessary when using CloudFront; CloudFront can serve the content directly from the bucket. Additionally, bucket policies cannot enforce HTTPS at the S3 level; HTTPS is terminated at CloudFront.

  • Place an Application Load Balancer in front of the S3 bucket and attach an SSL certificate.

    Why it's wrong here

    Placing an ALB in front of the S3 bucket adds unnecessary complexity. CloudFront already provides HTTPS termination and performance benefits through caching, so an ALB is not needed.

  • Configure the CloudFront distribution to use a custom SSL certificate and set the alternate domain name (CNAME) to www.example.com.

    Why this is correct

    It involves configuring the CloudFront distribution to use a custom SSL certificate from ACM and setting the alternate domain name to www.example.com, which enables HTTPS access.

Quick reference

AWS S3 Storage Class Comparison

Storage ClassMin DurationRetrievalUse Case
S3 StandardNoneImmediateFrequently accessed data
S3 Standard-IA30 daysImmediateInfrequent access, rapid retrieval
S3 One Zone-IA30 daysImmediateNon-critical infrequent data
S3 Intelligent-TieringNoneImmediate–hoursUnknown or changing access patterns
S3 Glacier Instant90 daysMillisecondsArchive with instant retrieval
S3 Glacier Flexible90 daysMinutes–hoursArchive, flexible retrieval
S3 Glacier Deep Archive180 daysHoursLong-term compliance archive

About these practice questions

Courseiva writes every SAP-C02 question from scratch — 1,660 in total, each with an explanation and a wrong-answer breakdown. None are copied from real exams or dumps. Learn why practice questions differ from exam dumps →

How Courseiva writes practice questions · Editorial policy

JA

Written by Johnson Ajibi, MSc IT Security

Senior Network & Security Engineer · founder of Courseiva

This SAP-C02 practice question is part of Courseiva's free Amazon Web Services certification practice question bank. Courseiva provides original exam-style practice questions with explanations, topic-based practice, mock exams, readiness tracking, and study analytics to help learners prepare for the SAP-C02 exam.