ExamGecko
Home Home / Amazon / SOA-C02

Amazon SOA-C02 Practice Test - Questions Answers, Page 5

Question list
Search
Search

List of questions

Search

Related questions











A company hosts an internal application on Amazon EC2 instances. All application data and requests route through an AWS Site-to-Site VPN connection between the on-premises network and AWS. The company must monitor the application for changes that allow network access outside of the corporate network. Any change that exposes the application externally must be restricted automatically. Which solution meets these requirements in the MOST operationally efficient manner?

A.
Create an AWS Lambda function that updates security groups that are associated with the elastic network interface to remove inbound rules with noncorporate CIDR ranges. Turn on VPC Flow Logs, and send the logs to Amazon CloudWatch Logs. Create an Amazon CloudWatch alarm that matches traffic from noncorporate CIDR ranges, and publish a message to an Amazon Simple Notification Service (Amazon SNS) topic with the Lambda function as a target.
A.
Create an AWS Lambda function that updates security groups that are associated with the elastic network interface to remove inbound rules with noncorporate CIDR ranges. Turn on VPC Flow Logs, and send the logs to Amazon CloudWatch Logs. Create an Amazon CloudWatch alarm that matches traffic from noncorporate CIDR ranges, and publish a message to an Amazon Simple Notification Service (Amazon SNS) topic with the Lambda function as a target.
Answers
B.
Create a scheduled Amazon EventBridge (Amazon CloudWatch Events) rule that targets an AWS Systems Manager Automation document to check for public IP addresses on the EC2 instances. If public IP addresses are found on the EC2 instances, initiate another Systems Manager Automation document to terminate the instances.
B.
Create a scheduled Amazon EventBridge (Amazon CloudWatch Events) rule that targets an AWS Systems Manager Automation document to check for public IP addresses on the EC2 instances. If public IP addresses are found on the EC2 instances, initiate another Systems Manager Automation document to terminate the instances.
Answers
C.
Configure AWS Config and a custom rule to monitor whether a security group allows inbound requests from noncorporate CIDR ranges. Create an AWS Systems Manager Automation document to remove any noncorporate CIDR ranges from the application security groups.
C.
Configure AWS Config and a custom rule to monitor whether a security group allows inbound requests from noncorporate CIDR ranges. Create an AWS Systems Manager Automation document to remove any noncorporate CIDR ranges from the application security groups.
Answers
D.
Configure AWS Config and the managed rule for monitoring public IP associations with the EC2 instances by tag. Tag the EC2 instances with an identifier. Create an AWS Systems Manager Automation document to remove the public IP association from the EC2 instances.
D.
Configure AWS Config and the managed rule for monitoring public IP associations with the EC2 instances by tag. Tag the EC2 instances with an identifier. Create an AWS Systems Manager Automation document to remove the public IP association from the EC2 instances.
Answers
Suggested answer: A

A SysOps administrator has successfully deployed a VPC with an AWS CloudFormation template. The SysOps administrator wants to deploy the same template across multiple accounts that are managed through AWS Organizations. Which solution will meet this requirement with the LEAST operational overhead?

A.
Assume the OrganizationAccountAccessRole IAM role from the management account. Deploy the template in each of the accounts.
A.
Assume the OrganizationAccountAccessRole IAM role from the management account. Deploy the template in each of the accounts.
Answers
B.
Create an AWS Lambda function to assume a role in each account. Deploy the template by using the AWS CloudFormation CreateStack API call.
B.
Create an AWS Lambda function to assume a role in each account. Deploy the template by using the AWS CloudFormation CreateStack API call.
Answers
C.
Create an AWS Lambda function to query for a list of accounts. Deploy the template by using the AWS CloudFormation CreateStack API call.
C.
Create an AWS Lambda function to query for a list of accounts. Deploy the template by using the AWS CloudFormation CreateStack API call.
Answers
D.
Use AWS CloudFormation StackSets from the management account to deploy the template in each of the accounts.
D.
Use AWS CloudFormation StackSets from the management account to deploy the template in each of the accounts.
Answers
Suggested answer: D

Explanation:

Reference: https://aws.amazon.com/blogs/aws/new-use-aws-cloudformation-stacksets-for-multiple-accounts-in-an-awsorganization/

A SysOps administrator is notified that an Amazon EC2 instance has stopped responding. The AWS Management Console indicates that the system checks are failing. What should the administrator do first to resolve this issue?

