The AWS Certified DevOps Engineer – Professional (DOP-C02) exam validates your skills in automating the testing and deployment of AWS applications. It is ideal for those looking to advance their DevOps career.
A company needs its CI/CD pipeline to automatically deploy to an Amazon ECS service. What should they use?
AAWS CodePipeline
BAWS CloudFormation
CAWS Lambda
DAmazon S3
Explanation
AWS CodePipeline orchestrates the CI/CD process including ECS deployments. CloudFormation manages infrastructure, not CI/CD pipelines.
Q342
You are configuring IAM policies using the principle of least privilege. What should you avoid doing?
AGranting full access to resources
BRestricting permissions by actions
CReviewing policies regularly
DUsing resource conditions
Explanation
Granting full access contradicts the principle of least privilege. The other options support restricting access appropriately.
Q343
Which service provides automated provisioning for infrastructure?
AAWS CloudFormation
BAmazon S3
CAWS CodeCommit
DAmazon RDS
Explanation
AWS CloudFormation automates infrastructure provisioning; others do not.
Q344
A company needs high-availability for their web application, which AWS service would best facilitate this?
AAmazon EC2 Auto Scaling
BAWS Lambda
CAmazon S3
DAWS CloudTrail
Explanation
Amazon EC2 Auto Scaling ensures high-availability; others do not provide this feature.
Q345
What happens when you terminate an EC2 instance that’s part of an Auto Scaling group?
AInstance is recreated automatically
BInstance is permanently deleted
CHealth checks will fail
DScaling policies become disabled
Explanation
It's automatically recreated to maintain desired capacity; others are incorrect behaviors.
Q346
Which service can automate the deployment of applications across multiple cloud environments?
AAWS CodeDeploy
BAWS Inspector
CAWS X-Ray
DAWS CloudFormation
Explanation
AWS CodeDeploy automates application deployments, while others serve different purposes.
Q347
A company needs to monitor its AWS resources for changes and compliance. Which service should they use?
AAWS CloudTrail
BAWS Config
CAWS CloudWatch
DAWS Systems Manager
Explanation
AWS Config monitors and assesses compliance of AWS resources; others provide different monitoring functionalities.
Q348
You are configuring an EC2 instance with an IAM role. What happens if you attach a policy that grants full S3 access?
AInstance gains access to all S3 buckets
BInstance cannot access any S3 bucket
CInstance has limited access to S3 buckets
DInstance uses only public S3 buckets
Explanation
The instance gains full access as per the role's policy, while others are incorrect because they misinterpret role permissions.
Q349
Which service allows you to run code in response to events without provisioning servers?
AAWS Lambda
BAmazon EC2
CAWS Elastic Beanstalk
DAWS Fargate
Explanation
AWS Lambda is a serverless compute service that runs code in response to events, unlike the others that require managing infrastructure.
Q350
A company needs a way to version its application configuration stored in S3 while preventing access to deleted objects. Which feature meets these requirements?
AVersioning and MFA Delete
BS3 Cross-Region Replication
CLifecycle Policy
DS3 Transfer Acceleration
Explanation
Versioning allows object recovery, and MFA Delete prevents accidental deletions, making it fit both requirements unlike the others.