skip to content

Cloud Providers & Platforms

The platforms you actually deploy on, from the hyperscalers to the developer and edge PaaS layer above them. Interviewers check you can pick a provider for a workload and explain what you pay for.

on this pageshow

explore

questions

1 046 · 4 sections

What is EC2 user data, at what point in an instance's life does the script run, and as which OS user?

level: juniorimportance: must knowfreq 65%
basics
~20 s

User data is a text blob you attach to an EC2 instance that cloud-init fetches from the instance metadata service at first boot. A script starting with a shebang runs as root, once per instance — not on every reboot.

open as a page

In an EC2 Auto Scaling group, what do the minimum, maximum and desired capacity settings each control, and what happens if you manually terminate one of the group's instances?

level: juniorimportance: must knowfreq 68%
basics
~20 s

Desired capacity is the instance count the group tries to run right now; minimum and maximum are the floor and ceiling that scaling can never cross. Manually terminating an instance leaves the group below desired, so it launches a replacement.

open as a page

Decode the EC2 instance type name m7g.2xlarge: what does each part of the name tell you, and how many vCPUs and how much memory does that instance have?

level: juniorimportance: must knowfreq 75%
basics
~20 s

m7g.2xlarge splits into four parts: family m (general purpose, roughly 4 GiB of memory per vCPU), generation 7, processor letter g (AWS Graviton, arm64), and size 2xlarge — 8 vCPUs and 32 GiB of memory.

open as a page

In EC2, what do you get and what do you give up by running an instance as Spot instead of On-Demand, and how is the Spot price actually determined?

level: juniorimportance: must knowfreq 78%
basics
~20 s

Spot Instances run on EC2 capacity AWS currently has idle, at a steep discount off On-Demand, but AWS can reclaim them at any moment with a two-minute warning. Spot prices move gradually with supply and demand; there is no bidding auction.

open as a page

In Amazon ECS, explain what a task definition, a task, and a service each are, and when you would use the RunTask API directly instead of putting the workload behind a service.

level: juniorimportance: must knowfreq 78%
basics
~20 s

An ECS task definition is the immutable blueprint: image, CPU and memory, IAM roles, logging. A task is one running copy of it. A service keeps a desired count of tasks alive and replaces failures; RunTask launches one-off jobs.

open as a page

In Cloudflare's Agents SDK, how does routeAgentRequest() reach an Agent instance, and why is the instance name the agent's identity?

level: juniorimportance: must knowfreq 30%
basics
~20 s

routeAgentRequest() parses /agents/{class-in-kebab-case}/{instance-name} and forwards the request to the Durable Object for that name. The same class and name always reach the same agent and its private SQLite state, so the name is its identity.

open as a page

In Workers AI, how does a Worker call a model through the AI binding with env.AI.run(), and what comes back?

level: juniorimportance: must knowfreq 45%
basics
~20 s

A Worker declares an ai binding in its Wrangler file and calls env.AI.run(model, inputs) with an @cf/ catalogue id; the promise resolves to that task's output, such as { response } for text generation or { shape, data } for embeddings.

open as a page

In Cloudflare Queues, how does a producer Worker send an order event, and how does a consumer Worker receive it?

level: juniorimportance: must knowfreq 45%
basics
~20 s

A producer Worker binds the queue under queues.producers and calls env.ORDERS.send(body) or sendBatch(); a consumer Worker listed under queues.consumers exports a queue(batch, env, ctx) handler and reads batch.messages, each with id, timestamp, attempts and body.

open as a page

In a Cloudflare Worker, how do you reuse an expensive JSON response with caches.default, cache.match() and cache.put()?

level: juniorimportance: must knowfreq 45%
basics
~10 s

Build a GET Request as the key and return caches.default.match(key) when it hits; on a miss, build the response with a Cache-Control lifetime, store response.clone() with cache.put() inside ctx.waitUntil, and return the original.

open as a page

On a site proxied by Cloudflare, which files does the edge cache by default, and why do HTML pages show cf-cache-status DYNAMIC?

