Correct Answer: B
AWS Code Deploy can be used to automate deployment to Amazon EC2 instances and on-premise servers.
Option A is incorrect as AWS Elastic Beanstalk is an application management platform that can be used for managing application deployment handling capacity provisioning, load-balancing, auto-scaling & application health monitoring.
Option C is incorrect as AWS Config can be used to audit, evaluate configurations of AWS resources. It is not used to automate code deployment to Amazon EC2 instance.
Option D is incorrect as AWS CloudFormation is used for infrastructure deployment & automating resource creation within AWS Cloud Infrastructure.
For more information on AWS CodeDeploy, refer to the following URL:
https://aws.amazon.com/codedeploy/faqs/?nc=sn&loc=6