Bird
0
0

What is wrong with this event schema?

medium📝 Analysis Q7 of 15
Microservices - Event-Driven Architecture
What is wrong with this event schema?
{"eventType": "OrderShipped", "payload": {orderId: 789}}
AKeys inside payload are not quoted
BMissing eventType value
CPayload should be a string
DExtra comma after payload
Step-by-Step Solution
Solution:
  1. Step 1: Inspect payload keys

    Keys inside JSON objects must be in double quotes.
  2. Step 2: Validate JSON syntax

    Unquoted keys cause JSON parsing errors.
  3. Final Answer:

    Keys inside payload are not quoted -> Option A
  4. Quick Check:

    JSON keys need quotes [OK]
Quick Trick: Always quote keys in JSON objects [OK]
Common Mistakes:
MISTAKES
  • Leaving keys unquoted
  • Assuming payload must be string

Want More Practice?

15+ quiz questions · All difficulty levels · Free

Free Signup - Practice All Questions
More Microservices Quizzes