level: juniorimportance: must knowfreq 75%
basics
~20 s

Cloudflare caches by file extension: images, CSS, JavaScript, fonts, media, documents and archives, plus robots.txt. HTML, JSON and extensionless paths are not on the list, so those requests go to the origin without a cache lookup and show DYNAMIC.

open as a page

In Firebase Cloud Messaging for Android, what is the difference between a notification message and a data message?

level: juniorimportance: must knowfreq 82%
basics
~20 s

A notification message carries display fields (title, body, image) that the FCM SDK shows itself while the app is in the background; a data message carries only custom string pairs, handed to onMessageReceived for your code to act on.

open as a page

In Cloud Firestore, how do documents, collections and subcollections fit together, and what happens to a subcollection when its parent document is deleted?

level: juniorimportance: must knowfreq 68%
basics
~20 s

Firestore keeps fields in documents of up to 1 MiB, documents in collections, and lets a document own subcollections, so paths alternate collection and document. Deleting a document leaves its subcollections in place; they must be deleted separately.

open as a page

In Firebase Security Rules for Firestore, how do you let each student in a classroom app read only their own grades?

level: juniorimportance: must knowfreq 72%
basics
~10 s

Match the grades path with a wildcard for the student ID and allow reads only when request.auth.uid equals that wildcard. Firestore denies anything no rule allows, and each subcollection needs its own match block.

open as a page

With the Cloud Storage for Firebase Android SDK, how do putBytes, putStream and putFile differ, and how do you get a download URL afterwards?

level: juniorimportance: must knowfreq 62%
basics
~20 s

All three upload to a StorageReference and return an UploadTask: putBytes needs the whole byte array in memory, putStream reads an InputStream, putFile reads a file or content Uri. Ask the reference for getDownloadUrl() once the task succeeds.

open as a page

In Firebase Authentication, how long does an ID token live, what ends its refresh token, and when should an Android app force a refresh?

level: middleimportance: must knowfreq 68%
basics
~20 s

A Firebase ID token lasts one hour; the long-lived refresh token mints new ones until the user is deleted, disabled, changes password or email, or is revoked. Call getIdToken(true) only when server-side state such as custom claims changed.

open as a page

A nightly cleanup job runs about twenty minutes - why does an event-driven runtime rule itself out, and which tier fits?

level: juniorimportance: must knowfreq 70%
basics
~20 s

An event-driven runtime caps how long one invocation may run, so a twenty-minute job is stopped part-way. Put it on a tier that keeps a process alive: a managed container platform running it on a schedule, or a machine that stays up.

open as a page

You are moving a measured search service onto rented machines — which numbers set the machine size, and which do you ignore?

level: juniorimportance: must knowfreq 72%
basics
~20 s

Size from the service's own observed processor, memory, disk and network use over a full demand cycle, taken at a high percentile with headroom added. The specification of the server being replaced records a purchase decision, not the workload, and is ignored.

open as a page

What does a label attached to a cloud resource actually change about the bill, and what does it not change?

level: juniorimportance: must knowfreq 68%
basics
~20 s

A label copies a key-value pair onto the charges a resource generates, so the provider's detailed cost report can be grouped by team, environment or service. It changes reporting only: the rate, the metered quantity and the total are unaffected.

open as a page

A monthly cloud budget threshold is crossed at noon — what does crossing it actually do, and what does it not do?

level: juniorimportance: must knowfreq 62%
basics
~20 s

A budget threshold is a notification rule, not a spending cap. Crossing it emits a message about money already spent. It does not pause running resources, block new ones, or cancel anything, and the figure it fired on lags the usage.

open as a page

On a cloud transfer bill, a service uploads large video masters and ships finished renditions out to viewers — why is only one direction charged?

level: juniorimportance: must knowfreq 74%
basics
~20 s

Transfer is metered by direction. Bytes arriving from outside are normally unmetered; bytes leaving toward the internet are priced per gigabyte after a small monthly allowance. So delivery to viewers is the charge, not the upload of masters.

open as a page