DevOps Engineering on AWS Certification Trivia 5 — Questions and Answers
Question 1: Which AWS service enables you to automatically scale EC2 instances based on a schedule or CloudWatch alarms?
- AWS Auto Scaling (Correct answer)
- Elastic Load Balancing
- AWS Compute Optimizer
- Amazon EC2 Fleet
Correct answer: AWS Auto Scaling
AWS Auto Scaling adjusts EC2 capacity up or down automatically based on defined policies or schedules.
Question 2: What is the name of the file in an AWS CodeBuild project that defines build commands and settings?
- Dockerfile
- buildspec.yml (Correct answer)
- appspec.yml
- taskdef.json
Correct answer: buildspec.yml
buildspec.yml is the build specification file that CodeBuild reads to determine how to run the build.
Question 3: Which Amazon S3 feature prevents objects from being deleted or overwritten for a specified retention period?
- S3 Versioning
- S3 Object Lock (Correct answer)
- S3 Lifecycle Policy
- S3 Replication
Correct answer: S3 Object Lock
S3 Object Lock uses WORM (Write Once Read Many) model to prevent object deletion or modification.
Question 4: In AWS, what is the term for the practice of simulating failures in production to test system resiliency?
- Disaster Recovery
- Chaos Engineering (Correct answer)
- Load Testing
- Blue/Green Testing
Correct answer: Chaos Engineering
Chaos Engineering involves intentionally injecting failures into systems to discover weaknesses before they cause incidents.
Question 5: Which AWS service provides managed Grafana workspaces for visualizing operational metrics?
- Amazon CloudWatch Dashboards
- Amazon Managed Grafana (Correct answer)
- AWS X-Ray
- AWS QuickSight
Correct answer: Amazon Managed Grafana
Amazon Managed Grafana provides fully managed Grafana workspaces integrated with AWS data sources.
Question 6: What CloudFormation resource type is used to execute custom provisioning logic using Lambda functions during stack operations?
- AWS::CloudFormation::WaitCondition
- AWS::CloudFormation::CustomResource (Correct answer)
- AWS::CloudFormation::Stack
- AWS::CloudFormation::Macro
Correct answer: AWS::CloudFormation::CustomResource
AWS::CloudFormation::CustomResource invokes a Lambda function during Create, Update, or Delete stack events for custom logic.
Question 7: Which AWS feature allows you to grant temporary security credentials to federated users from an external identity provider?
- IAM Roles
- AWS SSO
- AWS STS AssumeRoleWithWebIdentity (Correct answer)
- IAM Identity Center
Correct answer: AWS STS AssumeRoleWithWebIdentity
STS AssumeRoleWithWebIdentity returns temporary credentials for users authenticated via a web identity provider like Google or Cognito.
Which AWS service enables you to automatically scale EC2 instances based on a schedule or CloudWatch alarms?