Unit 6: IoT Cloud & Edge Integration - Practice Quiz

ECE140 — Workshop On Iot For Digital Society 60 Questions
0 Correct 0 Wrong 60 Left
0/60

1 Which layer of a basic IoT architecture contains sensors and actuators?

IoT architecture Easy
A. Network layer
B. Perception layer
C. Application layer
D. Business layer

2 What is the main purpose of the network layer in an IoT architecture?

IoT architecture Easy
A. To replace sensors with software-based simulations that never communicate externally
B. To display only local animations
C. To transmit data between components
D. To manufacture sensor devices

3 Which communication model is used by MQTT?

MQTT protocol Easy
A. Publish-subscribe
B. File-transfer
C. Circuit-switching
D. Peer-to-peer

4 What is the role of an MQTT broker?

MQTT protocol Easy
A. To store every message permanently in a relational database without forwarding it
B. To measure temperature directly
C. To route messages between clients
D. To provide electrical power

5 What does HTTP stand for?

HTTP protocol Easy
A. Hosted Terminal Transfer Program
B. Hyperlink Transport Processing
C. Hypertext Transfer Protocol
D. High-speed Transmission Process

6 Which HTTP method is commonly used to retrieve data from a server?

HTTP protocol Easy
A. PUT
B. GET
C. POST
D. DELETE

7 CoAP is mainly designed for which type of device?

CoAP protocol Easy
A. Large servers that process complex graphics and require permanent wired connections
B. High-end gaming computers
C. Resource-constrained IoT devices
D. Desktop publishing systems

8 Which transport protocol is commonly used by CoAP?

CoAP protocol Easy
A. UDP
B. SMTP
C. FTP
D. TCP

9 What is ThingSpeak commonly used for in IoT projects?

ThingSpeak cloud platform Easy
A. Manufacturing semiconductor components
B. Designing mechanical device enclosures
C. Collecting and visualizing sensor data
D. Replacing all physical sensors with manually entered spreadsheet values

10 Which AWS service connects IoT devices securely to the AWS cloud?

AWS IoT cloud platform Easy
A. AWS IoT Core
B. AWS Lambda
C. Amazon S3
D. Amazon Route 53

11 Which protocol is directly supported by AWS IoT Core for lightweight publish-subscribe messaging?

AWS IoT cloud platform Easy
A. FTP
B. Telnet
C. POP3
D. MQTT

12 What is the primary purpose of Azure IoT Hub?

Azure IoT Hub cloud platform Easy
A. Connecting and managing IoT devices
B. Creating printed circuit boards
C. Hosting only static websites without accepting messages from connected devices
D. Editing digital photographs

13 Which company provides Azure IoT Hub?

Azure IoT Hub cloud platform Easy
A. Google
B. Amazon
C. IBM
D. Microsoft

14 In a REST API, what does an endpoint usually represent?

REST API integration Easy
A. A battery charging terminal
B. A URL for accessing a resource
C. A physical sensor connector
D. A graphical dashboard that permanently stores every possible type of IoT data

15 Which data format is commonly exchanged through REST APIs?

REST API integration Easy
A. MP3
B. JPEG
C. WAV
D. JSON

16 What is the main purpose of a real-time IoT dashboard?

Real-time dashboards and visualization Easy
A. To display current device data
B. To assemble hardware components
C. To increase sensor voltage
D. To convert all incoming measurements into printed reports before displaying them

17 Where does edge computing process IoT data?

Edge computing versus cloud computing Easy
A. Only in a remote cloud
B. Inside an offline archive that receives data several months after it is collected
C. Only in a central database
D. Near the data source

18 What is one common benefit of edge computing compared with cloud-only computing?

Edge computing versus cloud computing Easy
A. Unlimited device memory
B. Lower response latency
C. Permanent internet access
D. Automatic replacement of every damaged sensor without requiring human maintenance

19 What does OTA stand for in IoT firmware updates?

OTA firmware updates Easy
A. Online Transfer Address
B. Over-the-Air
C. Open Terminal Access
D. Operational Technology Adapter

20 What is a key advantage of OTA firmware updates?

OTA firmware updates Easy
A. Every hardware component is physically replaced whenever a software issue is discovered
B. Devices no longer need firmware
C. Devices can be updated remotely
D. Sensors gain unlimited storage

21 A smart irrigation system must continue controlling water valves when its internet connection fails. Which architecture best satisfies this requirement?

