RFC 8949 Quiz (EN)

Concise Binary Object Representation (CBOR)

0 / 0

References (URLs)

Q1: Is this CBOR item acceptable to the A2A operation?

Multiple Choice

A decoder accepts a well-formed and valid CBOR text string. The A2A operation schema requires a map containing integer keys 1 and 2.

**Explanation:** A: Section 5 distinguishes valid CBOR from input expected by a particular application protocol. B: Correct. Sections 5 and 5.3 treat well-formedness, validity, and application expectations as successive checks. C: Text strings are a basic CBOR data type; the defect is a schema mismatch, not CBOR syntax. D: UTF-8 validity does not convert a text string into the map required by the operation.

Q2: Does RFC 8949 require every CBOR message to use core deterministic encoding?

Multiple Choice

An A2A telemetry message is decoded only to data-model values; it is not hashed, signed by encoded bytes, or compared byte-for-byte. Its profile has not selected a deterministic encoding.

**Explanation:** A: Section 4.1 explains that preferred serialization is not generally required; Section 4.2 defines deterministic variants for protocols that need them. B: CBOR normally permits multiple well-formed encodings of a data-model value. C: Deterministic encoding is independent of whether the item carries a tag. D: Correct. A profile can select the core requirements in Section 4.2.1 or a specified alternative such as Section 4.2.3.

Q3: How should the authorization parser handle this map?

Multiple Choice

An attacker sends a CBOR map containing role twice: role=reader followed by role=admin. The gateway library keeps the first entry; the backend library keeps the last. The profile requires one unambiguous role value for authorization.

**Explanation:** A: Section 5.3.1 identifies duplicate map keys as a validity error and notes that decoder behaviors differ. B: CBOR maps are not update logs; the generic data model has unique keys. C: Correct. Sections 5 and 5.3.1 require the CBOR-based protocol to define handling, and this security profile needs a single interpretation. D: Divergent native behavior creates exactly the cross-component security failure in the premise.

Q4: Why do signatures fail between these implementations?

Multiple Choice

Two A2A implementations sign the CBOR-encoded request bytes after locally re-encoding the same map. One uses Section 4.2.1 core deterministic encoding; the other uses Section 4.2.3 length-first map ordering. The profile says only deterministic CBOR and requires identical signature inputs.

**Explanation:** A: Sections 4.2.1 and 4.2.3 intentionally define different map ordering. A byte-signing profile must choose one and define its signing input. B: Each variant is deterministic within its own rules, but the two variants need not produce the same bytes. C: Message timing is not part of either deterministic encoding and cannot repair an interoperability rule. D: Cryptographic signatures operate on defined bytes; decoding a signature does not transform its signed input.

Q5: Which design meets the parser-availability criterion?

Multiple Choice

An unauthenticated A2A endpoint accepts well-formed CBOR. A 2 KB input can declare enormous lengths or deeply nest arrays until the decoder exhausts memory or stack. The requirement is bounded work before authentication.

**Explanation:** A: Section 10 describes hostile, well-formed inputs that use large sizes or deep nesting to exhaust resources. B: Section 10 says decoders must treat input as hostile even after TLS, signing, or other presumed-trusted sources. C: Early attacker-driven allocation violates the bounded-work criterion and can fail before schema validation. D: Section 10 calls for appropriate resource management against large data items, stack exhaustion, integer issues, and superlinear work. Exact limits are profile or implementation policy.

Q6: How should the A2A profile define its idempotency key?

Multiple Choice

An agent computes request_id=SHA-256(encoded CBOR). A gateway decodes and re-encodes the same data-model value using a different valid representation before sending it to the backend, which recomputes request_id. The profile requires semantically identical requests to have the same ID across this gateway.

**Explanation:** A: Sections 4.1 and 4.2 distinguish data-model equality from deterministic byte representation. B: This meets the stated cross-gateway identity criterion. Sections 4.2 and 5.6 provide encoding and map-key choices that the A2A profile must make explicit. C: Treating two IDs as one after the fact creates ambiguity for replay and authorization checks. D: A tag identifies CBOR but does not normalize the encoding of its content.