A company deploys its corporate infrastructure on AWS across multiple AWS Regions and
Availability Zones. The infrastructure is deployed on Amazon EC2 instances and connects
with AWS loT Greengrass devices. The company deploys additional resources on onpremises
servers that are located in the corporate headquarters.
The company wants to reduce the overhead involved in maintaining and updating its
resources. The company's DevOps team plans to use AWS Systems Manager to
implement automated management and application of patches. The DevOps team confirms
that Systems Manager is available in the Regions that the resources are deployed m
Systems Manager also is available in a Region near the corporate headquarters.
Which combination of steps must the DevOps team take to implement automated patch
and configuration management across the company's EC2 instances loT devices and onpremises
infrastructure? (Select THREE.)
Show answerHide answer
Correct answer: C, E, FConfigure Amazon EventBridge to monitor Systems Manager Patch Manager for
updates to patch baselines. Associate Systems Manager Run Command with the event lo
initiate a patch action for all EC2 instances AWS loT Greengrass devices and on-premises
servers.Generate a managed-instance activation Use the Activation Code and Activation ID to
install Systems Manager Agent (SSM Agent) on each server in the on-premises environment Update the AWS loT Greengrass IAM token exchange role Use the role to
deploy SSM Agent on all the loT devices.
Question 72Choose 1
A company wants to ensure that their EC2 instances are secure. They want to be notified if
any new vulnerabilities are discovered on their instances and they also want an audit trail
of all login activities on the instances.
Which solution will meet these requirements'?
Show answerHide answer
Correct answer: DConfigure Amazon Inspector to detect vulnerabilities on the EC2 instances Install the
Amazon CloudWatch Agent to capture system logs and record them via Amazon
CloudWatch Logs.
Explanation
Explanation: This solution will meet the requirements because it will use Amazon
Inspector to scan the EC2 instances for any new vulnerabilities and generate findings that
can be viewed in the Inspector console or sent as notifications via Amazon Simple
Notification Service (SNS). It will also use the Amazon CloudWatch Agent to collect and
send system logs from the EC2 instances to Amazon CloudWatch Logs, where they can be
stored, searched, and analyzed. The system logs can provide an audit trail of all login
activities on the instances, as well as other useful information such as performance
metrics, errors, and events.
Question 73Choose 1
A DevOps engineer is researching the least expensive way to implement an image batch
processing cluster on AWS. The application cannot run in Docker containers and must run
on Amazon EC2. The batch job stores checkpoint data on an NFS volume and can tolerate
interruptions. Configuring the cluster software from a generic EC2 Linux image takes 30
minutes.
What is the MOST cost-effective solution?
Show answerHide answer
Correct answer: DUse Amazon EFS for checkpoint data Use EC2 Fleet to launch EC2 Spot Instances
Create a custom AMI for the cluster and use the latest AMI when creating instances.
Question 74Choose 1
A company deploys an application to Amazon EC2 instances. The application runs
Amazon Linux 2 and uses AWS CodeDeploy. The application has the following file
structure for its code repository:
The appspec.yml file has the following contents in the files section:
What will the result be for the deployment of the config.txt file?
Show answerHide answer
Correct answer: CThe config.txt file will be deployed to only /usr/local/src/config txt
Question 75Choose 3
A company runs applications on Windows and Linux Amazon EC2 instances The instances
run across multiple Availability Zones In an AWS Region. The company uses Auto Scaling
groups for each application.
The company needs a durable storage solution for the instances. The solution must use
SMB for Windows and must use NFS for Linux. The solution must also have submillisecond
latencies. All instances will read and write the data.
Which combination of steps will meet these requirements? (Select THREE.)
Show answerHide answer
Correct answer: A, B, DCreate an Amazon Elastic File System (Amazon EFS) file system that has targets in
multiple Availability ZonesCreate an Amazon FSx for NetApp ONTAP Multi-AZ file system.Update the user data for each application's launch template to mount the file system
Question 76Choose 2
A company uses an organization in AWS Organizations to manage its AWS accounts. The
company recently acquired another company that has standalone AWS accounts. The
acquiring company's DevOps team needs to consolidate the administration of the AWS
accounts for both companies and retain full administrative control of the accounts. The
DevOps team also needs to collect and group findings across all the accounts to implement
and maintain a security posture.
Which combination of steps should the DevOps team take to meet these requirements?
(Select TWO.)
Show answerHide answer
Correct answer: B, CInvite the acquired company's AWS accounts to join the organization. Create the
OrganizationAccountAccessRole 1AM role in the invited accounts. Grant permission to the
management account to assume the role.Use AWS Security Hub to collect and group findings across all accounts. Use Security
Hub to automatically detect new accounts as the accounts are added to the organization.
Explanation
Explanation: The correct answer is B and C. Option B is correct because inviting the
acquired company’s AWS accounts to join the organization and creating the
OrganizationAccountAccessRole IAM role in the invited accounts allows the management
account to assume the role and gain full administrative access to the member accounts.
Option C is correct because using AWS Security Hub to collect and group findings across
all accounts enables the DevOps team to monitor and improve the security posture of the
organization. Security Hub can automatically detect new accounts as the accounts are
added to the organization and enable Security Hub for them. Option A is incorrect because
creating an SCP that has full administrative privileges and attaching it to the management
account does not grant the management account access to the member accounts. SCPs
are used to restrict the permissions of the member accounts, not to grant permissions to
the management account. Option D is incorrect because using AWS Firewall Manager to
collect and group findings across all accounts is not a valid use case for Firewall Manager.
Firewall Manager is used to centrally configure and manage firewall rules across the
organization, not to collect and group security findings. Option E is incorrect because using
Amazon Inspector to collect and group findings across all accounts is not a valid use case
for Amazon Inspector. Amazon Inspector is used to assess the security and compliance of
applications running on Amazon EC2 instances, not to collect and group security findings
across accounts.
Question 77Choose 1
An application runs on Amazon EC2 instances behind an Application Load Balancer (ALB).
A DevOps engineer is using AWS CodeDeploy to release a new version. The deployment
fails during the AlIowTraffic lifecycle event, but a cause for the failure is not indicated in the
deployment logs.
What would cause this?
Show answerHide answer
Correct answer: CThe health checks specified for the ALB target group are misconfigured.
Explanation
Explanation: This failure is typically due to incorrectly configured health checks in Elastic
Load Balancing for the Classic Load Balancer, Application Load Balancer, or Network Load
Balancer used to manage traffic for the deployment group. To resolve the issue, review and
correct any errors in the health check configuration for the load balancer.
Question 78Choose 3
A company is implementing an Amazon Elastic Container Service (Amazon ECS) cluster to
run its workload. The company architecture will run multiple ECS services on the cluster.
The architecture includes an Application Load Balancer on the front end and uses multiple
target groups to route traffic.
A DevOps engineer must collect application and access logs. The DevOps engineer then
needs to send the logs to an Amazon S3 bucket for near-real-time analysis.
Which combination of steps must the DevOps engineer take to meet these requirements?
(Choose three.)
Show answerHide answer
Correct answer: B, D, FInstall the Amazon CloudWatch Logs agent on the ECS instances. Change the logging
driver in the ECS task definition to awslogs.Activate access logging on the ALB. Then point the ALB directly to the logging S3
bucket.Create an Amazon Kinesis Data Firehose delivery stream that has a destination of the
logging S3 bucket. Then create an Amazon CloudWatch Logs subscription filter for Kinesis
Data Firehose.
Question 79Choose 3
A company's development team uses AVMS Cloud Formation to deploy its application
resources The team must use for an changes to the environment The team cannot use
AWS Management Console or the AWS CLI to make manual changes directly.
The team uses a developer IAM role to access the environment The role is configured with
the Admnistratoraccess managed policy. The company has created a new
Cloudformationdeployment IAM role that has the following policy.
The company wants ensure that only CloudFormation can use the new role. The development team cannot make any manual changes to the deployed resources.
Which combination of steps meet these requirements? (Select THREE.)
Show answerHide answer
Correct answer: A, D, FRemove the AdministratorAccess policy. Assign the ReadOnIyAccess managed IAM
policy to the developer role. Instruct the developers to use the CloudFormationDeployment
role as a CloudFormation service role when the developers deploy new stacks.Update the trust Of the CloudFormationDepoyment role to anow the
cloudformation.amazonaws.com AWS principal to perform the iam:AssumeR01e actionAdd an IAM policy to CloudFormationDeplyment to allow cloudformation * on an Add a
policy that allows the iam.PassR01e action for ARN of if iam PassedT0Service equal
cloudformation.amazonaws.com
Question 80Choose 1
A DevOps engineer is setting up an Amazon Elastic Container Service (Amazon ECS)
blue/green deployment for an application by using AWS CodeDeploy and AWS
CloudFormation. During the deployment window, the application must be highly available
and CodeDeploy must shift 10% of traffic to a new version of the application every minute
until all traffic is shifted.
Which configuration should the DevOps engineer add in the CloudFormation template to meet these requirements?
Show answerHide answer
Correct answer: BAdd the AWS::CodeDeployBlueGreen transform and the AWS::CodeDeploy::BlueGreen
hook parameter with the CodeDeployDefault.ECSLinear10PercentEvery1 Minutes
deployment configuration.
Full mock exam
Sit the DOP-C02 exam before exam day
Full-length mocks with the same number of questions and the same time limit as the real DOP-C02 exam. Every attempt draws a new set of questions from the full bank, so you can keep going until you pass comfortably.