How executor cores impact spark application when chosen incorrectly?

Executor → An executor is a single JVM process that is launched for an application on a worker node. A single node in the cluster can run multiple executors and executors for an application can span multiple worker nodes.

Core → Core is a basic computation unit of CPU and a CPU may have one or more cores to perform tasks at a given time