1. A company wants to implement a continuous integration for its workloads on AWS. The company wants to trigger unit test in its pipeline for commits-on its code repository, and wants to be notified of failure events in the pipeline. How can these requirements be met?
A) Store the source code in AWS CodeCommit. Create a CodePipeline to automate unit testing. Use Amazon CloudWatch to trigger notification of failure events. B) Store the source code in AWS CodeCommit. Create a CodePipeline to automate unit testing. Use Amazon SNS to trigger notifications of failure events. C) Store the source code on GitHub. Create a CodePipeline to automate unit testing. Use Amazon CloudWatch to trigger notifications of failure events. D) Store the source code in GitHub. Create a CodePipeline to automate unit testing. Use Amazon SES to trigger notifications of failure events.
2. A company is using AWS CodeBuild to compile a website from source code stored in AWS CodeCommit. A recent change to the source code has resulted in the CodeBuild project being unable to successfully compile the website. How should the Developer identify the cause of the failures?
A) Use a custom Docker image that includes the AWS X-Ray agent in the AWS CodeBuild project configuration. B) Manually re-run the build process on a local machine so that the output can be visualized. C) Check the build logs of the failed phase in the last build attempt in the AWS CodeBuild project build history. D) Modify the buildspec.yml file to include steps to send the output of build commands to Amazon CloudWatch.
3. The release process workflow of an application requires a manual approval before the code is deployed into the production environment. What is the BEST way to achieve this using AWS CodePipeline?
A) Disable the stage transition to allow manual approval B) Use an approval action in a stage C) Disable a stage just prior the deployment stage D) Use multiple pipelines to allow approval
4. An on-premises legacy application is caching data files locally and writing shared images to local disks. What is necessary to allow for horizontal scaling when migrating the application to AWS?
A) Modify the application to read and write cache data on Amazon S3, while continuing to write shared images to local disks. B) Modify the application to read and write cache data on Amazon S3, and also store shared images on S3. C) Modify the application to have both shared images and caching data written to Amazon EBS. D) Modify the application to use Amazon S3 for serving shared images; cache data can then be written to local disks.
5. A company is developing an application that will run on several Amazon EC2 instances in an Auto Scaling group and can access a database running on Amazon EC2. The application needs to store secrets required to connect to the database. The application must allow for periodic secret rotation, and there should be no changes to the application when a secret changes. What is the SAFEST way to meet these requirements?
A) Use AWS Systems Manager Parameter Store with the B) Associate an IAM role to the EC2 instance where the application is running with permission to access the database. C) Hard code the database secrets in the application code itself. D) Configure the application to store secrets in Amazon S3 object metadata.
Leave a comment