Bachelors Program in Computer Science Engineering
Internet of Things
•
Bachelor
Edge, Fog and Cloud IoT Platforms
Introduction
An Internet of Things (IoT) system rarely consists only of sensors connected directly to an application. A production platform normally includes devices, gateways, communication networks, message brokers, device registries, computation services, databases, application programming interfaces (APIs), security controls and operational tools. These resources may be distributed from the physical site to regional infrastructure and centralized cloud data centers.
This distribution creates an edge-to-cloud continuum. Edge computing places computation near devices; fog computing coordinates intermediate resources across sites or networks; and cloud computing supplies elastic, centrally managed services. The principal engineering task is not to select one tier exclusively, but to place each workload where its latency, resilience, privacy, bandwidth and cost requirements can best be satisfied.
For example, a cloud platform may train a machine-learning model using historical data, while an edge gateway executes the resulting model to stop a dangerous machine within milliseconds. During a network interruption, the same gateway may buffer measurements and continue enforcing local safety rules. When connectivity returns, summarized data can be synchronized with cloud storage.
Learning Objectives
After studying this chapter, students should be able to:
Distinguish device, edge, fog and cloud computing roles.
design an edge-to-cloud architecture using gateways, registries, brokers, containers, serverless services, storage and APIs;
calculate data rates, storage requirements, buffering capacity and approximate service latency;
select workload placement using latency, resilience, privacy, bandwidth and cost criteria;
explain device identity, secure onboarding and lifecycle management;
compare messaging, computation and storage alternatives;
design for intermittent connectivity, observability and failure recovery; and
assess governance, security and ethical implications of distributed IoT platforms.
1. The Edge-to-Cloud Continuum
1.1 Device tier
The device tier contains sensors, actuators, embedded controllers and smart machines. Devices interact directly with the physical environment and commonly operate under restrictions on processor capacity, memory, energy and network bandwidth.
A device may perform sampling, signal conditioning, threshold detection or small-scale inference. However, placing extensive functionality on highly constrained devices can increase energy consumption, firmware complexity and maintenance risk.
1.2 Edge computing
An edge node is a computing resource located close to data sources or physical processes. Examples include an industrial computer beside a production line, an in-vehicle processor, a building controller and an IoT gateway in a retail outlet.
Typical edge functions include:
protocol conversion;
filtering and aggregation;
local rules and control loops;
machine-learning inference;
temporary storage;
privacy-preserving redaction; and
operation during wide-area network failure.
“Close” is a logical and operational property rather than a fixed physical distance. A node is at the edge when it offers sufficiently direct access to devices and local processes.
1.3 Fog computing
Fog computing extends cloud capabilities across a hierarchy of intermediate resources. A fog node may coordinate several gateways, aggregate data across a factory or city district, or host services inside a telecommunications network.
The distinction between edge and fog is not universally standardized. A useful engineering distinction is that edge computing acts directly at or near individual data sources, whereas fog computing coordinates workloads across multiple edge nodes and local or regional infrastructure.
1.4 Cloud computing
Cloud platforms provide elastic computing, managed databases, object storage, analytics, identity services and global APIs. Their advantages include resource pooling, centralized governance and rapid scaling. Their limitations include wide-area network dependence, variable network latency, data-transfer charges and possible data-sovereignty concerns.
Tier
Typical resources
Principal strengths
Common limitations
Device
Microcontroller, sensor, actuator
Immediate physical interaction, low energy
Limited memory and computation
Edge
Gateway, industrial PC, local server
Low latency, offline operation, local privacy
Distributed maintenance, limited capacity
Fog
Site cluster, regional node, telecom node
Cross-edge coordination, regional aggregation
Architectural and operational complexity
Cloud
Data center and managed services
Elasticity, global access, large-scale analytics
Network dependence, transfer cost, remote latency
Edge-to-cloud IoT architecture showing devices, an edge gateway, fog services and cloud services
Figure: Edge-to-cloud IoT architecture showing devices, an edge gateway, fog services and cloud services
Figure: Functional tiers and bidirectional flows in an edge-to-cloud IoT platform.
2. Core Platform Components
2.1 IoT gateways
A gateway bridges local device networks and upstream platform services. Southbound interfaces may include Bluetooth Low Energy, Zigbee, Modbus, CAN or industrial Ethernet. Northbound interfaces commonly use MQTT, HTTPS or AMQP over IP networks.
A production gateway may provide:
protocol translation and data normalization;
device discovery and authentication;
timestamp correction and quality tagging;
aggregation, compression and deduplication;
local rules, analytics or inference;
buffering during network interruption;
firewalling and network segmentation; and
secure software and configuration updates.
A gateway should not become an unmanaged single point of failure. Critical deployments may require redundant gateways, watchdog timers, signed software, remote health monitoring and a documented replacement process.
2.2 Device registries and digital representations
A device registry maintains the authoritative identity and operational metadata of each managed device. A record may contain a unique identifier, model, owner, public key or certificate, firmware version, provisioning state and authorization policy.
A registry is primarily a control-plane service. It does not necessarily store every measurement. Separating identity metadata from telemetry reduces coupling and allows each data type to use appropriate storage.
Some platforms maintain a device shadow or digital twin representation containing reported state and desired state. If a device is temporarily offline, an application can update desired state. The device retrieves and applies that state after reconnecting. Version numbers or timestamps are needed to detect conflicting updates.
Secure onboarding generally follows these steps:
establish a unique device identity;
authenticate bootstrap credentials;
register ownership and policy;
issue renewable operational credentials;
verify software integrity where supported; and
rotate or revoke credentials throughout the lifecycle.
Shared fleet-wide passwords should be avoided because compromise of one device could expose the entire fleet.
2.3 Message brokers
A message broker decouples producers from consumers. In publish–subscribe messaging, a device publishes to a named topic while authorized consumers subscribe to matching topics. Producers do not need to know the addresses or availability of every consumer.
MQTT is widely used because it has a small protocol footprint and supports three quality-of-service (QoS) levels:
MQTT level
Delivery property
Engineering consequence
QoS 0
At most once
Lowest overhead; messages may be lost
QoS 1
At least once
Retransmission improves delivery but duplicates may occur
QoS 2
Exactly once across the MQTT protocol exchange
Highest handshake overhead
MQTT QoS 2 does not by itself guarantee exactly-once execution of an external business action. A consumer might perform an action and fail before committing its acknowledgement. Applications should therefore use idempotency keys, transactional outbox patterns or deduplication where repeated actions would be harmful.
Topic authorization should follow least privilege. For example, a sensor may publish to its own telemetry topic but must not publish commands to another device. Broker clusters also require capacity planning, durable-session policies and controls for slow consumers.
2.4 Containers and orchestration
A container packages an application and its user-space dependencies while sharing the host operating-system kernel. Containers make edge software more portable and reproducible than manually configured services.
Container orchestration may provide scheduling, health checks, restart policies, resource limits, service discovery and rolling updates. Full-scale orchestration can nevertheless be excessive for a small gateway. The operational value of orchestration must outweigh its memory, storage and administration overhead.
Edge container designs should use:
signed and vulnerability-scanned images;
explicit CPU and memory limits;
minimal base images;
read-only file systems where practical;
persistent volumes only for state that must survive restart; and
staged deployments with rollback capability.
2.5 Serverless and event-driven services
A serverless function executes application code in response to an event without requiring the developer to manage servers directly. Telemetry arrival, registry changes, scheduled tasks and storage events can invoke functions.
Serverless computing is especially effective for irregular, short-lived and stateless processing. Billing is usually based on invocations and resource duration. Limitations can include cold-start delay, maximum execution duration, concurrency quotas and provider-specific integration.
Safety-critical control should not depend on a remotely invoked function when its cold-start and network delay cannot meet a deterministic deadline. Long-running or stateful processing is often better suited to containers or managed stream-processing services.
2.6 Storage services
Different IoT data classes require different storage models.
Storage type
Suitable IoT use
Time-series database
Timestamped measurements, window queries and downsampling
Object storage
Images, audio, video, model artifacts and archival files
Relational database
Assets, users, orders and transactional relationships
Key–value store
Current device state, session data and rapid identifier lookup
Edge persistent store
Offline buffering and local operational history
A data lifecycle may move recent high-resolution data from fast storage to compressed object storage and eventually delete or aggregate it. Retaining all raw measurements indefinitely is rarely justified technically, financially or ethically.
2.7 APIs and integration
APIs expose device state, telemetry, commands and administrative operations to applications. REST is common for request–response operations, while streaming APIs, webhooks and broker subscriptions support asynchronous events. gRPC can be useful for efficient service-to-service communication where both endpoints support it.
A robust API should define:
authentication and authorization;
stable resource identifiers;
schema and versioning rules;
pagination and rate limits;
timeout and retry behavior;
idempotency semantics;
error formats; and
audit logging.
An API gateway can centralize token validation, throttling, routing and observability. It does not replace authorization checks within services when decisions depend on domain-specific ownership or context.
3. Quantitative Capacity Planning
3.1 Telemetry rate
For heterogeneous device groups, the average application-payload rate is:
Rpayload = ∑i=1k Ni fi bi
Here, Ni is the number of devices in group i, fi is the average message frequency in messages per second per device, bi is the payload size in bytes per message, and Rpayload is in bytes per second. The equation assumes the stated averages are representative. Protocol headers, encryption overhead, retransmissions and burstiness are excluded.
Worked example: average payload rate. A sensor sends a 200-byte payload every 10 seconds. Its average payload rate is:
Rdevice = 200 bytes ÷ 10 s = 20 bytes/s
For 10,000 identical sensors:
Rfleet = 10,000 × 20 bytes/s = 200,000 bytes/s
Because one byte contains eight bits, this equals 1,600,000 bits/s = 1.6 Mbit/s using decimal units. Real network capacity must be higher because payload rate excludes headers, acknowledgements, retransmissions and traffic peaks.
Average rate alone is insufficient for broker sizing. If synchronized devices reconnect after an outage, the short-term arrival rate can be many times the average. Load testing should therefore include expected bursts and reconnect storms.
3.2 Storage volume
Ignoring compression and metadata, retained payload volume is:
V = Rpayload T
Here, V is stored payload in bytes, Rpayload is bytes per second and T is retention time in seconds. Indexes, replicas and storage-engine overhead must be added separately.
For the preceding fleet, one day of raw payloads requires:
V = 200,000 bytes/s × 86,400 s = 17,280,000,000 bytes
This is 17.28 GB in decimal units, before metadata, replication and compression. A replication factor of three would create three stored copies, although compression may partially offset that increase.
3.3 Offline buffer sizing
If N devices each generate f messages per second of b stored bytes per record, a minimum payload buffer for an outage of duration To is:
Sbuffer = N f b To
This assumes constant rates, no compression and no deletion during the outage. Engineering capacity should include filesystem overhead and a safety margin.
Worked example: gateway buffer. Five hundred devices each produce one 300-byte stored record every five seconds. For a two-hour outage, f = 1 ÷ 5 = 0.2 messages/s and To = 7,200 s. Thus:
The payload requirement is 216 MB using decimal units. Adding 25% headroom gives:
Sprovisioned = 216 MB × 1.25 = 270 MB
A production design must also define what happens if the buffer fills: discard oldest data, preserve alarms while dropping routine telemetry, reduce sample frequency, or stop accepting data. Silent uncontrolled loss is not an acceptable policy.
4. Workload Placement
4.1 Latency decomposition
For a request that travels to a processing location and returns an action, an approximate end-to-end latency is:
L = Lup + Lqueue + Lprocess + Ldown + Lactuate
The terms represent uplink transport, queueing, computation, downlink transport and actuator response time, all expressed in the same time unit. Sensing and preprocessing delays may be added when relevant. This additive model estimates a single path; distributed fan-out or parallel branches require analysis of the applicable critical path.
Worked comparison. Suppose cloud processing has 45 ms uplink transport, 20 ms queueing, 30 ms computation and 45 ms downlink transport. Excluding actuator time, its response latency is:
Lcloud = 45 + 20 + 30 + 45 = 140 ms
An edge implementation with corresponding values of 5 ms, 4 ms, 8 ms and 5 ms requires:
Ledge = 5 + 4 + 8 + 5 = 22 ms
If a control deadline is 50 ms, the edge design satisfies the estimated timing constraint and the cloud design does not. The comparison should use high-percentile latency, such as the 99th percentile, rather than only the mean when deadlines are important.
4.2 Placement criteria
Criterion
Tends to favor edge or fog
Tends to favor cloud
Latency
Millisecond response or deterministic local action
Delay-tolerant analytics
Resilience
Continued operation during WAN failure
Centrally available noncritical services
Privacy
Raw data must remain on site
Approved centralized processing
Bandwidth
Video or high-frequency data can be reduced locally
Low-volume telemetry
Scale
Site-specific control
Fleet-wide aggregation and elastic workloads
Cost
Avoid recurring transfer and cloud processing charges
Avoid purchasing and maintaining site hardware
Model lifecycle
Fast local inference
Large-scale training and model management
A placement decision can be formulated as a constrained optimization problem. If p denotes a possible placement, one may minimize:
J(p) = wL Ln(p) + wC Cn(p) + wB Bn(p) + wR Rn(p)
Here, Ln, Cn, Bn and Rn are normalized measures of latency, cost, bandwidth use and risk; the nonnegative weights wL, wC, wB and wR express stakeholder priorities. Normalization is necessary because the raw quantities use different units. Candidate placements must also satisfy hard constraints such as a maximum latency, data-residency rule or minimum offline capability. The weighted model supports decision-making but does not eliminate engineering judgment.
4.3 Resilience and degraded operation
Resilient IoT systems specify behavior for partial failure rather than assuming permanent connectivity. Common patterns include:
store-and-forward: persist messages locally and transmit them after reconnection;
local autonomy: continue essential rules without cloud access;
graceful degradation: preserve alarms while reducing nonessential sampling;
retry with exponential backoff: progressively increase retry intervals and add random jitter;
idempotent consumption: make repeated processing safe; and
circuit breaking: temporarily stop calls to a failing dependency.
Ordering must be considered when buffered messages are replayed. Event timestamps, sequence numbers and device identifiers enable downstream systems to distinguish delayed records from current data.
4.4 Cost analysis
Total cost of ownership includes more than cloud service charges:
All terms must be evaluated over the same time horizon and currency basis. Cfailure represents expected consequences such as downtime, spoiled goods or missed production. Edge hardware can reduce data-transfer cost but increases fleet maintenance. Cloud managed services can reduce administration but may create recurring charges and switching costs.
5. Security, Privacy and Governance
An edge-to-cloud platform expands the attack surface across physically accessible devices, gateways, networks, APIs and cloud accounts. Security must therefore be designed as a lifecycle property.
Important controls include:
hardware-backed or otherwise protected device keys;
mutual authentication where appropriate;
encrypted communication and protected local storage;
least-privilege access to topics, APIs and management operations;
signed firmware, containers and model artifacts;
secure boot and integrity verification where supported;
credential rotation and revocation;
software bills of materials and vulnerability management;
network segmentation between operational and enterprise systems; and
tamper-evident audit records.
Privacy engineering begins with data minimization. A camera used to count occupants may perform inference locally and transmit only counts rather than identifiable video. This reduces bandwidth and privacy exposure, although the edge device and model must still be assessed for bias, accuracy and unauthorized access.
Governance should identify the data controller, permitted purposes, retention period, deletion procedure, geographic processing locations and parties allowed to issue commands. Safety-related commands require stronger authorization and auditability than ordinary telemetry access. Regulatory obligations vary by sector and jurisdiction, so technical controls should be traceable to applicable requirements rather than assumed to provide automatic compliance.
6. Applied Case: Refrigerated Vaccine Distribution
Background
This is an illustrative case. A regional health organization operates 40 refrigerated storage sites. Each site has 25 temperature sensors that report every 30 seconds. Temperatures outside the permitted range can damage stock, so alarms must continue during Internet outages.
Problem
The previous cloud-only design sent every reading directly over a cellular link. During network failures, readings and alarms were lost. The organization also lacked a reliable device inventory, certificate rotation process and evidence showing whether staff acknowledged alerts.
Analysis
The workload has two different timing classes. Local temperature alarms require rapid and resilient processing, while monthly compliance reports require aggregation across all sites. Cloud-only control cannot guarantee local alarm delivery during a wide-area outage. A fully isolated edge design, however, would make organization-wide reporting and fleet management difficult.
The fleet contains 40 × 25 = 1,000 sensors. If each normalized record occupies 240 bytes and is produced once every 30 seconds, average payload rate is:
R = 1,000 × (1 ÷ 30) × 240 = 8,000 bytes/s
This equals 64 kbit/s of application payload before protocol overhead. The average is modest, but local buffering remains necessary for outages.
Approach and solution
Each site receives an industrial gateway with two containerized services. The first collects sensor data, validates ranges and writes records to a local persistent queue. The second evaluates alarm rules and activates a local audible warning. It can also send an SMS through an independent communication path where available.
Every sensor and gateway has an individual registry identity and renewable certificate. An MQTT broker accepts telemetry only on topics authorized for that identity. QoS 1 is used because occasional duplicates are preferable to missing temperature records; cloud consumers deduplicate records using a device identifier and sequence number.
Cloud services include:
a device registry and certificate lifecycle service;
managed MQTT ingestion;
a serverless function that validates and routes incoming events;
a time-series database for recent measurements;
object storage for long-term compliance archives;
a relational database for sites, inventory and alert acknowledgements; and
authenticated APIs for dashboards and auditors.
The edge retains seven days of readings and uploads buffered events after reconnection. The cloud sends signed configuration versions to gateways. A gateway rejects older configurations unless an authorized rollback has been explicitly declared.
Outcome
In acceptance tests, local alarms continued during a simulated six-hour network failure. After reconnection, buffered records were replayed without duplicate database entries. Central dashboards displayed delayed records according to event time rather than ingestion time. Fleet records also showed certificate expiry, firmware version and last successful contact for every gateway.
Learning points
The case illustrates that workload placement should follow requirements rather than technology fashion. Local rules provide latency and resilience; cloud services provide fleet visibility, archival storage and integration. Registries, sequence numbers, persistent queues and signed configuration are as important as the data-processing code.
7. Implementation and Operational Best Practices
A disciplined development process reduces failures that otherwise appear only after large-scale deployment.
Classify workloads. Separate safety control, routine telemetry, analytics, training and reporting.
Define service objectives. Specify latency percentiles, tolerated data loss, recovery time and offline duration.
Model normal and peak traffic. Include protocol overhead, synchronized reporting and reconnect storms.
Design identity first. Establish onboarding, authorization, rotation and decommissioning before mass deployment.
Make failure behavior explicit. Define buffer limits, retry rules, stale-data handling and degraded modes.
Use versioned schemas. Producers and consumers should tolerate controlled evolution.
Automate staged deployment. Use pilot groups, health gates and rollback for firmware, containers and models.
Observe the entire path. Correlate device sequence numbers, broker metrics, service traces and storage errors.
Test under realistic faults. Disconnect networks, exhaust storage, restart brokers and inject duplicate or delayed messages.
Review placement periodically. Costs, regulations, models and network quality change over a system’s lifetime.
Useful operational indicators include ingest rate, rejected authentication attempts, queue depth, oldest buffered-message age, duplicate rate, processing latency percentiles, storage growth, device last-seen time and update success rate. Metrics should support action rather than merely produce dashboards.
8. Challenges and Contemporary Developments
Distributed platforms introduce version skew, heterogeneous hardware, intermittent networks and remote update risk. Troubleshooting is more difficult when a failure crosses device firmware, radio networks, brokers and cloud services. Vendor-specific APIs can also create lock-in.
Edge AI is expanding because specialized accelerators can execute increasingly capable models near sensors. This supports low-latency inference and keeps raw data local. Nevertheless, edge AI introduces model drift, limited memory, accelerator compatibility and model-security concerns. Cloud systems commonly train and evaluate models, while controlled deployment pipelines deliver compressed versions to edge nodes.
Other developments include WebAssembly-based portable edge workloads, confidential computing, private 5G, federated learning and open telemetry standards. These technologies can improve portability, privacy or observability, but none removes the need for clear requirements and lifecycle governance.
Chapter Summary
Edge, fog and cloud computing form a continuum rather than mutually exclusive alternatives. Devices interact with physical processes, edge nodes provide low-latency and resilient local services, fog resources coordinate sites or regions, and cloud platforms supply elastic computation, fleet management, storage and global integration.
A complete platform combines gateways, device registries, brokers, containers, serverless functions, suitable databases and secure APIs. Quantitative planning must account for average and peak traffic, protocol overhead, retention volume, offline buffering and end-to-end latency. Workload placement should satisfy hard constraints for timing, resilience and data residency before optimizing cost or convenience.
Reliable systems explicitly handle disconnection, duplicate delivery, delayed events, credential rotation, software updates and storage exhaustion. Security and privacy apply across the entire lifecycle. In practice, strong edge-to-cloud solutions use local autonomy for urgent operations and centralized services for scalable analytics, governance and fleet-wide coordination.
Key Terms
Actuator: A device that changes a physical process in response to a command.
API gateway: A service that routes API requests and commonly applies authentication, throttling and monitoring.
Cloud computing: Centrally hosted, elastic computing and storage delivered as network-accessible services.
Container: A packaged application environment that shares the host operating-system kernel.
Device registry: An authoritative service holding device identities, credentials and lifecycle metadata.
Device shadow: A stored representation of reported and desired device state.
Edge computing: Processing performed close to devices or physical processes.
Fog computing: Distributed intermediate computing that coordinates edge resources and cloud services.
Gateway: A node that connects device networks to upstream systems and may translate, filter or process data.
Idempotency: The property that repeating an operation has no additional unintended effect.
Message broker: Middleware that routes messages between decoupled producers and consumers.
MQTT: A lightweight publish–subscribe messaging protocol widely used in IoT.
Observability: The ability to infer system state using metrics, logs, traces and correlated events.
Serverless function: Event-triggered code executed on managed infrastructure without direct server administration.
Store-and-forward: Persisting data locally during disconnection and transmitting it later.
Telemetry: Measurements or status information transmitted from remote devices.
Time-series database: A database optimized for timestamped records and time-based queries.
Workload placement: Selection of the device, edge, fog or cloud location where a computation or data service executes.
Review Questions
Short Answer Questions
Distinguish edge computing from fog computing.
What information is normally stored in a device registry?
Why can MQTT QoS 1 produce duplicate messages?
What is the purpose of store-and-forward processing?
Why should API operations that trigger physical commands support idempotency?
Long Answer Questions
Explain the roles of gateways, registries, brokers, storage services and APIs in an edge-to-cloud platform.
Compare containers and serverless functions for IoT processing workloads.
Discuss how latency, resilience, privacy, bandwidth and cost influence workload placement.
Describe a secure lifecycle for onboarding, operating, updating and decommissioning an IoT device.
Explain how an IoT platform should prepare for network outages, replayed messages and storage exhaustion.
Analytical / Application Questions
A factory has 2,000 sensors, each producing a 400-byte record every 20 seconds. Calculate the average payload rate and one day of uncompressed payload storage. State which additional factors must be included in production sizing.
Design an edge-to-cloud architecture for traffic cameras where identifiable video must remain within the city network but traffic counts may be published to a public cloud.
A remote control application has a 75 ms deadline. Compare an edge path with component delays of 8, 5, 12 and 8 ms against a cloud path with delays of 35, 15, 25 and 35 ms. Recommend a placement and explain any limitations of using only average latency.
Multiple Choice Questions with Answers
Question 1
Which workload is the strongest candidate for edge placement?
A. Annual analysis of five years of fleet data
B. Training a large model using a centralized GPU cluster
C. A machine shutdown decision with a 30 ms deadline
D. Long-term archival of compliance records
Correct Answer: C. A machine shutdown decision with a 30 ms deadline
Question 2
What is the primary role of an IoT device registry?
A. To maintain device identities, credentials and lifecycle metadata
B. To store every raw sensor measurement permanently
C. To translate all fieldbus electrical signals
D. To replace application authorization checks
Correct Answer: A. To maintain device identities, credentials and lifecycle metadata
Question 3
A sensor sends a 200-byte payload every 10 seconds. What is its average application-payload rate, excluding protocol overhead?
A. 2 bytes/s
B. 20 bytes/s
C. 200 bytes/s
D. 2,000 bytes/s
Correct Answer: B. 20 bytes/s
Question 4
Which statement correctly describes MQTT QoS 1?
A. It provides at-most-once delivery with no acknowledgement
B. It prevents duplicates in every downstream business system
C. It provides at-least-once delivery, so duplicates may occur
D. It encrypts the payload without additional security protocols
Correct Answer: C. It provides at-least-once delivery, so duplicates may occur
Question 5
One hundred sensors each generate 0.5 messages per second, and each stored record is 100 bytes. What minimum payload buffer is required for a 60-second outage?
A. 30,000 bytes
B. 60,000 bytes
C. 300,000 bytes
D. 3,000,000 bytes
Correct Answer: C. 300,000 bytes
Question 6
Which workload is most suitable for a serverless function?
A. A deterministic motor-control loop with a 5 ms deadline
B. An irregular, short-lived telemetry-validation task triggered by message arrival
C. A continuously running stateful database engine
D. A gateway service that must operate indefinitely without network access
Correct Answer: B. An irregular, short-lived telemetry-validation task triggered by message arrival
Question 7
Which storage technology is normally best suited to timestamped sensor measurements and time-window queries?
A. Time-series database
B. Source-code repository
C. Directory service
D. Block storage without a database layer
Correct Answer: A. Time-series database
Question 8
Which pattern enables a gateway to preserve telemetry during a temporary network outage?
A. Round-robin DNS
B. Store-and-forward
C. Schema deletion
D. Stateless packet filtering
Correct Answer: B. Store-and-forward
Question 9
A camera locally converts video into anonymous occupancy counts and sends only the counts to the cloud. What is the principal architectural benefit?
A. It guarantees that the counting model is unbiased
B. It eliminates the need to secure the edge device
C. It reduces privacy exposure and upstream bandwidth use
D. It makes device authentication unnecessary
Correct Answer: C. It reduces privacy exposure and upstream bandwidth use
Question 10
Why should an API that issues actuator commands support idempotency keys?
A. To make repeated retries avoid unintended repeated actions
B. To increase the sensor sampling frequency
C. To convert relational data into video
D. To eliminate all network latency
Correct Answer: A. To make repeated retries avoid unintended repeated actions