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

Page 7 of 72

A company has multiple AWS accounts. The company uses AWS Single Sign-On (AWS SSO) that is integrated with AWS Toolkit for Microsoft Azure DevOps. The attributes for access control feature is enabled in AWS SSO.

The attribute mapping list contains two entries. The department key is mapped to ${path:enterprise.department}. The costCenter key is mapped to ${path:enterprise.costCenter}.

All existing Amazon EC2 instances have a department tag that corresponds to three company departments (d1, d2, d3). A DevOps engineer must create policies based on the matching attributes. The policies must minimize administrative effort and must grant each Azure AD user access to only the EC2 instances that are tagged with the user's respective department name.

Which condition key should the DevOps engineer include in the custom permissions policies to meet these requirements?





Answer(s): C



A company hosts a security auditing application in an AWS account. The auditing application uses an IAM role to access other AWS accounts. All the accounts are in the same organization in AWS Organizations.

A recent security audit revealed that users in the audited AWS accounts could modify or delete the auditing application's IAM role. The company needs to prevent any modification to the auditing application's IAM role by any entity other than a trusted administrator IAM role.

Which solution will meet these requirements?

  1. Create an SCP that includes a Deny statement for changes to the auditing application's IAM role. Include a condition that allows the trusted administrator IAM role to make changes. Attach the SCP to the root of the organization.
  2. Create an SCP that includes an Allow statement for changes to the auditing application's IAM role by the trusted administrator IAM role. Include a Deny statement for changes by all other IAM principals. Attach the SCP to the IAM service in each AWS account where the auditing application has an IAM role.
  3. Create an IAM permissions boundary that includes a Deny statement for changes to the auditing application's IAM role. Include a condition that allows the trusted administrator IAM role to make changes. Attach the permissions boundary to the audited AWS accounts.
  4. Create an IAM permissions boundary that includes a Deny statement for changes to the auditing application’s IAM role. Include a condition that allows the trusted administrator IAM role to make changes. Attach the permissions boundary to the auditing application's IAM role in the AWS accounts.

Answer(s): A



A company has an on-premises application that is written in Go. A DevOps engineer must move the application to AWS. The company's development team wants to enable blue/green deployments and perform A/B testing.

Which solution will meet these requirements?

  1. Deploy the application on an Amazon EC2 instance, and create an AMI of the instance. Use the AMI to create an automatic scaling launch configuration that is used in an Auto Scaling group. Use Elastic Load Balancing to distribute traffic. When changes are made to the application, a new AMI will be created, which will initiate an EC2 instance refresh.
  2. Use Amazon Lightsail to deploy the application. Store the application in a zipped format in an Amazon S3 bucket. Use this zipped version to deploy new versions of the application to Lightsail. Use Lightsail deployment options to manage the deployment.
  3. Use AWS CodeArtifact to store the application code. Use AWS CodeDeploy to deploy the application to a fleet of Amazon EC2 instances. Use Elastic Load Balancing to distribute the traffic to the EC2 instances. When making changes to the application, upload a new version to CodeArtifact and create a new CodeDeploy deployment.
  4. Use AWS Elastic Beanstalk to host the application. Store a zipped version of the application in Amazon S3. Use that location to deploy new versions of the application. Use Elastic Beanstalk to manage the deployment options.

Answer(s): D



A developer is maintaining a fleet of 50 Amazon EC2 Linux servers. The servers are part of an Amazon EC2 Auto Scaling group, and also use Elastic Load Balancing for load balancing.

Occasionally, some application servers are being terminated after failing ELB HTTP health checks. The developer would like to perform a root cause analysis on the issue, but before being able to access application logs, the server is terminated.

