DevOps Pro

DevOps Pro

Professional Development

10 Qs

quiz-placeholder

Similar activities

AWS Certified Cloud Practitioner

AWS Certified Cloud Practitioner

Professional Development

15 Qs

Aula 03/10/21

Aula 03/10/21

Professional Development

10 Qs

AWS Review

AWS Review

Professional Development

10 Qs

AWS Storage

AWS Storage

Professional Development

9 Qs

AWS recap!

AWS recap!

Professional Development

10 Qs

AWS Lambda and Serverless

AWS Lambda and Serverless

Professional Development

7 Qs

AWS CCP q31-40

AWS CCP q31-40

Professional Development

10 Qs

AWS Quiz Show 2023 Season 2 (Week 4)

AWS Quiz Show 2023 Season 2 (Week 4)

Professional Development

15 Qs

DevOps Pro

DevOps Pro

Assessment

Quiz

Professional Development

Professional Development

Hard

Created by

Francois van Rensburg

Used 7+ times

FREE Resource

10 questions

Show all answers

1.

MULTIPLE CHOICE QUESTION

2 mins • 1 pt

A company controls the source code for its product in AWS CodeCommit. The company is creating a CI/CD pipeline for the product using AWS CodePipeline. The pipeline must automatically start on changes to the master branch of the CodeCommit repository. Changes are made to the application every day, so the pipeline needs to be as responsive as possible.

Which actions should the devops engineer take to meet these requirements?

Configure the pipeline to periodically check the repository. Start the pipeline when changes are detected

Configure the repository to generate an Amazon CloudWatch Events event upon changes. Configure the pipeline to start in response to the event.

Configure the repository to periodically run an AWS Lambda function. The function should check there pository and start the pipeline when changes are detected.

Configure the repository to publish an SNS notification upon changes. Subscribe the pipeline to the Amazon SNS topic.

2.

MULTIPLE SELECT QUESTION

2 mins • 1 pt

A development team wants to set up an AWS CodeCommit repository. Developers should be able push changes to their own branches, but they should not be allowed to push commits or merge pull requests into the master branch. Additionally, whenever a commit or merge occurs into the master branch, the project manager needs to receive a notification.

Which combination of steps will protect the master branch and send the alert with the shortest delay?(Select TWO.)

Attach an AWS IAM policy to the developer IAM group that denies the actions of pushing commits,merging pull requests, and adding files to the master branch

Attach a resource policy to the CodeCommit repository that denies members of the IAM developer group the actions of pushing commits, merging pull requests, and adding files to the master branch.

Set up a an AWS Lambda function that runs every 15 minutes to check for repository changes and publishes a notification to an Amazon SNS topic

Set up an Amazon CloudWatch Events rule triggered by a CodeCommit Repository State Change event for the master branch and add an Amazon SNS topic as a target

Configure AWS CloudTrail to send log events to Amazon CloudWatch Logs. Define a metric filter toidentify repository events. Create a CloudWatch alarm with an Amazon SNS topic as a target

3.

MULTIPLE CHOICE QUESTION

2 mins • 1 pt

A company is using AWS CodeBuild to build its application. Company policy requires that all build artifacts be encrypted at rest. Access to the artifacts must be limited to IAM users with permission to assume the operations role.

How can these requirements be met?

Add a post-build command to the CodeBuild build specification that pushes build objects to an AmazonS3 bucket. Set a bucket policy that prevents upload to the bucket unless the request includes the headerx-amz-server-side-encryption. Add a Deny statement for all actions with the NotPrincipalsection referencing the operations IAM group

Add a post-build command to the CodeBuild build specification that pushes build objects to an AmazonS3 bucket. Configure an S3 event notification to trigger an AWS Lambda function to get the object,encrypt it, then put it back into the S3 bucket with an encrypted tag key and a true tag value. Add anS3 bucket policy with a Deny statement for all actions with the NotPrincipal section referencing the operations IAM group, and a Condition section referencing the Encrypted tag

Add a post-build command to the CodeBuild build specification that pushes build objects to an AmazonS3 bucket that has S3 default encryption enabled. Set an S3 bucket policy containing a Deny statement for all actions with the NotPrincipal section referencing the operations IAM role

Add a post-build command to the CodeBuild build specification that calls the AWS KMS Encrypt API call, passing the artifact to AWS KMS for encryption with a specified customer master key (CMK). Push the encrypted artifact to an Amazon S3 bucket, then set up the IAM operations group as the only key user for that CMK in AWS KMS

4.

MULTIPLE SELECT QUESTION

2 mins • 1 pt

