Question 260:
Another team just transferred your team a task to maintain an AWS CodeBuild project that aims to create a docker image for the QA lab environment. Previously, this CodeBuild project was triggered manually at about 20:00 every working day (Mon to Fri) by a QA engineer, which is not quite appropriate. You are considering setting up an automatic trigger for the project. At the same time, when the job runs, using an SNS topic to notify the team by email. Which procedures should you use?
Answer options:
A.Configure a newly created CloudWatch Events rule that has a cron expression of “0 20 ? * * *”. The targets for the rule include the CodeBuild project name and the SNS topic. B.Create a new CloudWatch Events rule that has a cron expression of “0 20 ? * MON-FRI *”. The targets for this rule are the CodeBuild project ARN and the SNS topic name. C.Configure two new CloudWatch Events that have a cron expression of “0 20 ? * MON-FRI *”. The target for the first rule is the CodeBuild project ARN and the trigger for the second rule is the SNS topic. D.As AWS CloudWatch Events rule does not support CodeBuild service, an EC2 or an on-premise lightweight server is required to schedule the docker image build of the project. Use a new CloudWatch Events rule to schedule the SNS notification.