AWS Certified Developer – Associate — Question 84
A developer wants to use AWS CodeDeploy to deploy an Amazon Elastic Container Service (Amazon ECS) service.
What are the MINIMUM properties required in the 'resources' section of the AppSpec file for CodeDeploy to deploy the ECS service successfully?
Answer options
- A. name, alias currentversion, and targetversion
- B. TaskDefinition, ContainerName, and PlatformVersion
- C. TaskDefimtion, ContainerName, and ContainerPort
- D. name, currentversion, NetworkConfiguration, and PlatformVersion
Correct answer: C
Explanation
The correct answer is C, as the 'resources' section requires TaskDefinition, ContainerName, and ContainerPort for deploying an ECS service. Options A, B, and D include incorrect or unnecessary properties that do not fulfill the minimum requirements for a successful deployment.