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.
You are configuring an Amazon CloudFront distribution. What happens when an object is requested but not found in the cache?
AError 404 is returned immediately
BThe origin server is contacted
CThe request is dropped silently
DCloudFront serves a cached 404 page
Explanation
CloudFront contacts the origin to retrieve the object if not found in the cache, unlike returning an error or dropping the request.
Q352
Which service is ideal for event-driven serverless applications?
AAmazon S3
BAWS Lambda
CAmazon EC2
DAmazon RDS
Explanation
AWS Lambda allows you to run code in response to events, while S3 and EC2 are for storage and compute respectively, and RDS is for managed databases.
Q353
A company needs to automate its CI/CD pipeline using AWS services. Which service combination would you recommend?
AAWS CodeCommit and CodeDeploy
BElastic Beanstalk and Lambda
CEC2 and RDS
DCloudFormation and IAM
Explanation
AWS CodeCommit and CodeDeploy are specifically designed for creating and deploying CI/CD pipelines, unlike the other options that serve different purposes.
Q354
You are configuring an S3 bucket policy to allow public read access. What happens if you use an invalid condition statement?
APublic access is granted
BRequest is denied automatically
CBucket becomes private
DError is logged only
Explanation
An invalid condition statement results in the bucket policy being evaluated as denied, ensuring enhanced security.
Q355
You are deploying a serverless application. Which AWS service best manages serverless functions?
AAWS Lambda
BAmazon EC2
CAWS Elastic Beanstalk
DAWS Fargate
Explanation
AWS Lambda is designed specifically for serverless computing, whereas EC2 and Elastic Beanstalk are for traditional deployments.
Q356
A company needs to manage its Docker containers in a consistent manner across multiple AWS accounts. What should they use?
AAWS Fargate
BAmazon ECS
CAWS CloudFormation
DAmazon EKS
Explanation
Amazon EKS provides a managed Kubernetes service that is ideal for managing Docker containers across multiple accounts compared to ECS.
Q357
What happens when you disable MFA delete on an S3 bucket's versioning configuration?
ADelete requests are permanently blocked
BVersioning is turned off
CObjects cannot be restored
DVersioned objects can be deleted easily
Explanation
Disabling MFA delete allows versioned objects to be deleted with fewer restrictions, increasing risk.
Q358
Which service is used for container orchestration?
AAmazon ECS
BAWS Lambda
CAmazon RDS
DAWS CloudFormation
Explanation
Amazon ECS is specifically designed for container orchestration, while the others serve different purposes.
Q359
A company needs to grant temporary access to a third-party application for a limited duration. Which service should be used?
AIAM Roles
BAWS Trusted Advisor
CAmazon CloudWatch
DAWS Config
Explanation
IAM Roles allow for temporary access based on permissions, while the others do not provide this functionality.
Q360
What happens when you terminate an EC2 instance that uses instance store volumes?
AData is retained after termination
BData is lost after termination
CInstance is saved as an AMI
DVolumes are converted to EBS
Explanation
Instance store volumes are ephemeral, so data is lost upon termination; the other options do not apply to instance store.