Free DevOps Engineering on AWS Certification MCQ Questions and Answers — Questions and Answers
Question 1: When considering AWS Elastic Beanstalk, the \\'Swap Environment URLs\\' option most directly assists in what?
- Blue-Green Deployments (Correct answer)
- Immutable Rolling Deployments
- Mutable Rolling Deployments
- Canary Deployments
Correct answer: Blue-Green Deployments
Simply upload the updated version of your application and let your deployment provider (AWS Elastic Beanstalk, AWS CloudFormation, or AWS OpsWorks) to deploy a new version (green). To upgrade to the latest version, just change the ELB URLs in your DNS records. Elastic Beanstalk has a Swap Environment URLs tool to help with the cutover process.
Question 2: Amazon CloudTrail logs ____ activities described by the CloudTrail _____ APIs by default.
- object-level; RESTful
- bucket-level; RESTful (Correct answer)
- bucket-level; SDK
- object-level; SDK
Correct answer: bucket-level; RESTful
CloudTrail automatically logs bucket-level actions. Amazon S3 records are written to a log file with other AWS service data. CloudTrail's RESTful API defines the Amazon S3 bucket-level operations that can be logged.
Question 3: You need your DynamoDB-backed API to remain operational amid a catastrophic regional AWS failure. During a significant failure event, you can accept a few minutes of lag or slowness, but the system should resume regular functioning after those few minutes. <br> What is an effective strategy?
- Set up a DynamoDB Multi-Region table. Create a cross-region ELB pointing to a cross-region Auto Scaling Group, and direct a Route53 Latency DNS Record with DNS Failover to the cross-region ELB.
- Set up DynamoDB cross-region replication in a master-standby configuration, with a single standby in another region. Create a cross-region ELB pointing to a cross-region Auto Scaling Group, and direct a Route53 Latency DNS Record with DNS Failover to the cross-region ELB.
- Set up a DynamoDB Multi-Region table. Create an Auto Scaling Group behind an ELB in each of the two regions DynamoDB is running in. Add a Route53 Latency DNS Record with DNS Failover, using the ELBs in the two regions as the resource records.
- Set up DynamoDB cross-region replication in a master-standby configuration, with a single standby in another region. Create an Auto Scaling Group behind an ELB in each of the two regions DynamoDB is running in. Add a Route53 Latency DNS Record with DNS Failover, using the ELBs in the two regions as the resource records. (Correct answer)
Correct answer: Set up DynamoDB cross-region replication in a master-standby configuration, with a single standby in another region. Create an Auto Scaling Group behind an ELB in each of the two regions DynamoDB is running in. Add a Route53 Latency DNS Record with DNS Failover, using the ELBs in the two regions as the resource records.
There is no such thing as a cross-region ELB, or a cross-region Auto Scaling Group, or a DynamoDB Multi-Region Table. The only viable solution is the cross-regional replication version with two ELBs and ASGs, as well as Route53 Failover and Latency DNS.
Question 4: What is the anticipated behavior when Ansible is called with 'ansible-playbook -i localhost playbook.yml'?
- Ansible won\\'t run, this is invalid command line syntax
- Ansible won\\'t run, this is invalid command line syntax (Correct answer)
- Ansible will attempt to read the inventory file named 'localhost\\' (Correct answer)
- Ansible will run the playbook on the host named 'localhost\\'
Correct answer: Ansible won\\'t run, this is invalid command line syntax
With the '-i' option, Ansible demands an inventory filename, regardless of whether it is a legitimate hostname. A comma must be inserted to the end of this for it to run on the host 'localhost' resolves to.
Question 5: Which language is not supported while creating custom Ansible modules?
- All of the languages listed are supported (Correct answer)
- Bash
- C++
- Python
Correct answer: All of the languages listed are supported
Ansible modules can be written in any language that the target system supports. The sole condition is that the module send its findings to STOUT as JSON for Ansible to ingest.
Question 6: Which of the following statements concerning establishing proxy support for Amazon Inspector agent on a Windows-based system is correct?
- Amazon inspector agent supports proxy usage on Windows-based systems through awsagent.env configuration file.
- Amazon Inspector proxy support on Windows-based systems is achieved throgh installing proxy-enabled version of the agent which comes with preconfigured files that you need to edit to match your environment.
- Amazon Inspector agent supports proxy usage on Windows-based systems through the use of the WinHTTP proxy. (Correct answer)
- Amazon Inspector agent supports proxy usage on Linux-based systems but not on Windows.
Correct answer: Amazon Inspector agent supports proxy usage on Windows-based systems through the use of the WinHTTP proxy.
The WinHTTP proxy is used to offer proxy support for AWS agents.
Question 7: A table in an Amazon RDS MySQL DB instance must be dropped and repopulated at each deployment for an n-tier application. This procedure can take several minutes, and the web tier cannot be accessed until it is completed. The web layer is currently set up as an Amazon EC2 Auto Scaling group, with instances terminated and replaced at each deployment. An AWS CodeBuild task does a SQL query to populate the MySQL table. <br> What steps should be taken to make sure that the web tier does not go online before the database is fully configured?
- Use AWS Step Functions to monitor and maintain the state of data population. Mark the database in service before continuing with the deployment.
- Use an EC2 Auto Scaling lifecycle hook to pause the configuration of the web tier until the table is populated. (Correct answer)
- Modify the launch configuration of the Auto Scaling group to pause user data execution for 600 seconds, allowing the table to be populated.
- Use Amazon Aurora as a drop-in replacement for RDS MySQL. Use snapshots to populate the table with the correct data.
Correct answer: Use an EC2 Auto Scaling lifecycle hook to pause the configuration of the web tier until the table is populated.
Amazon EC2 Auto Scaling lets you add lifecycle hooks to your Auto Scaling groups. These hooks enable you to design solutions that are aware of Auto Scaling instance lifecycle events and then conduct a custom action on instances when the correct lifecycle event happens. A lifecycle hook allows the instance to wait for a given period of time (one hour by default) for the action to finish before moving on to the next stage.
When considering AWS Elastic Beanstalk, the \\'Swap Environment URLs\\' option most directly assists in what?