Pass the Amazon Web Services AWS Certified Associate SOA-C02 Questions and answers with CertsForce

Viewing page 5 out of 9 pages
Viewing questions 41-50 out of questions
Questions # 41:

A SysOps administrator developed a Python script that uses the AWS SDK to conduct several maintenance tasks. The script needs to run automatically every night.

What is the MOST operationally efficient solution that meets this requirement?

Options:

A.

Convert the Python script to an AWS Lambda (unction. Use an Amazon EventBridge (Amazon CloudWatch Events) rule to invoke the function every night.


B.

Convert the Python script to an AWS Lambda function. Use AWS CloudTrail to invoke the function every night.


C.

Deploy the Python script to an Amazon EC2 Instance. Use Amazon EventBridge (Amazon CloudWatch Events) to schedule the instance to start and stop every night.


D.

Deploy the Python script to an Amazon EC2 instance. Use AWS Systems Manager to schedule the instance to start and stop every night.


Expert Solution
Questions # 42:

A company has developed a service that is deployed on a fleet of Linux-based Amazon EC2 instances that are in an Auto Scaling group. The service occasionally fails unexpectedly because of an error in the application code. The company's engineering team determines that resolving the underlying cause of the service failure could take several weeks.

A SysOps administrator needs to create a solution to automate recovery if the service crashes on any of the EC2 instances.

Which solutions will meet this requirement? (Select TWO.)

Options:

A.

Install the Amazon CloudWatch agent on the EC2 instances. Configure the CloudWatch agent to monitor the service. Set the CloudWatch action to restart if the service health check fails.


B.

Tag the EC2 instances. Create an AWS Lambda function that uses AWS Systems Manager Session Manager to log in to the tagged EC2 instances and restart the service. Schedule the Lambda function to run every 5 minutes.


C.

Tag the EC2 instances. Use AWS Systems Manager State Manager to create an association that uses the AWS-RunSheIIScript document. Configure the association command with a script that checks if the service is running and that starts the service if the service is not running. For targets, specify the EC2 instance tag. Schedule the association to run every 5 minutes.


D.

Update the EC2 user data that is specified in the Auto Scaling group's launch template to include a script that runs on a cron schedule every 5 minutes.


E.

Update the EC2 user data that is specified in the Auto Scaling group's launch template to ensure that the service runs during startup. Redeploy all the EC2 instances in the Auto Scaling group with the updated launch template.


Expert Solution
Questions # 43:

A SysOps administrator is examining the following AWS CloudFormation template:

Question # 43

Why will the stack creation fail?

Options:

A.

The Outputs section of the Cloud Formation template was omitted.


B.

The Parameters section of the CtoudFormation template was omitted.


C.

The PnvateDnsName cannot be set from a CloudFormation template.


D.

The VPC was not specified in the CloudFormation template.


Expert Solution
Questions # 44:

A global company operates out of five AWS Regions. A SysOps administrator wants to identify all the company's tagged and untagged Amazon EC2 instances.

The company requires the output to display the instance ID and tags.

What is the MOST operationally efficient way for the SysOps administrator to meet these requirements?

Options:

A.

Create a tag-based resource group in AWS Resource Groups.


B.

Use AWS Trusted Advisor. Export the EC2 On-Demand Instances check results from Trusted Advisor.


C.

Use Cost Explorer. Choose a service type of EC2-Instances, and group by Resource.


D.

Use Tag Editor in AWS Resource Groups. Select all Regions, and choose a resource type of AWS::EC2::Instance.


Expert Solution
Questions # 45:

To automatically reboot an EC2 instance when disk usage reaches 100%, a solution with minimal operational overhead is needed.

Options:

Options:

A.

Create a CloudWatch alarm for the EC2 instance. Create an Amazon EventBridge event rule that reacts to the CloudWatch alarm and reboots the EC2 instance.


B.

Create a CloudWatch alarm for the EC2 instance. Create an Amazon Simple Email Service (Amazon SES) notification that reacts to the CloudWatch alarm and reboots the EC2 instance.


C.

Create an AWS Lambda function to reboot the EC2 instance. Create a CloudWatch alarm that uses Amazon EventBridge to invoke the Lambda function.


D.

Create an AWS Lambda function to reboot the EC2 instance. Use EC2 health checks to invoke the Lambda function.


Expert Solution
Questions # 46:

A SysOps administrator configures an Amazon S3 gateway endpoint in a VPC. The private subnets inside the VPC do not nave outbound internet access. A user logs in to an Amazon EC2 instance in one of the private subnets and cannot upload a file to an Amazon S3 bucket in the same AWS Region

Which solution will solve this problem?

Options:

A.

Update the EC2 instance role policy to allow s3:PutObjed access to the target S3 bucket.


B.

Update the EC2 security group to allow outbound traffic to 0.0.0.070 for port 80.


C.

Update the EC2 subnet route table to include the S3 prefix list destination routes to the S3 gateway endpoint.


D.

Update the S3 bucket policy to allow s3 PurObject access from the private subnet CIDR block.


Expert Solution
Questions # 47:

A company has an application that uses Amazon DynamoDB tables The tables are spread across AWS accounts and AWS Regions. The company uses AWS CloudFormation to deploy AWS resources.

A new team at the company is deleting unused AWS resources. The team accidentally deletes several production DynamoDB tables by running an AWS Lambda function that makes a DynamoDB DeleteTable API call. The table deletions cause an application outage

A SysOps administrator must implement a solution that minimizes the chance of accidental deletions of tables. The solution also must minimize data loss that results from accidental deletions.

Which combination of steps will meet these requirements? (Select TWO.)

Options:

A.

Enable termination protection for the CloudFormation stacks that deploy the DynamoDB tables.


B.

Enable deletion protection for the DynamoDB tables


C.

Enable point-in-time recovery for (he DynamoDB tables. Restore the tables if they are accidentally deleted.


D.

Schedule daily backups of the DynamoDB tables. Restore the tables if they are accidentally deleted.


E.

Export the DynamoDB tables to Amazon S3 every day. Use Import from Amazon S3 to restore data for tables that are accidentally deleted


Expert Solution
Questions # 48:

A SysOps administrator needs to automate the invocation of an AWS Lambda function. The Lambda function must run at the end of each day to generate a report on data that is stored in an Amazon S3 bucket.

What is the MOST operationally efficient solution that meets these requirements?

Options:

A.

Create an Amazon EventBridge {Amazon CloudWatch Events) rule that has an event pattern for Amazon S3 and the Lambda function as a target.


B.

Create an Amazon EventBridge (Amazon CloudWatch Events) rule that has a schedule and the Lambda function as a target.


C.

Create an S3 event notification to invoke the Lambda function whenever objects change in the S3 bucket.


D.

Deploy an Amazon EC2 instance with a cron job to invoke the Lambda function.


Expert Solution
Questions # 49:

A SysOps administrator is troubleshooting connection timeouts to an Amazon EC2 instance that has a public IP address. The instance has a private IP address of 172.31.16.139. When the SysOps administrator tries to ping the instance's public IP address from the remote IP address 203.0.113.12, the response is "request timed out." The flow logs contain the following information:

What is one cause of the problem?

Options:

A.

Inbound security group deny rule


B.

Outbound security group deny rule


C.

Network ACL inbound rules


D.

Network ACL outbound rules


Expert Solution
Questions # 50:

A company has an application that runs behind an Application Load Balancer (ALB) in the us-west-2 Region. An Amazon Route 53 record set contains an alias record for app.anycompany.com that references the ALB in us-west-2 and uses a simple routing policy. The application is experiencing an increase in users from other locations in the world. These users are experiencing high latency.

Most of the new users are close to the ap-southeast-2 Region. The company deploys a copy of the application to ap-southeast-2. A SysOps administrator must implement a solution that automatically routes requests to the lowest latency endpoint for users without changing the URL.

Which solution will meet these requirements?

Options:

A.

Add a new value to the existing alias record for app.anycompany.com with the DNS name of the new ALB in ap-southeast-2.


B.

Change the existing alias record to use a geolocation routing policy. Create two geolocation records, one record that references each ALSelect the location that is closest to each Region.


C.

Change the existing alias record to use a latency routing policy. Create two latency records, one record that references each ALB.


D.

Change the existing alias record to use a multivalue routing policy Add the DNS name of each ALB to the record.


Expert Solution
Viewing page 5 out of 9 pages
Viewing questions 41-50 out of questions