AWS DevOps Engineer - Professional Practice Exam — Free Online
QuestionQ1
Security and Compliance
Save question
A company uses AWS Organizations to manage multiple accounts. Information security policies require that every unencrypted Amazon EBS volume be designated as non-compliant. A DevOps engineer must deploy the solution automatically and ensure that this compliance check is always in place.
Which solution will accomplish this?
ACreate an AWS CloudFormation template that defines an AWS Inspector rule to check whether EBS encryption is enabled. Save the template to an Amazon S3 bucket that has been shared with all accounts within the company. Update the account creation script pointing to the CloudFormation template in Amazon S3.
BCreate an AWS Config organizational rule to check whether EBS encryption is enabled and deploy the rule using the AWS CLI. Create and apply an SCP to prohibit stopping and deleting AWS Config across the organization.
CCreate an SCP in Organizations. Set the policy to prevent the launch of Amazon EC2 instances without encryption on the EBS volumes using a conditional expression. Apply the SCP to all AWS accounts. Use Amazon Athena to analyze the AWS CloudTrail output, looking for events that deny an ec2:RunInstances action.
DDeploy an IAM role to all accounts from a single trusted account. Build a pipeline with AWS CodePipeline with a stage in AWS Lambda to assume the IAM role, and list all EBS volumes in the account. Publish a report to Amazon S3.
0
Community Discussion
No comments yet. Be the first to start the discussion!
QuestionQ2
Resilient Cloud Solutions
0
Community Discussion
No comments yet. Be the first to start the discussion!
QuestionQ3
Security and Compliance
0
Community Discussion
No comments yet. Be the first to start the discussion!
QuestionQ4
Resilient Cloud Solutions
0
Community Discussion
No comments yet. Be the first to start the discussion!
QuestionQ5
Resilient Cloud Solutions
0
Community Discussion
No comments yet. Be the first to start the discussion!
It's free
100% of the questions are free for all users. No strings attached.
A company hosts a web application in an AWS Region. For disaster recovery, it uses a second Region as a standby. The disaster recovery requirements specify that session data must be replicated between Regions in near real time, and 1% of requests must be routed to the secondary Region to continuously validate system functionality. In addition, if service in the primary Region is disrupted, traffic must automatically route to the secondary Region, which must be able to scale to support all traffic.
How should a DevOps engineer satisfy these requirements?
AIn both regions, deploy the application on AWS Elastic Beanstalk and use Amazon DynamoDB global tables for session data. Use an Amazon Route 53 weighted routing policy with health checks to distribute the traffic across the regions.
BIn both regions, launch the application in Auto Scaling groups and use DynamoDB for session data. Use a Route 53 failover routing policy with health checks to distribute the traffic across the regions.
CIn both regions, deploy the application in AWS Lambda, exposed by Amazon API Gateway, and use Amazon RDS PostgreSQL with cross-region replication for session data. Deploy the web application with client-side logic to call the API Gateway directly.
DIn both regions, launch the application in Auto Scaling groups and use DynamoDB global tables for session data. Enable an Amazon CloudFront weighted distribution across regions. Point the Amazon Route 53 DNS record at the CloudFront distribution.
A DevOps Engineer must back up sensitive Amazon S3 objects stored in an S3 bucket with a private bucket policy by using S3 Cross-Region Replication. The objects must be copied to a target bucket in another AWS Region and AWS account.
Which actions must be taken to enable this replication?
Choose three
ACreate a replication IAM role in the source account.
BCreate a replication IAM role in the target account.
CAdd statements to the source bucket policy allowing the replication IAM role to replicate objects.
DAdd statements to the target bucket policy allowing the replication IAM role to replicate objects.
ECreate a replication rule in the source bucket to enable the replication.
FCreate a replication rule in the target bucket to enable the replication.
A DevOps engineer configures two Amazon S3 event notifications for an S3 bucket through the S3 console. Both event notifications are invoked when an object PUT action takes place. One event notification invokes an AWS Lambda function when the file suffix is .csv. Another event notification invokes an Amazon Simple Notification Service (Amazon SNS) topic when the file suffix is .xlsx.
The DevOps engineer observes that files with the .csv suffix successfully invoke the Lambda function. However, files with the .xlsx suffix do not invoke the SNS topic.
Which reason explains why the SNS topic is not invoked when .xlsx files are added to the S3 bucket?
AOnly one event notification is allowed from the S3 console.
BAmazon S3 needs proper permissions to publish an event notification to Amazon SNS.
CLambda has precedence over Amazon SNS in handling the event notification.
DAmazon SNS is not a valid destination for some S3 event notifications, including object PUT.
A company runs an application that uses a MySQL-compatible Amazon Aurora Multi-AZ DB cluster for its database. A cross-Region read replica was created for disaster-recovery purposes. A DevOps engineer needs to automate promotion of the replica so that it becomes the primary database instance if a failure occurs.
Which solution will achieve this?
AConfigure a latency-based Amazon Route 53 CNAME with health checks so it points to both the primary and replica endpoints. Subscribe an Amazon SNS topic to Amazon RDS failure notifications from AWS CloudTrail and use that topic to trigger an AWS Lambda function that will promote the replica instance as the master.
BCreate an Aurora custom endpoint to point to the primary database instance. Configure the application to use this endpoint. Configure AWS CloudTrail to run an AWS Lambda function to promote the replica instance and modify the custom endpoint to point to the newly promoted instance.
CCreate an AWS Lambda function to modify the application's AWS Cloud Formation template to promote the replica, apply the template to update the stack, and point the application to the newly promoted instance. Create an Amazon CloudWatch alarm to trigger this Lambda function after the failure event occurs.
DStore the Aurora endpoint in AWS Systems Manager Parameter Store. Create an Amazon EventBridge (Amazon CloudWatch Events) event that defects the database failure and runs an AWS Lambda function to promote the replica instance and update the endpoint URL stored in AWS Systems Manager Parameter Store. Code the application to reload the endpoint from Parameter Store if a database connection fails.
QuestionQ6
SDLC Automation
0
Community Discussion
No comments yet. Be the first to start the discussion!
QuestionQ7
Resilient Cloud Solutions
QuestionQ8
Resilient Cloud Solutions
QuestionQ9
Security and Compliance
QuestionQ10
Security and Compliance
QuestionQ11
Security and Compliance
QuestionQ12
Configuration Management and IaC
QuestionQ13
Security and Compliance
QuestionQ14
Security and Compliance
QuestionQ15
Security and Compliance
QuestionQ16
Resilient Cloud Solutions
QuestionQ17
SDLC Automation
QuestionQ18
Resilient Cloud Solutions
QuestionQ19
SDLC Automation
QuestionQ20
Incident and Event Response
QuestionQ21
Resilient Cloud Solutions
QuestionQ22
Monitoring and Logging
QuestionQ23
Resilient Cloud Solutions
QuestionQ24
Configuration Management and IaC
QuestionQ25
Incident and Event Response
Save question
0
Community Discussion
No comments yet. Be the first to start the discussion!
Save question
0
Community Discussion
No comments yet. Be the first to start the discussion!
Save question
0
Community Discussion
No comments yet. Be the first to start the discussion!
Save question
0
Community Discussion
No comments yet. Be the first to start the discussion!
Save question
0
Community Discussion
No comments yet. Be the first to start the discussion!
Save question
0
Community Discussion
No comments yet. Be the first to start the discussion!
Save question
0
Community Discussion
No comments yet. Be the first to start the discussion!
Ad
Want a break from the ads?
Go ad-free and unlock Learn Mode, Exam Mode, AstroTutor AI and every premium tool — everything you need to walk in prepared, and confident.
No comments yet. Be the first to start the discussion!
Save question
0
Community Discussion
No comments yet. Be the first to start the discussion!
Save question
0
Community Discussion
No comments yet. Be the first to start the discussion!
Save question
0
Community Discussion
No comments yet. Be the first to start the discussion!
Save question
0
Community Discussion
No comments yet. Be the first to start the discussion!
Save question
0
Community Discussion
No comments yet. Be the first to start the discussion!
Save question
0
Community Discussion
No comments yet. Be the first to start the discussion!
Save question
0
Community Discussion
No comments yet. Be the first to start the discussion!
Save question
0
Community Discussion
No comments yet. Be the first to start the discussion!
Save question
0
Community Discussion
No comments yet. Be the first to start the discussion!
Save question
0
Community Discussion
No comments yet. Be the first to start the discussion!
Save question
0
Community Discussion
No comments yet. Be the first to start the discussion!
A company wants to use AWS development tools to replace its existing bash deployment scripts. It currently deploys a LAMP application to a group of Amazon EC2 instances behind an Application Load Balancer (ALB). During deployments, the company:
Unit tests the committed application
Stops and starts services
Unregisters and re-registers instances with the load balancer
Updates file permissions
The company wants to preserve the same deployment functionality while shifting to AWS services.
Which solution meets these requirements?
AUse AWS CodeBuild to test the application. Use bash scripts invoked by AWS CodeDeploy's appspec.yml file to restart services, and deregister and register instances with the ALB. Use the appspec.yml file to update file permissions without a custom script.
BUse AWS CodePipeline to move the application from the AWS CodeCommit repository to AWS CodeDeploy. Use CodeDeploy's deployment group to test the application, unregister and re-register instances with the ALB, and restart services. Use the appspec.yml file to update the permissions without a custom script.
CUse AWS CodePipeline to move the application source code from the AWS CodeCommit repository to AWS CodeDeploy. Use CodeDeploy to test the application. Use CodeDeploy's appspec.yml file to restart services and update permissions without a custom script. Use AWS CodeBuild to unregister and re- register instances with the ALB.
DUse AWS CodePipeline to trigger AWS CodeBuild to test the application. Use bash scripts invoked by AWS CodeDeploy's appspec.yml file to restart services. Unregister and re-register the instances in the AWS CodeDeploy deployment group with the ALB. Update the appspec.yml file to update file permissions without a custom script.
A company uses AWS Database Migration Service (AWS DMS) to replicate data from a source database in a data center to a target Amazon Aurora PostgreSQL database. The company has created a DMS replication task with change data capture (CDC).
The replication instance is occasionally interrupted, affecting critical functionality. The company must increase the resiliency of the replication instance and receive notifications when interruptions occur.
Which solution meets these requirements with the LEAST operational overhead?
ACopy data from the source database to Amazon S3 by using AWS DataSync. Configure AWS Lambda functions to copy the data to the target database. Configure Amazon CloudWatch alarms to monitor the Lambda functions for errors and throttles. Use an Amazon Simple Notification Service (Amazon SNS) topic for email notification.
BCreate Amazon CloudWatch alarms to monitor DMS replication task metrics and host metrics. Use an Amazon Simple Notification Service (Amazon SNS) topic for email notification and to invoke an AWS Lambda function to configure a standby DMS replication instance in a different AWS Region.
CCreate Amazon CloudWatch alarms to monitor DMS replication task metrics and host metrics. Use an Amazon Simple Notification Service (Amazon SNS) topic for email notification. After receiving the notification, configure a new DMS replication task in the same AWS Region.
DModify the DMS replication instance by tuming on Multi-AZ support. Create Amazon CloudWatch alarms to monitor DMS replication task metrics and host metrics. Use an Amazon Simple Notification Service (Amazon SNS) topic for email notification.
A company hosts an application on a single Amazon EC2 instance. The application metadata is kept in Amazon S3 and must be retrieved whenever the instance is restarted. The instance must automatically restart or relaunch if it becomes unresponsive.
Which solution meets these requirements?
ACreate an Amazon CloudWatch alarm for the StatusCheckFailed metric. Use the recover action to stop and start the instance. Use an S3 event notification to push the metadata to the instance when the instance is back up and running.
BConfigure AWS OpsWorks, and use the auto healing feature to stop and start the instance. Use a lifecycle event in OpsWorks to pull the metadata from Amazon S3 and update it on the instance.
CUse EC2 Auto Recovery to automatically stop and start the instance in case of a failure. Use an S3 event notification to push the metadata to the instance when the instance is back up and running.
DUse AWS CloudFormation to create an EC2 instance that includes the UserData property for the EC2 resource. Add a command in UserData to retrieve the application metadata from Amazon S3.
A company has an organization in AWS Organizations. It has configured AWS Single Sign-On (AWS SSO) to centrally manage access to the AWS accounts in that organization. A DevOps engineer must ensure that every user signs in using multi-factor authentication (MFA). Users must be able to manage their own MFA devices, and they must be prompted for MFA each time they sign in.
What should the DevOps engineer do to satisfy these requirements?
AIn AWS SSO, configure always-on MFBlock user sign-in when a user does not yet have a registered MFA device.
BIn AWS SSO, configure always-on MFA. Require a user to register an MFA device at sign-in when the user does not yet have a registered MFA device.
CIn AWS SSO, configure context-aware MFA. Update the trust policy of all permission sets to include the aws:MultiFactorAuthPresent condition on the sts:AssumeRole action.
DIn AWS SSO, configure context-aware MFA. Block user sign-in when a user does not yet have a registered MFA device.
A company has multiple AWS accounts and uses AWS Single Sign-On (AWS SSO), integrated with AWS Toolkit for Microsoft Azure DevOps. The attributes-for-access-control feature is enabled in AWS SSO.
The attribute mapping list contains two entries. The department key maps to $\{path:enterprise.department\}. The costCenter key maps to $\{path:enterprise.costCenter\}.
All existing Amazon EC2 instances have a department tag corresponding to three company departments (d1, d2, d3). A DevOps engineer must create policies based on matching attributes. The policies must minimize administrative effort and grant each Azure AD user access only to EC2 instances tagged with that user's department name.
Which condition key should the DevOps engineer include in the custom permissions policies to meet these requirements?
Select
A DevOps engineer must apply a core set of security controls to an existing collection of AWS accounts. The accounts belong to an organization in AWS Organizations. Individual teams will manage individual accounts by using the AdministratorAccess AWS managed policy. AWS CloudTrail and AWS Config must be enabled in every available AWS Region for all accounts. Individual account administrators must not be able to modify or delete any baseline resources. However, those administrators must be able to modify or delete their own CloudTrail trails and AWS Config rules.
Which solution meets these requirements in the MOST operationally efficient manner?
ACreate an AWS CloudFormation template that defines the standard account resources. Deploy the template to all accounts from the organization's management account by using CloudFormation StackSets. Set the stack policy to deny Update Delete actions.
BEnable AWS Control Tower. Enroll the existing accounts in AWS Control Tower. Grant the individual account administrators access to CloudTrail and AWS Config.
CDesignate an AWS Config management account. Create AWS Config recorders in all accounts by using AWS CloudFormation StackSets. Deploy AWS Config rules to the organization by using the AWS Config management account. Create a CloudTrail organization trail in the organization's management account. Deny modification or deletion of the AWS Config recorders by using an SCP.
DCreate an AWS CloudFormation template that defines the standard account resources. Deploy the template to all accounts from the organization's management account by using CloudFormation StackSets. Create an SCP that prevents updates or deletions to CloudTrail resources or AWS Config resources unless the principal is an administrator of the organization's management account.
A DevOps engineer is configuring a container-based architecture. The engineer has chosen AWS CloudFormation to automatically provision an Amazon ECS cluster and an Amazon EC2 Auto Scaling group that launches the EC2 container instances. After the CloudFormation stack was created successfully, the engineer observed that, although the ECS cluster and EC2 instances were created and the stack completed, the EC2 instances were joining a different cluster.
How should the DevOps engineer modify the CloudFormation template to fix this issue?
AReference the EC2 instances in the AWS::ECS::Cluster resource and reference the ECS cluster in the AWS::ECS::Service resource.
BReference the ECS cluster in the AWS::AutoScaling::LaunchConfiguration resource of the UserData property.
CReference the ECS cluster in the AWS::EC2::Instance resource of the UserData property.
DReference the ECS cluster in the AWS::CloudFormation::CustomResource resource to trigger an AWS Lambda function that registers the EC2 instances with the appropriate ECS cluster.
A company uses AWS CodeCommit for source-code control. Developers make changes in various feature branches and create pull requests to move those changes to the main branch when the changes are ready for production.
Developers must not be able to push changes directly to the main branch. The company applied the AWSCodeCommitPowerUser managed policy to the developers’ IAM role, and the developers can now push changes directly to the main branch in every repository in the AWS account.
What should the company do to restrict the developers’ ability to push changes directly to the main branch?
ACreate an additional policy to include a Deny rule for the GitPush and PutFile actions. Include a restriction for the specific repositories in the policy statement with a condition that references the main branch.
BRemove the IAM policy, and add an AWSCodeCommitReadOnly managed policy. Add an Allow rule for the GitPush and PutFile actions for the specific repositories in the policy statement with a condition that references the main branch.
CModify the IAM policy. Include a Deny rule for the GitPush and PutFile actions for the specific repositories in the policy statement with a condition that references the main branch.
DCreate an additional policy to include an Allow rule for the GitPush and PutFile actions. Include a restriction for the specific repositories in the policy statement with a condition that references the feature branches.
A DevOps engineer is deploying an AWS Service Catalog portfolio through AWS CodePipeline. The pipeline must create products and templates from a manifest file in JSON or YAML format, and it must apply security requirements to every AWS Service Catalog product managed by the pipeline.
Which solution satisfies these requirements automatically?
AUse the AWS Service Catalog deploy action in AWS CodeDeploy to push new versions of products into the AWS Service Catalog with verification steps in the CodeDeploy AppSpec.
BUse the AWS Service Catalog deploy action in AWS CodeBuild to verify and push new versions of products into the AWService Catalog.
CUse an AWS Lambda action in CodePipeline to run a Lambda function to verify and push new versions of products into the AWS Service Catalog.
DUse an AWS Lambda action in AWS CodeBuild to run a Lambda function to verify and push new versions of products into the AWS Service Catalog.
A company has 20 service teams. Each team owns its own microservice. Each service team uses a separate AWS account for its microservice and a VPC with the 192.168.0.0/22 CIDR block. The company administers the AWS accounts by using AWS Organizations.
Each service team runs its microservice on multiple Amazon EC2 instances behind an Application Load Balancer. The microservices communicate with one another over the public Internet. The company's security team has issued a new guideline requiring all communication between microservices to use HTTPS over private network connections and prohibiting traversal of the public Internet.
A DevOps engineer must implement a solution that meets these requirements while minimizing the number of changes required for each service team.
Which solution meets these requirements?
ACreate a new AWS account in AWS Organizations. Create a VPC in this account and use AWS Resource Access Manager to share the private subnets of this VPC with the organization. Instruct the service teams to launch a new Network Load Balancer (NLB) and EC2 instances that use the shared private subnets. Use the NLB DNS names for communication between microservices.
BCreate a Network Load Balancer (NLB) in each of the microservice VPCs. Use AWS PrivateLink to create VPC endpoints in each AWS account for the NLBs. Create subscriptions to each VPC endpoint in each of the other AWS accounts. Use the VPC endpoint DNS names for communication between microservices.
CCreate a Network Load Balancer (NLB) in each of the microservice VPCs. Create VPC peering connections between each of the microservice VPCs. Update the route tables for each VPC to use the peering links. Use the NLB DNS names for communication between microservices.
DCreate a new AWS account in AWS Organizations. Create a transit gateway in this account. and use AWS Resource Access Manager to share the transit gateway with the organization. In each of the microservice VPCs, create a transit gateway attachment to the shared transit gateway. Update the route tables of each VPC to use the transit gateway. Create a Network Load Balancer (NLB) in each of the microservice VPCs. Use the NLB DNS names for communication between microservices.
A company uses AWS CodeDeploy to automate software deployments. The deployment must satisfy these requirements:
Several instances must remain available to serve traffic throughout the deployment. Traffic must be balanced among those instances, and the instances must heal automatically if a failure occurs.
A new fleet of instances must be automatically launched to deploy a new revision, without manual provisioning.
Traffic must be rerouted to the new environment to half of the new instances at a time. The deployment must succeed when traffic is rerouted to at least half of the instances; otherwise, it must fail.
Before traffic is routed to the new fleet of instances, temporary files created during the deployment process must be deleted.
At the conclusion of a successful deployment, the original instances in the deployment group must be deleted immediately to lower costs.
How can a DevOps engineer satisfy these requirements?
AUse an Application Load Balancer and an in-place deployment. Associate the Auto Scaling group with the deployment group. Use the Automatically copy Auto Scaling group option, and use CodeDeployDefault.OneAtAtime as the deployment configuration. Instruct AWS CodeDeploy to terminate the original instances in the deployment group, and use the AllowTraffic hook within appspec.yml to delete the temporary files.
BUse an Application Load Balancer and a blue/green deployment. Associate the Auto Scaling group and Application Load Balancer target group with the deployment group. Use the Automatically copy Auto scaling group option, create a custom deployment configuration with minimum healthy hosts defined as 50%, and assign the configuration to the deployment group. Instruct AWS CodeDeploy to terminate the original instances in the deployment group, and use the BeforeBlockTraffic hook within appspec.yml to delete the temporary files.
CUse an Application Load Balancer and a blue/green deployment. Associate the Auto Scaling group and the Application Load Balancer target group with the deployment group. Use the Automatically copy Auto Scaling group option, and use CodeDeployDefault.HalfAtAtime as the deployment configuration. Instruct AWS CodeDeploy to terminate the original instances in the deployment group, and use the BeforeAllowTraffic hook within appspec.yml to delete the temporary files.
DUse an Application Load Balancer and an in-place deployment. Associate the Auto Scaling group and Application Load Balancer target group with the deployment group. Use the Automatically copy Auto Scaling group option, and use CodeDeployDefault AllatOnce as a deployment configuration. Instruct AWS CodeDeploy to terminate the original instances in the deployment group, and use the BlockTraffic hook within appspec.yml to delete the temporary files.
A company uses AWS Control Tower to manage its multi-account AWS environment. Historically, the company has created AWS accounts through AWS Control Tower in the AWS Management Console. The company wants to implement an automated solution to create new AWS accounts by using AWS Control Tower Account Factory.
A DevOps engineer is testing a new approach in which employees upload a CSV file to an Amazon S3 bucket. The .csv file will contain the information necessary to create a new AWS account. An AWS Lambda function will process Amazon S3 event notifications when new files are created in the S3 bucket. The Lambda function will create the AWS account by using the AWS Service Catalog APIs.
The DevOps engineer must implement a solution that publishes a notification to an Amazon Simple Notification Service (Amazon SNS) topic when the account-creation process completes successfully.
What should the DevOps engineer do to automate the SNS notification?
AConfigure AWS Control Tower to publish to the SNS topic when the automatic drift detection feature identifies that a new account has been added to the service.
BConfigure the AWS Control Tower Account Factory product in AWS Service Catalog to publish to the SNS topic when a new account product is launched with the service.
CConfigure an Amazon EventBridge (Amazon CloudWatch Events) rule that reacts to the AWS Service Catalog ProvisionProduct event and publishes to the SNS topic.
DConfigure an Amazon EventBridge (Amazon CloudWatch Events) rule that reacts to the AWS Control Tower CreateManagedAccount event and publishes to the SNS topic.
A DevOps engineer is creating a continuous-deployment pipeline for a serverless application that uses AWS Lambda functions. The company wants to minimize customer impact from an unsuccessful deployment and also wants to monitor for issues.
Which deploy-stage configuration meets these requirements?
AUse an AWS Serverless Application Model (AWS SAM) template to define the serverless application. Use AWS CodeDeploy to deploy the Lambda functions with the Canary10Percent15Minutes Deployment Preference Type. Use Amazon CloudWatch alarms to monitor the health of the functions.
BUse AWS CloudFormation to publish a new stack update, and include Amazon CloudWatch alarms on all resources. Set up an AWS CodePipeline approval action for a developer to verify and approve the AWS CloudFormation change set.
CUse AWS CloudFormation to publish a new version on every stack update, and include Amazon CloudWatch alarms on all resources. Use the RoutingConfig property of the AWS:: Lambda:: Alias resource to update the traffic routing during the stack update.
DUse AWS CodeBuild to add sample event payloads for testing to the Lambda functions. Publish a new version of the functions, and include Amazon CloudWatch alarms. Update the production alias to point to the new version. Configure rollbacks to occur when an alarm is in the ALARM state.
A software company needs to automate a project's build process, with its code stored in GitHub. Whenever the repository is updated, the source code must be compiled, tested, and uploaded to Amazon S3.
Which combination of steps meets these requirements?
Choose three
AAdd a buildspec.yml file to the source code with build instructions.
BConfigure a GitHub webhook to trigger a build every time a code change is pushed to the repository.
CCreate an AWS CodeBuild project with GitHub as the source repository.
DCreate an AWS CodeDeploy application with the Amazon EC2/On-Premises compute platform.
ECreate an AWS OpsWorks deployment with the install dependencies command.
FProvision an Amazon EC2 instance to perform the build.
A space-exploration company receives telemetry data from multiple satellites. Small data packets arrive through Amazon API Gateway and are placed directly into an Amazon Simple Queue Service (Amazon SOS) standard queue. A custom application subscribes to the queue and transforms the data into a standard format.
Because of inconsistencies in the data produced by the satellites, the application occasionally cannot transform the data. In these situations, the messages stay in the SQS queue. A DevOps engineer must create a solution that retains the failed messages and makes them available to scientists for review and later processing.
Which solution meets these requirements?
AConfigure AWS Lambda to poll the SOS queue and invoke a Lambda function to check whether the queue messages are valid. If validation fails, send a copy of the data that is not valid to an Amazon S3 bucket so that the scientists can review and correct the data. When the data is corrected, amend the message in the SOS queue by using a replay Lambda function with the corrected data
BConvert the SQS standard queue to an SQS FIFO queue. Configure AWS Lambda to poll the SQS queue every 10 minutes by using an Amazon EventBridge schedule. Invoke the Lambda function to identify any messages with a SentTimestamp value that is older than 5 minutes, push the data to the same location as the application's output location, and remove the messages from the queue.
CCreate an SOS dead-letter queue. Modify the existing queue by including a redrive policy that sets the Maximum Receives setting to 1 and sets the dead-letter queue ARN to the ARN of the newly created queue. Instruct the scientists to use the dead-letter queue to review the data that is not valid. Reprocess this data at a later time.
DConfigure API Gateway to send messages to different SOS virtual queues that are named for each of the satellites. Update the application to use a new virtual queue for any data that it cannot transform, and send the message to the new virtual queue. Instruct the scientists to use the virtual queue to review the data that is not valid. Reprocess this data at a later time.
The Development team has expanded significantly in recent months, as has the number of projects using separate code repositories. The current process requires AWS CodePipeline to be configured manually. Service-limit alerts have occurred for the number of existing Amazon S3 buckets.
Which pipeline option will reduce the S3 bucket-sprawl alerts?
ACombine the multiple separate code repositories into a single one, and deploy using an AWS CodePipeline that has logic for each project.
BCreate new pipelines by using the AWS API or AWS CLI, and configure them to use a single S3 bucket with separate prefixes for each project.
CCreate a new pipeline in a different region for each project to bypass the service limits for S3 buckets in a single region.
DCreate a new pipeline and S3 bucket for each project by using the AWS API or AWS CLI to bypass the service limits for S3 buckets in a single account.
A company uses one AWS account to test applications on Amazon EC2 instances. AWS Config is enabled in the account, and the restricted-ssh AWS Config managed rule is active.
The company requires an automated monitoring solution that provides a customized, real-time notification whenever any security group in the account is noncompliant with the restricted-ssh rule. The customized notification must include the name and ID of the noncompliant security group.
A DevOps engineer creates an Amazon Simple Notification Service (Amazon SNS) topic in the account and subscribes the appropriate personnel to that topic.
What should the DevOps engineer do next to satisfy these requirements?
ACreate an Amazon EventBridge (Amazon CloudWatch Events) rule that matches an AWS Config evaluation result of NON_COMPLIANT for the restricted-ssh rule. Configure an input transformer for the EventBridge (CloudWatch Events) rule. Configure the EventBridge (CloudWatch Events) rule to publish a notification to the SNS topic.
BConfigure AWS Config to send all evaluation results for the restricted-ssh rule to the SNS topic. Configure a filter policy on the SNS topic to send only notifications that contain the text of NON_COMPLIANT in the notification to subscribers.
CCreate an Amazon EventBridge (Amazon CloudWatch Events) rule that matches an AWS Config evaluation result of NON_COMPLIANT for the restricted-ssh rule. Configure the EventBridge (CloudWatch Events) rule to invoke AWS Systems Manager Run Command on the SNS topic to customize a notification and to publish the notification to the SNS topic.
DCreate an Amazon EventBridge (Amazon CloudWatch Events) rule that matches all AWS Config evaluation results of NON_COMPLIANT. Configure an input transformer for the restricted-ssh rule. Configure the EventBridge (CloudWatch Events) rule to publish a notification to the SNS topic.
A retail company plans to use AWS Elastic Beanstalk to host its Java-based online sales website. Because this will be the production website, the CTO has these deployment-strategy requirements:
Zero downtime. During the deployment, the Amazon EC2 instances currently in service must stay in service. No deployment or other action may be performed on those EC2 instances because they handle production traffic.
A new fleet of instances must be provisioned to deploy the new application version.
After the new application version is successfully deployed to the new fleet, the new instances must be put into service and the old instances removed.
Rollback must be as simple as possible. If deployment of the new application version to the new fleet fails, those instances must be terminated and the current instances must continue serving traffic normally.
Resources in the environment (the EC2 Auto Scaling group, Elastic Load Balancing, and Elastic Beanstalk DNS CNAME) must remain unchanged, and no DNS change can be made.
Which deployment strategy meets these requirements?
AUse rolling deployments with a fixed amount of one instance at a time and set the healthy threshold to OK.
BUse rolling deployments with additional batch with a fixed amount of one instance at a time and set the healthy threshold to OK.
CLaunch a new environment and deploy the new application version there, then perform a CNAME swap between environments.
DUse immutable environment updates to meet all the necessary requirements.
A company is developing a software solution that runs a particular parallel-processing mechanism. In certain specialized scenarios, the software can scale to tens of servers. The solution uses a proprietary, license-based library that requires one dedicated license to be installed on each server. The company owns 200 licenses and plans to run no more than 200 server nodes concurrently.
The company requests these features:
A way to automate license usage at scale.
Creation of a dashboard for future use to check which licenses are available at any time.
What is the MOST effective way to meet these requirements?
AUpload the licenses to a private Amazon S3 bucket. Create an AWS CloudFormation template with a Mappings section for the licenses. In the template, create an Auto Scaling group to launch the servers. In the user data script, acquire an available license from the Mappings section. Create an Auto Scaling lifecycle hook, then use it to update the mapping after the instance is terminated.
BUpload the licenses to an Amazon DynamoDB table. Create an AWS CloudFormation template that uses an Auto Scaling group to launch the servers. In the user data script, acquire an available license from the DynamoDB table. Create an Auto Scaling lifecycle hook, then use it to update the mapping after the instance is terminated.
CUpload the licenses to a private Amazon S3 bucket. Populate an Amazon SQS queue with the list of licenses stored in S3. Create an AWS CloudFormation template that uses an Auto Scaling group to launch the servers. In the user data script acquire an available license from SQS. Create an Auto Scaling lifecycle hook, then use it to put the license back in SQS after the instance is terminated.
DUpload the licenses to an Amazon DynamoDB table. Create an AWS CLI script to launch the servers by using the parameter --count, with min:max instances to launch. In the user data script, acquire an available license from the DynamoDB table. Monitor each instance and, in case of failure, replace the instance, then manually update the DynamoDB table.
A company operates a data-ingestion application across multiple AWS accounts. The accounts belong to an organization in AWS Organizations. The company needs to monitor the application and centralize access to it. Currently, the application runs on Amazon EC2 instances in several Auto Scaling groups. The EC2 instances do not have internet access because the data is sensitive. Engineers have deployed the required VPC endpoints. The EC2 instances use a custom AMI built specifically for the application.
To maintain and troubleshoot the application, system administrators need to be able to log in to the EC2 instances. This access must be automated and centrally controlled. The company’s security team must be notified whenever the instances are accessed.
Which solution meets these requirements?
ACreate an Amazon EventBridge (Amazon CloudWatch Events) rule to send notifications to the security team whenever a user logs in to an EC2 instance. Use EC2 Instance Connect to log in to the instances. Deploy Auto Scaling groups by using AWS CloudFormation. Use the cfn-init helper script to deploy appropriate VPC routes for external access. Rebuild the custom AMI so that the custom AMI includes AWS Systems Manager Agent.
BDeploy a NAT gateway and a bastion host that has internet access. Create a security group that allows incoming traffic on all the EC2 instances from the bastion host. Install AWS Systems Manager Agent on all the EC2 instances. Use Auto Scaling group lifecycle hooks for monitoring and auditing access. Use Systems Manager Session Manager to log in to the instances. Send logs to a log group in Amazon CloudWatch Logs. Export data to Amazon 83 for auditing. Send notifications to the security team by using S3 event notifications.
CUse EC2 Image Builder to rebuild the custom AMI. Include the most recent version of AWS Systems Manager Agent in the image. Configure the Auto Scaling group to attach the AmazonSSMManagedlnstanceCore role to all the EC2 instances. Use Systems Manager Session Manager to log in to the instances. Enable logging of session details to Amazon S3. Create an S3 notification for new file uploads to send a message to the security team through an Amazon Simple Notification Service (Amazon SNS) topic.
DUse AWS Systems Manager Automation to build Systems Manager Agent into the custom AMI. Configure AWS Config to attach an SCP to the root organization account to allow the EC2 instances to connect to Systems Manager. Use Systems Manager Session Manager to log in to the instances. Enable logging of session details to Amazon S3. Create an S3 notification for new file uploads to send a message to the security team through an Amazon Simple Notification Service (Amazon SNS) topic.
Community Discussion