First offline cloud architecture
Project: a small bookstore website
Build an architecture on paper for a fictional bookstore that publishes a public catalog. It has no login, payment, database or personal data. The site contains three static files: index.html, style.css, and logo.svg. The goal is to serve those files over HTTPS while preventing anonymous direct access to the origin storage. This is an offline design exercise, not a deployment recipe. No account, domain purchase, cloud CLI or billing access is needed.
Requirements: use a managed content delivery network (CDN), private object storage, a named deployment identity, a cost estimate, a monitoring plan and a complete resource inventory. Explain a simpler managed static-hosting alternative and why you would choose it if it met the same controls.
Draw the request and deployment paths
A CDN is a distributed delivery service that can cache content close to users. The origin is the authoritative source of the content. The public website is not the same as a publicly readable storage bucket.
Visitor browser -- HTTPS --> CDN endpoint -- authenticated origin read --> private object storagePublisher identity -- approved write --> private object storageOperator identity -- approved configuration --> CDN / storage policyCDN + storage -- selected telemetry --> monitoring destinationOn a cache hit, the CDN may serve a stored response without contacting the origin. On a miss, the CDN requests the file from the origin. A denied origin read can break the public site even if DNS and TLS are working. In an actual deployment, verify TLS and the chosen CDN's origin authentication; a cache hit alone does not prove that origin access still works.
Choose the service model and access boundary
This design combines managed storage and managed delivery rather than renting a VM and patching its OS. It reduces server administration but does not remove responsibility for policies, content, monitoring or costs. IaaS would allow more control over the web server; a managed application platform may be a better fit for dynamic code; a finished SaaS site builder may be sufficient for a nontechnical team.
An AWS example of the pattern is CloudFront with a private S3 bucket using origin access control (OAC) and an appropriately scoped bucket policy. Use the regular S3 bucket origin, not its static website endpoint, for this OAC pattern. Azure and Google Cloud also have delivery and storage services, but private-origin support depends on the selected product, tier, origin type and policy. Do not assume the AWS configuration transfers directly. This chapter does not assert an equivalent private-origin configuration for those providers.
Resource and permission inventory
Use these fictional entries: books-origin (private bucket), books-edge (CDN), books-publisher (write selected objects), books-delivery (read approved public catalog objects through the CDN), books-operator (reviewed configuration changes), books-logs (restricted telemetry destination) and a budget notification. Use a provider-managed HTTPS endpoint in this design, so no custom domain or DNS zone is required. Tag or label supported resources with the lab owner and expiry; inventory untaggable resources manually.
Visitors may read published files through the CDN, not write or list the bucket. Anonymous direct reads are denied. Publisher access is restricted to the catalog objects; administrative changes require a separate identity. Delivery identity reads only required content, not private files elsewhere. The exact policy syntax, resource IDs, identity type and permission evaluation are provider-specific. The fixture uses a deliberately simplified permission matrix, not an IAM simulator.
First monthly estimate
Assume 2 GB-month of storage, 100,000 viewer requests, 20 GB of CDN-to-viewer transfer and 0.5 GB of logs. Fictional USD rates: storage $0.025/GB-month; requests $0.01 per 10,000; transfer $0.08/GB; logs $0.50/GB. These are teaching numbers, not actual quotes.
- Storage: 2 × $0.025 = $0.05.
- Requests: 100,000 / 10,000 × $0.01 = $0.10.
- Transfer: 20 × $0.08 = $1.60.
- Logs: 0.5 × $0.50 = $0.25.
Total for the included lines: $2.00. At twice the requests and transfer with other lines unchanged, the total is $3.70. Real estimates also need origin requests and transfer, cache behavior, minimum fees, logging retention, taxes, support and any selected security features. These omitted costs are unknown, not guaranteed zero. Review current rates before approving anything. An illustrative $5 budget notification is not a guaranteed spending cap.
Monitoring and verification plan
Record public request status, error rate and latency, cache hit/miss counts where available, origin errors, configuration audit events, log volume and reported spend. Do not collect authorization headers, secrets or unnecessary user identifiers. Set bounded retention and assign an owner for responding to alerts.
Offline acceptance checks: approved public file through CDN returns the modeled success; anonymous direct read fails; visitor write fails; publisher can update only permitted objects; delivery identity cannot write; a cache miss with origin read disabled fails. Verify the origin separately rather than trusting a cached success. A changed file may not be visible immediately because of caching; plan versioned object names or reviewed invalidation. The fixture is a model, not an executed CDN deployment.
Teardown and final submission
Before any optional real lab, obtain separate approval, confirm exact scope, estimate cost and plan cleanup. For this paper design, submit the diagram, resource inventory, permission matrix, cost worksheet, monitoring signals, expected allow/deny tests and teardown checklist.
For an authorized live extension, stop new traffic and publishing, remove only lab-owned delivery configuration and wait for provider-confirmed completion, remove lab access grants, then handle lab objects, versions, incomplete uploads, storage and telemetry according to retention rules. Remove lab-specific alerts and any optional DNS or certificate resources only when no longer needed. Check inventories and billing after cleanup; delayed charges can still appear. Never delete unrelated or retained data. In this offline exercise, there are no live resources to remove.
Compare your plan with the sample answer after attempting it. The next chapter introduces virtual compute services, where you will decide how much CPU and memory an application needs.
Check Your Understanding
Solidify your learning with the interactive assessment directly below this lesson.
Concept Quiz & Questions
First offline cloud architecture — knowledge check
Choose the best answer for each offline scenario.
How should public visitors read the catalog in this design?
The included costs are $0.05, $0.10, $1.60 and $0.25. What is their sum?
Which origin is suitable for the described CloudFront OAC pattern?
Why test an origin cache miss?
What completes a live cleanup review?