How can log collection be automated?

  1. Use Auto Scaling lifecycle hooks to put instances in a Pending:Wait state. Create an Amazon CloudWatch alarm for EC2 Instance Terminate Successful and trigger an AWS Lambda function that invokes an SSM Run Command script to collect logs, push them to Amazon S3, and complete the lifecycle action once logs are collected.
  2. Use Auto Scaling lifecycle hooks to put instances in a Terminating:Wait state. Create an AWS Config rule for EC2 instance-terminate Lifecycle Action and trigger a step function that invokes a script to collect logs, push them to Amazon S3, and complete the lifecycle action once logs are collected.
  3. Use Auto Scaling lifecycle hooks to put instances in a Terminating:Wait state. Create an Amazon CloudWatch subscription filter for EC2 Instance Terminate Successful and trigger a CloudWatch agent that invokes a script to collect logs, push them to Amazon S3, and complete the lifecycle action once logs are collected.
  4. Use Auto Scaling lifecycle hooks to put instances in a Terminating:Wait state. Create an Amazon EventBridge rule for EC2 Instance-terminate Lifecycle Action and trigger an AWS Lambda function that invokes an SSM Run Command script to collect logs, push them to Amazon S3, and complete the lifecycle action once logs are collected.

Answer(s): D



Page 7 of 72



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

Priti commented on December 14, 2024
Good questions
SINGAPORE
upvote

Priti commented on December 14, 2024
Good article
SINGAPORE
upvote

R Jeswanth commented on December 14, 2024
Hi This is Jai
AUSTRALIA
upvote

Anonymous commented on December 14, 2024
Good set or practice
Anonymous
upvote

??? commented on December 14, 2024
great collection of test questions. very effective to pass the exam
BANGLADESH
upvote

summer commented on December 13, 2024
nice questions
Anonymous
upvote

DIvesh commented on December 13, 2024
Good way to practice
JAPAN
upvote

redflame commented on December 12, 2024
great content
Anonymous
upvote

aini commented on December 12, 2024
best best best
Anonymous
upvote

Aung Naing Lin commented on December 12, 2024
good practice lesson
UNITED STATES
upvote

Mikronet commented on December 12, 2024
good pratice lessons
UNITED STATES
upvote

blaze commented on December 12, 2024
is the PDF worth it? Are these questions the same on the exam?
Anonymous
upvote

Mike Kutenda Chizinga commented on December 12, 2024
are these questions still valid
Anonymous
upvote

sas commented on December 12, 2024
good but not flexible
Anonymous
upvote

Anonymous commented on December 12, 2024
Very helpful and reference link also has been given.
Anonymous
upvote

Anonymous commented on December 12, 2024
Preparing or certification
Anonymous
upvote

Sai commented on December 12, 2024
Preparing for the exam
AUSTRALIA
upvote

Ankita commented on December 12, 2024
dumps are good and helpful
UNITED STATES
upvote

yajnas commented on December 12, 2024
lot of the questions are from AZ-400 practice test
JAPAN
upvote

yajnas commented on December 12, 2024
very relevant information
JAPAN
upvote

yajnas commented on December 12, 2024
good material
JAPAN
upvote

AEB commented on December 11, 2024
The breadth of knowledge for this exam is large. It doesn't seem possible to learn everything on it for an associate level exam.
UNITED STATES
upvote

rvg commented on December 11, 2024
A great source of preparation for this exam
INDIA
upvote

the coder1 commented on December 11, 2024
It helped alot
UNITED KINGDOM
upvote

N commented on December 11, 2024
This is so good. I will literally ace the test.
Anonymous
upvote

BU WIN SIO commented on December 11, 2024
GOOD VERY HELP FUL
UNITED STATES
upvote

Pss wd commented on December 11, 2024
preparing for exam
Anonymous
upvote

Anonymous commented on December 11, 2024
really good
INDIA
upvote

Anonymous commented on December 10, 2024
Good questions for revision
UNITED STATES
upvote

Milik commented on December 10, 2024
Very resourceful information
Anonymous
upvote

Milik commented on December 10, 2024
Great info Marion to succeed on your test……….
Anonymous
upvote

Ritesh commented on December 10, 2024
Good content
Anonymous
upvote

Mikil commented on December 10, 2024
I will tell others about this study site
Anonymous
upvote

Milik commented on December 10, 2024
Good resource for your studies. I will refer to my frirnds
Anonymous
upvote