FreeExam

Embedded engineer: Firmware Tests and Update Recovery

Original technical interview practice in interrupted storage, authenticated update context, trial and rollback state, reset domains, test oracles, fault models, and deployed-release evidence.

These prompts are original practice. They are not questions from a named employer or a live hiring loop.

  1. 1.Two settings slots exist. A is valid and selected. Firmware fully writes and verifies B, then atomically changes the selected-slot record from A to B. Power fails before that record changes. Under this contract, what should recovery select?

    Show answer and explanation
    1. B merely because its payload is newer
    2. Whichever slot has the larger physical address
    3. Neither because writing any inactive slot invalidates A
    4. A

    Answer: A

    The selection record still names valid A. Preparing B does not itself commit it under the supplied protocol. Recovery must follow the defined validity and selection rules rather than infer commitment from partial progress or address order.

  2. 2.A record's final validity marker spans two independently programmed bytes. Recovery accepts any nonzero marker. The first byte is programmed, then power fails. What flaw exists in that acceptance rule?

    Show answer and explanation
    1. A partial marker can be accepted
    2. Only a complete marker can be nonzero under the supplied two-write model
    3. The first marker byte proves the second byte was durably programmed
    4. Premature reclamation of the old slot

    Answer: A partial marker can be accepted

    The marker's storage operation is not atomic in this model, and the acceptance rule admits an intermediate value. Design validity checks and programming order for the device's actual atomicity and interrupted-write behavior.

  3. 3.An index record names a new payload location. Firmware commits the index before the payload write is durably complete. Power then fails. What recovery state is possible?

    Show answer and explanation
    1. A valid new payload with only an obsolete optional index
    2. A committed reference to incomplete payload
    3. Only a stale index
    4. An index that can safely be trusted without checking its referent

    Answer: A committed reference to incomplete payload

    A metadata reference must not become valid before its required data is recoverable under the storage contract. The ordering must account for actual completion and durability, not just the order of function calls.

  4. 4.Two copies of critical metadata occupy different offsets in the same erase sector. Updating either copy begins by erasing that whole sector. What redundancy weakness follows?

    Show answer and explanation
    1. The second copy provides an independent erase failure domain
    2. One erase can destroy both copies
    3. Only one copy is erased
    4. A whole-sector erase leaves the unselected offset unchanged

    Answer: One erase can destroy both copies

    Redundancy must consider the storage failure and erase granules. Distinct byte addresses in one erase unit may be lost together. Place and update copies so the required valid state survives every permitted interruption.

  5. 5.A sequence uses 8-bit modular order: newer means forward distance strictly between 0 and 128. Two valid records have sequence values 0 and 128. What does this ordering rule decide?

    Show answer and explanation
    1. 0 is always newer because it follows wrap
    2. Both are newer than each other
    3. Neither is established newer
    4. 128 is always newer because its ordinary integer is larger

    Answer: Neither is established newer

    Their modular separation is exactly half the range, outside the stated strict ordering interval. The protocol needs a valid bounded-distance premise or a defined ambiguity/recovery policy. Numeric maximum is not a general wrap-aware rule.

  6. 6.Two valid configuration records have the same generation but different payloads. The format defines no tie rule and no uniqueness enforcement. What is missing?

    Show answer and explanation
    1. Generation wrap handling only
    2. A scan-order choice whose stability is never specified
    3. A checksum check alone, even though both conflicting records are valid
    4. A deterministic conflict/uniqueness rule

    Answer: A deterministic conflict/uniqueness rule

    Generation equality alone does not resolve conflicting contents. The writer and recovery protocol must define how uniqueness is enforced or how a conflict is handled. Unspecified scan order is not an integrity guarantee.

  7. 7.A log stores value K=7, then a tombstone deleting K. Garbage collection copies the old value but drops the tombstone while an older segment may still be scanned. What can recovery do incorrectly?

    Show answer and explanation
    1. Forget every value of K
    2. Reject every unrelated key as a required consequence
    3. Automatically erase every old copy of K
    4. Resurrect the deleted value

    Answer: Resurrect the deleted value

    Deletion metadata must remain effective until no surviving older version can reappear under the scan rules. Reclaiming tombstones requires a proven reachability/version condition, not merely treating them as records with no payload.

  8. 8.A compactor copies live records to a destination sector, commits a complete destination index, then erases the source. Why must the destination commitment precede source erasure under this model?

    Show answer and explanation
    1. Lower CPU utilization even if both source and destination are unrecoverable
    2. A rule that the oldest sector is always the recovery source after erasure
    3. A recoverable live set across cuts
    4. A smaller destination checksum, regardless of record completeness

    Answer: A recoverable live set across cuts

    Before the destination is committed, source records remain the recovery basis. Erasing them earlier creates an interval with no complete recoverable live set. The protocol must also validate the destination and define recovery selection.

  9. 9.A retried persistent increment carries operation ID 42. The store atomically records both its effect and a durable completed-ID entry. On retry, that entry exists. What action preserves at-most-once effect under this supplied contract?

    Show answer and explanation
    1. Increment again
    2. Use a new ID silently for the same retried operation
    3. Delete the completed-ID entry before inspecting the counter
    4. Return the recorded outcome without incrementing again

    Answer: Return the recorded outcome without incrementing again

    A durable identity tied atomically to the effect lets recovery recognize a duplicate. Reapplying the increment would double-count it. Retention, ID scope, wrap, and atomic storage guarantees remain part of the complete protocol.

  10. 10.Ten flash sectors each have a study limit of 500 erases. Nine have 100 erases each; a hot metadata sector has 900. A dashboard reports only the mean of 180. What does the per-sector history show?

    Show answer and explanation
    1. The nine cooler sectors transfer their unused endurance to the hot one
    2. The hot sector exceeds its limit despite the low mean
    3. Every sector is within its limit because the mean is below 500
    4. Only the combined device-wide erase count matters under a per-sector limit

    Answer: The hot sector exceeds its limit despite the low mean

    The hot sector has 900 erases, beyond the stated 500 limit. The average is (9×100+900)/10=180, but an average does not bound the maximum per-sector wear. Layout and update frequency must account for hotspots and the actual device endurance contract.

  11. 11.A flash device erases 4 KiB sectors and programs aligned 16-byte granules. A proposed 20-byte metadata update must avoid touching any unrelated bytes. What constraint must its layout account for?

    Show answer and explanation
    1. Erase ownership and program-granule layout
    2. Only using a pointer wide enough to print the flash address
    3. Program alignment alone
    4. Only separating the payload and marker by one byte within any sector

    Answer: Erase ownership and program-granule layout

    Logical record sizes do not replace physical erase and program constraints. Layout, preserved bytes, interruption behavior, and update ordering must follow both granules. The question does not grant a native atomic 20-byte operation.

  12. 12.A supplied flash contract permits at most one program operation per 16-byte granule between erases, even if later writes would only clear bits. Firmware programs data then a marker in that same granule. What rule is violated?

    Show answer and explanation
    1. No rule because one-to-zero changes are the only possible restriction
    2. A requirement that all markers be in RAM
    3. Only the source-language alignment of the marker variable
    4. The one-program-per-granule limit

    Answer: The one-program-per-granule limit

    One-to-zero bit behavior is not the device's whole programming contract. ECC and controller rules can add granule restrictions. Under the stated model, the second program is forbidden regardless of the bit-transition direction.

  13. 13.An image hash covers only executable bytes, but the bootloader also trusts an unprotected table of entry points outside that range. What integrity scope is missing?

    Show answer and explanation
    1. Only the transport packet headers, leaving the trusted table mutable
    2. Only the code bytes
    3. The execution-control table
    4. The executable region again, while still excluding all control metadata

    Answer: The execution-control table

    Validation must cover the security-relevant data that the loader uses, or protect it through another valid trust mechanism. A correct hash of one region says nothing about mutable control information outside its scope.

  14. 14.A signed manifest authenticates an image digest but not its declared destination address. The installer accepts an address from an unauthenticated wrapper. What trust-boundary flaw remains?

    Show answer and explanation
    1. The wrapper address becomes trusted when copied into a local variable
    2. Untrusted metadata can redirect the write
    3. Only transport framing
    4. The installer can infer the signed destination from the payload hash alone

    Answer: Untrusted metadata can redirect the write

    The authenticated authorization needs to bind the relevant installation context, including permitted destinations under the design. A payload's authenticity does not authorize an attacker-controlled write location.

  15. 15.Two board revisions use incompatible GPIO assignments. Both accept the same signing authority. A signed image for revision A arrives on revision B. What additional admission check is needed?

    Show answer and explanation
    1. Only a valid transport checksum for the received image bytes
    2. Only equality of the processor instruction set across both boards
    3. Only a CPU instruction-set match
    4. Compatibility with the actual target revision

    Answer: Compatibility with the actual target revision

    A valid signature establishes origin under a trust policy, not board compatibility. Bind and validate the relevant target identity and requirements before activation. Hardware differences can matter even when the processor instruction set matches.

  16. 16.An application requires radio firmware protocol version 3. The candidate bundle contains application version 8 and radio protocol version 2. Each component's signature is valid. What bundle condition fails?

    Show answer and explanation
    1. Equality of signing keys
    2. The application-radio compatibility requirement
    3. A requirement that all displayed component version numbers be identical
    4. Only a transport checksum failure after both components were verified

    Answer: The application-radio compatibility requirement

    Individually authentic components can form an incompatible system. Validate dependency constraints for the exact set that will run together, including recovery and mixed-version states permitted during installation.

  17. 17.An update changes two interdependent processors. The activation record can independently select either new component. New-old pairs are unsupported. What must activation coordinate?

    Show answer and explanation
    1. Selection of a compatible component set
    2. Only verifying components individually without checking runnable pairs
    3. Download simultaneity alone
    4. Only updating the application selector first in every interrupted state

    Answer: Selection of a compatible component set

    The allowed runnable states exclude mixed pairs. Preparation, activation, and recovery must preserve a compatible set or explicitly handle intermediate combinations. Download completeness alone does not make independent selector updates atomic as a bundle.

  18. 18.A resumed download reuses chunk index 5 from an earlier image because the index matches. Its content is not verified against the new image identity. What can be mixed?

    Show answer and explanation
    1. Only a harmless reordering of download log messages
    2. Only duplicate new chunks
    3. Chunks from different image versions
    4. A valid new image because chunk indices match across versions

    Answer: Chunks from different image versions

    Chunk position is not sufficient identity across distinct images. A resume protocol must bind retained chunks to the correct content, layout, and validation scope. Reusing an old index without those checks can assemble a mixed candidate.

  19. 19.A downloader durably saves resume offset 4096 before bytes below that offset have reached durable storage. Power fails and recovery trusts the offset. What can it skip?

    Show answer and explanation
    1. Only valid data
    2. Data not durably stored
    3. A contiguous prefix guaranteed valid merely because its length is saved
    4. Only a redundant copy of already-verified persistent data

    Answer: Data not durably stored

    Resume progress must not get ahead of durable validated data under the storage contract. Otherwise recovery may omit missing content. Verification can detect gaps, but the progress protocol must define how to resume safely after them.

  20. 20.Chunks may arrive out of order. Chunks 0 and 2 are valid, chunk 1 is absent. Firmware records highest received index 2 and treats every lower index as present. What progress information is lost?

    Show answer and explanation
    1. The hole at chunk 1
    2. Only the human-readable label attached to the download
    3. No required progress detail because the highest index proves a prefix
    4. Chunk 0's presence

    Answer: The hole at chunk 1

    A maximum index does not describe a noncontiguous received set. Use a representation and verification procedure that preserves holes, or require and enforce contiguous durable progress before advancing an offset.

  21. 21.All chunks individually pass their expected content checks, but the installer concatenates them in an arbitrary order without checking positions or the complete image. What is still unestablished?

    Show answer and explanation
    1. The intended ordered image
    2. A guarantee that rearranging valid pieces preserves complete-image identity
    3. Only the download duration rather than the image layout
    4. Only whether any chunk exists, despite every expected piece passing checks

    Answer: The intended ordered image

    Content integrity of pieces must be bound to their intended positions and image identity, or confirmed by suitable whole-image validation. The same valid pieces in a different order generally form a different image.

  22. 22.An authenticated manifest declares a 700 KiB image. The target slot has 640 KiB usable capacity. Does authentication make that size acceptable for installation into this slot?

    Show answer and explanation
    1. Yes, if transport packets are smaller than the slot
    2. Only if the image title contains the board name
    3. Yes, because signed inputs cannot violate resource limits
    4. No

    Answer: No

    Trust and resource validity are separate checks. The image exceeds this slot by 60 KiB and must not be written beyond its permitted region. Validate capacities, ranges, and arithmetic even for authenticated content.

  23. 23.A firmware package holds a 100 KiB compressed image that expands to 900 KiB. The staging area has 512 KiB for the expanded candidate. What size must the installer bound?

    Show answer and explanation
    1. Expanded output and all required staging resources
    2. Only the number of network packets
    3. Only the compressed download byte count
    4. The assumption that every compression ratio is below one

    Answer: Expanded output and all required staging resources

    A small package can expand beyond available storage or memory. Bound and validate the expanded representation and work performed, using the codec and installation contracts. Signature success does not create extra staging capacity.

  24. 24.A delta update was generated against base digest H1. A device's current image has digest H2≠H1, yet the installer applies the delta anyway. What prerequisite was ignored?

    Show answer and explanation
    1. The required exact base image
    2. Only a requirement that the base use the same signing key
    3. Only a comparison of compressed patch size with uncompressed image size
    4. Only matching release titles

    Answer: The required exact base image

    A delta's interpretation depends on its specified base. Verify that base and the reconstructed result under the update format. Similar version labels or common signing keys do not establish identical base bytes.

  25. 25.A boot verifier reads image bytes, validates them, then another writer can change those bytes before execution starts. What integrity gap remains?

    Show answer and explanation
    1. Only the spelling of the entry-point symbol changes
    2. The executed bytes may differ from the verified bytes
    3. The digest becomes a reversible copy of the image
    4. Only a download error

    Answer: The executed bytes may differ from the verified bytes

    The trust claim must apply to what actually executes. Ownership, protection, or a suitable loading/verification design must prevent or detect mutation across the validation-to-use boundary. An earlier successful check alone does not protect later changes.

  26. 26.A device trusts key K1. A rotation installs K2-signed firmware and immediately removes K1 from trust, but its only recovery image still requires K1. What availability condition needs attention?

    Show answer and explanation
    1. A trusted usable recovery path after rotation
    2. Only a requirement to keep the revoked key trusted for all future content
    3. Only the relative file sizes of the new and recovery images
    4. Only new-app self-verification

    Answer: A trusted usable recovery path after rotation

    Trust changes affect every image that may need to boot, including recovery. A rotation plan must preserve the intended recovery and authorization properties through interruption and rollback states. A new key alone does not update old recovery artifacts.

  27. 27.An unconfirmed candidate has security version 6. The only known-good fallback has version 5. Firmware irreversibly raises the minimum allowed version to 6 before the trial succeeds. What recovery problem can follow?

    Show answer and explanation
    1. The floor can be lowered after failure despite the stated irreversibility
    2. The floor proves trial health
    3. The fallback is rejected if the trial fails
    4. The fallback remains admissible because it is known good despite version 5

    Answer: The fallback is rejected if the trial fails

    An anti-rollback floor can exclude the known-good fallback. Coordinate irreversible policy changes with the update and recovery design. The question does not grant another compatible image or a mechanism to lower the floor afterward.

  28. 28.Versions are numeric major.minor pairs. A sorter compares their printed strings lexicographically and orders "3.10" below "3.9". What ordering should the specified numeric policy give?

    Show answer and explanation
    1. They are the same version
    2. 3.10 is newer than 3.9
    3. Neither version is parseable as a pair of integers
    4. 3.9 is newer than 3.10

    Answer: 3.10 is newer than 3.9

    Compare the numeric components: major three equals three, and minor ten exceeds nine. A string ordering is not the stated version ordering. Security counters and compatibility constraints may be distinct from display versions as well.

  29. 29.Update metadata expires at a stated UTC instant. A device has no trusted time source and accepts a network-supplied clock from the same untrusted server. What validation premise is missing?

    Show answer and explanation
    1. The assumption that signature validity implies current freshness
    2. Only the timestamp syntax
    3. A guarantee that a server supplying metadata must report honest time
    4. A trustworthy basis for the expiry comparison

    Answer: A trustworthy basis for the expiry comparison

    An authenticated expiration field is useful only with an appropriate time/trust model. An attacker-controlled clock can undermine the comparison. A system without reliable time needs an explicitly justified freshness strategy rather than an assumed current clock.

  30. 30.A production bootloader enforces signatures except when an ordinary unauthenticated UART command requests maintenance mode. What authorization gap exists?

    Show answer and explanation
    1. A guarantee that maintenance traffic cannot reach production devices
    2. Only the maintenance command's text encoding
    3. The signature algorithm becomes stronger whenever the bypass is used
    4. The bypass is reachable without the required trust check

    Answer: The bypass is reachable without the required trust check

    A privileged bypass can defeat the intended boot policy if an attacker can invoke it. Define and enforce the authorization and physical or logical conditions for recovery/maintenance entry. The existence of a signature check on another path is insufficient.

  31. 31.A trial image has three allowed attempts. The bootloader jumps to it before durably decrementing the attempt count. The image resets immediately each time. What loop can result?

    Show answer and explanation
    1. Repeated trials with an unspent durable budget
    2. A spent attempt recorded even though the count write never completed
    3. A permanently confirmed candidate after its first immediate reset
    4. Exactly three jumps

    Answer: Repeated trials with an unspent durable budget

    If reset happens before the budget change is durable, recovery can see the old count on every boot. The attempt and recovery protocol must define its persistent transition around launch and interruption points.

  32. 32.A bootloader durably decrements an attempt count before jumping to a trial image. Power fails before the jump actually occurs. What accounting outcome is possible?

    Show answer and explanation
    1. An attempt is consumed without executing the image
    2. The fallback image's signature must become invalid
    3. The durable count automatically restores itself on reboot
    4. The candidate must already have confirmed itself

    Answer: An attempt is consumed without executing the image

    Ordering the count before launch prevents endless uncounted failed launches but can spend an attempt on a pre-launch power loss. The availability policy must account for this permitted interruption rather than assume perfect knowledge of execution progress.

  33. 33.A delayed health message from trial boot ID A arrives during a later trial boot ID B. Firmware confirms whichever image is current without matching identity. What invalid confirmation can occur?

    Show answer and explanation
    1. Only A is confirmed
    2. Old health evidence confirms the new trial
    3. Only a lost optional message that cannot alter confirmation state
    4. An automatic rejection caused by a boot-ID comparison the code never makes

    Answer: Old health evidence confirms the new trial

    Confirmation evidence must be associated with the relevant image and boot/operation identity. A prior successful instance does not establish the health of a later trial. Identity, freshness, and the health predicate belong in the protocol.

  34. 34.A candidate confirms itself immediately after its main function starts. The required health check includes initializing a sensor bus later in startup. What property has not been established at confirmation?

    Show answer and explanation
    1. The required sensor-bus health condition
    2. That the bootloader successfully transferred control
    3. Only the number of source files in the candidate
    4. That at least one application instruction executed

    Answer: The required sensor-bus health condition

    Reaching an entry point is weaker than satisfying the stated health predicate. Confirm only after the relevant required checks complete under the update policy. Otherwise a later startup failure can leave an unhealthy image marked permanent.

  35. 35.A trial firmware irreversibly migrates configuration from schema 1 to schema 2. The fallback accepts only schema 1. The trial then fails before confirmation. What rollback condition was broken?

    Show answer and explanation
    1. Only code authentication
    2. The assumption that schema numbers must be equal to firmware versions
    3. Fallback compatibility with persistent data
    4. A guarantee that restoring code automatically restores every data format

    Answer: Fallback compatibility with persistent data

    Rollback covers the executable and the persistent state it must interpret. Destructive migration can make an otherwise valid fallback unusable. Use a compatible, reversible, staged, or otherwise justified migration policy for all permitted recovery states.

  36. 36.A migration writes a new calibration value and separately sets a migrated flag. The flag is written first; power fails before the value. On reboot the flag suppresses migration. What state is possible?

    Show answer and explanation
    1. Only a harmless extra migration on the next boot
    2. Guaranteed new calibration because the flag is durable
    3. Automatic regeneration of the missing value from the flag
    4. Old calibration incorrectly treated as migrated

    Answer: Old calibration incorrectly treated as migrated

    The commit indicator got ahead of its required data. Recovery sees completion although the transformation is incomplete. Atomic or recoverable state transitions must tie the flag to the actual data validity under the storage contract.

  37. 37.A migration adds 10 to a stored offset, then may reset before recording completion. Recovery blindly repeats the addition. What property is absent from this transformation as used?

    Show answer and explanation
    1. A requirement that every migration use floating point
    2. Idempotence across replay
    3. The existence of a stored offset
    4. Deterministic integer addition

    Answer: Idempotence across replay

    Applying the same addition twice changes the result twice. A replay-safe migration needs an appropriate identity, atomic commit, source-derived assignment, or other protocol that prevents duplicate effects after interruption.

  38. 38.A fallback parses configuration by ignoring unknown fields, but the new firmware changed the meaning of an existing field without changing its name. What compatibility claim is unsupported?

    Show answer and explanation
    1. Only parsing the same syntax
    2. Semantic backward compatibility
    3. A guarantee that an unchanged field name preserves its old meaning
    4. Only whether the config text parses under both versions

    Answer: Semantic backward compatibility

    Syntactic tolerance for extra fields does not preserve the meaning of a field both versions already use. Validate semantic compatibility and migration behavior for the versions that may run, including rollback.

  39. 39.An installer restores a full factory settings snapshot whenever it rolls back code. The device has acquired valid calibration since that snapshot. What data consequence can rollback have?

    Show answer and explanation
    1. Only a change to the application's executable bytes
    2. Loss of newer calibration unrelated to the bad code
    3. Automatic preservation of every later setting
    4. A guarantee that factory settings are correct for every field unit

    Answer: Loss of newer calibration unrelated to the bad code

    Code rollback and data rollback need separate policies. Replacing current settings with an old snapshot can discard valid independent state. Define what is version-coupled and how to preserve or reconcile the rest.

  40. 40.Both image slots are valid, but the only slot-selection record is unreadable and there is no documented recovery rule. What remains undefined?

    Show answer and explanation
    1. The numerical capacity of either slot
    2. A guarantee that valid signatures uniquely identify the active slot
    3. Which image to select or how to enter recovery
    4. Whether the slot payload bytes exist

    Answer: Which image to select or how to enter recovery

    Valid images do not by themselves define selection after metadata loss. The boot design needs explicit recovery behavior for missing or conflicting control state, consistent with version policy, compatibility, and available trusted paths.

  41. 41.A reset restarts the CPU but leaves a DMA engine running under the supplied reset-domain contract. Early startup reuses the old DMA buffer. What hazard can survive the reset?

    Show answer and explanation
    1. The buffer becomes immutable until the next full power cycle
    2. The previous transfer writes into newly reused storage
    3. Every bus master is stopped
    4. Only the CPU's local variables can change

    Answer: The previous transfer writes into newly reused storage

    Recovery must account for all participants in the actual reset domain. Quiesce, reset, or reinitialize surviving engines before reusing their resources. Resetting software control flow does not automatically establish device ownership boundaries.

  42. 42.A controller sends "dispense one unit" to an external actuator, then resets before saving its acknowledgement. Retrying after reboot can repeat an already completed action. What must recovery resolve?

    Show answer and explanation
    1. Only whether the outgoing packet passed its local checksum
    2. The assumption that every missing acknowledgement means no effect
    3. A guarantee that CPU reset undoes actuator motion
    4. Whether the externally visible action already occurred

    Answer: Whether the externally visible action already occurred

    External effects can survive a local reset and may occur before their acknowledgements are recorded. A suitable operation identity, deduplication/status protocol, or explicitly defined uncertainty handling is needed to avoid unsafe blind replay.

  43. 43.A flash-write API returns "queued" before the device reports durable completion. Firmware reports update success and permits power removal immediately. What evidence is missing?

    Show answer and explanation
    1. Only the requested image length
    2. A guarantee that all queued writes persist across every power loss
    3. Durable completion of the required writes
    4. Only successful admission to the software queue

    Answer: Durable completion of the required writes

    An enqueue acknowledgement is not a durability acknowledgement under this contract. The success boundary must correspond to the persistence and validation the update protocol requires before power removal or activation.

  44. 44.A health supervisor stores one heartbeat bit per task. It refreshes the watchdog whenever all bits are one, but never clears bits between supervision windows. What can stale bits conceal?

    Show answer and explanation
    1. A task stops after reporting in an earlier window
    2. A fresh report from each task in the current window
    3. Only a task that never reported
    4. A complete current-window health set proved by historic set bits

    Answer: A task stops after reporting in an earlier window

    Evidence must be fresh for the window being judged. Persistent old heartbeats can satisfy the test after a task hangs. Define generation/window association and a progress predicate that matches the intended fault detection.

  45. 45.Five required tasks must report health once per window. A supervisor checks only that it received five reports, allowing duplicates from one task. What requirement can it miss?

    Show answer and explanation
    1. Only the order in which the reports were logged
    2. A guarantee that duplicate reports count as different task identities
    3. Only report count
    4. Participation by each distinct required task

    Answer: Participation by each distinct required task

    A count of messages is not a set of required participants. Track the appropriate task identities and fresh window evidence. Five reports from one task do not show that the other four progressed.

  46. 46.A flash erase can take up to 80 ms, and a valid watchdog service window ends at 60 ms. The system cannot service it during erase under this model. What does a measured typical erase of 40 ms establish?

    Show answer and explanation
    1. A 20 ms guaranteed margin even for an allowed 80 ms erase
    2. A guaranteed 40 ms upper bound from the one typical observation
    3. No worst-case fit is proved
    4. A watchdog service opportunity that the stated model expressly excludes

    Answer: No worst-case fit is proved

    The allowed erase duration includes values beyond the service deadline. A typical measurement is insufficient for this worst-case requirement. The update and supervision design must use justified bounds and an allowed servicing or recovery strategy.

  47. 47.An out-of-memory fault handler attempts to allocate a large heap buffer for its crash report. What failure-path dependency should be removed or explicitly bounded?

    Show answer and explanation
    1. A requirement to record which operation failed
    2. Any access to a preallocated bounded report area
    3. The use of a fixed-size fault code
    4. Dependence on the allocator that just failed

    Answer: Dependence on the allocator that just failed

    A reporter that requires unavailable heap can fail recursively or lose evidence. A bounded preallocated path can reduce that dependency, but all fault-path stack, storage, and peripheral operations still need suitable contracts.

  48. 48.A crash record stores a payload and checksum, then a final commit field. Recovery ignores the commit field and accepts any checksum match. What protocol condition did it discard?

    Show answer and explanation
    1. The record's defined commitment state
    2. The numerical checksum comparison itself
    3. A guarantee that checksum equality always means a completed transaction
    4. Only the record's human-readable formatting

    Answer: The record's defined commitment state

    If the format requires a committed state, checksum agreement alone is not that state. Partial or stale records can satisfy weaker checks. Recovery should enforce the complete validity predicate, including its integrity and transaction conditions.

  49. 49.A supplied reset-cause register clears on read. Startup logging reads it, then a policy module reads it again to choose recovery. What should the interface preserve?

    Show answer and explanation
    1. One captured cause value for both consumers
    2. A rule that all reset registers are ordinary immutable RAM
    3. Only the policy module's function name
    4. Two guaranteed identical fresh hardware reads

    Answer: One captured cause value for both consumers

    The first read consumes the register's latched state under this contract. Capture it once and distribute that snapshot to the consumers that need it. Do not assume later reads reproduce side-effecting hardware state.

  50. 50.A hardware-in-the-loop test commands an output high but checks only the driver's cached requested value. A broken pin connection would leave that value unchanged. What observation is missing?

    Show answer and explanation
    1. Only API acceptance
    2. A second comparison against the same cached variable
    3. A guarantee that a cached request equals the external voltage
    4. Evidence from the physical output path

    Answer: Evidence from the physical output path

    The claimed behavior is at a physical boundary, while the assertion observes only software intent. A suitable independent observation at the relevant boundary is needed to detect the stated wiring failure; one internal value cannot establish it.

  51. 51.An expected-packet generator and production encoder both call the same buggy length helper. Tests compare their matching outputs. What oracle weakness remains?

    Show answer and explanation
    1. An independent oracle
    2. Only a timing difference unrelated to the generated length field
    3. A defect shared with the oracle
    4. A proof of external format conformance from matching internal calculations

    Answer: A defect shared with the oracle

    A test oracle should have suitable independence from the behavior being checked. Reusing the faulty calculation can make expected and actual results agree on the same wrong packet. Include independent format-derived cases and checks at the relevant boundary.

  52. 52.A simulated storage device always completes writes atomically, but the real device permits interrupted partial programming. What update behavior has that simulator not exercised?

    Show answer and explanation
    1. Recovery from partial programming
    2. A guarantee that atomic simulation proves physical interruption safety
    3. The code path for a completely successful write
    4. The order in which the test called the API

    Answer: Recovery from partial programming

    The simulation's fault model excludes a real permitted failure state. Passing tests in that model cannot establish behavior for the omitted state. Extend the model appropriately and obtain relevant target evidence without overstating either kind of test.

  53. 53.An encoder and decoder both swap the same two fields incorrectly. Every encode-then-decode round trip returns the original object. What does this round-trip property fail to prove?

    Show answer and explanation
    1. That the returned objects match the tested original objects
    2. External wire-format conformance
    3. That a decoder can reverse those particular encoder outputs
    4. Tested internal round-trip consistency

    Answer: External wire-format conformance

    Mutually compensating defects can preserve a round trip while violating interoperability. Test the external representation against an independent format oracle and suitable known byte sequences, not solely against the inverse implementation.

  54. 54.A binary format defines a big-endian 16-bit value followed by a one-byte tag. For value 0x1234 and tag 0x56, which independently specified fixture is correct?

    Show answer and explanation
    1. [0x34,0x12,0x56]
    2. [0x12,0x56,0x34]
    3. [0x12,0x34,0x56]
    4. [0x56,0x12,0x34]

    Answer: [0x12,0x34,0x56]

    Big-endian places the value's high byte first, then its low byte. The separately specified tag follows both, giving 12,34,56. A hand-derived fixture of this kind tests the format boundary without calling the encoder to create its own expected result.

  55. 55.A fault-injection test claims to verify recovery from storage errors. The injected error branch is never reached, yet the test asserts only that the final boot succeeded. What essential test evidence is missing?

    Show answer and explanation
    1. Only the presence of the intended fault’s name in the test title
    2. Only the duration of a run in which the fault branch was never reached
    3. Only a normal-path boot
    4. Evidence that the intended fault occurred

    Answer: Evidence that the intended fault occurred

    A passing result cannot demonstrate recovery from an event that did not occur. Assert fault activation and the relevant post-fault state or behavior, with an oracle that can distinguish the intended recovery from a normal successful path.

  56. 56.An update model consists of seven atomic persistent transitions. A test inserts one reset before the first transition or after any completed transition, including after the seventh. How many distinct prefix cut points exist?

    Show answer and explanation
    1. 14
    2. 49
    3. 7
    4. 8

    Answer: 8

    A sequence of seven transitions has prefixes of lengths zero through seven, giving eight cut points. This covers only the stated atomic-prefix model; intra-transition tearing, different interleavings, and hardware faults require additional models if permitted.

  57. 57.A scheduler test explores one order of two callbacks and passes. The contract permits either order, and their shared-state effects are not proven commutative. What remains untested?

    Show answer and explanation
    1. The assumption that callback order is always irrelevant
    2. A guarantee that deterministic execution covers all schedules
    3. Only the first callback’s presence
    4. The other permitted callback order

    Answer: The other permitted callback order

    One schedule is one trace. If another permitted order can produce different state, test or reason about it as well. A reproducible deterministic scheduler can help enumerate relevant interleavings, but its explored set must match the claim.

  58. 58.A randomized firmware test fails only under one event sequence. The report saves neither the random seed nor the generated sequence. What makes diagnosis harder?

    Show answer and explanation
    1. The fact that a test returned a failing status
    2. Reproducing the exact failing inputs and schedule
    3. A guarantee that random failures can never be replayed
    4. The use of a fixed firmware version identifier

    Answer: Reproducing the exact failing inputs and schedule

    Record sufficient inputs, seed, scheduler decisions, and artifact identity to replay the case under the test's model. A seed alone may be insufficient when other nondeterministic sources affect the sequence.

  59. 59.A reset test restarts the application object but keeps every mocked peripheral in its freshly initialized state. The real reset preserves a pending peripheral transaction. What recovery condition is missing?

    Show answer and explanation
    1. A requirement that all mocks use the same class name
    2. A guarantee that software test reset matches every hardware reset domain
    3. The permitted retained peripheral state
    4. Only reconstruction of ordinary application objects

    Answer: The permitted retained peripheral state

    A reset model must describe which state is cleared, retained, or independently active. Reinitializing all mocks can omit hazards from surviving hardware transactions. Test the relevant reset-domain states and corroborate target behavior where needed.

  60. 60.A parser fuzz property says every accepted frame's declared payload lies wholly within the supplied byte array. What kind of property is this?

    Show answer and explanation
    1. An exhaustive guarantee about the physical communication channel
    2. An obligation to accept every generated input regardless of its validity
    3. A bounds invariant over accepted inputs
    4. An authorization invariant

    Answer: A bounds invariant over accepted inputs

    The property constrains the relationship between accepted metadata and available storage. It does not alone establish authorization, semantic validity, or electrical behavior. Strong fuzzing combines relevant invariants with suitable generators, coverage, and failure oracles.

  61. 61.A malformed command must be rejected without changing device configuration. A test asserts only the returned error code. What additional observable should be checked?

    Show answer and explanation
    1. Only the input length
    2. Only the number of bytes in the input
    3. Configuration remains unchanged
    4. A guarantee that every error return implies no side effects

    Answer: Configuration remains unchanged

    Returning an error does not establish absence of partial mutation. Compare the relevant state and externally visible effects around the rejected operation, using a clear contract for any permitted diagnostics or counters.

  62. 62.A test harness detects a timeout but leaves the worker thread running. The next test reuses the same mock storage. What isolation failure can occur?

    Show answer and explanation
    1. The mock storage becomes read-only automatically
    2. Timeout detection necessarily terminates every worker
    3. Late writes contaminate the next test
    4. Only the test order's printed numbering changes

    Answer: Late writes contaminate the next test

    The previous operation can still mutate shared resources after the harness declares failure. Define cancellation or quiescence and cleanup before reuse. A timeout is an observation, not necessarily completion or termination.

  63. 63.A driver retries at most twice after the initial attempt. A fake returns failures twice and then success. How many device calls should that successful trace contain?

    Show answer and explanation
    1. 3
    2. 2
    3. 4
    4. 1

    Answer: 3

    There is one initial call plus two retries. The supplied fake succeeds on the third call. Wording about attempts versus retries must be explicit so tests enforce the intended total work and external effects.

  64. 64.A test clock advances only when the harness requests it. Production code waits on that clock, but the test waits on real wall time without advancing the fake. What test behavior is possible?

    Show answer and explanation
    1. The fake clock's integer width automatically grows
    2. The modeled timeout never becomes due
    3. The production deadline is proved correct by any real-time wait
    4. The fake necessarily follows wall time automatically

    Answer: The modeled timeout never becomes due

    A controlled clock needs an explicit progression policy. Waiting in another time domain does not advance it unless the harness defines that coupling. Coordinate scheduled events, clock changes, and assertions under the intended model.

  65. 65.A device deadline is at virtual time 20. The supplied rule declares failure when now≥20 and success is processed only before that deadline. A completion arrives at exactly 20. What expected result follows?

    Show answer and explanation
    1. Success because equality always belongs to completion
    2. Timeout under the supplied boundary rule
    3. Both outcomes must be committed
    4. Undefined solely because the two timestamps are equal

    Answer: Timeout under the supplied boundary rule

    The question explicitly assigns equality to expiry and permits success only earlier. Test boundary cases against the defined contract, including event ordering, rather than relying on a general convention that was never specified.

  66. 66.A test verifies exactly one cleanup callback on successful completion. It never exercises cancellation, timeout, or partial initialization. What coverage gap remains?

    Show answer and explanation
    1. Only the success path
    2. The formatting of callback names in logs
    3. Cleanup ownership on the other terminal paths
    4. A guarantee that one successful path covers all error paths

    Answer: Cleanup ownership on the other terminal paths

    Resource release and terminal transitions often differ on error paths. Exercise the relevant partial states and outcomes, verifying both no leak and no duplicate cleanup under their actual ownership contracts.

  67. 67.A test passes while checking only that a reset happened. The requirement says reset must occur within 50 ms of a detected fault. What required evidence is absent?

    Show answer and explanation
    1. Only the reset-cause label
    2. The mere existence of any reset
    3. A guarantee that eventual reset implies a 50 ms deadline
    4. A bounded fault-to-reset interval

    Answer: A bounded fault-to-reset interval

    Event occurrence and event timing are distinct properties. Observe the relevant start and end boundaries in an appropriate time domain and account for measurement uncertainty. Eventual success alone does not meet a finite response-time bound.

  68. 68.An instrumentation build adds 10 μs to every interrupt, changing event overlap. Its trace never reproduces a release-build race. What conclusion is justified?

    Show answer and explanation
    1. A bound showing the added ISR time cannot change event overlap
    2. Proof of release race freedom
    3. Evidence about the instrumented run
    4. A proof that the original failing trace was physically impossible

    Answer: Evidence about the instrumented run

    Observation can perturb timing and execution. Record the tested artifact and instrumentation effects, and use methods appropriate to the suspected race. A non-reproduction in one altered build does not establish absence in the deployed build.

  69. 69.A simulator gives every memory access identical one-cycle latency. Target execution can stall on flash and shared-bus contention. What timing claim is unsupported by simulator success alone?

    Show answer and explanation
    1. That the simulator used its configured one-cycle rule
    2. The possibility of testing functional state transitions in simulation
    3. Only functional state transitions
    4. That target worst-case timing meets the deadline

    Answer: That target worst-case timing meets the deadline

    A timing result depends on the model's covered costs and interference. A simplified functional simulator may be useful while omitting target timing hazards. Obtain a justified target bound or relevant evidence before extending the claim.

  70. 70.A coverage report shows every source line executed. A decision A&&B was tested only with both true and with A false. What evaluation case is missing?

    Show answer and explanation
    1. A true and B false
    2. A statement that every input combination has been tested
    3. Both true
    4. A false and B true as an evaluation of B after short circuit

    Answer: A true and B false

    Line coverage does not imply every decision outcome or condition interaction was exercised. With short-circuit evaluation, B may not even run when A is false. Select coverage and requirement evidence appropriate to the logic being assessed.

  71. 71.A mutation changes an update validity check from AND to OR. Every test still passes. What does that surviving mutation suggest?

    Show answer and explanation
    1. A proof that the original implementation must be wrong
    2. Universal mutant equivalence
    3. Possible insufficient test sensitivity
    4. A formatting defect whose repair alone distinguishes AND from OR

    Answer: Possible insufficient test sensitivity

    A surviving mutation is a prompt to inspect test sensitivity and possible equivalence. Here, add or review cases that distinguish joint validity requirements from either condition alone. Mutation results guide investigation rather than prove correctness or defect by themselves.

  72. 72.A boundary checker accepts lengths 0 through 64 inclusive. Which small test set directly brackets both ends of this specified interval?

    Show answer and explanation
    1. 64 only
    2. 32 repeated six times
    3. 1,2,3 only
    4. −1,0,1,63,64,65 in the input domain that can express them

    Answer: −1,0,1,63,64,65 in the input domain that can express them

    The listed values cover just below, at, and just inside both boundaries. If the encoded input domain is unsigned or rejects negative syntax earlier, test that representation and parsing layer explicitly rather than inventing an impossible runtime value.

  73. 73.A test uses an unbounded wait for a simulated completion that a bug may never issue. What harness safeguard is needed?

    Show answer and explanation
    1. A bounded failure path with diagnostic evidence
    2. Removal of all completion assertions
    3. An unbounded timeout retry
    4. Only a larger payload buffer

    Answer: A bounded failure path with diagnostic evidence

    A broken completion path should fail the test in bounded time instead of hanging the suite. Use a suitable test deadline and cleanup strategy, while preserving enough evidence to distinguish harness problems from the behavior under test.

  74. 74.A generated test finds a failing 4 KiB packet. A reducer produces a 12-byte packet that still fails the same invariant. Why retain the reduced case?

    Show answer and explanation
    1. It removes the need to know which invariant failed
    2. It makes the original failure officially unreachable
    3. It proves every other packet is correct
    4. It isolates a smaller reproducible regression input

    Answer: It isolates a smaller reproducible regression input

    A minimized counterexample can make the defect easier to reason about and maintain as a regression. Preserve relevant artifact and model details too. Reduction improves diagnosis; it does not establish coverage of all remaining inputs.

  75. 75.A CRC unit test feeds all-zero bytes and compares against zero without specifying initialization, reflection, or final XOR. What test specification is incomplete?

    Show answer and explanation
    1. The complete CRC parameterization
    2. Only a requirement that the test input contain at least one nonzero byte
    3. A universal rule that zero payload always has zero CRC
    4. Only the payload length

    Answer: The complete CRC parameterization

    Different CRC parameter sets can produce different results for identical payloads. Define polynomial convention, initialization, reflection, final transformation, and relevant framing. An unspecified "CRC" label does not define an independent expected value.

  76. 76.An integrity test flips each individual bit of a 16-byte record once, with no other mutations. How many single-bit mutations does it exercise?

    Show answer and explanation
    1. 16
    2. 128
    3. 32
    4. 256

    Answer: 128

    Sixteen bytes contain 128 bits at eight bits per byte. This campaign covers those 128 single-bit changes only. It does not enumerate multi-bit corruption, record reordering, stale replay, or every interrupted-write pattern.

  77. 77.A fault model permits reset only between three atomic steps A,B,C. The tests reset only after B. Which set adds all remaining prefix cut points in that model?

    Show answer and explanation
    1. Only before A
    2. Before A, after A, and after C
    3. Every nanosecond during B as the only missing prefix
    4. Only after A

    Answer: Before A, after A, and after C

    The four prefixes are length zero, one, two, and three. After B covers length two, leaving the other three. Intra-step faults are outside this particular atomic model and need separate coverage if the real contract permits them.

  78. 78.A study supplies an approximate 95% zero-failure upper rate bound of 3/N for independent representative trials. With N=3,000 and no failures, what bound follows under those assumptions?

    Show answer and explanation
    1. Zero forever
    2. 0.001 per trial
    3. 0.01 per trial
    4. 3 per trial

    Answer: 0.001 per trial

    Using the supplied approximation gives 3/3,000=0.001. This is a conditional statistical bound, not a proof of zero risk. Independence and representativeness of the trials are premises rather than consequences of observing no failures.

  79. 79.A power trace is sampled every 100 μs. Reset-triggering dips can last 5 μs at arbitrary phase, and no analog minimum detector is used. What does a clean sampled trace fail to exclude?

    Show answer and explanation
    1. Short dips between samples
    2. Only a harmless change in the trace file’s timestamp formatting
    3. A proof that every unobserved voltage met the threshold
    4. A continuous 1 ms dip

    Answer: Short dips between samples

    A narrow event can occur entirely between observations. Choose measurement bandwidth, triggering, and observation points appropriate to the phenomenon. An absence in a sparsely sampled trace is not evidence that every intervening voltage met its limit.

  80. 80.Firmware passes a nominal-temperature boot test. Its oscillator startup and flash timing contracts vary over the supported temperature and voltage range. What qualification evidence remains necessary?

    Show answer and explanation
    1. Behavior at relevant permitted corners and transitions
    2. A guarantee that one nominal pass covers every rated operating condition
    3. The exact spelling of the board's nickname
    4. Only another nominal run

    Answer: Behavior at relevant permitted corners and transitions

    A single operating point does not cover behavior whose bounds depend on environmental conditions. Select relevant corners and transitions from the actual requirements and device contracts, and use suitable evidence for their functional and timing claims.

  81. 81.Host tests assume plain char is signed; a target build uses unsigned plain char. Parser behavior depends on char value<0 for bytes above 0x7F. What portability issue must the tests expose?

    Show answer and explanation
    1. Only the transport's packet arrival rate
    2. Only packet arrival rate
    3. A guarantee that source-identical builds have identical integer ranges
    4. Implementation-dependent plain-char signedness

    Answer: Implementation-dependent plain-char signedness

    Plain-char signedness is implementation-defined. Code handling raw bytes should use types and conversions that express its intended domain, and tests should cover the actual target model. A host's default does not establish the target's behavior.

  82. 82.A release test passes with one compiler and optimization setting. Source still contains a reachable signed-overflow expression under permitted inputs. What can the pass establish about all other builds?

    Show answer and explanation
    1. That passing once changes undefined behavior into a portable contract
    2. That every compiler must preserve the observed wrap
    3. No general defined-behavior guarantee for that expression
    4. That changing optimization cannot affect the result

    Answer: No general defined-behavior guarantee for that expression

    Observed behavior does not define a C expression that violates its language rules. Eliminate or properly constrain the overflow and verify relevant build configurations. A compiler-specific pass cannot justify all permitted executions or toolchains.

  83. 83.A field crash report identifies image digest H1. Engineers symbolize its addresses with a map from a different build H2. What evidence mismatch can corrupt diagnosis?

    Show answer and explanation
    1. A valid mapping guaranteed by membership in the same source repository
    2. Only the checksum of the human-readable report text
    3. The wrong address-to-symbol mapping
    4. Only the release title

    Answer: The wrong address-to-symbol mapping

    Compiler, layout, options, and source changes can alter address mappings. Match symbols and layout artifacts to the actual deployed image identity. Similar release names do not establish binary correspondence.

  84. 84.A fault log stores only a program-counter address. The firmware supports relocation and the loaded base address can change. What context may be required for correct symbolization?

    Show answer and explanation
    1. Only the device's current battery percentage
    2. Only the decimal formatting of the address
    3. The actual image identity and load-address mapping
    4. A guarantee that the same raw address names the same instruction in every load

    Answer: The actual image identity and load-address mapping

    Relocation and image changes affect the mapping from runtime addresses to symbols. Preserve the relevant image and load context alongside valid fault evidence. Raw numerical addresses alone can be ambiguous across builds or placements.

  85. 85.A hypothetical boot format requires its initial stack pointer inside RAM [0x20000000,0x20010000), aligned to eight bytes. A candidate specifies 0x20010000. Which stated condition fails?

    Show answer and explanation
    1. Neither condition; an exclusive upper bound is included
    2. Both alignment and the RAM range
    3. The RAM range; alignment passes
    4. Alignment only; the address is inside the stated interval

    Answer: The RAM range; alignment passes

    The address equals the exclusive RAM upper bound, so it is outside this supplied interval. It is divisible by eight and meets alignment. This is the question’s explicit format contract; some real formats may permit an initial top-of-stack boundary under different rules.

  86. 86.A bootloader jumps to an application's entry point while an enabled pending interrupt still targets the bootloader's vector table. The application assumes its own handlers are active. What handoff state needs coordination?

    Show answer and explanation
    1. Only the number of image slots
    2. Interrupt/vector ownership and pending state
    3. Only the entry-point address
    4. A guarantee that a branch instruction resets every interrupt controller

    Answer: Interrupt/vector ownership and pending state

    A transfer of instruction control is not necessarily a reset of the execution environment. The handoff contract must cover vectors, masks, pending sources, stack and other relevant state for the target and application assumptions.

  87. 87.A bootloader leaves a peripheral clock at 8 MHz. The application assumes reset-default 16 MHz and does not reconfigure or discover it. Its timer divisor is fixed. What integration contract is broken?

    Show answer and explanation
    1. The application's assumed clock state at entry
    2. A guarantee that every jump restores reset clock defaults
    3. Only the application's signature algorithm
    4. The numerical representation of the timer's name

    Answer: The application's assumed clock state at entry

    The application and bootloader must agree on the environment at handoff or the application must establish its needed state. A jump need not restore reset defaults. Fixed divisors then produce timings according to the actual source frequency.

  88. 88.A platform permits instruction-cache entries for a RAM code region. Firmware overwrites that region and executes it without the required code-publication maintenance. What execution risk exists?

    Show answer and explanation
    1. Only the source file's newline style can change execution
    2. Only source-file formatting
    3. A guarantee that address equality implies instruction freshness
    4. Stale instructions can be fetched under this platform contract

    Answer: Stale instructions can be fetched under this platform contract

    Updated code needs the platform's defined instruction-coherency and execution-ordering procedure. Data visibility and instruction-fetch visibility are not universally identical. The question explicitly assumes maintenance is required on this platform.

  89. 89.A firmware package is encrypted for confidentiality but its encryption mode supplies no authenticity, and no separate authentication is checked. What property is unestablished?

    Show answer and explanation
    1. The packet's total transmission duration
    2. That the package bytes are represented in some encrypted form
    3. Authorized origin and integrity of the accepted package
    4. A guarantee that secrecy alone prevents all modifications

    Answer: Authorized origin and integrity of the accepted package

    Confidentiality alone is not an authenticity or integrity claim. Use and verify an appropriate authenticated design for the relevant trust policy, including metadata and context. Encryption success by itself does not authorize installation.

  90. 90.An update service records "version 12 sent" when upload finishes. The device can reject or roll back the image. What does that server event fail to establish?

    Show answer and explanation
    1. A guarantee that transfer completion implies confirmed activation
    2. Only a transfer timestamp
    3. Only the server's local log ordering
    4. Version 12 is the image actually running on the device

    Answer: Version 12 is the image actually running on the device

    Delivery, validation, trial execution, confirmation, and current runtime state are distinct boundaries. Verify the relevant device-reported identity and state under a trustworthy protocol rather than equating a send event with successful operation.

  91. 91.A rollout counts a device as healthy after it accepts a download, while the requirement is successful confirmed operation for an hour. What rollout predicate is too weak?

    Show answer and explanation
    1. Evidence that the relevant operational health checks passed
    2. A checked identity of the running candidate
    3. Confirmed operation for the required hour
    4. Download acceptance

    Answer: Download acceptance

    The success predicate must match the intended operational boundary. Accepting a download can precede validation failure, a boot loop, or later rollback. An acceptance metric alone cannot establish the specified hour of healthy confirmed operation.

  92. 92.A fleet report calculates success using only devices that reconnect. A failing image prevents some devices from reconnecting. What selection bias can inflate reported success?

    Show answer and explanation
    1. Excluding the devices whose failure suppresses reporting
    2. Including all targeted devices
    3. Recording missing reports as an unresolved outcome
    4. Separating downloaded, confirmed, failed, and unknown states

    Answer: Excluding the devices whose failure suppresses reporting

    The reporting mechanism depends on the outcome: failures can disappear from the observed cohort. Keep the intended population and unknown/nonreporting states visible, and use appropriate independent recovery evidence. Responders alone may not represent the whole rollout.

  93. 93.A boot loop resets before networking initializes. All crash reporting is scheduled after network setup. What diagnostic gap follows?

    Show answer and explanation
    1. Only successful boots can have any persistent evidence
    2. A network timeout necessarily stores the fault cause
    3. The failing boots can produce no remote report
    4. Only a failed upload attempt

    Answer: The failing boots can produce no remote report

    A reporting path after the failure point may never run. A bounded earlier capture and appropriate persistent or recovery-readable evidence can help. Distinguish absence of telemetry from proof that no failure occurred.

  94. 94.A candidate download is cancelled. Cleanup erases the active confirmed slot instead of the separate staging slot. What ownership boundary did cleanup violate?

    Show answer and explanation
    1. Required cancellation cleanup
    2. Cleanup erased an asset outside its operation ownership
    3. A permitted conversion of the active confirmed image into disposable scratch
    4. Only a stale percentage on the client’s download progress display

    Answer: Cleanup erased an asset outside its operation ownership

    Cleanup must release only the resources owned by that operation under the update protocol. Cancelling preparation must not destroy the valid execution or recovery basis. Test failure and cancellation paths against explicit asset identities and bounds.

  95. 95.A service atomically updates a manifest to revision R2. Its running reader keeps a cache keyed only by the fixed manifest name and never revalidates it. What can clients continue receiving?

    Show answer and explanation
    1. A guarantee of R2 payload identity from the fixed cache-key name
    2. Previously cached R1 contents
    3. Only a transport error, because serving an older cache entry is impossible
    4. Necessarily the R2 payload

    Answer: Previously cached R1 contents

    Atomic publication establishes a storage transition, not automatic reader freshness. The reader needs an appropriate version/revalidation protocol. Verify the actually served identity and payload as well as the publisher's committed state.

  96. 96.An update layout reserves 256 KiB for active code, 256 KiB for a candidate, 32 KiB for immutable recovery, and 16 KiB for metadata. What total reservation follows, excluding alignment overhead?

    Show answer and explanation
    1. 528 KiB
    2. 512 KiB
    3. 560 KiB
    4. 544 KiB

    Answer: 560 KiB

    The reservations sum to 256+256+32+16=560 KiB. A storage plan that counts only the two application images misses recovery and metadata. Real erase boundaries, padding, and format overhead may add further requirements.

  97. 97.A recovery link carries 8,000 payload bytes per second after framing. A 40,000-byte image must be received before a separate 2-second verification step. Ignoring other work, what minimum serial duration follows?

    Show answer and explanation
    1. 7 seconds
    2. 10 seconds
    3. 2 seconds
    4. 5 seconds

    Answer: 7 seconds

    Transfer takes 40,000/8,000=5 seconds. Verification occurs afterward and adds two seconds, so the serial lower bound is seven seconds. This is not a worst-case guarantee without bounds on retries, stalls, and other operations.

  98. 98.A model permits transfer and flash programming to overlap perfectly after startup. Their sustained rates are 10 KiB/s and 6 KiB/s, with sufficient buffers. What upper bound governs long-run completed-image throughput?

    Show answer and explanation
    1. 6 KiB/s
    2. 16 KiB/s
    3. 60 KiB/s
    4. 10 KiB/s

    Answer: 6 KiB/s

    Every completed byte must pass both stages, so the slower sustained stage limits long-run throughput to at most 6 KiB/s. Startup, draining, contention, and verification can reduce realized throughput further; rates do not add for a serial pipeline.

  99. 99.A host fault model exhaustively checks every state it defines. The real flash permits an interrupted-write state absent from that model. What is the valid scope of the exhaustive result?

    Show answer and explanation
    1. Every possible physical device behavior
    2. The modeled state space and assumptions
    3. A guarantee that omitted hardware states cannot occur
    4. Only the model's successful path

    Answer: The modeled state space and assumptions

    Exhaustive exploration can be strong evidence within its model while saying nothing about excluded real states. Validate the abstraction against the device contract and requirements, then add relevant modeling or target checks for missing behavior.

  100. 100.A publish request times out after the server may already have committed revision R. A client immediately creates and commits a new revision without checking status. What should retry handling first resolve?

    Show answer and explanation
    1. The original operation’s durable outcome
    2. A guarantee that a fresh operation ID preserves the original at-most-once effect
    3. Only the elapsed client wait, without consulting the operation identity
    4. Only the local socket state

    Answer: The original operation’s durable outcome

    An uncertain response does not determine the server's durable outcome. Query or retry using the appropriate operation identity and idempotency protocol. Otherwise a retry can duplicate effects or advance state unexpectedly despite the first commit already succeeding.

  101. 101.A release gate checks the database's new image revision but never queries the deployed endpoint, which may use an older reader or catalog. What final evidence is missing?

    Show answer and explanation
    1. Only a pushed source commit without an observation of the deployed reader
    2. Expected public revision and payload
    3. Only the publisher response
    4. Only the local preview’s revision while the public endpoint remains unchecked

    Answer: Expected public revision and payload

    A database publication and a deployed reader's behavior are separate boundaries. Verify the actual consumer path against the intended identity, content, and relevant category/search views. A passed storage check cannot establish that an older runtime serves it.