IoT architecture Medium
A. Run control logic on a local gateway and synchronize with the cloud
B. Send all sensor data directly to a cloud database
C. Store readings on sensors until a technician retrieves them
D. Use a cloud dashboard to issue every valve command

22 A factory has hundreds of sensors using Zigbee, but its cloud service accepts only IP-based traffic. Which component should translate and forward the sensor data?

IoT architecture Medium
A. A passive Ethernet switch
B. A protocol-aware IoT gateway
C. A sensor calibration service
D. A cloud visualization widget

23 A temperature sensor publishes to building/room1/temperature, and several applications must receive each new reading. Which MQTT feature enables this behavior?

MQTT protocol Medium
A. Peer-to-peer addressing
B. File-based synchronization
C. Request-response routing
D. Publish-subscribe messaging

24 An alarm message must reach the cloud at least once, but occasional duplicate delivery is acceptable. Which MQTT QoS level should be selected?

MQTT protocol Medium
A. QoS 3
B. QoS 0
C. QoS 1
D. QoS 2

25 A dashboard should immediately show the most recently published device status when it subscribes, even if the device has not sent a new message. What should the publisher use?

MQTT protocol Medium
A. A clean session
B. A retained message
C. A wildcard topic
D. A QoS 0 message

26 A battery-powered sensor wakes every minute, sends one reading using HTTP, and disconnects. What is the main disadvantage compared with MQTT?

HTTP protocol Medium
A. HTTP requires a permanent IP address
B. HTTP cannot use encrypted connections
C. HTTP has greater per-message overhead
D. HTTP cannot carry JSON data

27 A device submits a new telemetry record to /api/readings. Which HTTP method is most appropriate when the server assigns the record identifier?

HTTP protocol Medium
A. GET
B. DELETE
C. POST
D. PUT

28 A constrained sensor network uses lossy links and requires lightweight request-response communication. Why is CoAP suitable for this environment?

CoAP protocol Medium
A. It uses FTP with resumable file transfers
B. It uses SMTP with compressed attachments
C. It uses UDP with compact message headers
D. It uses TCP with persistent browser sessions

29 A CoAP client sends a critical actuator command over an unreliable network and needs acknowledgment-based retransmission. Which message type should it use?

CoAP protocol Medium
A. Confirmable
B. Observe-only
C. Reset-only
D. Non-confirmable

30 A weather station sends temperature, humidity, and pressure to one ThingSpeak channel. What is the most appropriate data organization?

ThingSpeak cloud platform Medium
A. Store each measurement in a separate channel account
B. Publish each measurement as a channel comment
C. Map each measurement to a separate channel field
D. Combine all measurements into the channel name

31 A public ThingSpeak channel accepts sensor updates only from authorized devices. Which credential should a device include when writing data?

ThingSpeak cloud platform Medium
A. The Read API key
B. The chart identifier
C. The Write API key
D. The channel description

32 An application must display the latest reported state of an intermittently connected device. Which AWS IoT Core feature is designed for this purpose?

AWS IoT cloud platform Medium
A. S3 lifecycle rule
B. Device Shadow
C. Lambda layer
D. CloudFormation stack

33 Sensor messages arriving at AWS IoT Core must be stored in DynamoDB without modifying the device firmware. Which feature should route the messages?

AWS IoT cloud platform Medium
A. AWS IAM Access Analyzer
B. AWS Device Defender audit
C. AWS IoT Rules Engine
D. AWS CloudTrail logging

34 A cloud application sends a desired fan speed to an offline device. The device should retrieve the value when it reconnects. Which Azure IoT Hub capability is most appropriate?

Azure IoT Hub cloud platform Medium
A. Event Grid system topics
B. Device twin desired properties
C. Blob storage access tiers
D. Device-to-cloud telemetry

35 An operator must request an immediate diagnostic action from a connected device and receive a result. Which Azure IoT Hub feature best fits this interaction?

Azure IoT Hub cloud platform Medium
A. Message route
B. Reported property
C. Direct method
D. File upload

36 A client sends the same complete configuration to /devices/42/config several times, and the final server state should remain unchanged after the first successful request. Which HTTP method best expresses this idempotent update?

REST API integration Medium
A. POST
B. TRACE
C. PUT
D. CONNECT

37 An IoT application receives HTTP status code 429 while uploading telemetry through a REST API. What should the application do?

REST API integration Medium
A. Disable authentication for later requests
B. Retry immediately in a tight loop
C. Retry after a delay with backoff
D. Replace every request with DELETE

