Step 1: Understanding the Concept
An amino acid contains an amino group (-NH\(_2\)) and a carboxyl group (-COOH).
Step 2: Check the options
Lactic acid has OH and COOH. Acetamide has an amide group. Glycerol is a triol.
Step 3: Identify
Glycine, \(\text{NH}_2\text{CH}_2\text{COOH}\), has both groups.
Final Answer:
Glycine contains both amino and carboxyl groups.
\[ \boxed{\text{(D) }\text{Glycine}} \]