Free AWS Certified DevOps Engineer - Professional DOP-C02 Exam Braindumps (page: 39)

Page 39 of 72

A security team is concerned that a developer can unintentionally attach an Elastic IP address to an Amazon EC2 instance in production. No developer should be allowed to attach an Elastic IP address to an instance. The security team must be notified if any production server has an Elastic IP address at any time.

How can this task be automated?

  1. Use Amazon Athena to query AWS CloudTrail logs to check for any associate-address attempts. Create an AWS Lambda function to disassociate the Elastic IP address from the instance, and alert the security team.
  2. Attach an IAM policy to the developers' IAM group to deny associate-address permissions. Create a custom AWS Config rule to check whether an Elastic IP address is associated with any instance tagged as production, and alert the security team.
  3. Ensure that all IAM groups associated with developers do not have associate-address permissions. Create a scheduled AWS Lambda function to check whether an Elastic IP address is associated with any instance tagged as production, and alert the security team if an instance has an Elastic IP address associated with it.
  4. Create an AWS Config rule to check that all production instances have EC2 IAM roles that include deny associate-address permissions. Verify whether there is an Elastic IP address associated with any instance, and alert the security team if an instance has an Elastic IP address associated with it.

Answer(s): B



A company is using AWS Organizations to create separate AWS accounts for each of its departments. The company needs to automate the following tasks:

•Update the Linux AMIs with new patches periodically and generate a golden image
•Install a new version of Chef agents in the golden image, if available
•Provide the newly generated AMIs to the department's accounts

Which solution meets these requirements with the LEAST management overhead?

  1. Write a script to launch an Amazon EC2 instance from the previous golden image. Apply the patch updates. Install the new version of the Chef agent, generate a new golden image, and then modify the AMI permissions to share only the new image with the department's accounts.
  2. Use Amazon EC2 Image Builder to create an image pipeline that consists of the base Linux AMI and components to install the Chef agent. Use AWS Resource Access Manager to share EC2 Image Builder images with the department's accounts.
  3. Use an AWS Systems Manager Automation runbook to update the Linux AMI by using the previous image. Provide the URL for the script that will update the Chef agent. Use AWS Organizations to replace the previous golden image in the department's accounts.
  4. Use Amazon EC2 Image Builder to create an image pipeline that consists of the base Linux AMI and components to install the Chef agent. Create a parameter in AWS Systems Manager Parameter Store to store the new AMI ID that can be referenced by the department's accounts.

Answer(s): B



A company has a mission-critical application on AWS that uses automatic scaling. The company wants the deployment lifecycle to meet the following parameters:

•The application must be deployed one instance at a time to ensure the remaining fleet continues to serve traffic.
•The application is CPU intensive and must be closely monitored.
•The deployment must automatically roll back if the CPU utilization of the deployment instance exceeds 85%.

Which solution will meet these requirements?

  1. Use AWS CloudFormation to create an AWS Step Functions state machine and Auto Scaling lifecycle hooks to move to one instance at a time into a wait state. Use AWS Systems Manager automation to deploy the update to each instance and move it back into the Auto Scaling group using the heartbeat timeout.
  2. Use AWS CodeDeploy with Amazon EC2 Auto Scaling Configure an alarm tied to the CPU utilization metric. Use the CodeDeployDefault OneAtAtime configuration as a deployment strategy. Configure automatic rollbacks within the deployment group to roll back the deployment if the alarm thresholds are breached.
  3. Use AWS Elastic Beanstalk for load balancing and AWS Auto Scaling. Configure an alarm tied to the CPU utilization metric. Configure rolling deployments with a fixed batch size of one instance. Enable enhanced health to monitor the status of the deployment and roll back based on the alarm previously created.
  4. Use AWS Systems Manager to perform a blue/green deployment with Amazon EC2 Auto Scaling. Configure an alarm tied to the CPU utilization metric. Deploy updates one at a time. Configure automatic rollbacks within the Auto Scaling group to roll back the deployment if the alarm thresholds are breached.

Answer(s): B