38 A dashboard plots a sensor that reports once per second, but the chart redraws only once per minute. Which change most directly improves the dashboard's apparent real-time behavior?

Real-time dashboards and visualization Medium
A. Increase the historical retention period
B. Sort device names alphabetically
C. Increase the chart refresh frequency
D. Add more decimal places to labels

39 A camera system must stop a machine within 50 ms after detecting a safety hazard, while long-term video analytics can tolerate several seconds. Where should each workload run?

Edge computing versus cloud computing Medium
A. Run both workloads only in the cloud
B. Run detection in the cloud and analytics at the edge
C. Run both workloads only on the dashboard
D. Run detection at the edge and analytics in the cloud

40 A device loses power while installing an OTA firmware update. Which design most effectively allows it to recover without becoming unusable?

OTA firmware updates Medium
A. Use dual firmware partitions with rollback
B. Overwrite the running image in one pass
C. Disable integrity checks during installation
D. Store the update only in volatile memory

41 A battery-powered vibration sensor must detect bearing faults within 200 ms, continue operating during intermittent Internet outages, and support fleet-wide analytics. Which architecture best satisfies all three requirements?

IoT architecture Hard
A. Upload samples periodically through an HTTP server after local buffering
B. Run feature extraction at the edge and send features plus selected raw windows to the cloud
C. Send raw vibration samples directly to a cloud database
D. Use a cloud dashboard to calculate every diagnostic feature centrally

42 An MQTT client publishes telemetry with QoS 1 and receives a PUBACK, but the application processes the message twice after a reconnect. Which design correctly addresses this behavior?

MQTT protocol Hard
A. Use a persistent session and deduplicate messages by an application-level event identifier
B. Change every telemetry message to QoS 0
C. Increase the MQTT keep-alive interval to prevent retransmission
D. Assume PUBACK guarantees exactly-once processing by the subscriber

43 A device must receive commands while it is offline, but stale commands must not be delivered when it reconnects. Which MQTT configuration is most appropriate?

MQTT protocol Hard
A. Use QoS 2 without an expiry interval and retain every command
B. Use a persistent session and publish commands with a short message expiry interval
C. Use a clean session so all queued messages remain available indefinitely
D. Publish commands with QoS 0 and set the retained flag

44 A device sends a measurement using an HTTP POST request. The request times out, and the device cannot determine whether the server stored the measurement. Which server-side mechanism most directly prevents duplicate records after a retry?

HTTP protocol Hard
A. Return a redirect before persisting the measurement
B. Replace POST with a longer-lived TCP connection
C. Use chunked transfer encoding
D. Add an idempotency key and enforce uniqueness for that key

45 A constrained gateway exposes a resource whose representation changes frequently. Clients should avoid downloading unchanged content, while the gateway must remain compatible with standard HTTP caching. Which approach is best?

HTTP protocol Hard
A. Use POST for reads so intermediaries cannot reuse old representations
B. Return an ETag and require clients to use If-None-Match
C. Return a different random URL for every request
D. Disable caching and require a full response for every request

46 A low-power sensor sends a confirmable CoAP POST through an unreliable network. It receives no acknowledgment after the retransmission limit is reached. What is the correct application-level conclusion?

CoAP protocol Hard
A. The request was delivered exactly once because it was confirmable
B. The request outcome is unknown and may require a safe retry strategy
C. The resource definitely rejected the request
D. The sensor should automatically switch the request to a GET

47 A CoAP resource must be updated reliably, and repeating the operation after a lost response must not create an additional logical effect. Which method and design are most suitable?

CoAP protocol Hard
A. Use POST with no request identifier
B. Use PUT with a stable resource URI and idempotent replacement semantics
C. Use GET with a payload containing the new state
D. Use DELETE because it is always safe for state changes

48 A ThingSpeak channel receives measurements from several devices, but the analysis must distinguish devices and preserve a consistent schema. Which design is most appropriate within a single channel?

ThingSpeak cloud platform Hard
A. Write all devices to the same field without identifiers because timestamps provide identity
B. Create a separate channel field for each possible timestamp
C. Create a new channel for every measurement to prevent field collisions
D. Use a stable field schema and include a device identifier in a defined field or encoded payload

49 A device posts to ThingSpeak every second, but the channel has an update interval restriction that is longer than one second. What is the most robust device-side strategy?

ThingSpeak cloud platform Hard
A. Buffer measurements locally, aggregate or select samples, and publish within the channel limit
B. Send requests concurrently until one is accepted
C. Ignore rejected updates because the cloud reconstructs all missing samples
D. Change the HTTP method from POST to GET to bypass the restriction