A.
Reboot the EC2 instance so it can be launched on a new host.
A.
Reboot the EC2 instance so it can be launched on a new host.
Answers
B.
Stop and then start the EC2 instance so that it can be launched on a new host.
B.
Stop and then start the EC2 instance so that it can be launched on a new host.
Answers
C.
Terminate the EC2 instance and relaunch it.
C.
Terminate the EC2 instance and relaunch it.
Answers
D.
View the AWS CloudTrail log to investigate what changed on the EC2 instance.
D.
View the AWS CloudTrail log to investigate what changed on the EC2 instance.
Answers
Suggested answer: B

A SysOps administrator has created a VPC that contains a public subnet and a private subnet. Amazon EC2 instances that were launched in the private subnet cannot access the internet. The default network ACL is active on all subnets in the VPC, and all security groups allow all outbound traffic.

Which solution will provide the EC2 instances in the private subnet with access to the internet?

A.
Create a NAT gateway in the public subnet. Create a route from the private subnet to the NAT gateway.
A.
Create a NAT gateway in the public subnet. Create a route from the private subnet to the NAT gateway.
Answers
B.
Create a NAT gateway in the public subnet. Create a route from the public subnet to the NAT gateway.
B.
Create a NAT gateway in the public subnet. Create a route from the public subnet to the NAT gateway.
Answers
C.
Create a NAT gateway in the private subnet. Create a route from the public subnet to the NAT gateway.
C.
Create a NAT gateway in the private subnet. Create a route from the public subnet to the NAT gateway.
Answers
D.
Create a NAT gateway in the private subnet. Create a route from the private subnet to the NAT gateway.
D.
Create a NAT gateway in the private subnet. Create a route from the private subnet to the NAT gateway.
Answers
Suggested answer: A

Explanation:

Reference: https://docs.aws.amazon.com/vpc/latest/userguide/vpc-nat-gateway.html

A recent audit found that most resources belonging to the development team were in violation of patch compliance standards. The resources were properly tagged. Which service should be used to quickly remediate the issue and bring the resources back into compliance?

A.
AWS Config
A.
AWS Config
Answers
B.
Amazon Inspector
B.
Amazon Inspector
Answers
C.
AWS Trusted Advisor
C.
AWS Trusted Advisor
Answers
D.
AWS Systems Manager
D.
AWS Systems Manager
Answers
Suggested answer: D

Explanation:

Reference: https://docs.aws.amazon.com/systems-manager/latest/userguide/sysman-compliance-about.html

An organization is running multiple applications for their customers. Each application is deployed by running a base AWS CloudFormation template that configures a new VPC. All applications are run in the same AWS account and AWS Region. A SysOps administrator has noticed that when trying to deploy the same AWS CloudFormation stack, it fails to deploy. What is likely to be the problem?

A.
The Amazon Machine image used is not available in that region.
A.
The Amazon Machine image used is not available in that region.
Answers
B.
The AWS CloudFormation template needs to be updated to the latest version.
B.
The AWS CloudFormation template needs to be updated to the latest version.
Answers
C.
The VPC configuration parameters have changed and must be updated in the template.
C.
The VPC configuration parameters have changed and must be updated in the template.
Answers
D.
The account has reached the default limit for VPCs allowed.
D.
The account has reached the default limit for VPCs allowed.
Answers
Suggested answer: D

Explanation:

Reference: https://docs.aws.amazon.com/vpc/latest/userguide/amazon-vpc-limits.html

A company runs its infrastructure on Amazon EC2 instances that run in an Auto Scaling group. Recently, the company promoted faulty code to the entire EC2 fleet. This faulty code caused the Auto Scaling group to scale the instances before any of the application logs could be retrieved.

What should a SysOps administrator do to retain the application logs after instances are terminated?

A.
Configure an Auto Scaling lifecycle hook to create a snapshot of the ephemeral storage upon termination of the instances.
A.
Configure an Auto Scaling lifecycle hook to create a snapshot of the ephemeral storage upon termination of the instances.
Answers
B.
Create a new Amazon Machine Image (AMI) that has the Amazon CloudWatch agent installed and configured to send logs to Amazon CloudWatch Logs. Update the launch template to use the new AMI.
B.
Create a new Amazon Machine Image (AMI) that has the Amazon CloudWatch agent installed and configured to send logs to Amazon CloudWatch Logs. Update the launch template to use the new AMI.
Answers
C.
Create a new Amazon Machine Image (AMI) that has a custom script configured to send logs to AWS CloudTrail. Update the launch template to use the new AMI.
C.
Create a new Amazon Machine Image (AMI) that has a custom script configured to send logs to AWS CloudTrail. Update the launch template to use the new AMI.
Answers
D.
Install the Amazon CloudWatch agent on the Amazon Machine Image (AMI) that is defined in the launch template. Configure the CloudWatch agent to back up the logs to ephemeral storage.
D.
Install the Amazon CloudWatch agent on the Amazon Machine Image (AMI) that is defined in the launch template. Configure the CloudWatch agent to back up the logs to ephemeral storage.
Answers
Suggested answer: C

