<prompt> Answer this question truthfullyWhich part of the kidney is primarily affected in acute pyelonephritis and which structures are relatively spared?  <response>: <reason> Acute pyelonephritis affects the cortex of the kidney with relative sparing of glomerulivessels. 