I have questions about the indented lines.

I was discussing with my students a paragraph of a story. The story is about a boy who vanished. In the story a father comes to know that his new born child’s feet must not touch the earth until the child completes his 12th year otherwise the child will face big trouble.
“Great care was taken that this should be avoided.” [Extract from the original text]
So he appoints nurses to take care of the baby. Everything goes fine until he reaches his 12th year. The father becomes very happy and one day arranges a big feast to celebrate his son’s release. But while a nurse was carrying the baby, a frightful, unearthly yell distracts her attention and she drops the child on the ground and goes over to the window to see what had caused the noise. But at the next moment-
“With a cry, she realized that she has disobeyed her master”. [Extract frm the orignl text]

This is how the story begins.

Now I would like to know the meaning and grammatical behaviour of the word “that” in the first indented sentence. Does it mean “so that”?

And in the second indented sentence I have this following question:

Doesn’t the sentence sound ambiguous?

“With a cry, she realized” I think may convey two different meanings 1] the cry made her realize or the cry was responsible to make he realize. 2] She realized her mistake and as a result uttered the cry [This is certainly the meaning the writer wants to convey]

Could any one plz explain? Thanks

I believe it's working as a conjunction in that sentence, but don't hold me to that unless someone else says the same thing.

You could get away without saying that if you wanted to, so it really isn't that integral to the meaning of the sentence.

I know this probably doesn't help much, but it's the best I can come up with right now.
I agree with Migo.

In the first sentence, it does mean "so that"...it's just one of the many different ways to say the same thing in English, something "that" Emotion: wink students will no doubt come across many times in their studies.

In the second sentence, you can confidently leave the word "that" out and not lose any meaning in the sentence. It would come across just the same, for the most part.

The only time the second sentence would even be slightly ambiguous would be if there were 2 women involved in the story, and both had the same master. Perhaps there are 2 different conditions laid upon the 2 different servants. Simply saying, "...she realized she had disobeyed her master," could indicate that the servant who dropped the boy ran to see what the scream was about and realized by what she saw that the other servant had somehow disobeyed her master. Honestly, though, you'd probably get the same effect from the original sentence in such a situation. In short, you just have to rely on the context of the story to know what's going on.

I hope this wasn't too confusing.