A company has a single developer writing code for an automated deployment pipeline. The developer is storing source code in an Amazon S3 bucket for each project. The company wants to add more developers to the team but is concerned about code conflicts and lost work. The company also wants to build a test environment to deploy newer versions of code for testing and allow developers to automatically deploy to both environments when code is changed in the repository.

What is the MOST efficient way to meet these requirements?

  1. Create an AWS CodeCommit repository for each project, use the main branch for production code, and create a testing branch for code deployed to testing. Use feature branches to develop new features and pull requests to merge code to testing and main branches.
  2. Create another S3 bucket for each project for testing code, and use an AWS Lambda function to promote code changes between testing and production buckets. Enable versioning on all buckets to prevent code conflicts.
  3. Create an AWS CodeCommit repository for each project, and use the main branch for production and test code with different deployment pipelines for each environment. Use feature branches to develop new features.
  4. Enable versioning and branching on each S3 bucket, use the main branch for production code, and create a testing branch for code deployed to testing. Have developers use each branch for developing in each environment.

Answer(s): A



Page 39 of 72



Post your Comments and Discuss Amazon AWS Certified DevOps Engineer - Professional DOP-C02 exam with other Community members:

raj commented on December 27, 2024
Good explaniation for the ans
Anonymous
upvote

Pooja commented on December 27, 2024
Very useful for exam
CHINA
upvote

Sudeep commented on December 27, 2024
Good collection
Anonymous
upvote

Akki1990 commented on December 27, 2024
I am happy !
Anonymous
upvote

Imran commented on December 27, 2024
This is nice stuff
Anonymous
upvote

Akki1990 commented on December 27, 2024
This is really good way to revise all topics , Thank you so much !
Anonymous
upvote

Saf commented on December 27, 2024
Very Useful
Anonymous
upvote

Hekka commented on December 27, 2024
Good set of questions
Anonymous
upvote

Amber commented on December 27, 2024
Passed the exam today. It is going to be a great new year.
UNITED STATES
upvote

Microsoftee commented on December 27, 2024
Thank you so much. Nice material.
Anonymous
upvote

sandy commented on December 27, 2024
good content
Anonymous
upvote

anonymous a commented on December 27, 2024
helpful stuff
Anonymous
upvote

Ravi commented on December 27, 2024
So far so good
INDIA
upvote

Poo commented on December 27, 2024
Useful data
Anonymous
upvote

Cosy commented on December 26, 2024
I am loving it here
Anonymous
upvote

Tanuja Bhusal commented on December 26, 2024
Good Questions
Anonymous
upvote

anonymous commented on December 26, 2024
Just going through the questions for my understanding of Power Bi
UNITED STATES
upvote

laks commented on December 26, 2024
so far seems good
UNITED STATES
upvote

Mooni commented on December 26, 2024
It's really good
SAUDI ARABIA
upvote

Phoebe commented on December 26, 2024
Good questions
FRANCE
upvote

rz commented on December 26, 2024
It's very helpful for exam
TAIWAN PROVINCE OF CHINA
upvote

Nitesh Kumar Singh commented on December 26, 2024
Nice to attend
Anonymous
upvote

Pankaj Kumar commented on December 26, 2024
Its good to have all the relevant questions here.. Thanks for help!
UNITED STATES
upvote

ian commented on December 26, 2024
yes, is this still valid?
UNITED STATES
upvote

Onkar commented on December 26, 2024
Questions looks promising.
Anonymous
upvote

JcD commented on December 25, 2024
Great learning
Anonymous
upvote

Sam commented on December 25, 2024
Are these real questions? They seem too easy to be true
UNITED STATES
upvote

Netra commented on December 25, 2024
Very useful
UNITED STATES
upvote

Prg commented on December 25, 2024
good set of questions
Anonymous
upvote

n commented on December 25, 2024
Question are
Anonymous
upvote

Ni commented on December 25, 2024
useful questions
Anonymous
upvote

ry commented on December 24, 2024
very helpful
Anonymous
upvote

Jatin Gohil commented on December 24, 2024
Good contents. The exams questions are real
Anonymous
upvote

Anonymous commented on December 24, 2024
very useful
CHILE
upvote