Spot dies halfway through the book. His death is drawn out and painful (but not described to the readers). Alice is forced to watch and spends the rest of the book angsting about it.
The children's book Alice and Her Friends is mostly overly sweet stories about Alice and her friends. In the end, all of her friends go on a trip, a trip which Alice doesn't join because she can't afford it. The train they take crashes and nobody survives.
Downplayed: The book ends with Alice's father becoming allergic to dogs. Spot is adopted by Alice's grandmother, and Alice gets to see him once in a while.
Justified: Spot dies of old age, but it was revealed early that Spot was old and didn't have much time left. Alice's actions in the book were clearly motivated by making his last days as good as possible, but she's still sad when he dies.
Alice and Spot starts out with Alice's parents disappearing. Then she meets Spot, who becomes a great friend to her. Together, they find Alice's lost parents. In the epilogue, it's revealed that Spot is still alive, and so are Alice and her parents.
Alice and Spot is made as cute and happy as possible because the author thought it would increase the chance of a Newbery Medal or something similar.
Subverted: Spot falls off a cliff and Alice thinks he's dead. Her father tells her that Spot is alive, but injured. Spot is taken to a vet, who tells them that Spot will most likely make it.
Double Subverted: But then the vet discovers that Spot's injuries are more severe than he thought and that Spot's death is inevitable.
A random ladybug dies near the end. Alice wangsts about it for a page then forgets about it.
Zig Zagged: Spot falls off the cliff and is about to die of his injuries, but narrowly survives it. Later, he chokes on something and edges near death again before apparently being OK... but why has he lost his appetite and energy?
Averted: Alice and Spot is sweet from start to finish. Everyone survives it.
Enforced: The author wants to win a Newbery Medal (or a similar award) and knows that an angsty work is more likely to win one.
Discussed: "Mum, do you think Spot will die because the author thinks making my story angsty is more important than Spot's life?"
Conversed: "An award-winning book about a girl and her dog? I'll bet the dog won't make it to the end of it."
In-universe: Spot was Alice's only friend and consolation when Alice was bullied. His death truly devastates her. She gets another dog, Max, which she hates and mistreats because she feels that he can never replace Spot and as "revenge" for her own bullying. This marks the beginning of Alice's psychological problems.