Gently wash produce under cool running water, pat dry, and prepare as directed.
Melt the butter in a large stock pot over medium heat.
Add the onion and garlic and cook until golden.
Add the apple, sweet potato, ginger, cayenne (if using), black pepper, broth, and water. Bring to a boil.
Reduce the heat to low and simmer until the sweet potato is soft, about 25 minutes.
Season with salt to taste.
Ladle into bowls as is, or purée in a blender until smooth.