Chop sweet potatoes into rounds, and then chop them in half so they look like half-moon shapes.
Shuck corn and chop into rounds – you'll probably get 3 pieces out of each ear.
Add sweet potatoes and corn to a large bowl. Pour in the olive oil and add all seasonings. Toss until well-coated.
Preheat the oven to 400º and line a large baking sheet with parchment.
Pour the potatoes and corn onto the sheet and spread evenly. If desired, place lemon slices on top of the mixture.
Cover the baking sheet tightly with aluminum foil and bake for 35 minutes.