




























Study with the several resources on Docsity
Earn points by helping other students or get them with a premium plan
This page cannot be seen from the preview
Don't miss anything!





























AWS DevOps Engineer Professional Exam Prep 2026- 2027 Guide
OT AWS DevOps Engineer Professional Exam Prep 2026- 2027 Guide ee Development practice that requires devs to push code to a repo often. A tester/builder checks the code as soon as it is published which allows devs to receive feedback faster. This allows devs to focus on writing code rather than running and waiting for tests to build & compile. © Answer: Continuous Integration Development practice that ensures software can be released reliably whenever needed. This ensures frequent as well as quick deployments. Most of the deployment is automated but may involve a manual approval step. (semi automation} © Answer: Continuous Delivery A set of practices that enable every change that passes automated tests to be automatically deployed to production with no need for manual intervention (full automation). | Answer: Continuous Deployment GIT best practices dictate that if you have NEW changes to make to a code base, you should utilize a rather than a new repository. You can then create requests then merge into master. “Answer branch, pull In AWS, how do you protect pushes/merges from unauthorized users to the master branch (using Code Commit). - Answer: [AM Policy With Explicit Deny ‘L7E: Code Commit contains several triggers and configurable notifications that can call SNS topics and Lambda functions in response to various activity within your repository. - Answer: : r l I I I I I I I I I I I I I I I I L. OT A fully managed build service that is continuously scaling. [t leverages docker under the hood and is secured through compatibility with AWS KMS, VPC's, and AWS Clouderail. “Answer: AWS Code Build The minimum timeout for AWS Code Build? The maximum timeout for AWS Code Build? + Answer: 5 minutes, 8 hours A collection of build commands and related settings, in YAML format, that CodeBuild uses to run a build. © Answer: buildspec.yml This optional parameter of the buildspec.yml file allows for variable declaration, parameter-store, exported variables, secrets-manager, etal. | Answer: env This parameter of the buildspec.yml file allows you to designate commands that will occur during the install, pre_build, build, and post_build stages of the build/test. | Answer: phases ‘Lhis parameter of the buildspec.yml file allows you to save various files after a build is done (S3). I Answer: artifacts This parameter of the buildspec.yml file is used to store files which can speed up deployment during subsequent builds/tests. © Answer: cache This parameter of the buildspec.yml file will allow you to designate commands to run even if prior commands fail. | Answer: finally You can specify env variables in buildspec.yml OR you can add them as environment variables when configuring a new build operation (from the console). | Answer: override What two services can you utilize/integrate with your code build deployment to encrypt your environment variables during a build? | Answer: Parameter Store, Secrets manager r l I I I I I I I I I I I I I I I I L. OT ‘Lhis type of Code Deploy deployment replaces existing instances with new or pre-existing instances. This requires an autoscaling group (or manually provisioned instances) OR a load balancer. | Answer: Blue/Green T/F: There is NO direct integration between Code Deploy and Cloudwatch Logs. You would need to ensure the Code Deploy & Cloudwatch Logs agents are installed. ~ Answer: T To directly connect Code Deploy with (for example) an SNS topic, you can utilize . : Answer: triggers Rollback that occurs if a Code Deploy automatic rollback is not enabled. This simply allows you to rollback by redeploying the previous version/revision. | Answer: Manual What are the two automatic rollback options within Code Deploy? - Answer: deployment failure, alarm threshold met Where niust the buildspec.yml file be placed by default (if you include it as part of the source code)? © Answer: root directory You can specify only buildspec for a build project, regardless of the buildspec file's name. t The name of the application in CodeDeploy that is part of the current deployment (for example, WordPress_App). (Hooks environment variable) | Answer: APPLICATION_NAME ‘Lhe ID CodeDeploy has assigned to the current deployment (for example, d-AB1CDEF23). (Hooks environment variable) | Answer: DEPLOYMENT_ID r l I I I I I I I I I I I I I I I I L. OT ‘Lhe name of the deployment group in CodeDeploy that is part of the current deployment (for example, WordPress_DepGroup). (Hooks environment variable) - Answer: DEPLOYMENT_GROUP_NAME The ID of the deployment group in CodeDeploy that is part of the current deployment (for example, bla2189b-dd90-4ef5-8F40-4c1cSEXAMPLE). (Hooks environment variable) ~ Answer: DEPLOYMENT_GROUP_ID ‘Lhe name of the current deployment lifecycle event (for example, Afterlnstall). (Hooks environment variable) - Answer: LIFECYCLE_EVEN'T Tagging on-premise instances are only required/applicable for what AWS Service? © Answer: Code Deploy To register on-premise instances for Code Deploy, yon MUST use to authenticate. t Answer IAM What are the two ARN options used to authenticate requests with AWS Code Deploy for on- q . premise instances? | Answer: [AM User IAM Role IAM user ARN for authenticating requests for Code Deploy is useful for number of instances. ‘his is due to the administrative burden of having to create an LAM user per instance. | Answer: small IAM role ARN for authenticating requests for Code Deploy utilizes to generate temporary credentials. It is more secure and is recommended for number of instances. StS, large With Code Deploy for Lambda, it allows you to from an existing lambda function(s) to the newly deployed version(s) with various deployment settings. + Answer: shift traffic r l I I I I I I I I I I I I I I I I L. OT Code Pipeline contain action groups that can execute steps in parallel or sequential order. l Auer Stage In the Code Pipeline setup configuration, you can choose to use a default key ora custom key from KMS (that you created) for the encryption settings + Answer: AWS Managed, customer managed (stored in $3) allow Code Pipeline to pass data between services in each stage and their corresponding action group actions. + Answer: Artifacts __ is the backbone of Code Pipeline. Each Pipeline execution will interact with this service many times. (Read from and write data there) ~ Answer: $3 You can add action(s) to various stages in a Code Pipeline to require various approvals before the subsequent action is executed (ie. Continuous Delivery) | Answer: Manual Approval You can utilize the parameter in Code Pipeline to dictate the order of actions within your stages in an execution. © Answer: runOrder A runOrder value indicates that particular action will run after another previous action. (ic runOrder = 5 will run after runOrder = 4) + Answer: higher Two actions with runOxder values will execute in parallel. | Answer: equal ‘L/F: A Code Pipeline action group within a stage can have multiple "mixed and matched" parallel and sequential actions. ~ Answer: 'l In order to use Lambda custom action jobs with CodePipeline, you must include what two API calls? © Answer: PutJobSuccessResult, PutJobFailureResult r l I I I I I I I I I I I I I I I I L. OT token generated by a job worker (such as an AWS CodeDeploy deployment or Code Pipeline action) that a successful job provides to identify the running instance of the action. - Answer: continuationToken T/E: You need the continuationToken in order to be able to obtain a result form the PutJobSuccess API call for Lambda with CodePipeline. ~ Answer: T An all in one (AIO) integrated development environment for your application. It integrates with many AWS and 3rd party dev tools. + Answer: AWS Code Star To modify/customize/configure your Code Star deployment, you must edit the file. L Answer: remplare.yml Open sources CU/CD tool which can he used to replace CodeBuild, CodePipeline, and CodeDeploy and integrate into Code Pipeline as well. It must be managed in a master slave configuration and is deployed on EC2. | Answer: Jenkins Service which uses declarative programming languages to create AWS infrastructure as code. t Answer: CloudFormation What is the only mandatory/required section of a CloudFormation template? | Answer: Resources The CloudFormation User Data logs are stored in /var/log/ ? + Answer: cloud_init_outpur.log CloudFormation feature which helps make complex EC2 configurations more user readable with various prebuilt key-value pairs | Answer: cfn-init The CloudFormation cfr-init log file is stored in /var/log/ 2+ Answer: cfi-init.log r l I I I I I I I I I I I I I I I I L. OT *: You can leverage AWS public SSM Parameters such as the latest ami-id for a specific OS. | What are the two methods for deploying Lambda functions via CloudFormation: code, zipped code from s3 What two parameters do you need in order to reference the zipped code in s3 to deploy Lambda via CloudFormation? + Answer: bucket name, object key T/F: You can add references to different Lambda versions uploaded to $3 when deploying/updating Lambda functions via CloudFormation. ~ Answer: T This CF feature enables you to write custom provisioning logic in templates that AWS CloudFormation runs anytime you create, update, or delete the stack. + Answer: Custom Resources Feature of CF that allows you to detect manual changes to any resources deployed in the original stack, It must be manually enabled and cannot revert changes (only for monitoring changes) I Answer: D rift Detection What CF Error code requires manual intervention and is usually the result of a resource being manually deleted, service limit reached, or a dependent resource cannot return to its original state. : Answer: Update Rollback Failed Error message that indicates CloudFormation has not been provided the nec provision LAM resources. _ Answer: Ins ufficientCapabilitiesException ary capabilities to CloudFormation feature that detects changes in a resource's metadata and runs user-specified actions when a change is detected | Answer: cfn-hup r l I I I I I I I I I I I I I I I I L. OT ‘Lhe default interval at which cfn-hub checks for changes in the resource meta data is minutes. SABSWEE 15 JSON policy document that can be included/uploaded with your CloudFormation template which controls which resources within your stack can be updated. © Answer: Stack Policy T/F: When you modify/change a stack policy when updated a CloudFormation template, the stack policy is modified only for that one instance. Elastic Beanstalk provide an easy way to back up and propagate your EB config settings across applications and regions. It also allows you to deploy different settings to varying applications. - Answer: Saved Configuration Elastic Beanstalk saved configurations only preserve - settings when you save an application's configuration settings. © Answer: non-default T/F: Elastic Beanstalk saved configurations also preserve user specified environment variables. I Answer: T Another way to configure application settings in Elastic Beanstalk is to use a directory. Within this directory, you can utilize files (written in YAML) to define application and environment configuration settings. | Answer: .cbextensions, config Where in the directory structure is an Elastic Beanstalk’s .ebextensions directory placed? - Answer: root What is the CLI command to deploy your current source code to the Elastic Beanstalk environment? EAB deploy r l I I I I I I I I I I I I I I I I L. OT container_commands and commands execute each time an instance is provisioned or updated. | Answer: leader_only This feature of the application version in Elastic Beanstalk makes it easy to automatically maintain your application version history to avoid reaching the limit | Answer: Application Version Lifecycle Elastic Beanstalk deployment option which is the fastest. It deploys your application all in one go but results in downtime and the inability for your app to serve traffic for some time. + Answer: All At Once Elastic Beanstalk deployment option which updates a group of instances at a time (referred to as a “bucker"). As the initial bucket is reporting healthy, the update then moves on to the next bucket(s). Asse Rolin Elastic Beanstalk deployment option which is similar to rolling, but spins up new instances to move the batches to. This allows the old application to still serve traffic, albeit at lower capacity. ~ Answer: Rolling with additional batches Elastic Beanstalk deployment option which spins up new instances in a new auto-scaling group, deploys the new version to these instances, and then swaps pointers to point to the new autoscaling group. If the new instances don't pass health checks, Elastic Beanstalk terminates them, leaving the original instances untouched. + Answer: Immutable Elastic Beanstalk deployment option (not a direct feature of EB) which creates a new stage environment in EB and deploys the new version of the application there. It the uses a Route53 weighted routing policy to point traffic to the new instances. - Answer: Blue/Green Swap URL, Route 53 (weighted routing policy) _ Answer: Name the two primary ways of implementing a blue/green deployment strategy for your Elastic Beanstalk application environments. P. 8 3 " By Tor} P| What are the only two environment tier options in Elastic Beanstalk? © Answer: Web Server r l I I I I I I I I I I I I I I I I L. OT Worker ‘Lhe environment in Elastic Beanstalk is useful for applications that need to process long- running workloads on demand or perform tasks on a running schedule - Answer: Worker ‘he Worker environment in Elastic Beanstalk utilizes to poll for work to perform. FAnivee SQS Queue You can use the . configuration file in the worker environment in Elastic Beanstalk to define tasks that can be performed on a schedule within the environment. ~ Answer: ron.yaml For advanced Multi-Docker integration in Elastic Beanstalk, you must configure this JSON file to customize your Environment. + Answer: Dockerrun.aws,json DABSHEE 15 minutes What is the upper bound execution duration limit for Lambda functior What are the two Lambda integration triggers that can be used to provide an HTTP endpoint that can trigger your lambda function(s)? + Answer: ALB, API Gateway The $LATEST version of a lambda function is always (can be modified) + Answer: mutable The published versions of lambda functions are always (cannot be modified} ~ Answer: immutable You can utilize Lambda to point to different Lambda versions. You can also utilize the built in percentage and weight distribution to slowly direct traffic to new versions. - Answer: Aliases r l I I I I I I I I I I I I I I I I L. OT T/F: You must deploy changes in API Gateway to a stage before they will be “live” ~ Answer: T ‘Vhis feature of API Gateway is similar to env variables. ’I'hey can be used to parameterize the integration of a request for each stage. L Answer: Stage Variables What are the two ways to perform a canary or Blue/Green deployment in API Gateway? - Answer: Through built-in API Gateway feature ‘hrough Lambda Alias and traffic % distribution By default, API Gateway limits requests per second to at an account-wide level. I Answer: 10,000 This is a logical grouping of EC2 instances within ECS. The grouping contains instances that run the ECS Agent (docker container) and will register instances automatically with this. ~ Answer: ECS Cluster Metadata in JSON format which tells ECS how co run a docker container (instructions). It contains important information such as the image name, port bindings, memoty, CPU, environment variables, and network information. | Answer: ECS Task Definition T/F: Task definitions can be assigned task roles which are just LAM roles that allow it to perform certain actions. ~ Answer: T This ECS component helps define how may tasks should run and how they should run those tasks. It ensure the number of tasks desired is running across the entire cluster of instances - Answer: ECS Service This feature of Application Load Balancers allows multiple tasks per ECS container instance to be mapped to the same listener port ona single load balancer with rule-based routing and paths. t Answer: Dynamic Host Port Mapping r l I I I I I I I I I I I I I I I I L. OT Docker image repository on AWS which allows you to create and upload your own docker image for use within ECS/docker. - Answer: ECR (Elastic Container Registry) What is the CLI command you must first run in order to obtain your ECR login credentials? I Answer: aws ecr get-login-password ECS Service in which AWS manages your underlying EC2 instances (serverless). You simply create task definition and AWS runs containers for you. ~ Answer: ECS Fargate Elastic Beanstalk supports both and docker container modes in which an ECS cluster, underlying EC2 instances, optional load balancer, and task definitions are created for you. : Answer: Single, Multi ‘Lhis contig file is required if you wish to utilize Elastic Beanstalk with single/multi-docker configuration. » Answer: dockerrun.aws.json In ECS Classic (With EC2), both the EC2 have attached IAM role(s) as well as the ECS . - Answer: Instances, tasks In ECS with Fargate, only the have attached IAM roles. | Answer: tasks What is a limitation/shortfall of the service auto-scaling policy for EC2 backed ECS Service? + Answer: Must create separate autoscaling policies (1 for EC2 and 1 for tasks in ECS) What are two alternatives to having to manage two separate autoscaling policies for ECS with EC2? Why? | Answer: Fargate, Elasticbeanstalk (Fargate - Autoscaling task definitions and AWS handles scaling instances. Elasticbeanstalk - Handles autoscaling EC2 with task executions) r l I I I I I I I I I I I I I I I I L. OT CloudTrail Digest logs are delivered only per hour In order to enable Cross Account Logging in CloudTrail, you must add the account(s) you wish to Es bcket pic allow access in the central $3's Kinesis provide low latency streaming ingestion at scale. Requires manual scaling (for shard management) - Answer: streams Kinesis perform real-time analysis on streams using SQL - Answer: analytics Kinesis loads data into $3, redshift, and elasticsearch. Is fully managed and auto-scales as well as provides near-real time data ingestion. Kinesis streams are divided in to different . © Answer: shards Data retention for Kinesis Streams defaults to__ day(s) and is configurable up to ___ day(s). | AEE. 7 An advantage of Kinesis Streams is the ability for multiple applications to consume the stream SABSWEHlsame T/E: In Kinesis Streams, once data is inserted in to the stream it cannot be deleted (immutable Answer: T In Kinesis Streams, shard records are ordered the stream). L Answer: per shard only (NO'T across all shards within r l I I I I I I I I I I I I I I I I L. OT Kinesis Screams Producers can write MB/s or Messages/s per-shard. (Kinesis Data streams limi) - Answer: 1, 1000 What is the error thrown by AWS if a Kinesis Streams producer exceeds the write limits (MB/s or Messages/s) defined? | Answer: Provisioned ThroughputException Kinesis Streams Consumers can read at most __ MB/s per shard across all consumers. Additionally, it can call at most __ API calls per second per shard across all consumers. ~ Answer: 2, 5 AWS uses DynamoDB to checkpoint progress/offsets when utilizing Kinesis Streams. Using Dynamo, it can track other works and share the same work among shards. ‘his is ideal for a distributed streaming workload. | Answer: Kinesis KCL What are some important data sources (producers) to know for Kinesis Firehose? (2) - Answer: Kinesis Data Streams, Cloudwatch Logs and Events What are some important destinations to known for Kinesis Firehose (4) - Answer: $3, Redshift, Elasticsearch, Splunk As you move further back in time, CloudWatch metrics are detailed/granular (to save on cost). + Answer: less For EC2 CW Metrics, Disk metrics are only shown for volumes. EBS provides its own metrics dashboard(s). + Answer: instance store EBS CloudWatch Metrics do NO'T contain data about volume (space left). - Answer: Capacity T/F: In CloudWatch metrics for Auto-Scaling Groups, to enable Group Metrics Collection, you must first enable it. ~ Answer: T r l I I I I I I I I I I I I I I I I L.