A devops engineer wants to implement a blue/green deployment process for an application on AWS and be able to gradually shift the traffic between the environments. The application runs on Amazon EC2instances behind an Application Load Balancer. The instances run in an EC2 Auto Scaling group. Data is stored in an Amazon RDS Multi-AZ DB instance. External DNS is provided by Amazon Route 53.

Which combination of steps will implement the blue/green process? (Select THREE.)

Create a second Auto Scaling group behind the same Application Load Balancer.

Create a second Application Load Balancer and Auto Scaling group

Create a second alias record in Route 53 pointing to the new environment and use a failover routing policy between the two records

Create a second alias record in Route 53 pointing to the new environment and use a weighted routing policy between the two records

Configure the new EC2 instances to use the same RDS database instance

5.

MULTIPLE SELECT QUESTION

2 mins • 1 pt

A devops engineer wrote an AWS Lambda function, defined it in an AWS CloudFormation template snippet (shown below), and stored it in an Amazon S3 bucket.

MyLambdaFunctionV1:

Type: "AWS::Lambda::Function"

Properties:

Handler: "index.handler"

Role: "arn:aws:iam::515290864834:role/AccountScanner"

Code:

S3Bucket: "johndoe-com-lambda-source"

S3Key: "AccountScanner.zip"

Runtime: "dotnetcore2.1"

Timeout: 60

The CloudFormation stack has been created and the Lambda function is working as expected. The Engineer has obtained a new version of the function code and wants to ensure that this new version will be executed immediately following the stack update.

Which deployment procedures will accomplish this? (Select THREE.)

Update the logical name of the Lambda function in the CloudFormation template fromMyLambdaFunctionV1 to MyLambdaFunctionV2, then perform a CloudFormation stack update

Enable versioning on the existing S3 bucket. Upload the new code to the existing S3 bucket. Specify the version ID of the S3 object in the S3ObjectVersion property of the Lambda function in the CloudFormation template, then perform a CloudFormation stack update.

Using AWS SAM, issue a sam deploy command to the CloudFormation template to perform a Lambda function version update.

Update the S3 bucket property of the Lambda function in the CloudFormation template to point to a different bucket location. Upload the new code to the new S3 bucket location, then perform a CloudFormation stack update.

Update the S3Key property of the Lambda function in the CloudFormation template to indicate a different location and name of the .zip file. Upload the new code to the S3 bucket, noting the location and name change of the .zip file, then perform a CloudFormation stack update

6.

MULTIPLE SELECT QUESTION

2 mins • 1 pt

A devops engineer has been asked to automate security compliance for a company. The company has developed custom AWS Config rules to detect non-compliant security configurations. When compliance issues are detected, the company wants issues to be automatically remediated and the security team to be notified over the internal security message channel. The message board has a REST interface that publishes the body of HTTPS POST requests over the channel.

Which combination of steps would successfully meet these requirements in the MOST cost-effective way? (Select THREE.)

Create an Amazon CloudWatch Events rule that publishes compliance change notifications to an Amazon SNS topic.

Configure AWS Config to publish configuration item change notifications to an Amazon SNS topic.

Create an Amazon API Gateway RESTful API with AWS integration to AWS Config. Subscribe the API to the Amazon SNS topic.

Subscribe the message channel HTTPS endpoint to the Amazon SNS topic.

Write an AWS Lambda function that addresses the non-compliant security configuration. Subscribe the function to the Amazon SNS topic.

7.

MULTIPLE CHOICE QUESTION

2 mins • 1 pt

A company runs an application on Amazon EC2 instances running the latest version of the Amazon Linux AMI. When applying new security patches, Server administrators manually remove affected instances from service, patch them, and then place them back into service. A new company security policy requires that security patches be applied within 7 days of the patch being released. The security team must verify that all instances are in compliance. Patching should be done during a time that has the least impact on users.

How can administrators automate security policy compliance?

Configure an AWS CodeBuild project to download and apply patches to all machines over SSH. Use an Amazon CloudWatch Events scheduled event to run the CodeBuild project during a maintenance window.

Use AWS Systems Manager Patch Manager to create a patch baseline. Create a script on the EC2instances that uses the CLI to pull the latest patches from Patch Manager. Create a cron job to schedule the script to run during a maintenance window

Create a script that applies any available security patches. Create a cron job to schedule the script to run during a maintenance window. Install the script and cron job on the application AMI and redeploy the application

Enlist all application EC2 instances in a patch group. Use AWS Systems Manager Patch Manager to create a patch baseline. Configure a maintenance window to apply the patch baseline.

Create a free account and access millions of resources

Create resources
Host any resource
Get auto-graded reports
or continue with
Microsoft
Apple
Others
By signing up, you agree to our Terms of Service & Privacy Policy
Already have an account?