A company is using Amazon Elastic File System (Amazon EFS) to share a file system among several Amazon EC2 instances. As usage increases, users report that file retrieval from the EFS file system is slower than normal. Which actions should a SysOps administrator take to improve the performance of the file system?

A.
Configure the file system for Provisioned Throughput.
A.
Configure the file system for Provisioned Throughput.
Answers
B.
Enable encryption in transit on the file system.
B.
Enable encryption in transit on the file system.
Answers
C.
Identify any unused files in the file system, and remove the unused files.
C.
Identify any unused files in the file system, and remove the unused files.
Answers
D.
Resize the Amazon Elastic Block Store (Amazon EBS) volume of each of the EC2 instances.
D.
Resize the Amazon Elastic Block Store (Amazon EBS) volume of each of the EC2 instances.
Answers
Suggested answer: A

Explanation:

Reference: https://docs.aws.amazon.com/efs/latest/ug/performance.html

A SysOps administrator is reviewing AWS Trusted Advisor warnings and encounters a warning for an S3 bucket policy that has open access permissions. While discussing the issue the bucket owner, the administrator realizes the S3 bucket is an origin for an Amazon CloudFront web distribution.

Which action should the administrator take to ensure that users access objects in Amazon S3 by using only CloudFront URLs?

A.
Encrypt the S3 bucket content with Server-Side Encryption with Amazon S3-Managed Keys (SSE-S3).
A.
Encrypt the S3 bucket content with Server-Side Encryption with Amazon S3-Managed Keys (SSE-S3).
Answers
B.
Create an origin access identity and grant it permissions to read objects in the S3 bucket.
B.
Create an origin access identity and grant it permissions to read objects in the S3 bucket.
Answers
C.
Assign an IAM user to the CloudFront distribution and grant the user permissions in the S3 bucket policy.
C.
Assign an IAM user to the CloudFront distribution and grant the user permissions in the S3 bucket policy.
Answers
D.
Assign an IAM role to the CloudFront distribution and grant the role permissions in the S3 bucket policy.
D.
Assign an IAM role to the CloudFront distribution and grant the role permissions in the S3 bucket policy.
Answers
Suggested answer: B

A SysOps administrator must create a solution to automatically shuts down any Amazon EC2 instances that have less than 10% average CPU to monitor average CPU utilization for 60 minutes or more. Which solution meets these requirements in the MOST operationally efficient manner?

A.
Implement a cron job on each EC2 instance to run once every 60 minutes and calculate the current CPU utilization. Initiate an instance shutdown if CPU utilization is less than 10%.
A.
Implement a cron job on each EC2 instance to run once every 60 minutes and calculate the current CPU utilization. Initiate an instance shutdown if CPU utilization is less than 10%.
Answers
B.
Implement an Amazon CloudWatch alarm for each EC2 instance to monitor average CPU utilization. Set the period at 1 hour, and set the threshold at 10%. Configure an EC2 action on the alarm to stop the instance.
B.
Implement an Amazon CloudWatch alarm for each EC2 instance to monitor average CPU utilization. Set the period at 1 hour, and set the threshold at 10%. Configure an EC2 action on the alarm to stop the instance.
Answers
C.
Install the unified Amazon CloudWatch agent on each EC2 instance, and enable the Basic level predefined metric set. Log CPU utilization every 60 minutes, and initiate an instance shutdown if CPU utilization is less than 10%.
C.
Install the unified Amazon CloudWatch agent on each EC2 instance, and enable the Basic level predefined metric set. Log CPU utilization every 60 minutes, and initiate an instance shutdown if CPU utilization is less than 10%.
Answers
D.
Use AWS Systems Manager Run Command to get CPU utilization from each EC2 instance every 60 minutes. Initiate an instance shutdown if CPU utilization is less than 10%.
D.
Use AWS Systems Manager Run Command to get CPU utilization from each EC2 instance every 60 minutes. Initiate an instance shutdown if CPU utilization is less than 10%.
Answers
Suggested answer: B

Explanation:

Reference: https://docs.aws.amazon.com/AmazonCloudWatch/latest/monitoring/US_AlarmAtThresholdEC2.html

Total 425 questions
Go to page: of 43