A company wants to deploy a workload on several hundred Amazon EC2 instances. The company will provision the EC2 instances in an Auto Scaling group by using a launch template.
The workload will pull files from an Amazon S3 bucket, process the data, and put the results into a different S3 bucket. The EC2 instances must have least-privilege permissions and must use temporary security credentials.
Which combination of steps will meet these requirements? (Select TWO.)
* Modify the Build Stage to Add a Test Action with a RunOrder Value of 2:
The build stage in AWS CodePipeline can have multiple actions. By adding a test action with a runOrder value of 2, the test action will execute after the initial build action completes.
* Use AWS CodeBuild as the Action Provider to Run Unit Tests:
AWS CodeBuild is a fully managed build service that compiles source code, runs tests, and produces software packages.
Using CodeBuild to run unit tests ensures that the tests are executed in a controlled environment and that only the code changes that pass the unit tests proceed to the deploy stage.
Example configuration in CodePipeline:
{
'name': 'BuildStage',
'actions': [
{
'name': 'Build',
'actionTypeId': {
'category': 'Build',
'owner': 'AWS',
'provider': 'CodeBuild',
'version': '1'
},
'runOrder': 1
},
{
'name': 'Test',
'actionTypeId': {
'category': 'Test',
'owner': 'AWS',
'provider': 'CodeBuild',
'version': '1'
},
'runOrder': 2
}
]
}
By integrating the unit tests into the build stage and ensuring they run after the build process, the pipeline guarantees that only code changes passing all unit tests are deployed.
Christoper
4 months agoDenae
4 months agoVicki
5 months agoPete
5 months agoMarlon
5 months agoEleni
5 months agoIesha
6 months agoNida
6 months agoBlondell
6 months agoRaymon
6 months agoErasmo
6 months agoLoreta
6 months agoRessie
6 months agoRenea
6 months agoJustine
11 months agoLucina
11 months agoElena
10 months agoOretha
10 months agoAileen
11 months agoRashad
11 months agoAnnmarie
10 months agoLennie
10 months agoGlennis
10 months agoNakisha
11 months agoLasandra
12 months agoJules
11 months agoGearldine
11 months agoRoy
1 year agoOliva
1 year agoReuben
1 year ago