50 An AWS IoT device policy should allow a device to publish only to its own telemetry topic and subscribe only to commands addressed to that same device. Which policy principle is essential?

AWS IoT cloud platform Hard
A. Grant publish and subscribe access to all topics under the account
B. Authorize topics by IP address because certificates are shared
C. Use policy variables or certificates to bind topic permissions to the device identity
D. Allow wildcard subscriptions and filter unauthorized messages in the device

51 A fleet uses AWS IoT Device Shadow documents. A device reconnects after being offline and reports a desired state version older than the cloud version. Which behavior best prevents stale state from overwriting newer state?

AWS IoT cloud platform Hard
A. Delete the shadow whenever a device reconnects
B. Accept every update because the latest network message is authoritative
C. Disable reported state so only desired state is retained
D. Use shadow versioning or optimistic concurrency and reject stale updates

52 An Azure IoT Hub solution must route temperature messages to different storage systems based on a device-reported site identifier. Which feature is designed for this requirement?

Azure IoT Hub cloud platform Hard
A. Message routing with query conditions and endpoints
B. Direct methods invoked only by human operators
C. Cloud-to-device messages without endpoint configuration
D. Device twins with no routing rules

53 A device is temporarily offline when a cloud service invokes an operational command. The command must be executed only once and must report a result tied to the request. Which mechanism is most suitable?

Azure IoT Hub cloud platform Hard
A. A device twin property with no command identifier
B. A telemetry message published without a response topic
C. A direct method with a request identifier and device-side deduplication
D. A retained MQTT message reused for every future command

54 A REST endpoint updates an actuator configuration containing a version number. Two clients read version 10 and then submit conflicting changes. Which API design prevents the second update from silently overwriting the first?

REST API integration Hard
A. Remove version information because the server timestamps requests
B. Accept both updates and use the request arrival order
C. Require If-Match with the version ETag and return 412 on mismatch
D. Use GET for both updates so the operation remains cacheable

55 An IoT platform exposes a paginated REST endpoint, and records can arrive while a client is synchronizing. Which approach most reliably avoids missing or duplicating records?

REST API integration Hard
A. Use a stable cursor based on an immutable ordering and process pages idempotently
B. Sort by display name and stop when a page contains fewer records
C. Use offset pagination while sorting by an unstable field
D. Request only the first page repeatedly until no records change

56 A dashboard plots sensor data arriving through multiple gateways whose clocks are not synchronized. Which visualization strategy best avoids false causal ordering?

Real-time dashboards and visualization Hard
A. Use the largest timestamp from each batch as every point's event time
B. Sort all points only by gateway arrival time
C. Discard points whose timestamps differ from the browser clock
D. Display event time with uncertainty indicators and monitor ingestion lag separately

57 A real-time dashboard must remain responsive when ingesting 50,000 points per second while users inspect one-minute trends. Which architecture is most appropriate?

Real-time dashboards and visualization Hard
A. Refresh the entire page whenever one point arrives
B. Render every incoming point directly in the browser
C. Increase chart resolution so the browser can display all raw events
D. Use server-side windowing or downsampling and stream aggregated updates to the client

58 A safety controller must stop an industrial motor within 50 ms even when the wide-area network is unavailable, while historical optimization can tolerate several minutes of delay. Where should each workload execute?

Edge computing versus cloud computing Hard
A. The safety controller should execute at the edge and optimization should execute in the cloud
B. Both workloads should execute on the sensor to eliminate all network traffic
C. Both workloads should execute in the cloud
D. The safety controller should execute in the cloud and optimization at the edge

59 An edge gateway performs anomaly detection locally and sends only alerts to the cloud. Which additional design is most important for maintaining trustworthy fleet-wide analytics?

Edge computing versus cloud computing Hard
A. Use an identical threshold forever so edge behavior never changes
B. Replace local decisions with cloud decisions whenever bandwidth is available
C. Periodically upload representative raw samples and model metadata for cloud validation
D. Discard all raw data permanently after each local decision

60 A firmware update may be interrupted by power loss, and a failed image must not permanently disable the device. Which update design provides the strongest protection?

OTA firmware updates Hard
A. Overwrite the active image in place and reboot immediately
B. Store the new image only in volatile memory and trust the bootloader
C. Use A/B partitions, signed images, boot validation, and rollback to the previous image
D. Disable integrity checks so updates complete with fewer bytes