A CloudOps engineer is examining the following AWS CloudFormation template:
Why will the stack creation fail?
Options:
A. The Outputs section of the CloudFormation template was omitted.
B. The Parameters section of the CloudFormation template was omitted.
C. The PrivateDnsName cannot be sot from a CloudFormation template.
D. The VPC was not specified in the CloudFormation template.
```yaml
AWSTemplateFormatVersion: '2010-09-09'
Description: 'Creates an EC2 Instance'
Resources:
EC2Instance:
Type: AWS::EC2::Instance
Properties:
ImageId: ami-75fd7ee
InstanceType: m5n.large
SubnetId: subnet-1abc3d3f
PrivateDnsName: ip-10-24-34-0.ec2.internal
Tags:
- Key: Name
Value: !Sub "${AWS::StackName} Instance"
```
A.The Outputs section of the CloudFormation template was omitted.
B.The Parameters section of the CloudFormation template was omitted.
C.The PrivateDnsName cannot be sot from a CloudFormation template.Correct
D.The VPC was not specified in the CloudFormation template. ```yaml AWSTemplateFormatVersion: '2010-09-09' Description: 'Creates an EC2 Instance' Resources: EC2Instance: Type: AWS::EC2::Instance Properties: ImageId: ami-75fd7ee InstanceType: m5n.large SubnetId: subnet-1abc3d3f PrivateDnsName: ip-10-24-34-0.ec2.internal Tags: - Key: Name Value: !Sub "${AWS::StackName} Instance" ```
Explanation
The stack creation will fail because the 'PrivateDnsName' property cannot be set directly in a CloudFormation template for an EC2 instance. According to AWS documentation, the PrivateDnsName is automatically assigned by AWS and cannot be specified manually.
Question 2
A company applies user-defined tags to resources that are associated with the company's AWS workloads. Twenty days after applying the tags, the company notices that it cannot use the tags to filter views in the AWS Cost Explorer console.
What is the reason for this issue?
Options:
A. It takes at least 30 days to be able to use tags to filter views in Cost Explorer.
B. The company has not activated the user-defined tags for cost allocation.
C. The company has not created an AWS Cost and Usage Report.
D. The company has not created a usage budget in AWS Budgets.
A.It takes at least 30 days to be able to use tags to filter views in Cost Explorer.
B.The company has not activated the user-defined tags for cost allocation.Correct
C.The company has not created an AWS Cost and Usage Report.
D.The company has not created a usage budget in AWS Budgets.
Explanation
According to AWS documentation, user-defined tags must be activated for cost allocation before they can be used to filter views in the AWS Cost Explorer console. This activation is necessary for Cost Explorer to recognize and utilize these tags for filtering purposes.
Question 3
An environment consists of 100 Amazon EC2 Windows instances. The Amazon CloudWatch agent is deployed and running on all EC2 instances with a baseline configuration file to capture log files. There is a new requirement to capture the DHCP log files that exist on 50 of the instances.
What is the MOST operationally efficient way to meet this new requirement?
Options:
A. Create an additional CloudWatch agent configuration filo to capture the DHCP logs. Use the AWS Systems Manager Run Command to restart the CloudWatch agent on each EC2 instance with the append-config option to apply the additional configuration file.
B. Log in to each EC2 instance with administrator rights. Create a PowerShell script to push the needed baseline log files and DHCP log files to CloudWatch.
C. Run the CloudWatch agent configuration file wizard on each EC2 instance. Verify that the baseline log files are included and add the DHCP log files during the wizard creation process.
D. Run the CloudWatch agent configuration file wizard on each EC2 instance and select the advanced detail level. This will capture the operating system log files.
A.Create an additional CloudWatch agent configuration filo to capture the DHCP logs. Use the AWS Systems Manager Run Command to restart the CloudWatch agent on each EC2 instance with the append-config option to apply the additional configuration file.Correct
B.Log in to each EC2 instance with administrator rights. Create a PowerShell script to push the needed baseline log files and DHCP log files to CloudWatch.
C.Run the CloudWatch agent configuration file wizard on each EC2 instance. Verify that the baseline log files are included and add the DHCP log files during the wizard creation process.
D.Run the CloudWatch agent configuration file wizard on each EC2 instance and select the advanced detail level. This will capture the operating system log files.
Explanation
Option A is correct because it leverages AWS Systems Manager Run Command to efficiently apply an additional CloudWatch agent configuration for capturing DHCP logs across multiple instances without manual intervention, which aligns with best practices for operational efficiency and scalability in AWS environments.
Question 4
A company is storing backups in an Amazon S3 bucket. The backups must not be deleted for at least 3 months after the backups are created.
What should a CloudOps engineer do to meet this requirement?
Options:
A. Configure an IAM policy that denies the s3:DeleteObject action for all users. Three months after an object is written, remove the policy.
B. Enable S3 Object Lock on a new S3 bucket in compliance mode. Place all backups in the new S3 bucket with a retention period of 3 months.
C. Enable S3 Versioning on the existing S3 bucket. Configure S3 Lifecycle rules to protect the backups.
D. Enable S3 Object Lock on a new S3 bucket in governance mode. Place all backups in the new S3 bucket with a retention period of 3 months.
A.Configure an IAM policy that denies the s3:DeleteObject action for all users. Three months after an object is written, remove the policy.
B.Enable S3 Object Lock on a new S3 bucket in compliance mode. Place all backups in the new S3 bucket with a retention period of 3 months.Correct
C.Enable S3 Versioning on the existing S3 bucket. Configure S3 Lifecycle rules to protect the backups.
D.Enable S3 Object Lock on a new S3 bucket in governance mode. Place all backups in the new S3 bucket with a retention period of 3 months.
Explanation
The correct answer is B because enabling S3 Object Lock in compliance mode ensures that objects cannot be deleted or modified for a specified time period, which meets the requirement of preventing deletion for at least 3 months. This mode provides legal hold and governance features to enforce retention policies.
Question 5
A company's CloudOps engineer is troubleshooting communication between the components of an application. The company configured VPC flow logs to be published to Amazon CloudWatch Logs However, there are no logs in CloudWatch Logs.
What could be blocking the VPC flow logs from being published to CloudWatch Logs?
Options:
A. The IAM policy that is attached to the IAM role for the flow log is missing the logs:CreateLogGroup permission.
B. The IAM policy that is attached to the IAM role for the flow log is missing the logs:CreateExportTask permission.
C. The VPC is configured for IPv6 addresses.
D. The VPC is peered with another VPC in the AWS account
A.The IAM policy that is attached to the IAM role for the flow log is missing the logs:CreateLogGroup permission.Correct
B.The IAM policy that is attached to the IAM role for the flow log is missing the logs:CreateExportTask permission.
C.The VPC is configured for IPv6 addresses.
D.The VPC is peered with another VPC in the AWS account
Explanation
The correct answer is A because, according to AWS documentation, the IAM role used by VPC flow logs requires the 'logs:CreateLogGroup' permission to create a log group in CloudWatch Logs. Without this permission, VPC flow logs cannot be published to CloudWatch Logs.
Question 6
A company is migrating a legacy application to AWS. The company manually installs and configures the legacy application on Amazon EC2 instances across multiple Availability Zones. The company sets up an Application Load Balancer (ALB) for the application. The company sets the target group routing algorithm to weighted random. The application requires session affinity.
After the company deploys the application, users report random application errors that were not present in the legacy version of the application. The target group health checks do not show any failures. The company must resolve the application errors.
Which solution will meet this requirement?
Options:
A. Set the routing algorithm of the target group to least outstanding requests.
B. Turn on anomaly mitigation for the target group.
C. Turn off the cross-zone load balancing attribute of the target group.
D. Increase the deregistration delay attribute of the target group.
A.Set the routing algorithm of the target group to least outstanding requests.Correct
B.Turn on anomaly mitigation for the target group.
C.Turn off the cross-zone load balancing attribute of the target group.
D.Increase the deregistration delay attribute of the target group.
Explanation
The correct answer is A because setting the routing algorithm to 'least outstanding requests' ensures that new requests are directed to the EC2 instance with the fewest active connections, which can help in maintaining session affinity and reducing random application errors. The weighted random algorithm does not guarantee session consistency across requests, leading to potential issues as observed.
Question 7
A company is using an Amazon Aurora MySQL DB cluster that has point-in-time recovery, backtracking, and automatic backup enabled. A CloudOps engineer needs to be able to roll back the DB cluster to a specific recovery point within the previous 72 hours. Restores must be completed in the same production DB cluster.
Which solution will meet these requirements?
Options:
A. Create an Aurora Replica. Promote the replica to replace the primary DB instance.
B. Create an AWS Lambda function to restore an automatic backup to the existing DB cluster.
C. Use backtracking to rewind the existing DB cluster to the desired recovery point.
D. Use point-in-time recovery to restore the existing DB duster to the desired recovery point.
A.Create an Aurora Replica. Promote the replica to replace the primary DB instance.
B.Create an AWS Lambda function to restore an automatic backup to the existing DB cluster.
C.Use backtracking to rewind the existing DB cluster to the desired recovery point.Correct
D.Use point-in-time recovery to restore the existing DB duster to the desired recovery point.
Explanation
Backtracking allows you to roll an Aurora MySQL DB cluster back in time to a specific point within the last 72 hours without creating a new database or replica, thus meeting the requirement of restoring within the same production DB cluster.
Question 8
A CloudOps engineer is troubleshooting an AWS CloudFormation stack creation that failed. Before the CloudOps engineer can identify the problem, the stack and its resources are deleted. For future deployments, the CloudOps engineer must preserve any resources that CloudFormation successfully created.
What should the CloudOps engineer do to meet this requirement?
Options:
A. Set the value of the DisableRollback parameter to False during stack creation.
B. Set the value of the OnFailure parameter to DO_NOTHING during stack creation.
C. Specify a rollback configuration that has a rollback trigger of DO_NOTHING during stack creation
D. Set the value of the OnFailure parameter to ROLLBACK during stack creation.
A.Set the value of the DisableRollback parameter to False during stack creation.
B.Set the value of the OnFailure parameter to DO_NOTHING during stack creation.Correct
C.Specify a rollback configuration that has a rollback trigger of DO_NOTHING during stack creation
D.Set the value of the OnFailure parameter to ROLLBACK during stack creation.
Explanation
According to AWS documentation, setting the OnFailure parameter to DO_NOTHING during CloudFormation stack creation will prevent CloudFormation from deleting the stack and its resources if stack creation fails. This allows the CloudOps engineer to preserve any successfully created resources for troubleshooting or future use.
Question 9
A company plans to run a public web application on Amazon EC2 instances behind an Elastic Load Balancing (ELB) load balancer. The company’s security team wants to protect the website by using AWS Certificate Manager (ACM) certificates. The load balancer must automatically redirect any HTTP requests to HTTPS.
Which solution will meet these requirements?
Options:
A. Create an Application Load Balancer that has one HTTPS listener on port 80. Attach an SSL/TLS certificate to listener port 80. Create a rule to redirect requests from HTTP to HTTPS.
B. Create an Application Load Balancer that has one HTTP listener on port 80 and one HTTPS protocol listener on port 443. Attach an SSL/TLS certificate to listener port 443. Create a rule to redirect requests from port 80 to port 443.
C. Create an Application Load Balancer that has two TCP listeners on port 80 and port 443. Attach an SSL/TLS certificate to listener port 443. Create a rule to redirect requests from port 80 to port 443.
D. Create a Network Load Balancer that has two TCP listeners on port 80 and port 443. Attach an SSL/TLS certificate to listener port 443. Create a rule to redirect requests from port 80 to port 443.
A.Create an Application Load Balancer that has one HTTPS listener on port 80. Attach an SSL/TLS certificate to listener port 80. Create a rule to redirect requests from HTTP to HTTPS.
B.Create an Application Load Balancer that has one HTTP listener on port 80 and one HTTPS protocol listener on port 443. Attach an SSL/TLS certificate to listener port 443. Create a rule to redirect requests from port 80 to port 443.Correct
C.Create an Application Load Balancer that has two TCP listeners on port 80 and port 443. Attach an SSL/TLS certificate to listener port 443. Create a rule to redirect requests from port 80 to port 443.
D.Create a Network Load Balancer that has two TCP listeners on port 80 and port 443. Attach an SSL/TLS certificate to listener port 443. Create a rule to redirect requests from port 80 to port 443.
Explanation
Option B is correct because it specifies creating an Application Load Balancer with both HTTP and HTTPS listeners on ports 80 and 443, respectively. An SSL/TLS certificate is attached to the HTTPS listener (port 443), and a rule is created to redirect HTTP requests (port 80) to HTTPS, which meets the requirement of automatically redirecting HTTP traffic to HTTPS.
Question 10
A company runs a business application on more than 300 Linux-based instances. Each instance has the AWS Systems Manager Agent (SSM Agent) installed. The company expects the number of instances to grow in the future. All business application instances have the same user-defined tag.
A CloudOps engineer wants to run a command on all the business application instances to download and install a package from a private repository. To avoid overwhelming the repository, the CloudOps engineer wants to ensure that no more than 30 downloads occur at one time.
Which solution will meet this requirement in the MOST operationally efficient way?
Options:
A. Use a secondary tag to create 10 batches of 30 instances each. Use a Systems Manager Run Command document to download and install the package. Specify the target as part of the RunCommand document by using the secondary tag. Run each batch one time.
B. Use an AWS Lambda function to automatically run a Systems Manager Run Command document that roads a list of instance IDs that have the user-defined tag. Set reserved concurrency for the Lambda function to 30.
C. Use a Systems Manager Run Command document to download and install the package. Use rate control to set concurrency to 30. Specify the target by using the user-defined tag as part of the Run Command document.
D. Use a parallel workflow state in AWS Step Functions to automatically run a Systems Manager Run Command document that reads a list of instance IDs that have the user-defined tag. Set the number of parallel states to 30. Run the Step Functions workflow 10 times.
A.Use a secondary tag to create 10 batches of 30 instances each. Use a Systems Manager Run Command document to download and install the package. Specify the target as part of the RunCommand document by using the secondary tag. Run each batch one time.
B.Use an AWS Lambda function to automatically run a Systems Manager Run Command document that roads a list of instance IDs that have the user-defined tag. Set reserved concurrency for the Lambda function to 30.
C.Use a Systems Manager Run Command document to download and install the package. Use rate control to set concurrency to 30. Specify the target by using the user-defined tag as part of the Run Command document.Correct
D.Use a parallel workflow state in AWS Step Functions to automatically run a Systems Manager Run Command document that reads a list of instance IDs that have the user-defined tag. Set the number of parallel states to 30. Run the Step Functions workflow 10 times.
Explanation
Option C is correct because it uses AWS Systems Manager Run Command with rate control set to limit concurrency to 30, ensuring no more than 30 instances download and install the package simultaneously. This approach directly targets all tagged instances without requiring manual batching or additional services like Lambda or Step Functions, making it the most operationally efficient solution.
Question 11
A company uses Amazon Route 53 with latency-based routing across multiple AWS Regions to provide resiliency. The company uses Route 53 with latency-based routing to direct traffic to the nearest Region. Within each Region, weighted A records distribute traffic across multiple Availability Zones.
During a recent update, some Availability Zone endpoints became unhealthy. Route 53 continued to route traffic to the unhealthy endpoints. The company must prevent this issue from occurring in the future.
Which solution will meet this requirement?
Options:
A. Add a Route 53 health check for each of the weighted records that received traffic during the recent update.
B. Increase the weight of Route 53 records in the Region where traffic must go during updates.
C. Reconfigure all records to use latency-based routing across all Regions uniformly.
D. Reduce the TTL value for latency-based routing to detect changes more quickly.
A.Add a Route 53 health check for each of the weighted records that received traffic during the recent update.Correct
B.Increase the weight of Route 53 records in the Region where traffic must go during updates.
C.Reconfigure all records to use latency-based routing across all Regions uniformly.
D.Reduce the TTL value for latency-based routing to detect changes more quickly.
Explanation
According to AWS documentation, adding a Route 53 health check for each of the weighted records ensures that traffic is not routed to unhealthy endpoints. This solution directly addresses the issue by monitoring endpoint health and preventing traffic from being directed to unhealthy Availability Zone endpoints.
Question 12
A company must ensure that all Amazon EC2 Windows instances that are launched in an AWS account have a third-party agent installed. The company uses AWS Systems Manager, and the Windows instances are tagged appropriately. The company must deploy periodic updates to the third-party agent when the updates become available.
Which combination of steps will meet these requirements with the LEAST operational effort? (Choose two.)
Options:
A. Create a Systems Manager Distributor package for the third-party agent.
B. Create a Systems Manager OpsItem that includes the tag value for Windows. Attach the Systems Manager inventory to the OpsItem.
C. Create an AWS Lambda function. Program the Lambda function to log in to each instance and to install or update the third-party agent as needed.
D. Create a Systems Manager State Manager association to run the AWS-RunRemoteScript document Populate the details of the third-party agent package.
E. Create a Systems Manager State Manager association to run the AWS-ConfigureAWSPackage document. Populate the details of the third-party agent package. Specify instance tags based on the appropriate tag value for Windows.
A.Create a Systems Manager Distributor package for the third-party agent.Correct
B.Create a Systems Manager OpsItem that includes the tag value for Windows. Attach the Systems Manager inventory to the OpsItem.
C.Create an AWS Lambda function. Program the Lambda function to log in to each instance and to install or update the third-party agent as needed.
D.Create a Systems Manager State Manager association to run the AWS-RunRemoteScript document Populate the details of the third-party agent package.
E.Create a Systems Manager State Manager association to run the AWS-ConfigureAWSPackage document. Populate the details of the third-party agent package. Specify instance tags based on the appropriate tag value for Windows.Correct
Explanation
Option A is correct because creating a Systems Manager Distributor package allows for the distribution and installation of software packages across multiple instances efficiently. Option E is correct as it involves using State Manager to run the AWS-ConfigureAWSPackage document, which can be used to install or update third-party agents on tagged Windows instances with minimal operational effort.
Question 13
A company has deployed Amazon EC2 instances from custom Amazon Machine Images (AMIs) in two AWS Regions. The company registered all the instances with AWS Systems Manager.
The company discovers that the operating system on some instances has a significant zero-day exploit. However, the company does not know how many instances are affected.
A CloudOps engineer must implement a solution to deploy operating system patches for the affected EC2 instances.
Which solution will meet this requirement with the LEAST operational overhead?
Options:
A. Define a patch baseline in Systems Manager Patch Manager. Use a Patch Manager scan to identify the affected instances. Use the Patch Now option in each Region to update the affected instances.
B. Use AWS Config to identify the affected instances. Define a patch baseline in Systems Manager Patch Manager. Use the Patch Now option in Patch Manager to update the affected instances.
C. Create an Amazon EventBridge rule to react to Systems Manager Compliance events. Configure the EventBridge rule to run a patch baseline on the affected instances.
D. Use AWS Config to identify the affected instances. Update the existing EC2 AMIs with the desired patch Manually launch instances from the new AMIs to replace the affected instances in both Regions.
A.Define a patch baseline in Systems Manager Patch Manager. Use a Patch Manager scan to identify the affected instances. Use the Patch Now option in each Region to update the affected instances.Correct
B.Use AWS Config to identify the affected instances. Define a patch baseline in Systems Manager Patch Manager. Use the Patch Now option in Patch Manager to update the affected instances.
C.Create an Amazon EventBridge rule to react to Systems Manager Compliance events. Configure the EventBridge rule to run a patch baseline on the affected instances.
D.Use AWS Config to identify the affected instances. Update the existing EC2 AMIs with the desired patch Manually launch instances from the new AMIs to replace the affected instances in both Regions.
Explanation
Option A is correct because it leverages Systems Manager Patch Manager, which allows for defining a patch baseline and scanning instances to identify those that are affected. The 'Patch Now' feature can then be used to immediately apply patches to the identified instances with minimal operational overhead.
Question 14
A company hosts an FTP server on Amazon EC2 instances. In the company’s AWS environment, AWS Security Hub sends findings for the EC2 instances to Amazon EventBridge because the FTP port has become publicly exposed in the security groups that are attached to the instances.
A CloudOps engineer wants an automated solution to remediate the Security Hub finding and any similar exposed port findings. The CloudOps engineer wants to use an event-driven approach.
Which solution will meet these requirements?
Options:
A. Configure the existing EventBridge event to stop the EC2 instances that have the exposed port.
B. Create a cron job for the FTP server to invoke an AWS Lambda function. Configure the Lambda function to modify the security group of the identified EC2 instances and to remove the instances that allow public access.
C. Create a cron job for the FTP server that invokes an AWS Lambda function. Configure the Lambda function to modify the server to use SFTP instead of FTP.
D. Configure the existing EventBridge event to invoke an AWS Lambda function. Configure the function to remove the security group rule that allows public access.
A.Configure the existing EventBridge event to stop the EC2 instances that have the exposed port.
B.Create a cron job for the FTP server to invoke an AWS Lambda function. Configure the Lambda function to modify the security group of the identified EC2 instances and to remove the instances that allow public access.
C.Create a cron job for the FTP server that invokes an AWS Lambda function. Configure the Lambda function to modify the server to use SFTP instead of FTP.
D.Configure the existing EventBridge event to invoke an AWS Lambda function. Configure the function to remove the security group rule that allows public access.Correct
Explanation
Option D is correct because it uses an event-driven approach by configuring the existing EventBridge event to automatically invoke an AWS Lambda function upon detection of a publicly exposed port via Security Hub findings. The Lambda function can then programmatically remove the security group rule that allows public access, thereby remediating the issue without manual intervention.
Question 15
A company plans to migrate several of its high performance computing (HPC) virtual machines (VMs) to Amazon EC2 instances on AWS. A CloudOps engineer must identify a placement group for this deployment. The strategy must minimize network latency and must maximize network throughput between the HPC VMs.
Which strategy should the CloudOps engineer choose to meet these requirements?
Options:
A. Deploy the instances in a cluster placement group in one Availability Zone.
B. Deploy the instances in a partition placement group in two Availability Zones.
C. Deploy the instances in a partition placement group in one Availability Zone.
D. Deploy the instances in a spread placement group in two Availability Zones.
A.Deploy the instances in a cluster placement group in one Availability Zone.Correct
B.Deploy the instances in a partition placement group in two Availability Zones.
C.Deploy the instances in a partition placement group in one Availability Zone.
D.Deploy the instances in a spread placement group in two Availability Zones.
Explanation
According to AWS documentation, a cluster placement group is designed for workloads that benefit from the lowest possible network latency and the highest possible network throughput. By deploying instances within a single Availability Zone in a cluster placement group, the CloudOps engineer can ensure minimized network latency and maximized network throughput between the HPC VMs.
Question 16
A company manages a set of accounts on AWS by using AWS Organizations. The company's security team wants to use a native AWS service to regularly scan all AWS accounts against the Center for Internet Security (CIS) AWS Foundations Benchmark.
What is the MOST operationally efficient way to meet these requirements?
Options:
A. Designate a central security account as the AWS Security Hub administrator account. Create a script that sends an invitation from the Security Hub administrator account and accepts the invitation from the member account. Run the script every time a new account is created. Configure Security Hub to run the CIS AWS Foundations Benchmark scans.
B. Run the CIS AWS Foundations Benchmark across all accounts by using Amazon Inspector.
C. Designate a central security account as the Amazon GuardDuty administrator account. Create a script that sends an invitation from the GuardDuty administrator account and accepts the invitation from the member account. Run the script every time a new account is created. Configure GuardDuty to run the CIS AWS Foundations Benchmark scans.
D. Designate an AWS Security Hub administrator account. Configure new accounts in the organization to automatically become member accounts. Enable CIS AWS Foundations Benchmark scans.
A.Designate a central security account as the AWS Security Hub administrator account. Create a script that sends an invitation from the Security Hub administrator account and accepts the invitation from the member account. Run the script every time a new account is created. Configure Security Hub to run the CIS AWS Foundations Benchmark scans.
B.Run the CIS AWS Foundations Benchmark across all accounts by using Amazon Inspector.
C.Designate a central security account as the Amazon GuardDuty administrator account. Create a script that sends an invitation from the GuardDuty administrator account and accepts the invitation from the member account. Run the script every time a new account is created. Configure GuardDuty to run the CIS AWS Foundations Benchmark scans.
D.Designate an AWS Security Hub administrator account. Configure new accounts in the organization to automatically become member accounts. Enable CIS AWS Foundations Benchmark scans.Correct
Explanation
AWS Security Hub natively supports automated CIS AWS Foundations Benchmark assessments, making it the most operationally efficient choice for scanning across all AWS accounts within an Organization. Option D correctly identifies configuring a Security Hub administrator account and enabling automatic member account inclusion as the streamlined approach to meet the requirement.
Question 17
A company has users that deploy Amazon EC2 instances that have more volume performance capacity than is required. A CloudOps engineer needs to review all Amazon Elastic Block Store (Amazon EBS) volumes that are associated with the instances and create cost optimization recommendations based on IOPS and throughput.
What should the CloudOps engineer do to meet these requirements in the MOST operationally efficient way?
Options:
A. Use the monitoring graphs in the EC2 console to view metrics for EBS volumes. Review the consumed space against the provisioned space on each volume. Identify any volumes that have low utilization.
B. Stop the EC2 instances from the EC2 console. Change the EC2 instance type to Amazon EBS-optimized. Start the EC2 instances.
C. Opt in to AWS Compute Optimizer. Allow sufficient time for metrics to be gathered. Review the Compute Optimizer findings for EBS volumes.
D. Install the fio tool onto the EC2 instances and create a .cfg file to approximate the required workloads. Use the benchmark results to gauge whether the provisioned EBS volumes are of the most appropriate type.
A.Use the monitoring graphs in the EC2 console to view metrics for EBS volumes. Review the consumed space against the provisioned space on each volume. Identify any volumes that have low utilization.
B.Stop the EC2 instances from the EC2 console. Change the EC2 instance type to Amazon EBS-optimized. Start the EC2 instances.
C.Opt in to AWS Compute Optimizer. Allow sufficient time for metrics to be gathered. Review the Compute Optimizer findings for EBS volumes.Correct
D.Install the fio tool onto the EC2 instances and create a .cfg file to approximate the required workloads. Use the benchmark results to gauge whether the provisioned EBS volumes are of the most appropriate type.
Explanation
The correct answer is C because AWS Compute Optimizer automatically collects utilization metrics for Amazon EBS volumes and provides cost optimization recommendations based on IOPS and throughput, which aligns with the CloudOps engineer's requirements. This approach is more operationally efficient than manually monitoring or benchmarking.
Question 18
A CloudOps engineer must ensure that all of a company's current and future Amazon S3 buckets have logging enabled. If an S3 bucket does not have logging enabled, an automated process must enable logging for the S3 bucket.
Which solution will meet these requirements?
Options:
A. Use AWS Trusted Advisor to perform a check for S3 buckets that do not have logging enabled. Configure the check to enable logging for S3 buckets that do not have logging enabled.
B. Configure an S3 bucket policy that requires all current and future S3 buckets to have logging enabled.
C. Use the s3-bucket-logging-enabled AWS Config managed rule. Add a remediation action that uses an AWS Lambda function to enable logging.
D. Use the s3-bucket-logging-enabled AWS Config managed rule. Add a remediation action that uses the AWS-ConfigureS3BucketLogging AWS Systems Manager Automation runbook to enable logging.
A.Use AWS Trusted Advisor to perform a check for S3 buckets that do not have logging enabled. Configure the check to enable logging for S3 buckets that do not have logging enabled.
B.Configure an S3 bucket policy that requires all current and future S3 buckets to have logging enabled.
C.Use the s3-bucket-logging-enabled AWS Config managed rule. Add a remediation action that uses an AWS Lambda function to enable logging.
D.Use the s3-bucket-logging-enabled AWS Config managed rule. Add a remediation action that uses the AWS-ConfigureS3BucketLogging AWS Systems Manager Automation runbook to enable logging.Correct
Explanation
The correct answer is D because AWS Config with the s3-bucket-logging-enabled managed rule can monitor S3 buckets for logging compliance. By adding a remediation action using the AWS-ConfigureS3BucketLogging Systems Manager Automation runbook, it automatically enables logging on non-compliant S3 buckets, meeting the requirement to ensure all current and future S3 buckets have logging enabled.
Question 19
A company has millions of subscribers. The company's marketing department wants to automate a process that sends notifications to subscribers every Saturday. The company already has a mechanism that uses Amazon Simple Notification Service (Amazon SNS) to send notifications to subscribers. However, the company has historically sent notifications to subscribers manually
A CloudOps engineer needs a solution to automatically send notifications on a schedule.
Which solution will meet these requirements in the MOST operationally efficient way?
Options:
A. Launch a new Amazon EC2 instance. Configure a cron job to use the AWS SDK to send an SNS notification to subscribers every Saturday.
B. Create a rule in Amazon EventBridge that triggers every Saturday. Configure the rule to publish a notification to an SNS topic.
C. Create an SNS subscription to a message fanout that sends notifications to subscribers every Saturday.
D. Use the AWS Step Functions scheduling feature to run a Step Functions step every Saturday. Configure the step to publish a message to an SNS topic.
A.Launch a new Amazon EC2 instance. Configure a cron job to use the AWS SDK to send an SNS notification to subscribers every Saturday.
B.Create a rule in Amazon EventBridge that triggers every Saturday. Configure the rule to publish a notification to an SNS topic.Correct
C.Create an SNS subscription to a message fanout that sends notifications to subscribers every Saturday.
D.Use the AWS Step Functions scheduling feature to run a Step Functions step every Saturday. Configure the step to publish a message to an SNS topic.
Explanation
Option B is correct because Amazon EventBridge can schedule and trigger events based on a specified time, such as every Saturday. By creating a rule in EventBridge that triggers every Saturday and configuring it to publish a notification to an SNS topic, the company can automate the process of sending notifications without requiring manual intervention or additional infrastructure like EC2 instances.
Question 20
A CloudOps engineer is responsible for a company’s disaster recovery procedures. The company has a source Amazon S3 bucket in a production account, and it wants to replicate objects from the source to a destination S3 bucket in a nonproduction account. The CloudOps engineer configures S3 cross-Region, cross-account replication to copy the source S3 bucket to the destination S3 bucket. When the CloudOps engineer attempts to access objects in the destination S3 bucket, they receive an Access Denied error.
Which solution will resolve this problem?
Options:
A. Modify the replication configuration to change object ownership to the destination S3 bucket owner.
B. Ensure that the replication rule applies to all objects in the source S3 bucket and is not scoped to a single prefix.
C. Retry the request when the S3 Replication Time Control (S3 RTC) has elapsed.
D. Verify that the storage class for the replicated objects did not change between the source S3 bucket and the destination S3 bucket.
A.Modify the replication configuration to change object ownership to the destination S3 bucket owner.Correct
B.Ensure that the replication rule applies to all objects in the source S3 bucket and is not scoped to a single prefix.
C.Retry the request when the S3 Replication Time Control (S3 RTC) has elapsed.
D.Verify that the storage class for the replicated objects did not change between the source S3 bucket and the destination S3 bucket.
Explanation
The correct answer is A because, according to AWS documentation, when using cross-account replication in Amazon S3, the default object ownership setting retains the original owner of the objects. Changing the object ownership to the destination S3 bucket owner allows the CloudOps engineer to access the replicated objects without receiving an Access Denied error.
Verifying access...
Access Required
You need to purchase this exam to access practice mode