Question 279:
A big IT company started using AWS CodeCommit to manage its source code. There are hundreds of developers and new Git repositories are added in CodeCommit frequently. The DevOps team was told to design an approach to create a new repository by running a script and after the script has run, some init code such as template and README can be added into the repository automatically. Which approach is the best to be managed?
Answer options:
A.Design a shell script using Git commands to create a new repository and submit the init code. B.Put the code into S3 bucket. Design a CloudFormation template to create a repository with the resource type AWS::CodeCommit::Repository. Add a property to include the code. Create a CloudFormation stack when needed. C.Design a CloudFormation template to create a repository with the resource type AWS::CodeCommit::Repository. Design a Lambda function to commit the initial code to the new repository. D.CodeCommit does not support this. Use GitHub instead.